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

Disassembly:
push 0xffffffffffffffff
push 0x4863c8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
lea eax, [esp + 0xc]
mov ecx, dword [esi + 0x1c]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
push 0
lea ecx, [esp + 0x20]
call fcn.0047ca2a
mov eax, dword [esi + 0xd0]
lea edx, [esp + 0x1c]
push eax
push eax
push edx
mov dword [esp + 0x44], 0
call fcn.00447240
mov eax, dword [esi + 0x4c]
mov ecx, dword [esi + 0x48]
add eax, 0x64
add esp, 0xc
add ecx, 0x64
mov dword [esp + 8], eax
lea eax, [esp + 4]
mov dword [esp + 4], ecx
push eax
lea ecx, [esp + 0x20]
call fcn.0047c958
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
push 1
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
lea eax, [edx + ecx + 1]
xor edx, edx
test eax, eax
setl dl
dec edx
mov ecx, esi
and eax, edx
push eax
push 0
push 0
call fcn.00479142
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 8]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
xor ecx, ecx
sar edx, 4
mov eax, edx
push 1
shr eax, 0x1f
lea eax, [edx + eax + 1]
test eax, eax
setl cl
dec ecx
and eax, ecx
mov ecx, esi
push eax
push 0
push 1
call fcn.00479142
push 1
push 0
push 0
mov ecx, esi
call fcn.004790ea
push 1
push 0
push 1
mov ecx, esi
call fcn.004790ea
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.0047ca9c
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret

Function at 0x447a20
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4863e8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
push 0
lea ecx, [esp + 0x20]
call fcn.0047ca2a
push 0x3e8
lea eax, [esp + 0x20]
push 0x3e8
push eax
mov dword [esp + 0x44], 0
call fcn.00447240
mov ecx, dword [esi + 0x48]
mov eax, dword [esi + 0x4c]
add ecx, 0x64
add esp, 0xc
mov dword [esp + 4], ecx
lea ecx, [esp + 4]
add eax, 0x96
push ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0xc], eax
call fcn.0047c958
mov eax, dword [esi + 0x1c]
lea edx, [esp + 0xc]
push edx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 8]
mov edx, dword [esp + 0xc]
mov ecx, eax
mov eax, dword [esp + 0x14]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 4]
cmp dword [esp + 0x44], 1
jne 0x447ae4
cmp dword [esp + 0x40], 1
jne 0x447ae2
cmp ecx, eax
jge 0x447ae4
mov eax, ecx
cmp eax, 0xc8
jge 0x447af0
mov eax, 0xc8
mov ecx, esi
mov dword [esi + 0xd0], eax
call fcn.004478a0
mov ecx, dword [esi + 0x1c]
push 1
push 0
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.0047ca9c
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x448270
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x486453
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.0047755f
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.0047ccd2
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.0047e367
test eax, eax
je 0x44838c
mov ecx, dword [esp + 0x3c]
call fcn.0047ccff
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 0x448350
push edi
mov ecx, esi
call fcn.0047a2c6
mov ecx, esi
call fcn.004484f0
cmp dword [esp + 0x38], 1
jne 0x448385
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.0047a430
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 0x44adb0
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x44ade3
push esi
call fcn.0044dea0
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x44addc
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 0x44ae69
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x44ae52
mov eax, dword [esi + 8]
test eax, eax
je 0x44ae07
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 0x44ae4e
cmp eax, 2
je 0x44ae52
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x44adfa
cmp eax, 3
je 0x44ae2d
cmp eax, 1
jne 0x44adfa
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 0x44adfa
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x44adfa
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.0044ae90
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x44ae78
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.0044ae90
add esp, 4
pop esi
ret

Function at 0x456f10
Capabilities:
Capture webcam image

