joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4010d0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4010e9
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x401124
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x401120
lea ebx, [ebx]
cmp esi, eax
jae 0x401124
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x401110
cmp esi, eax
jb 0x40112a
pop esi
pop edi
xor eax, eax
pop ebx
ret
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x401220
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
movzx ecx, word [esp + 4]
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push edi
push eax
push ecx
push 0
call esi
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
push ebx
push 0
call esi
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x401294
push ebp
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
push ebx
push 0
mov ebp, eax
call esi
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
push esi
call fcn.0040c7bc
push esi
mov ebx, eax
push ebp
push ebx
call fcn.0040cc10
add esp, 0x10
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov edx, dword [esp + 0x1c]
pop ebp
pop edi
mov dword [edx], esi
pop esi
mov eax, ebx
pop ebx
ret 0xc
pop edi
pop esi
xor eax, eax
pop ebx
ret 0xc
Function at 0x403260
Capabilities:
Get file attributes

Disassembly:
sub esp, 0x260
mov eax, dword [0x422588]
xor eax, esp
mov dword [esp + 0x25c], eax
push ebx
push ebp
push esi
push edi
push 0x24c
lea eax, [esp + 0x24]
push 0
push eax
mov ebp, ecx
mov dword [esp + 0x28], 0
call fcn.0040d450
push 0x41c4e0
lea ecx, [esp + 0x284]
push ecx
lea edx, [esp + 0x2c]
push edx
call fcn.00402f40
mov eax, dword [eax]
add esp, 0x18
lea ecx, [esp + 0x1c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, eax
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4032dd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp ebx, 0xffffffff
je 0x40342b
jmp 0x4032f0
mov ecx, 0x41c4dc
lea eax, [esp + 0x48]
lea esp, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x403326
test dx, dx
je 0x403322
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x403326
add eax, 4
add ecx, 4
test dx, dx
jne 0x403300
xor eax, eax
jmp 0x40332b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x40340f
mov ecx, 0x41c4d4
lea eax, [esp + 0x48]
lea esp, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x403366
test dx, dx
je 0x403362
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x403366
add eax, 4
add ecx, 4
test dx, dx
jne 0x403340
xor eax, eax
jmp 0x40336b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x40340f
lea ecx, [esp + 0x48]
push ecx
push 0x41c4d0
lea edx, [esp + 0x27c]
push edx
lea eax, [esp + 0x1c]
push eax
call fcn.00402f40
add esp, 0xc
push eax
lea ecx, [esp + 0x1c]
push ecx
call fcn.00402f40
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
add esp, 0xc
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4033c0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 0x10
je 0x4033ec
push ecx
lea ecx, [esi - 0x10]
mov edi, esp
push ecx
call fcn.004018b0
add eax, 0x10
add esp, 4
mov ecx, ebp
mov dword [edi], eax
call fcn.00403260
jmp 0x4033f3
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [esi - 0x10]
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40340f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x1c]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
cmp eax, 1
je 0x4032f0
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov esi, dword [esp + 0x274]
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov edi, eax
lea eax, [esi - 0x10]
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x403457
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x26c]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0040d432
add esp, 0x260
ret 4
Function at 0x403480
Capabilities:
Persist via run registry key
Set registry value

