joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43c8e0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x46ddc3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.0046129a
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], vtable.CBrush.0
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], method.CEdit.virtual_0
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
mov ecx, edi
call fcn.00466938
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.00467e54
test eax, eax
je 0x43c9fc
mov ecx, dword [esp + 0x3c]
call fcn.00466965
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x43c9c0
push edi
mov ecx, esi
call fcn.00463fc0
mov ecx, esi
call fcn.0043cb60
cmp dword [esp + 0x38], 1
jne 0x43c9f5
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call fcn.004640fb
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28
Function at 0x43f420
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x43f453
push esi
call fcn.00442520
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x43f44c
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x43f4d9
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x43f4c2
mov eax, dword [esi + 8]
test eax, eax
je 0x43f477
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x43f4be
cmp eax, 2
je 0x43f4c2
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x43f46a
cmp eax, 3
je 0x43f49d
cmp eax, 1
jne 0x43f46a
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x43f46a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x43f46a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.0043f500
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x43f4e8
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.0043f500
add esp, 4
pop esi
ret

Function at 0x44a840
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0xa0
push ebx
push ebp
mov ebp, dword [esp + 0xac]
push esi
push edi
push ebp
call sub.RASAPI32.dll_RasHangUpA
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x28
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
mov dword [esp + 0x10], 0xa0
call esi
mov edi, eax
call esi
sub eax, edi
cmp eax, 0xbb8
jae 0x44a8a6
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [esp + 0x10]
push eax
push ebp
call sub.RASAPI32.dll_RasGetConnectStatusA
cmp eax, 6
je 0x44a8a6
push 0
call ebx
call esi
sub eax, edi
cmp eax, 0xbb8
jb 0x44a887
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa0
ret
Function at 0x44b3e0
Capabilities:
Create tcp socket
Create udp socket
Set socket configuration

Disassembly:
push ecx
push esi
mov esi, ecx
call fcn.0044b530
push 0
push 1
push 2
call sub.WS2_32.dll_socket
mov dword [esi], eax
cmp eax, 0xffffffff
pop esi
jne 0x44b400
xor eax, eax
pop ecx
ret
lea ecx, [esp]
push 4
push ecx
push 0x1001
push 0xffff
push eax
mov dword [esp + 0x14], 0
call sub.WS2_32.dll_setsockopt
mov eax, 1
pop ecx
ret

Function at 0x44b3e1
Capabilities:
Create tcp socket
Create udp socket
Set socket configuration

Disassembly:
push ecx
push esi
mov esi, ecx
call fcn.0044b530
push 0
push 1
push 2
call sub.WS2_32.dll_socket
mov dword [esi], eax
cmp eax, 0xffffffff
pop esi
jne 0x44b400
xor eax, eax
pop ecx
ret
lea ecx, [esp]
push 4
push ecx
push 0x1001
push 0xffff
push eax
mov dword [esp + 0x14], 0
call sub.WS2_32.dll_setsockopt
mov eax, 1
pop ecx
ret

Function at 0x44b430
Capabilities:
Resolve dns

Disassembly:
sub esp, 0x10
xor eax, eax
push esi
push edi
mov dword [esp + 8], eax
mov edi, ecx
mov dword [esp + 0xc], eax
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x10], eax
push ecx
mov dword [esp + 0x18], eax
mov word [esp + 0xc], 2
call sub.WS2_32.dll_htons
mov esi, dword [esp + 0x1c]
mov word [esp + 0xa], ax
push esi
call sub.WS2_32.dll_inet_addr
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x44b487
push esi
call sub.WS2_32.dll_gethostbyname
test eax, eax
je 0x44b49d
mov edx, dword [eax + 0xc]
mov eax, dword [edx]
mov ecx, dword [eax]
mov dword [esp + 0xc], ecx
lea edx, [esp + 8]
push 0x10
push edx
mov ecx, edi
call fcn.0044b4c0
pop edi
pop esi
add esp, 0x10
ret 8
push 0x2726
call sub.WS2_32.dll_WSASetLastError
pop edi
xor eax, eax
pop esi
add esp, 0x10
ret 8

Function at 0x44b4c0
Capabilities:
Connect socket

Disassembly:
mov eax, dword [esp + 8]
mov edx, dword [esp + 4]
push eax
mov eax, dword [ecx]
push edx
push eax
call sub.WS2_32.dll_connect
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
ret 8

Function at 0x44b550
Capabilities:
Get socket status

