joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401735
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x40d4b0
call fcn.004031e8
mov edi, 0x94
mov eax, edi
call fcn.00403240
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [esi + 0x10]
mov dword [0x4206d0], ecx
mov eax, dword [esi + 4]
mov dword [0x4206dc], eax
mov edx, dword [esi + 8]
mov dword [0x4206e0], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x4206d4], esi
cmp ecx, 2
je 0x401795
or esi, 0x8000
mov dword [0x4206d4], esi
shl eax, 8
add eax, edx
mov dword [0x4206d8], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x4017d0
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4017d0
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x4017e8
cmp eax, 0x20b
je 0x4017d5
mov dword [ebp - 0x1c], esi
jmp 0x4017fc
cmp dword [ecx + 0x84], 0xe
jbe 0x4017d0
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x4017f6
cmp dword [ecx + 0x74], 0xe
jbe 0x4017d0
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push esi
call fcn.00403196
pop ecx
test eax, eax
jne 0x401828
cmp dword [0x4206b0], 1
jne 0x401815
call fcn.0040293f
push 0x1c
call fcn.004027c8
push 0xff
call fcn.00402631
pop ecx
pop ecx
call fcn.004030f4
mov dword [ebp - 4], esi
call fcn.00402f49
test eax, eax
jge 0x401841
push 0x1b
call fcn.00401710
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x420c38], eax
call fcn.00402e27
mov dword [0x4206a8], eax
call fcn.00402d85
test eax, eax
jge 0x401867
push 8
call fcn.00401710
pop ecx
call fcn.00402b52
test eax, eax
jge 0x401878
push 9
call fcn.00401710
pop ecx
call fcn.00402661
mov dword [ebp - 0x20], eax
cmp eax, esi
je 0x40188b
push eax
call fcn.00401710
pop ecx
mov dword [ebp - 0x38], esi
lea eax, [ebp - 0x64]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.00402ae9
mov dword [ebp - 0x68], eax
test byte [ebp - 0x38], 1
je 0x4018ac
movzx eax, word [ebp - 0x34]
jmp 0x4018af
push 0xa
pop eax
push eax
push dword [ebp - 0x68]
push esi
push esi
call edi
push eax
call fcn.004013fb
mov edi, eax
mov dword [ebp - 0x6c], edi
cmp dword [ebp - 0x1c], esi
jne 0x4018cd
push edi
call fcn.00402788
call fcn.004027aa
jmp 0x4018ff
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.00403223
ret
Function at 0x4026c6
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
inc esi
cmp dword [0x420710], esi
push edi
jne 0x4026e6
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
cmp dword [ebp + 0xc], 0
mov al, byte [ebp + 0x10]
mov dword [0x42070c], esi
mov byte [0x420708], al
jne 0x40274c
mov ecx, dword [0x420c28]
test ecx, ecx
je 0x40272d
mov eax, dword [0x420c24]
sub eax, 4
cmp eax, ecx
jmp 0x402726
mov eax, dword [eax]
test eax, eax
je 0x402718
call eax
mov eax, dword [0x420c24]
sub eax, 4
cmp eax, dword [0x420c28]
mov dword [0x420c24], eax
jae 0x402710
mov eax, 0x410020
mov esi, 0x410024
cmp eax, esi
mov edi, eax
jae 0x40274c
mov eax, dword [edi]
test eax, eax
je 0x402745
call eax
add edi, 4
cmp edi, esi
jb 0x40273d
mov eax, 0x410028
mov esi, 0x41002c
cmp eax, esi
mov edi, eax
jae 0x40276b
mov eax, dword [edi]
test eax, eax
je 0x402764
call eax
add edi, 4
cmp edi, esi
jb 0x40275c
cmp dword [ebp + 0x10], 0
pop edi
pop esi
jne 0x402786
push dword [ebp + 8]
mov dword [0x420710], 1
call fcn.00402631
pop ecx
pop ebp
ret