Disassembly:
sub esp, 8
mov eax, dword [0x423928]
mov edx, dword [eax + 0xc]
push ebx
push esi
push edi
mov ecx, 0x423928
call edx
mov ebx, dword [esp + 0x18]
add eax, 0x10
push ebx
mov dword [esp + 0x10], eax
lea eax, [esp + 0x10]
push 0x41c564
push eax
call fcn.00403140
add esp, 0xc
lea ecx, [esp + 0x10]
push ecx
push 0x41c508
push reloc.OLEAUT32.dll_SysReAllocString
xor esi, esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
mov edi, dword [esp + 0xc]
jne 0x403519
cmp dword [edi - 4], 1
mov esi, dword [edi - 0xc]
jle 0x4034eb
mov edx, esi
push edx
lea ecx, [esp + 0x10]
call fcn.00401a00
mov edi, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
lea eax, [esi + esi + 1]
push eax
push edi
push 1
push 0
push 0x41c4e8
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edx, dword [esp + 0x10]
mov esi, eax
neg esi
sbb esi, esi
push edx
add esi, 1
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [edi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403535
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebx - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403551
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
pop edi
mov eax, esi
pop esi
pop ebx
add esp, 8
ret 4
Function at 0x406bc0
Capabilities:
Create thread
Hide graphical window

Disassembly:
push ecx
push esi
push edi
mov edi, ecx
mov eax, dword [edi + 0x10c]
sub eax, 0x10
push eax
call fcn.004018b0
mov esi, eax
mov eax, dword [esi + 4]
add esi, 0x10
add esp, 4
test eax, eax
mov dword [esp + 8], esi
jne 0x406af0
push eax
mov eax, dword [edi + 4]
push 0x41cc70
push 0x41cc48
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
lea eax, [esi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406b74
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
pop edi
pop esi
pop ecx
ret
lea ecx, [eax - 1]
test ecx, ecx
jl 0x406bad
cmp ecx, eax
jg 0x406bad
cmp word [esi + ecx*2], 0x5c
je 0x406b19
push 0x5c
lea ecx, [esp + 0xc]
call fcn.004028f0
mov esi, dword [esp + 8]
cmp dword [esi - 0xc], 0
jl 0x406b98
push 0x41cc74
push esi
call fcn.0040d17c
add esp, 8
test eax, eax
je 0x406b98
sub eax, esi
sar eax, 1
cmp eax, 0xffffffff
je 0x406b98
test eax, eax
je 0x406b98
add eax, 2
push eax
push 0x41c4d0
lea ecx, [esp + 0x10]
call fcn.004016f0
cmp eax, 0xffffffff
push 0
jne 0x406b78
mov ecx, dword [edi + 4]
push 0x41cc70
push 0x41cc48
push ecx
call dword [sym.imp.USER32.dll_MessageBoxW]
lea ecx, [esp + 8]
call fcn.00401b20
pop edi
pop esi
pop ecx
ret
push 0
push 0
push 0x406960
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
lea ecx, [esp + 8]
call fcn.00401b20
pop edi
pop esi
pop ecx
ret
mov edx, dword [edi + 4]
push 0
push 0x41cc70
push 0x41cc48
push edx
jmp 0x406ac6
push 0x80070057
call fcn.00401000
int3
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_OpenEventW]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
push edi
mov esi, ecx
push 0x41c3bc
xor edi, edi
push edi
push 0x1f0003
call ebx
test eax, eax
je 0x406bed
push eax
mov edi, 1
call ebp
push 0x41c378
push 0
push 0x1f0003
call ebx
test eax, eax
je 0x406c04
push eax
call ebp
jmp 0x406c09
cmp edi, 1
jne 0x406c29
mov eax, dword [esi + 4]
push 5
push 0x41ccf0
push 0x41ccb8
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp eax, 2
jne 0x406bd2
pop edi
pop esi
pop ebp
pop ebx
ret
mov ecx, dword [esi + 0x68]
push ecx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x406c54
lea edi, [esi + 0x64]
mov ecx, edi
call fcn.0040adb0
mov ecx, edi
mov dword [esi + 0x120], eax
call fcn.0040adf0
mov dword [esi + 0x124], eax
mov edx, dword [esi + 0x44]
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
push 0
push edx
mov dword [esi + 0x128], 3
call edi
mov eax, dword [esi + 0x68]
push 0
push eax
call edi
mov ecx, dword [esi + 0xa8]
push 5
push ecx
call edi
mov edx, dword [esi + 0xcc]
push 0
push edx
call edi
mov eax, dword [esi + 4]
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
push 0x3ec
push eax
call edi
mov ebx, dword [sym.imp.USER32.dll_EnableWindow]
push 0
push eax
call ebx
mov ecx, dword [esi + 4]
push 0x3ea
push ecx
call edi
push 0
push eax
call ebx
mov edx, dword [esi + 4]
push 2
push edx
call edi
push 0
push eax
call ebx
pop edi
mov ecx, esi
pop esi
pop ebp
pop ebx
jmp 0x406a90
Function at 0x407780
Capabilities:
Set registry value

Disassembly:
mov edx, dword [esp + 4]
push 4
lea eax, [esp + 0xc]
push eax
mov eax, dword [ecx]
push 4
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
ret 8

Function at 0x4077a0
Capabilities:
Set registry value

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
push edi
mov edi, ecx
jne 0x4077b6
push 0x80004005
call fcn.00401000
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
lea eax, [eax + eax + 2]
push eax
mov eax, dword [edi]
push esi
push ecx
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
ret 0xc

Function at 0x4077e0
Capabilities:
Set registry value

Disassembly:
push ecx
push ebp
mov ebp, dword [esp + 0x10]
test ebp, ebp
mov dword [esp + 4], ecx
jne 0x4077f8
push 0x80004005
call fcn.00401000
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
push esi
push edi
xor edi, edi
mov esi, ebp
push esi
call ebx
add eax, 1
lea ecx, [eax + eax]
add esi, ecx
add edi, ecx
cmp eax, 1
jne 0x407805
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx]
push edi
push ebp
push 7
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
pop ebp
pop ecx
ret 8
Function at 0x407e40
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x21c
mov eax, dword [0x422588]
xor eax, esp
mov dword [esp + 0x218], eax
push ebp
push esi
push edi
mov edi, dword [esp + 0x22c]
mov ebp, ecx
mov eax, dword [ebp]
lea ecx, [esp + 0x14]
push ecx
push 0x2001f
push 0
push edi
push eax
mov dword [esp + 0x2c], edi
mov dword [esp + 0x20], 0
mov dword [esp + 0x28], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ecx, dword [esp + 0xc]
mov esi, eax
test esi, esi
jne 0x407eae
test ecx, ecx
je 0x407ea0
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
mov ecx, dword [esp + 0x14]
mov esi, eax
mov dword [esp + 0xc], ecx
je 0x407ebc
test ecx, ecx
je 0x407f61
push ecx
jmp 0x407f5b
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea edx, [esp + 0x1c]
push edx
push 0
push 0
push 0
lea eax, [esp + 0x20]
push eax
lea edx, [esp + 0x38]
push edx
push 0
push ecx
mov dword [esp + 0x30], 0x100
call esi
test eax, eax
jne 0x407f2e
jmp 0x407ef0
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x10]
call fcn.00407e40
mov edi, eax
test edi, edi
jne 0x407f7d
lea ecx, [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x10]
push eax
push eax
push eax
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x38]
push eax
push edi
push ecx
mov dword [esp + 0x30], 0x100
call esi
test eax, eax
je 0x407ef0
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0xc]
test eax, eax
je 0x407f45
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0xc], 0
mov edx, dword [ebp]
push edi
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov esi, eax
mov eax, dword [esp + 0xc]
test eax, eax
je 0x407f61
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [esp + 0x224]
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.0040d432
add esp, 0x21c
ret 4
mov eax, dword [esp + 0xc]
test eax, eax
je 0x407f8c
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
jmp 0x407f63
Function at 0x409b30
Capabilities:
Extract resource via kernel32 functions