Disassembly:
sub esp, 0x10c
mov eax, dword [ecx]
lea ecx, [esp]
push ecx
push 0
lea edx, [esp + 0x10]
push 0
push edx
push 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 1
call sub.WS2_32.dll_select
cmp eax, 0xffffffff
jne 0x44b599
xor eax, eax
add esp, 0x10c
ret 4
mov edx, dword [esp + 0x110]
xor ecx, ecx
test eax, eax
setne cl
mov dword [edx], ecx
mov eax, 1
add esp, 0x10c
ret 4
Function at 0x44ba10
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x46e2f0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
lea ecx, [esp + 4]
call fcn.0044b5c0
lea eax, [esp + 4]
lea ecx, [esi + 4]
push eax
mov dword [esp + 0x18], 0
call fcn.0044b640
lea ecx, [esp + 4]
push ecx
lea ecx, [esi + 0x14]
call fcn.0044b640
lea ecx, [esi + 0xc]
call fcn.0045fc76
lea ecx, [esi + 0x10]
call fcn.0045fc76
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x1c]
call fcn.0044de70
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x30]
call fcn.0044de70
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x44]
call fcn.0044de70
lea ecx, [esp + 8]
mov dword [esp + 0x14], 1
call fcn.0045fceb
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.0045fceb
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret

Function at 0x44c6b8
Capabilities:
Get hostname

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x46e518
push eax
mov dword fs:[0], esp
sub esp, 0x64
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 4]
test eax, eax
je 0x44c6c8
call fcn.0044cbe0
mov edi, dword [esp + 0x7c]
test edi, edi
je 0x44c7ab
cmp byte [edi], 0
je 0x44c7ab
mov eax, dword [esp + 0x8c]
test eax, eax
jg 0x44c6ed
mov eax, 0x7d0
mov ecx, esi
mov dword [esi + 8], eax
call fcn.0044b3e0
test eax, eax
jne 0x44c70d
push 0x4ae460
lea ecx, [esi + 0x38]
call fcn.0045fe28
jmp 0x44c7ab
mov eax, dword [esp + 0x80]
mov ecx, esi
push eax
push edi
call fcn.0044b430
test eax, eax
jne 0x44c73c
mov ecx, esi
call fcn.0044b530
push edi
add esi, 0x38
push 0x4ae43c
push esi
call fcn.0045dc87
add esp, 0xc
jmp 0x44c7ab
push 0xdc
mov ecx, esi
mov dword [esi + 4], 1
call fcn.0044d460
test eax, eax
je 0x44c7a4
lea ecx, [esp + 8]
push 0x64
push ecx
call sub.WS2_32.dll_gethostname
mov eax, dword [esp + 0x88]
mov ecx, dword [esp + 0x84]
lea edx, [esp + 0x8c]
mov dword [esp + 0x8c], 1
push edx
push eax
lea edx, [esp + 0x10]
push ecx
push edx
mov ecx, esi
call fcn.0044c880
test eax, eax
jne 0x44c7c0
push edi
lea eax, [esi + 0x38]
push 0x4ae418
push eax
call fcn.0045dc87
add esp, 0xc
mov ecx, esi
call fcn.0044cbe0
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x64]
mov dword fs:[0], ecx
add esp, 0x70
ret 0x14
mov eax, dword [esp + 0x8c]
test eax, eax
je 0x44c868
mov ecx, dword [0x4ae6d0]
mov dword [esp + 0x7c], ecx
lea edx, [esp + 8]
lea eax, [esp + 0x7c]
push edx
push str.HELO__s_r_n
push eax
mov dword [esp + 0x80], 0
call fcn.0045dc87
mov edx, dword [esp + 0x88]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
mov ecx, esi
call fcn.0044b4e0
test eax, eax
jne 0x44c82a
push 0x4ae3fc
lea ecx, [esi + 0x38]
call fcn.0045fe28
jmp 0x44c83a
push 0xfa
mov ecx, esi
call fcn.0044d460
test eax, eax
jne 0x44c857
mov ecx, esi
call fcn.0044cbe0
lea ecx, [esp + 0x7c]
mov dword [esp + 0x74], 0xffffffff
call fcn.0045fceb
jmp 0x44c7ab
lea ecx, [esp + 0x7c]
mov dword [esp + 0x74], 0xffffffff
call fcn.0045fceb
mov ecx, dword [esp + 0x6c]
pop edi
mov eax, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x70
ret 0x14
Function at 0x46208f
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4620c7
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.00460146
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0046011e
jmp 0x4620d3
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x46377d
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x4637bf
call fcn.004692fe
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4637bf
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4637b6
xor eax, eax
jmp 0x4637c7
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004637cd
pop edi
pop esi
pop ebx
ret 4