Function at 0x4027c8
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x420190]
xor eax, dword [ebp + 4]
mov ecx, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 4], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x41fea8]
je 0x4027f5
inc eax
cmp eax, 0x12
jb 0x4027e6
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x41fea8]
jne 0x402929
mov eax, dword [0x4206b0]
cmp eax, 1
je 0x402904
cmp eax, edx
jne 0x402825
cmp dword [0x41fdec], 1
je 0x402904
cmp ecx, 0xfc
je 0x402929
push 0x104
lea eax, [ebp - 0x10c]
push eax
push edx
mov byte [ebp - 8], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40285e
lea eax, [ebp - 0x10c]
push str._program_name_unknown_
push eax
call fcn.00404e40
pop ecx
pop ecx
lea eax, [ebp - 0x10c]
push eax
lea edi, [ebp - 0x10c]
call fcn.00404db0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x4028a0
lea eax, [ebp - 0x10c]
push eax
call fcn.00404db0
mov edi, eax
lea eax, [ebp - 0x10c]
sub eax, 0x3b
push 3
add edi, eax
push 0x40e1d0
push edi
call fcn.00405480
add esp, 0x10
push edi
call fcn.00404db0
push dword [esi + 0x41feac]
mov ebx, eax
call fcn.00404db0
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.00403240
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.00404e40
push edi
push ebx
call fcn.00404e50
push 0x40e1b0
push ebx
call fcn.00404e50
push dword [esi + 0x41feac]
push ebx
call fcn.00404e50
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.0040537d
add esp, 0x2c
jmp 0x402929
push edx
lea eax, [ebp + 8]
push eax
lea esi, [esi + 0x41feac]
push dword [esi]
call fcn.00404db0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea esp, [ebp - 0x118]
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
call fcn.004055d5
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40537d
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x420858], ebx
push esi
push edi
jne 0x4053fd
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x405438
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
mov dword [0x420858], eax
je 0x405438
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x42085c], eax
call esi
cmp dword [0x4206d0], 2
mov dword [0x420860], eax
jne 0x4053fd
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x420868], eax
je 0x4053fd
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x420864], eax
mov eax, dword [0x420864]
test eax, eax
je 0x405442
call eax
test eax, eax
je 0x405429
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x420868]
test eax, eax
je 0x405429
test byte [ebp - 8], 1
jne 0x405442
cmp dword [0x4206dc], 4
jb 0x40543c
or byte [ebp + 0x12], 0x20
jmp 0x405461
xor eax, eax
jmp 0x405471
or byte [ebp + 0x12], 4
jmp 0x405461
mov eax, dword [0x42085c]
test eax, eax
je 0x405461
call eax
mov ebx, eax
test ebx, ebx
je 0x405461
mov eax, dword [0x420860]
test eax, eax
je 0x405461
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x420858]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4086c1
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push ebx
push esi
push edi
push 4
pop eax
call fcn.00403240
mov ebx, esp
push 0x1c
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x408756
mov edi, dword [ebp - 0x20]
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x44]
lea esi, [eax - 1]
not esi
and esi, ebx
sub esi, eax
mov dword [ebp - 4], eax
mov eax, dword [0x4206d0]
mov ecx, eax
dec ecx
neg ecx
sbb ecx, ecx
and ecx, 0xffff1000
add ecx, 0x11000
add ecx, edi
cmp esi, ecx
jb 0x408756
cmp eax, 1
je 0x40876e
mov ebx, edi
mov edi, 0x1000
push 0x1c
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x408756
add ebx, dword [ebp - 0x18]
test dword [ebp - 0x14], edi
je 0x40872b
test byte [ebp - 0xf], 1
mov ebx, dword [ebp - 0x24]
je 0x408752
xor eax, eax
inc eax
jmp 0x40878a
cmp esi, ebx
jae 0x40875a
xor eax, eax
jmp 0x40878a
push 4
push edi
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x4206d0]
jmp 0x408770
mov ebx, esi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 8]
push ecx
inc eax
push eax
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x54]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x406739
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x469c7c], 0
jne 0x406777
xor ecx, ecx
push esi
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
movzx edx, dl
neg edx
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x40674d
mov dword [ecx*4 + 0x469c78], eax
inc ecx
cmp ecx, 0x100
jl 0x406748
pop esi
cmp dword [ebp + 0x10], 0
mov eax, dword [ebp + 8]
not eax
jbe 0x4067a4
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
dec dword [ebp + 0x10]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x469c78]
inc ecx
cmp dword [ebp + 0x10], 0
ja 0x406785
not eax
pop ebp
ret 0xc