Disassembly:
sub esp, 0x414
mov eax, dword [0x422588]
xor eax, esp
mov dword [esp + 0x410], eax
push ebx
mov ebx, dword [esp + 0x424]
push ebp
mov ebp, dword [esp + 0x424]
push esi
push edi
mov edi, dword [esp + 0x428]
mov esi, ecx
call dword [0x4224fc]
xor eax, eax
push 2
push eax
push edi
mov dword [esp + 0x1c], eax
mov dword [esp + 0x24], esi
mov dword [esp + 0x20], eax
mov dword [esp + 0x28], eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x409b93
call fcn.00407600
mov esi, eax
jmp 0x409c58
push ebx
push ebp
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x409bac
call fcn.00407600
jmp 0x409c4f
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebp, eax
test ebp, ebp
jne 0x409bc4
call fcn.00407600
jmp 0x409c4f
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
lea eax, [esi + 1]
cmp eax, esi
jae 0x409bf8
lea eax, [esp + 0x20]
cmp dword [esp + 0x1c], eax
je 0x409be8
lea ecx, [esp + 0x1c]
call fcn.00407de0
lea ecx, [esp + 0x10]
call fcn.00407d70
mov eax, 0x8007000e
jmp 0x409c72
push eax
lea ecx, [esp + 0x20]
call fcn.00408410
mov ebx, dword [esp + 0x1c]
test ebx, ebx
jne 0x409c11
mov esi, 0x8007000e
jmp 0x409c51
call dword [0x4224fc]
push esi
push ebx
push esi
push ebp
push 0
push eax
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x409c2f
call fcn.00407600
jmp 0x409c4f
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x434]
mov word [ecx + eax*2], 0
mov eax, dword [esp + 0x1c]
push edx
push eax
lea ecx, [esp + 0x1c]
call fcn.004097a0
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [esp + 0x20]
cmp dword [esp + 0x1c], ecx
je 0x409c70
lea ecx, [esp + 0x1c]
call fcn.00407de0
jmp 0x409c70
mov eax, esi
mov ecx, dword [esp + 0x420]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0040d432
add esp, 0x414
ret 0x10
Function at 0x40bcd0
Capabilities:
Get file size
Read file on windows