Function at 0x46982e
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x46985c
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x46987a
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00469794
jmp 0x46987a
mov eax, dword [esi + 0x14]
test eax, eax
je 0x46987a
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00469794
test edi, edi
mov eax, edi
jne 0x469864
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x402e10
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
push edi
xor edi, edi
push edi
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x402e8a
push ebx
push 1
call dword [sym.imp.USER32.dll_GetClipboardData]
mov ebx, eax
test ebx, ebx
je 0x402e7f
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov esi, eax
or ecx, 0xffffffff
mov edi, esi
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
call fcn.0040b0a0
mov edi, eax
add esp, 4
test edi, edi
je 0x402e77
mov al, byte [esi]
mov ecx, edi
test al, al
mov edx, esi
je 0x402e74
mov al, byte [edx]
cmp al, 0xd
je 0x402e6c
cmp al, 0xa
jne 0x402e69
mov byte [ecx], al
jmp 0x402e6b
mov byte [ecx], al
inc ecx
mov al, byte [edx + 1]
inc edx
test al, al
jne 0x402e5b
mov byte [ecx], 0
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
pop esi
call dword [sym.imp.USER32.dll_CloseClipboard]
mov eax, edi
pop ebx
pop edi
ret
mov eax, edi
pop edi
ret

Function at 0x402e90
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push eax
mov ebp, ecx
inc ebp
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x402ef6
push ebx
push ebp
push 0x2002
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ecx, ebp
mov edi, eax
mov eax, ecx
push ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
call dword [sym.imp.USER32.dll_EmptyClipboard]
push ebx
push 1
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
pop ebx
pop edi
pop esi
pop ebp
ret

Function at 0x402f00
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
push esi
xor esi, esi
push esi
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x402f25
push 1
call dword [sym.imp.USER32.dll_GetClipboardData]
test eax, eax
je 0x402f1f
mov esi, 1
call dword [sym.imp.USER32.dll_CloseClipboard]
mov eax, esi
pop esi
ret
Function at 0x405120
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0xc
push ebx
push ebp
mov ebp, dword [esp + 0x20]
push esi
cmp ebp, 3
push edi
mov esi, ecx
je 0x4052cf
mov ebx, dword [esp + 0x24]
mov edi, dword [esp + 0x20]
xor eax, eax
cmp ebp, 2
setne al
cmp ebp, 2
mov dword [esp + 0x28], eax
jne 0x40516e
lea ecx, [esp + 0x24]
push ecx
push ebx
push edi
mov ecx, esi
call fcn.00404f90
test eax, eax
je 0x40516e
mov edx, dword [esp + 0x24]
mov ecx, esi
push edx
push eax
call fcn.004074c0
mov eax, dword [esi + 0x68]
test ah, 0x10
jne 0x4052cf
test ah, 1
je 0x4051be
mov eax, dword [esi + 0x18]
mov dword [esp + 0x14], edi
test eax, eax
mov dword [esp + 0x18], ebx
je 0x4051a0
lea ecx, [esp + 0x14]
push ecx
mov ecx, dword [eax]
add ecx, 0x164
call fcn.00419de0
lea edx, [esp + 0x14]
lea eax, [esp + 0x14]
push edx
lea ecx, [esi + 0x50]
push eax
push ecx
call fcn.0040a3c0
mov edi, dword [esp + 0x20]
mov ebx, dword [esp + 0x24]
add esp, 0xc
mov eax, dword [esp + 0x28]
test eax, eax
je 0x4051fe
cmp ebp, 5
je 0x4051fe
call fcn.0041ead0
mov ecx, dword [esi + 0x18]
test ecx, ecx
je 0x4051fb
cmp dword [esi + 0x1fc], edi
jne 0x4051fb
cmp dword [esi + 0x200], ebx
jne 0x4051fb
mov ecx, dword [esi + 0x14]
mov edx, eax
sub edx, ecx
cmp edx, 0xfa
jge 0x4051fb
mov ebp, 4
mov dword [esi + 0x14], eax
cmp ebp, 4
jne 0x405251
mov edi, dword [esi + 4]
mov ebp, dword [esi + 0x37c]
mov ebx, edi
cmp ebx, ebp
jge 0x405223
push ebx
mov ecx, esi
call fcn.004050a0
test eax, eax
jne 0x405223
inc ebx
cmp ebx, ebp
jl 0x405212
test edi, edi
jle 0x40523c
lea ebp, [edi - 1]
push ebp
mov ecx, esi
call fcn.004050a0
test eax, eax
jne 0x40523c
dec edi
dec ebp
test edi, edi
jg 0x40522a
push 0
push ebx
push edi
mov ecx, esi
call fcn.004075c0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 0xc
mov eax, dword [esp + 0x28]
push 0x10
mov dword [esi + 0x1fc], edi
mov dword [esi + 0x200], ebx
mov dword [esi + 0x208], eax
call dword [sym.imp.USER32.dll_GetKeyState]
xor ecx, ecx
lea edx, [esp + 0x20]
test ax, ax
lea eax, [esp + 0x10]
push edx
setl cl
push eax
mov ebp, ecx
push ebx
push edi
mov ecx, esi
call fcn.004058b0
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x10]
push ecx
push edx
mov ecx, esi
call fcn.00407830
mov edx, dword [esi + 8]
mov ecx, dword [esi]
test edx, edx
jne 0x4052b5
test ebp, ebp
mov dword [esi + 8], 1
jne 0x4052c4
mov ecx, eax
jmp 0x4052c4
mov edx, dword [esp + 0x28]
test edx, edx
jne 0x4052c4
mov dword [esi + 8], 0
push 0
push eax
push ecx
mov ecx, esi
call fcn.004075c0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 0xc
Function at 0x40ba20
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
push esi
lea eax, [esp + 4]
push edi
xor esi, esi
push eax
push 0x20019
push esi
push ecx
push edx
mov dword [esp + 0x1c], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40ba91
mov ecx, dword [esp + 8]
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
lea eax, [esp + 0x14]
push eax
push esi
push esi
push ecx
call edi
test eax, eax
jne 0x40ba91
mov edx, dword [esp + 0x14]
push edx
call fcn.0040b0a0
mov ecx, dword [esp + 0xc]
add esp, 4
mov esi, eax
lea eax, [esp + 0x14]
push eax
push esi
push 0
push ecx
call edi
test eax, eax
je 0x40ba91
push esi
call fcn.0040b0b0
add esp, 4
xor esi, esi
mov eax, dword [esp + 8]
test eax, eax
je 0x40baa0
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
pop esi
pop ecx
ret