Function at 0x401340
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
mov dword [0x404158], eax
push 0
mov ecx, dword [ebp + 8]
push ecx
push 0
push 0
push 0
push 0x80000000
push 0
push 0x80000000
push 0xcf0000
push str.trast
push str.bask
push 0
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x401388
xor eax, eax
jmp 0x4013a3
push 0
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.USER32.dll_UpdateWindow]
mov eax, 1
mov esp, ebp
pop ebp
ret

Function at 0x402570
Capabilities:
Accept command line arguments
Terminate process

Disassembly:
mov ecx, 0x404230
push ecx
jmp fcn.0040257b
Function at 0x11260058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.112601a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x1126007e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x1126006a
add dl, dl
jne 0x11260089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x112600dc
xor eax, eax
add dl, dl
jne 0x11260096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x1126017d
add dl, dl
jne 0x112600a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x112600b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x112600bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x112600c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x112600d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x11260075
mov eax, 1
add dl, dl
jne 0x112600ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x112600f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x112600e1
sub eax, ebx
mov ebx, 1
jne 0x11260128
mov ecx, 1
add dl, dl
jne 0x1126010e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x11260119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x11260105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x11260075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1126013f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1126014a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x11260136
cmp eax, 0x7d00
jae 0x1126016d
cmp eax, 0x500
jb 0x11260168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x11260075
cmp eax, 0x7f
ja 0x11260170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x11260075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x1126019e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x11260075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x40efe0
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x10
push esi
push edi
cmp eax, 4
jne 0x40f0a4
mov edx, dword [esp + 0x20]
lea ecx, [edx + edx]
lea esi, [edx + edx*2]
test edx, edx
jle 0x40f16e
mov eax, dword [esp + 0x28]
movss xmm1, dword [0x440cb0]
lea ecx, [eax + ecx*4]
lea edi, [eax + esi*4]
lea esi, [eax + 4]
lea eax, [eax + edx*4]
mov dword [esp + 0xc], eax
mov dword [esp + 8], ecx
lea ecx, [edx - 1]
mov eax, 0xaaaaaaab
mul ecx
mov ecx, dword [esp + 8]
mov eax, edx
mov edx, dword [esp + 0xc]
shr eax, 1
inc eax
mov dword [esp + 0x1c], eax
nop
dec dword [esp + 0x1c]
mov eax, dword [esi + 4]
mov dword [edx], eax
mov eax, dword [esi]
mov dword [edx + 4], eax
movss xmm0, dword [esi - 4]
xorps xmm0, xmm1
movss dword [edx + 8], xmm0
movss xmm0, dword [esi - 4]
xorps xmm0, xmm1
movss dword [ecx], xmm0
mov eax, dword [esi]
mov dword [ecx + 4], eax
movss xmm0, dword [esi + 4]
xorps xmm0, xmm1
movss dword [ecx + 8], xmm0
movss xmm0, dword [esi + 4]
xorps xmm0, xmm1
movss dword [edi], xmm0
mov eax, dword [esi]
mov dword [edi + 4], eax
mov eax, dword [esi - 4]
mov dword [edi + 8], eax
lea edx, [edx + 0xc]
lea ecx, [ecx + 0xc]
lea edi, [edi + 0xc]
lea esi, [esi + 0xc]
jne 0x40f040
pop edi
pop esi
add esp, 0x10
ret
cmp eax, 2
jne 0x40f16e
mov edx, dword [esp + 0x24]
test edx, edx
jle 0x40f16e
mov ecx, dword [esp + 0x28]
lea eax, [edx + edx*2]
shl eax, 2
mov dword [esp + 0xc], eax
lea eax, [edx*4]
sub eax, edx
neg eax
shl eax, 2
movss xmm1, dword [0x440cb0]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x20]
add eax, 2
lea esi, [edx + edx*2]
lea edi, [ecx + eax*4]
mov eax, dword [esp + 0xc]
add eax, 0xfffffff4
imul eax, edx
add eax, ecx
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x1c], esi
mov dword [esp + 8], edi
mov dword [esp + 0x10], eax
lea ebx, [ebx]
test esi, esi
jle 0x40f159
mov ecx, dword [esp + 0x1c]
mov esi, eax
dec ecx
mov eax, 0xaaaaaaab
mul ecx
shr edx, 1
inc edx
mov eax, dword [esi]
mov dword [edi - 8], eax
mov eax, dword [esi + 4]
mov dword [edi - 4], eax
movss xmm0, dword [esi + 8]
xorps xmm0, xmm1
movss dword [edi], xmm0
lea esi, [esi + 0xc]
lea edi, [edi + 0xc]
dec edx
jne 0x40f125
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x10]
mov edi, dword [esp + 8]
mov esi, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
add edi, dword [esp + 0xc]
add eax, ecx
dec edx
mov dword [esp + 0x10], eax
mov dword [esp + 8], edi
mov dword [esp + 0x24], edx
jne 0x40f110
pop edi
pop esi
add esp, 0x10
ret
Function at 0x42e003
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
mov eax, section..text
nop
nop
nop
nop
nop
push 4
nop
pop edi
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x42e072
nop
nop
nop
nop
mov ebx, 0x407ef8
mov ecx, ebx
nop
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
div edi
nop
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
mov esi, 0x112817b5
nop
nop
nop
nop
nop
xor dword [eax], esi
add eax, edi
nop
nop
nop
nop
loop 0x42e060
nop
nop
nop
nop
nop
mov eax, section..data
nop
nop
nop
cmp eax, 0
nop
nop
je 0x42e0d2
nop
nop
mov ebx, 0x42cd70
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
nop
mov esi, 0x753c11f8
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
add eax, edi
nop
nop
nop
loop 0x42e0c0
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x401219
Function at 0x44897a
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4956c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
xor edi, edi
push edi
mov dword [ebp - 0x20], eax
call ebx
mov esi, eax
mov dword [ebp - 0x18], esi
call fcn.00445807
mov dword [ebp - 0x14], eax
cmp dword [0x4db238], edi
jne 0x448a6b
push 0x800
push edi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
jne 0x4489f8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x448b4b
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x448b4b
push str.MessageBoxW
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x448b4b
push eax
call ebx
push str.GetActiveWindow
push esi
mov dword [0x4db238], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push esi
mov dword [0x4db23c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push esi
mov dword [0x4db240], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4db248], eax
test eax, eax
je 0x448a68
push str.GetProcessWindowStation
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4db244], eax
mov esi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x448a90
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x448a83
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], edi
je 0x448aa5
push 4
pop eax
jmp 0x448b4d
cmp dword [ebp - 0x14], edi
je 0x448aa5
push dword [0x4db238]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x448a8a
mov eax, dword [0x4db244]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, esi
je 0x448b03
cmp dword [0x4db248], esi
je 0x448b03
push eax
call ebx
push dword [0x4db248]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x448b03
test eax, eax
je 0x448b03
call ecx
test eax, eax
je 0x448af8
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x448af8
test byte [ebp - 8], 1
jne 0x448b03
mov esi, dword [ebp + 0x10]
or esi, 0x200000
jmp 0x448b33
mov eax, dword [0x4db23c]
cmp eax, esi
je 0x448b30
push eax
call ebx
test eax, eax
je 0x448b30
call eax
mov edi, eax
test edi, edi
je 0x448b30
mov eax, dword [0x4db240]
cmp eax, esi
je 0x448b30
push eax
call ebx
test eax, eax
je 0x448b30
push edi
call eax
mov edi, eax
mov esi, dword [ebp + 0x10]
push dword [0x4db238]
call ebx
test eax, eax
je 0x448b4b
push esi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push edi
call eax
jmp 0x448b4d
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00442b19
leave
ret
Function at 0x401760
Capabilities:
Create service
Persist via windows service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x43700c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x208
lea eax, [ebp - 0x210]
push 0
push eax
call fcn.0040f870
add esp, 0xc
lea eax, [ebp - 0x210]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x4017c7
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Cannot_install_service___d__n
call fcn.00401cb0
add esp, 8
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040d2ba
mov esp, ebp
pop ebp
ret
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
jne 0x401800
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.OpenSCManager_failed___d__n
call fcn.00401cb0
add esp, 8
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040d2ba
mov esp, ebp
pop ebp
ret
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x210]
push eax
push 1
push 2
push 0x10
push 0xf01ff
push 0x43230c
push 0x43230c
push edi
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov esi, eax
test esi, esi
jne 0x40185e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CreateService_failed___d__n
call fcn.00401cb0
add esp, 8
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040d2ba
mov esp, ebp
pop ebp
ret
push str.Service_installed_successfully_n
call fcn.00401cb0
add esp, 4
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push edi
call esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0040d2ba
mov esp, ebp
pop ebp
ret