Disassembly:
sub esp, 0x10
mov eax, dword [esp + 0x14]
push ebx
push ebp
push esi
push edi
xor esi, esi
push esi
push 0x80
push 3
push esi
push 3
push SysReAllocStringLen
push eax
mov dword [esp + 0x34], ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
mov dword [esp + 0x14], ebx
je 0x40bdd7
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edx, dword [0x423928]
mov esi, eax
mov eax, dword [edx + 0xc]
mov ecx, 0x423928
call eax
lea edi, [esi + 1]
push edi
mov dword [esp + 0x20], eax
call fcn.0040c7bc
push edi
mov ebp, eax
push 0
push ebp
call fcn.0040d450
add esp, 0x10
push 0
lea ecx, [esp + 0x14]
push ecx
push esi
push ebp
push ebx
mov dword [esp + 0x24], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
xor ecx, ecx
mov eax, edi
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0040c7bc
mov ebx, eax
lea eax, [esi + esi + 2]
push eax
push 0
push ebx
call fcn.0040d450
add esp, 0x10
push edi
push ebx
push esi
push ebp
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
mov ecx, esp
push ebx
call fcn.00404380
mov ecx, dword [esp + 0x1c]
call fcn.0040ba20
push ebx
mov esi, eax
call fcn.0040db87
push ebp
call fcn.0040db87
mov eax, dword [esp + 0x24]
add esp, 8
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40bdd7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40bdf7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 4