Function at 0x40bb40
Capabilities:
Create process on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x54
push ebx
push esi
push edi
push str._shellopencommand
push eax
xor esi, esi
xor edi, edi
call fcn.00426b00
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x40bbb4
push ebx
push 0x80000000
call fcn.0040ba20
mov esi, eax
add esp, 8
test esi, esi
je 0x40bbb4
mov ecx, dword [esp + 0x68]
push ecx
push esi
call fcn.0040bab0
mov edi, eax
add esp, 8
test edi, edi
je 0x40bbb4
lea edx, [esp + 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
lea eax, [esp + 0xc]
lea ecx, [esp + 0x1c]
push eax
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
push edi
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
push ebx
call fcn.00426af0
push esi
call fcn.00426af0
push edi
call fcn.00426af0
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
add esp, 0x54
ret
Function at 0x40d270
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
sub esp, 0x120
push ebx
push esi
push edi
mov edi, dword [esp + 0x13c]
test edi, edi
jne 0x40d33a
mov eax, dword [esp + 0x138]
mov edi, dword [esp + 0x130]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
mov dword [esp + 0xc], 0x114
test eax, eax
mov byte [esp + 0x18], 0
je 0x40d30d
lea eax, [esp + 0x14]
push eax
push 1
push 0
push edi
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40d30d
lea ecx, [esp + 0xc]
lea edx, [esp + 0x18]
push ecx
lea eax, [esp + 0x14]
push edx
push eax
push 0
push edi
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [esp + 0x18]
push ecx
call ebx
test eax, eax
je 0x40d2f9
cmp dword [esp + 0x10], 1
jne 0x40d2f9
xor esi, esi
jmp 0x40d2fe
mov esi, 1
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x40d32b
mov esi, dword [esp + 0x134]
push esi
call ebx
push eax
push esi
push 1
push edi
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegSetValueA]
test eax, eax
jne 0x40d39b
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x120
ret
mov ecx, dword [esp + 0x130]
lea eax, [esp + 0xc]
push eax
push ecx
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x40d39b
mov esi, dword [esp + 0x134]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edx, dword [esp + 0xc]
inc eax
push eax
push esi
push 1
push 0
push edi
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esi, eax
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x40d39b
test esi, esi
jne 0x40d39b
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x120
ret
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x120
ret

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