Function at 0x4019a0
Capabilities:
Create thread
Print debug messages

Disassembly:
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [0x438cf8], eax
test eax, eax
jne 0x4019fd
push 0x438d00
push dword [0x438cfc]
mov dword [0x438d04], 1
mov dword [0x438d0c], 0
mov dword [0x438d18], 0
mov dword [0x438d08], 1
mov dword [0x438d14], 0
call dword [sym.imp.ADVAPI32.dll_SetServiceStatus]
xor eax, eax
ret
push str.start_start
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [0x438d20], 0
jne 0x401a3d
push 0
push 0
push 0x438d20
push 0x401d80
push 0
push 0
mov byte [0x438d28], 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x438d20], eax
test eax, eax
je 0x4019b7
push 0x438d00
push dword [0x438cfc]
mov dword [0x438d04], 4
mov dword [0x438d0c], 0
mov dword [0x438d18], 0
mov dword [0x438d08], 1
mov dword [0x438d14], 0
call dword [sym.imp.ADVAPI32.dll_SetServiceStatus]
push 0xffffffffffffffff
push dword [0x438cf8]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, 0x438d20
call fcn.00405620
push 0x438d00
push dword [0x438cfc]
mov dword [0x438d04], 1
mov dword [0x438d0c], 0
mov dword [0x438d18], 0
mov dword [0x438d08], 1
mov dword [0x438d14], 0
call dword [sym.imp.ADVAPI32.dll_SetServiceStatus]
mov eax, 1
ret
Function at 0x401b60
Capabilities:
Access the windows event log

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xac
mov eax, dword [0x43700c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0xa0
lea eax, [ebp - 0xa4]
mov dword [ebp - 0xac], 0
push 0
push eax
mov dword [ebp - 0xa8], 0
call fcn.0040f870
add esp, 0xc
push 0x43230c
push 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov esi, eax
test esi, esi
je 0x401c0f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.RegisterServiceCtrlHandler
push str._s_failed_with__d
lea eax, [ebp - 0xa4]
push 0x50
push eax
call fcn.00401c20
add esp, 0x14
mov dword [ebp - 0xac], 0x43230c
lea eax, [ebp - 0xa4]
mov dword [ebp - 0xa8], eax
lea eax, [ebp - 0xac]
push 0
push eax
push 0
push 2
push 0
push 0xc0020001
push 0
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ReportEventW]
push esi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0040d2ba
mov esp, ebp
pop ebp
ret