Disassembly:
mov eax, dword [esp + 8]
push ebx
push esi
mov esi, ecx
mov eax, dword [eax + 4]
cmp dword [esi + 0xec], 1
jne 0x456fb3
test eax, eax
jbe 0x456fb3
mov ecx, dword [esi + 0xbc]
test ecx, ecx
jle 0x456fb3
mov ecx, dword [esi + 0x1c]
push edi
push 0
push eax
push 0x419
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov edi, eax
mov eax, dword [esi + 0xbc]
inc edi
test eax, eax
jne 0x456f5e
xor esi, esi
jmp 0x456f64
mov esi, dword [esi + 0xb4]
add esi, 4
xor ebx, ebx
test edi, edi
jbe 0x456f8f
push ebp
mov ebp, edi
add esi, 6
push esi
call fcn.0040ab80
add esi, eax
push esi
mov ebx, esi
call fcn.0040ab80
add esp, 8
add esi, eax
dec edi
dec ebp
jne 0x456f70
pop ebp
test edi, edi
pop edi
jne 0x456fb3
test ebx, ebx
je 0x456fb3
mov edx, dword [esp + 0x10]
push 0x4e
add edx, 0x10
push ebx
push edx
call fcn.00466620
add esp, 0xc
mov eax, 1
pop esi
pop ebx
ret 0xc
pop esi
xor eax, eax
pop ebx
ret 0xc
Function at 0x4570f5
Capabilities:
Capture webcam image

Disassembly:
sub esp, 0x44
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x45720d
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x45720d
mov eax, dword [esi + 0x3c]
push eax
call fcn.004779b1
mov esi, eax
test esi, esi
je 0x45720d
mov ebx, dword [esp + 0x58]
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push ebx
push 0x419
push ecx
call ebp
mov edi, eax
test edi, edi
jl 0x45720d
mov ecx, esi
call fcn.00457060
cmp edi, eax
jge 0x45720d
mov eax, dword [esi + 0xc4]
mov edx, dword [esi + 0xc0]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x5c]
xor ecx, ecx
mov dword [esp + 0x28], edx
cmp eax, ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x38], edi
jne 0x457193
mov dword [esp + 0x34], 1
jmp 0x4571ee
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x433
push edx
call ebp
test eax, eax
je 0x45720d
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x10], ecx
mov dword [eax], 0
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x10]
add edx, 2
push eax
push ecx
mov dword [esp + 0x1c], edx
call dword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x34], 3
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], eax
xor ecx, ecx
push ecx
lea ecx, [esp + 0x2c]
push ecx
push 0x7d8
call fcn.004565a0
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x44
ret 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x44
ret 0xc

Function at 0x478355
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x47838d
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.0047640c
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004763e4
jmp 0x478399
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x479a4a
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 0x479a8c
call fcn.0047f86f
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x479a8c
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x479a83
xor eax, eax
jmp 0x479a94
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00479a9a
pop edi
pop esi
pop ebx
ret 4
Function at 0x47fd9f
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 0x47fdcd
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x47fdeb
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0047fd05
jmp 0x47fdeb
mov eax, dword [esi + 0x14]
test eax, eax
je 0x47fdeb
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0047fd05
test edi, edi
mov eax, edi
jne 0x47fdd5
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8

Function at 0x1132f122
Capabilities:
Parse pe header