Function at 0x40c0ac
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x422588]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.0040bfeb
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.0040d450
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x40c0fb
cmp dword [ebp - 0x1c], 5
jb 0x40c113
jmp 0x40c10f
cmp dword [ebp - 0x10], 1
jne 0x40c113
cmp dword [ebp - 0x1c], 4
ja 0x40c10f
jne 0x40c113
cmp dword [ebp - 0x18], 0
jbe 0x40c113
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x41d29c
call fcn.00407030
test eax, eax
jge 0x40c134
mov byte [0x423828], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0040d432
add ebp, 0x78
leave
ret
Function at 0x40c4d1
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x423944], 0
push esi
jne 0x40c444
call fcn.0040c36f
test eax, eax
je 0x40c487
mov eax, dword [0x423944]
cmp eax, 1
jne 0x40c465
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x40c487
pop esi
ret
push eax
call dword [0x42394c]
test eax, eax
jne 0x40c4cf
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x40c48b
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x423944]
call dword [0x42394c]
mov edi, eax
test edi, edi
je 0x40c4b2
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, edi
jmp 0x40c4ce
lea edi, [esi + 0xff0]
push esi
push dword [0x423944]
call dword [0x423948]
add esi, 0x10
cmp esi, edi
jb 0x40c4b8
mov eax, esi
pop edi
pop esi
ret
jmp 0x40c431

Function at 0x40d432
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x422588]
jne 0x40d43c
repz ret
jmp fcn.0041072b
Function at 0x418e5c
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.0040ed51
xor ebx, ebx
cmp dword [0x424484], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x418f31
push 0x41ec80
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x418e9c
xor eax, eax
jmp 0x418ff5
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x41ec74
push edi
call esi
cmp eax, ebx
je 0x418e95
push eax
call fcn.0040ecee
mov dword [esp], 0x41ec64
push edi
mov dword [0x424484], eax
call esi
push eax
call fcn.0040ecee
mov dword [esp], 0x41ec50
push edi
mov dword [0x424488], eax
call esi
push eax
call fcn.0040ecee
mov dword [0x42448c], eax
lea eax, [ebp - 8]
push eax
call fcn.00414b8b
test eax, eax
pop ecx
pop ecx
je 0x418eff
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0040cf7f
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x418f31
push 0x41ec34
push edi
call esi
push eax
call fcn.0040ecee
cmp eax, ebx
pop ecx
mov dword [0x424494], eax
je 0x418f31
push 0x41ec1c
push edi
call esi
push eax
call fcn.0040ecee
pop ecx
mov dword [0x424490], eax
mov eax, dword [0x424490]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x418faa
cmp dword [0x424494], esi
je 0x418faa
push eax
call fcn.0040ed5a
pop ecx
call eax
cmp eax, ebx
je 0x418f77
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x424494]
call fcn.0040ed5a
pop ecx
call eax
test eax, eax
je 0x418f77
test byte [ebp - 0x18], 1
jne 0x418faa
lea eax, [ebp - 0xc]
push eax
call fcn.00414bc2
test eax, eax
pop ecx
je 0x418f92
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0040cf7f
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x418fa1
or dword [ebp + 0x10], 0x200000
jmp 0x418fdb
or dword [ebp + 0x10], 0x40000
jmp 0x418fdb
mov eax, dword [0x424488]
cmp eax, esi
je 0x418fdb
push eax
call fcn.0040ed5a
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x418fdb
mov eax, dword [0x42448c]
cmp eax, esi
je 0x418fdb
push dword [ebp - 4]
push eax
call fcn.0040ed5a
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x424484]
call fcn.0040ed5a
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40a620
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x47694b
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.0046909b
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x40a6a2
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.0046687d
mov eax, dword [eax]
push 0x4921e0
push eax
call fcn.00458c14
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.00469326
test bl, bl
je 0x40a6a2
push 0x4921e0
lea ecx, [esp + 0xc]
call fcn.00469702
push 0x495d5c
lea ecx, [esp + 0xc]
call fcn.00469702
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 0x40a6de
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.00469326
jmp 0x40a7a9
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 0x40a762
lea edx, [esp + 0x7c]
push 0x495d58
push edx
call fcn.00458c14
add esp, 8
test eax, eax
je 0x40a762
lea eax, [esp + 0x7c]
push 0x495d54
push eax
call fcn.00458c14
add esp, 8
test eax, eax
je 0x40a762
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 0x40a6f2
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.00469326
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 0x40afa0
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 0x40b002
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