Disassembly:
sub esp, 0x44
push esi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov esi, eax
mov al, byte [esi]
cmp al, 0x22
jne 0x40d3de
mov al, byte [esi + 1]
inc esi
cmp al, 0x22
je 0x40d3d6
test al, al
je 0x40d3d6
mov al, byte [esi + 1]
inc esi
cmp al, 0x22
jne 0x40d3ca
cmp byte [esi], 0x22
jne 0x40d3ea
inc esi
jmp 0x40d3ea
cmp al, 0x20
jle 0x40d3ea
mov al, byte [esi + 1]
inc esi
cmp al, 0x20
jg 0x40d3e2
mov al, byte [esi]
test al, al
je 0x40d3fc
cmp al, 0x20
jg 0x40d3fc
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x40d3f0
lea eax, [esp + 4]
mov dword [esp + 0x30], 0
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [esp + 0x30], 1
je 0x40d421
mov eax, dword [esp + 0x34]
and eax, 0xffff
jmp 0x40d426
mov eax, 0xa
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
push eax
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x40d760
Capabilities:
Get file size
Read file on windows

Disassembly:
sub esp, 0x614
lea eax, [esp + 0x114]
push ebx
push esi
mov esi, dword [esp + 0x620]
push 0xff
mov ebx, ecx
push eax
push 2
push esi
mov dword [ebx + 0xbd8], esi
call dword [sym.imp.USER32.dll_LoadStringA]
push 0
push esi
push 0
push 0
push 0
push 0x80000000
push 0
push 0x80000000
lea ecx, [esp + 0x13c]
push 0xcf0000
push ecx
push str.ShockwaveFlash
push 0
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov esi, eax
test esi, esi
jne 0x40d7cd
pop esi
pop ebx
add esp, 0x614
ret 0xc
push edi
push 1
push esi
call dword [sym.imp.SHELL32.dll_DragAcceptFiles]
push esi
mov ecx, ebx
mov dword [ebx + 0xbf0], esi
call fcn.0040f6b0
mov edx, dword [esp + 0x62c]
test edx, edx
je 0x40d80f
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x40d80f
mov ecx, dword [0x450988]
push edx
call fcn.004106b0
jmp 0x40d95d
lea edx, [esp + 0x1c]
push 0x104
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0
push 0x80
push 3
push 0
push 1
lea eax, [esp + 0x30]
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x40d95d
push ebp
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebp, dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov esi, eax
push 0
push 0
lea ecx, [esi - 8]
push ecx
push edi
call ebp
lea edx, [esp + 0x14]
push 0
push edx
lea eax, [esp + 0x20]
push 8
push eax
push edi
mov dword [esp + 0x28], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [esp + 0x14], 8
jne 0x40d955
cmp dword [esp + 0x18], 0xfa123456
jne 0x40d955
mov edx, dword [esp + 0x1c]
push 0
sub esi, edx
push 0
sub esi, 8
mov dword [ebx + 0xbf4], 1
push esi
push edi
call ebp
push 0
push 0
mov ecx, ebx
call fcn.00429990
mov ebp, eax
test ebp, ebp
je 0x40d955
lea ecx, [esp + 0x20]
push ecx
call fcn.004112d0
push eax
mov dword [ebx + 0xbd4], eax
call fcn.00426b80
mov dword [ebp + 0x158], eax
mov esi, dword [esp + 0x24]
add esp, 8
mov dword [esp + 0x10], 0
cmp esi, 0x400
jbe 0x40d906
mov eax, 0x400
jmp 0x40d90c
test esi, esi
mov eax, esi
je 0x40d945
lea edx, [esp + 0x10]
push 0
push edx
push eax
lea eax, [esp + 0x230]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40d945
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x224]
push eax
push ecx
mov ecx, ebp
sub esi, eax
call fcn.004263f0
mov eax, dword [esp + 0x10]
test eax, eax
ja 0x40d8f7
mov ecx, ebp
call fcn.00426720
push 1
mov ecx, ebp
call fcn.00426130
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebp
mov ecx, dword [0x450988]
call fcn.0040e570
mov edx, dword [esp + 0x628]
mov eax, dword [ebx + 0xbf0]
push edx
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [ebx + 0xbf0]
push ecx
call dword [sym.imp.USER32.dll_UpdateWindow]
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x614
ret 0xc