Disassembly:
call fcn.1132e03b
pop dword [esp]
lea esp, [esp + 4]
popal
jmp 0x1132f151
lea esi, [esi + 0xc]
mov eax, dword [esi]
pop esi
mov eax, dword [eax + 0x1c]
jmp 0x1132f194
lea ebx, [ebx + 8]
mov eax, dword [ebx]
pop ebx
jmp 0x1132f19b
mov eax, dword [eax]
push ebx
mov ebx, eax
jmp 0x1132f15c
push eax
jmp 0x1132e036
Function at 0x405ab2
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push 0
push 0
push 0
push 0x80000004
push 0
push str.Stop
push 0x10030
push 0
push dword [0x41283a]
push 3
mov ebx, 0x958
call fcn.0040a610
add esp, 0x28
mov dword [ebp - 4], esp
push 0
push dword [0x41282e]
call dword [sym.imp.USER32.dll_ShowWindow]
nop
nop
nop
nop
cmp dword [ebp - 4], esp
je 0x405b16
push 6
call fcn.004094cd
add esp, 4
mov dword [ebp - 4], esp
push 5
push dword [0x41282a]
call dword [sym.imp.USER32.dll_ShowWindow]
nop
nop
nop
nop
cmp dword [ebp - 4], esp
je 0x405b40
push 6
call fcn.004094cd
add esp, 4
push 0xa0000004
push 0
push dword [ebp + 8]
push 0x80000004
push 0
push 0x412123
push 0x10030
push 0
push dword [0x412836]
push 3
mov ebx, 0x948
call fcn.0040a480
add esp, 0x28
push 0x80000004
push 0
push str.about:blank
push 0x80000004
push 0
push str.Navigate
push 0x10030
push 0
push dword [0x41283a]
push 3
mov ebx, 0x958
call fcn.0040a610
add esp, 0x28
push 0
push 0
push 0
push 0x80000004
push 0
push str.controls.play
push 0x10030
push 0
push dword [0x412836]
push 3
mov ebx, 0x94c
call fcn.0040a540
add esp, 0x28
push dword [0x41283e]
push str._by
mov ebx, dword [ebp + 0xc]
push dword [ebx]
push 0x412159
mov ecx, 4
call fcn.00401131
add esp, 0x10
mov dword [ebp - 4], eax
mov dword [ebp - 8], esp
push dword [ebp - 4]
push dword [0x412832]
call dword [sym.imp.USER32.dll_SetWindowTextA]
nop
nop
nop
nop
cmp dword [ebp - 8], esp
je 0x405c2a
push 6
call fcn.004094cd
add esp, 4
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x405c3a
push ebx
call fcn.004094bb
add esp, 4
mov esp, ebp
pop ebp
ret 8
Function at 0x40789c
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 4], esp
push 1
push 0x40e663
mov ebx, dword [ebp + 8]
push dword [ebx]
push str.explorer.exe
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
nop
nop
nop
nop
cmp dword [ebp - 4], esp
je 0x4078e2
push 6
call fcn.004094cd
add esp, 4
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 2
jne 0x4078fe
mov eax, 0
jmp 0x407908
mov eax, 1
jmp 0x407908
mov esp, ebp
pop ebp
ret 4

Function at 0x40790e
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov dword [ebp - 4], 0
push 0x80000301
push 0
push 0xff
push 1
mov ebx, 0x184
call fcn.0040a8d0
add esp, 0x10
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x407953
push ebx
call fcn.004094bb
add esp, 4
pop eax
mov dword [ebp - 4], eax
mov dword [ebp - 8], esp
push dword [ebp - 4]
push 0xff
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
nop
nop
nop
nop
cmp dword [ebp - 8], esp
je 0x40797e
push 6
call fcn.004094cd
add esp, 4
push 0x80000004
push 0
mov eax, dword [ebp - 4]
test eax, eax
jne 0x407991
mov eax, 0x40e663
push eax
push 1
mov ebx, 0x174
call fcn.0040baa0
add esp, 0x10
mov dword [ebp - 8], eax
push 0x80000004
push 0
mov eax, dword [ebp - 4]
test eax, eax
jne 0x4079ba
mov eax, 0x40e663
push eax
push 1
mov ebx, 0x174
call fcn.0040baa0
add esp, 0x10
mov dword [ebp - 0xc], eax
push 0x80000004
push 0
mov eax, dword [ebp - 0xc]
test eax, eax
jne 0x4079e3
mov eax, 0x40e663
push eax
push 1
mov ebx, 0x130
call fcn.0040a910
add esp, 0x10
mov dword [ebp - 0x10], eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x407a09
push ebx
call fcn.004094bb
add esp, 4
fild dword [ebp - 0x10]
fstp qword [ebp - 0x18]
fld qword [ebp - 0x18]
fsub qword [0x411f46]
fstp qword [ebp - 0x20]
fld qword [ebp - 0x20]
call fcn.0040118d
push 0x80000301
push 0
push eax
push 0x80000004
push 0
mov eax, dword [ebp - 8]
test eax, eax
jne 0x407a3e
mov eax, 0x40e663
push eax
push 2
mov ebx, 0x134
call fcn.0040aa50
add esp, 0x1c
mov dword [ebp - 0x24], eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x407a64
push ebx
call fcn.004094bb
add esp, 4
mov eax, dword [ebp - 0x24]
jmp 0x407a6c
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x407a7d
push ebx
call fcn.004094bb
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret
Function at 0x409960
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
mov eax, dword [esp + 0x10]
push edi
push 0
push 0x20
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
xor eax, eax
cmp edi, 0xffffffff
je 0x4099f2
mov eax, dword [esp + 0x10]
push ebx
mov ebx, 1
push ebp
cmp eax, ebx
push esi
mov dword [esp + 0x10], ebx
jle 0x4099e4
mov ebp, dword [sym.imp.KERNEL32.dll_WriteFile]
lea esi, [esp + 0x2c]
mov eax, dword [esi]
lea edx, [esp + 0x14]
push 0
push edx
lea ecx, [eax + 8]
mov eax, dword [eax + 4]
push eax
push ecx
push edi
call ebp
test eax, eax
je 0x4099dc
mov eax, dword [esp + 0x1c]
inc ebx
add esi, 0xc
cmp ebx, eax
jl 0x4099a5
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret
mov dword [esp + 0x10], 0
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret
Function at 0x40aab0
Capabilities:
Accept command line arguments

Disassembly:
sub esp, 0x14
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov edi, eax
mov al, 0x20
mov cl, byte [edi]
inc edi
cmp cl, 0x22
jne 0x40aaca
mov al, cl
mov dl, byte [edi]
inc edi
cmp dl, al
je 0x40aad8
mov cl, byte [edi]
inc edi
cmp cl, al
jne 0x40aad1
cmp al, 0x20
je 0x40aae2
cmp byte [edi], 0x20
jne 0x40aae2
inc edi
lea ecx, [esp + 0xc]
call fcn.0040c230
mov dword [esp + 0xc], 0x40d16c
mov al, byte [edi]
test al, al
je 0x40aba6
mov esi, dword [esp + 0x28]
cmp al, 0x22
jne 0x40ab4e
mov al, byte [edi + 1]
inc edi
test al, al
mov esi, edi
je 0x40ab29
mov al, byte [esi]
cmp al, 0x22
je 0x40ab29
test al, al
jge 0x40ab21
mov al, byte [esi + 1]
test al, al
je 0x40ab29
inc esi
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x40ab0f
mov edx, esi
sub edx, edi
push edx
push edi
call fcn.0040c130
add esp, 8
lea ecx, [esp + 0xc]
push eax
call fcn.0040c4c0
mov al, byte [esi]
mov edi, esi
test al, al
je 0x40ab9c
lea edi, [esi + 1]
jmp 0x40ab9c
cmp al, 0x20
jg 0x40ab5a
cmp byte [esi], 0
jl 0x40ab5a
inc edi
jmp 0x40ab9c
test al, al
mov esi, edi
je 0x40ab82
mov al, byte [esi]
cmp al, 0x22
je 0x40ab82
cmp al, 0x20
jg 0x40ab6e
test al, al
jge 0x40ab82
test al, al
jge 0x40ab7a
mov al, byte [esi + 1]
test al, al
je 0x40ab82
inc esi
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x40ab60
mov eax, esi
sub eax, edi
push eax
push edi
call fcn.0040c130
add esp, 8
lea ecx, [esp + 0xc]
push eax
call fcn.0040c4c0
mov edi, esi
mov al, byte [edi]
test al, al
jne 0x40ab01
mov ebx, dword [esp + 0x28]
mov eax, dword [ebx]
test eax, eax
je 0x40abb9
push eax
call fcn.0040c660
add esp, 4
mov edi, dword [esp + 0x1c]
shr edi, 2
shl edi, 2
lea ecx, [edi + 8]
push ecx
call fcn.004095e0
mov dword [eax], 1
mov edx, dword [esp + 0x20]
shr edx, 2
mov dword [eax + 4], edx
mov esi, dword [esp + 0x20]
mov ecx, dword [esp + 0x18]
add esp, 4
neg esi
sbb esi, esi
and esi, ecx
mov ecx, edi
mov edx, ecx
lea edi, [eax + 8]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0xc]
mov dword [ebx], eax
mov dword [esp + 0xc], 0x40d168
call fcn.0040c430
pop edi
pop esi
pop ebx
add esp, 0x14
ret

Function at 0x40adc0
Capabilities:
Get file size

Disassembly:
mov eax, dword [esp + 8]
push esi
push edi
push 0
push 0x20
push 3
push 0
push 3
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40ade8
pop edi
or eax, eax
pop esi
ret
lea ecx, [esp + 0x10]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x10], 0xffffffff
jne 0x40ae0a
pop edi
or eax, 0xffffffff
pop esi
ret
mov eax, edi
pop edi
pop esi
ret

Function at 0x40b1b0
Capabilities:
Resolve dns

Disassembly:
mov eax, dword [esp + 4]
push eax
call sub.WS2_32.dll_gethostbyname
test eax, eax
je 0x40b1c6
mov ecx, dword [eax + 0xc]
mov edx, dword [ecx]
mov eax, dword [edx]
ret
or eax, 0xffffffff
ret
Function at 0x40b1d0
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x190
lea eax, [esp]
push esi
push eax
push 0x202
xor esi, esi
call sub.WS2_32.dll_WSAStartup
test eax, eax
jne 0x40b228
mov ecx, dword [esp + 0x19c]
push ecx
call fcn.0040b1b0
add esp, 4
cmp eax, 0xffffffff
je 0x40b223
push edi
push eax
call sub.WS2_32.dll_inet_ntoa
mov edx, eax
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
call fcn.0040c130
add esp, 8
mov esi, eax
pop edi
call sub.WS2_32.dll_WSACleanup
mov eax, esi
pop esi
add esp, 0x190
ret
Function at 0x409670
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x47c32b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x180
push ebx
push ebp
mov ebp, ecx
lea ecx, [esp + 8]
lea eax, [ebp + 0x40]
push eax
call fcn.00470e96
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x4096f2
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.0046edad
mov eax, dword [eax]
push 0x4cd1c0
push eax
call fcn.00461054
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.00471121
test bl, bl
je 0x4096f2
push 0x4cd1c0
lea ecx, [esp + 0xc]
call fcn.004714b1
push 0x4d0d54
lea ecx, [esp + 0xc]
call fcn.004714b1
mov ecx, dword [esp + 8]
lea eax, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x40972e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.00471121
jmp 0x4097f9
push esi
mov esi, dword [esp + 0x19c]
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, 0x23
test byte [esp + 0x50], 0x10
je 0x4097b2
lea edx, [esp + 0x7c]
push 0x4d0d50
push edx
call fcn.00461054
add esp, 8
test eax, eax
je 0x4097b2
lea eax, [esp + 0x7c]
push 0x4d0d4c
push eax
call fcn.00461054
add esp, 8
test eax, eax
je 0x4097b2
mov eax, dword [ebp + 0x1c]
lea edx, [esp + 0x1c]
push edx
push 0
lea ecx, [esp + 0x84]
push 0x1100
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 0xffff0003
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 1
mov dword [esp + 0x44], ecx
mov dword [esp + 0x34], ebx
call edi
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x50]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x409742
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 0x1c]
push esi
push 2
push 0x1102
push ecx
call edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x198], 0xffffffff
call fcn.00471121
pop edi
pop esi
mov ecx, dword [esp + 0x188]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18c
ret 4

Function at 0x40aa50
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x40aab2
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc