joyce8/EMBER2024-capa huggingface dataset:
Function at 0x47079c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push edi
xor edi, edi
mov dword [ecx + 0x9c], edi
cmp dword [str.SoftwareMicrosoftWindowsCurrentVersionPoliciesExplorer], edi
mov dword [ebp - 0x10], ecx
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
mov dword [ebp - 0x14], 4
mov dword [ebp - 0xc], edi
mov ebx, 0x49afe0
je 0x470858
push esi
lea eax, [ebp - 4]
push eax
push 1
push edi
push dword [ebx]
push reloc.WS2_32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x470840
mov esi, dword [ebx + 4]
jmp 0x47083a
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 8]
push ecx
lea ecx, [ebp - 0xc]
push ecx
push edi
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x47082a
cmp dword [ebp - 0xc], 4
jne 0x47082a
cmp dword [ebp - 8], edi
mov eax, dword [ebp - 0x10]
mov ecx, dword [esi + 4]
je 0x470822
or dword [eax + 0x9c], ecx
jmp 0x47082a
not ecx
and dword [eax + 0x9c], ecx
mov dword [ebp - 8], edi
mov dword [ebp - 0x14], 4
mov dword [ebp - 0xc], edi
add esi, 8
mov eax, dword [esi]
cmp eax, edi
jne 0x4707ee
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add ebx, 8
cmp dword [ebx], edi
mov dword [ebp - 4], edi
jne 0x4707d1
pop esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
inc eax
pop ebx
leave
ret

Function at 0x470c45
Capabilities:
Query or enumerate registry key

Disassembly:
mov eax, 0x47b514
call fcn.00452f58
sub esp, 0x11c
mov eax, dword [0x49c220]
push ebx
push esi
push edi
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov dword [ebp - 0x10], esp
lea ecx, [ebp - 0x124]
push ecx
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
mov esi, eax
test esi, esi
jne 0x470d3e
push 0x104
lea eax, [ebp - 0x11c]
push eax
push 0
push dword [ebp - 0x124]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov esi, eax
test esi, esi
jne 0x470d12
and dword [ebp - 4], eax
lea eax, [ebp - 0x11c]
push eax
lea ecx, [ebp - 0x120]
call fcn.004025d0
lea eax, [ebp - 0x120]
push eax
push dword [ebp - 0x124]
mov byte [ebp - 4], 1
call fcn.00470c45
mov ecx, dword [ebp - 0x120]
mov esi, eax
test esi, esi
setne bl
add ecx, 0xfffffff0
mov byte [ebp - 4], 0
call fcn.00401670
test bl, bl
jne 0x470d12
or dword [ebp - 4], 0xffffffff
jmp 0x470c83
cmp esi, 0x103
je 0x470d22
cmp esi, 0x3f2
jne 0x470d32
mov eax, dword [ebp + 0xc]
push dword [eax]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov esi, eax
push dword [ebp - 0x124]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x14]
mov eax, esi
call fcn.0045086e
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x471f5d
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
push edi
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [esp + 0x10]
test edi, edi
jle 0x471f92
cmp edi, dword [esi + 0xc]
jge 0x471f92
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x471f92
cmp edi, dword [eax + 8]
jge 0x471f92
mov eax, dword [eax + 0xc]
mov edi, dword [eax + edi*4]
jmp 0x471f94
xor edi, edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, edi
pop edi
pop esi
pop ebx
ret 4

Function at 0x472098
Capabilities:
Allocate thread local storage

Disassembly:
xor eax, eax
push esi
mov esi, ecx
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x18], 4
mov dword [esi + 4], eax
mov dword [esi + 8], 1
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
mov dword [esi], eax
jne 0x4720cc
jmp fcn.0045e6d5
lea eax, [esi + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov eax, esi
pop esi
ret

Function at 0x47213d
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
lea esi, [edi + 0x1c]
push esi
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebp + 8]
xor ebx, ebx
cmp eax, ebx
jle 0x472236
cmp eax, dword [edi + 0xc]
jge 0x472236
push dword [edi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
cmp esi, ebx
je 0x47218e
mov ecx, dword [ebp + 8]
cmp ecx, dword [esi + 8]
jl 0x47221f
cmp dword [ebp + 0xc], ebx
je 0x47221f
jmp 0x4721b8
push 0x10
call fcn.00471e29
cmp eax, ebx
je 0x4721a4
mov ecx, eax
call fcn.0047208f
mov esi, eax
jmp 0x4721a6
xor esi, esi
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov ecx, dword [edi + 0x14]
mov eax, dword [edi + 0x18]
mov dword [esi + eax], ecx
mov dword [edi + 0x14], esi
mov eax, dword [esi + 0xc]
cmp eax, ebx
jne 0x4721cf
mov eax, dword [edi + 0xc]
shl eax, 2
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
jmp 0x4721df
mov ecx, dword [edi + 0xc]
push 2
shl ecx, 2
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_LocalReAlloc]
cmp eax, ebx
jne 0x4721f1
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call fcn.0045e6d5
mov ecx, dword [esi + 8]
mov dword [esi + 0xc], eax
mov edx, dword [edi + 0xc]
sub edx, ecx
shl edx, 2
push edx
lea eax, [eax + ecx*4]
push ebx
push eax
call fcn.00453560
mov eax, dword [edi + 0xc]
add esp, 0xc
push esi
mov dword [esi + 8], eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ecx, dword [ebp + 8]
mov eax, dword [esi + 0xc]
cmp eax, ebx
je 0x472231
cmp ecx, dword [esi + 8]
jge 0x472231
mov edx, dword [ebp + 0xc]
mov dword [eax + ecx*4], edx
push dword [ebp - 4]
jmp 0x472237
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x4745c2
Capabilities:
Receive data
Receive data on socket

Disassembly:
push dword [esp + 0xc]
push dword [esp + 0xc]
push dword [esp + 0xc]
push dword [ecx + 4]
call dword [sym.imp.WS2_32.dll_recv]
ret 0xc

Function at 0x4745da
Capabilities:
Send data
Send data on socket

Disassembly:
push dword [esp + 0xc]
push dword [esp + 0xc]
push dword [esp + 0xc]
push dword [ecx + 4]
call dword [sym.imp.WS2_32.dll_send]
ret 0xc

Function at 0x474682
Capabilities:
Connect socket

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

Function at 0x474bcf
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push ebx
mov ebx, dword [ebp + 8]
push edi
xor edi, edi
cmp ebx, edi
jne 0x474bec
cmp dword [ebp + 0xc], edi
je 0x474ce1
push 1
push ebx
call fcn.00474620
test eax, eax
jne 0x474ce1
push esi
push edi
push ebx
call fcn.00474620
mov esi, eax
cmp esi, edi
jne 0x474c38
call fcn.00471ad8
mov ecx, dword [eax + 0x30]
push 0xffffffffffffffff
call fcn.0045fbf5
mov esi, eax
cmp esi, edi
je 0x474ce0
push edi
push 0xffffffffffffffff
mov dword [esi + 4], ebx
call fcn.00474aef
push edi
push esi
push dword [esi + 4]
call fcn.00474a28
movzx eax, word [ebp + 0xc]
mov ebx, dword [ebp + 0xc]
shr ebx, 0x10
dec eax
je 0x474c91
dec eax
je 0x474c87
dec eax
dec eax
je 0x474c7d
sub eax, 4
je 0x474c73
sub eax, 8
je 0x474c69
sub eax, 0x10
jne 0x474ce0
mov eax, dword [esi]
push ebx
mov ecx, esi
call dword [eax + 0x30]
jmp 0x474ce0
mov eax, dword [esi]
push ebx
mov ecx, esi
call dword [eax + 0x2c]
jmp 0x474ce0
mov eax, dword [esi]
push ebx
mov ecx, esi
call dword [eax + 0x28]
jmp 0x474ce0
mov eax, dword [esi]
push ebx
mov ecx, esi
call dword [eax + 0x24]
jmp 0x474ce0
mov eax, dword [esi]
push ebx
mov ecx, esi
call dword [eax + 0x20]
jmp 0x474ce0
mov eax, dword [esi + 4]
mov dword [ebp - 0x108], eax
lea eax, [ebp - 8]
push eax
push edi
push edi
lea eax, [ebp - 0x10c]
push eax
push edi
mov dword [ebp - 8], edi
mov dword [ebp - 4], edi
mov dword [ebp - 0x10c], 1
call dword [sym.imp.WS2_32.dll_select]
cmp eax, 0xffffffff
mov dword [ebp + 0xc], eax
jne 0x474cce
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
cmp dword [ebp + 0xc], 1
je 0x474cd8
cmp ebx, edi
je 0x474ce0
mov eax, dword [esi]
push ebx
mov ecx, esi
call dword [eax + 0x1c]
pop esi
pop edi
pop ebx
leave
ret 8
Function at 0x475201
Capabilities:
Initialize winsock library

Disassembly:
mov eax, 0x47bb6a
call fcn.00452f58
sub esp, 0x198
mov eax, dword [0x49c220]
push ebx
push esi
push edi
push 0x471dba
mov ecx, 0x49f310
mov dword [ebp - 0x10], eax
call fcn.00471fbd
mov edi, eax
xor ebx, ebx
cmp dword [edi + 0xc], ebx
jne 0x475263
mov esi, dword [ebp + 8]
cmp esi, ebx
jne 0x475241
lea esi, [ebp - 0x1a0]
push esi
push 0x101
call dword [sym.imp.WS2_32.dll_WSAStartup]
cmp eax, ebx
jne 0x475295
cmp byte [esi], 1
jne 0x47528f
cmp byte [esi + 1], 1
jne 0x47528f
mov dword [edi + 0xc], 0x4751ce
call fcn.00471ad8
mov esi, eax
cmp dword [esi + 0x30], ebx
jne 0x4752a2
push 0x1c
call fcn.004600d9
pop ecx
mov ecx, eax
mov dword [ebp - 0x1a4], ecx
cmp ecx, ebx
mov dword [ebp - 4], ebx
je 0x475299
push 0xa
call fcn.0045fd10
jmp 0x47529b
call dword [sym.imp.WS2_32.dll_WSACleanup]
xor eax, eax
jmp 0x475305
xor eax, eax
or dword [ebp - 4], 0xffffffff
mov dword [esi + 0x30], eax
cmp dword [esi + 0x34], ebx
jne 0x4752d4
push 0x1c
call fcn.004600d9
pop ecx
mov ecx, eax
mov dword [ebp - 0x1a4], ecx
cmp ecx, ebx
mov dword [ebp - 4], 1
je 0x4752cb
push 0xa
call fcn.0045fd10
jmp 0x4752cd
xor eax, eax
or dword [ebp - 4], 0xffffffff
mov dword [esi + 0x34], eax
cmp dword [esi + 0x38], ebx
jne 0x475302
push 0x1c
call fcn.004600d9
pop ecx
mov ecx, eax
mov dword [ebp - 0x1a4], ecx
cmp ecx, ebx
mov dword [ebp - 4], 2
je 0x4752fd
push 0xa
call fcn.0045f7f1
jmp 0x4752ff
xor eax, eax
mov dword [esi + 0x38], eax
xor eax, eax
inc eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop ebx
call fcn.0045086e
leave
ret 4

Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
nop
nop
nop
pop eax
nop
add eax, 0x403d7a
nop
sub eax, 0x403d20
nop
nop
nop
mov ebx, dword [eax]
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
jl 0x430030
nop
nop
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43001e
nop
nop
popal
nop
nop
nop
nop
nop
jmp fcn.00401219
Function at 0x402984
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 8
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
cmp byte [esi + 0x478], bl
je 0x4029fa
lea edi, [esi + 0x480]
mov ecx, edi
call fcn.00405ef0
mov ecx, edi
call fcn.00406b00
mov eax, dword [esi + 0x4a0]
push eax
call dword [sym.imp.USER32.dll_CloseWindow]
lea ecx, [esi + 0x58c]
call fcn.00407730
lea ecx, [esp + 0xc]
push ecx
mov ecx, edi
call fcn.00406d00
mov edx, dword [eax]
lea ecx, [esp + 0xc]
mov dword [esi + 0x45c], edx
push ecx
mov eax, dword [eax + 4]
mov ecx, edi
mov dword [esi + 0x460], eax
call fcn.00406d20
mov edx, dword [eax]
mov dword [esi + 0x464], edx
mov eax, dword [eax + 4]
mov dword [esi + 0x468], eax
jmp 0x402a6a
lea edi, [esi + 0x160]
mov ecx, edi
call fcn.00405ef0
mov ecx, edi
call fcn.00406b00
mov ecx, dword [esi + 0x180]
push ecx
call dword [sym.imp.USER32.dll_CloseWindow]
lea ecx, [esi + 0x26c]
call fcn.00407730
lea edx, [esp + 0xc]
mov ecx, edi
push edx
call fcn.00406d00
mov ecx, dword [eax]
mov dword [esi + 0x45c], ecx
mov ecx, edi
mov edx, dword [eax + 4]
lea eax, [esp + 0xc]
push eax
mov dword [esi + 0x460], edx
call fcn.00406d20
mov ecx, dword [eax]
mov dword [esi + 0x464], ecx
mov edx, dword [eax + 4]
mov dword [esi + 0x42c], 1
mov dword [esi + 0x468], edx
push ebx
mov ecx, esi
call sub.MFC42u.DLL_CWnd::ShowWindow
cmp byte [esi + 0x478], bl
je 0x402a8b
mov eax, dword [esi + 0x480]
lea ecx, [esi + 0x480]
call dword [eax + 0x60]
jmp 0x402a9a
mov edx, dword [esi + 0x160]
lea ecx, [esi + 0x160]
call dword [edx + 0x60]
mov eax, dword [esi]
mov ecx, esi
mov dword [esi + 0x448], ebx
mov dword [esi + 0x434], ebx
mov dword [esi + 0x438], ebx
mov dword [esi + 0x43c], ebx
mov dword [esi + 0x440], ebx
mov dword [esi + 0x444], ebx
call dword [eax + 0x60]
push 0x5a
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0x76
call dword [sym.imp.USER32.dll_VkKeyScanW]
mov esi, dword [sym.imp.USER32.dll_keybd_event]
push ebx
push ebx
push ebx
push 0x11
mov byte [esp + 0x1c], al
call esi
mov edi, dword [esp + 0xc]
push ebx
push ebx
push ebx
push edi
call esi
push ebx
push 2
push ebx
push 0x11
call esi
push ebx
push 2
push ebx
push edi
call esi
pop edi
pop esi
pop ebx
add esp, 8
ret
Function at 0x404b90
Capabilities:
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x40afd5
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x10], esi
call fcn.0040a53c
xor edi, edi
lea ecx, [esi + 0x40]
mov dword [esp + 0x30], edi
call fcn.00409aa0
lea ebp, [esi + 0x90]
mov ebx, 1
mov ecx, ebp
mov byte [esp + 0x30], bl
call fcn.004047f0
mov dword [esi + 0xac], edi
mov dword [esi + 0xa8], 0x40d25c
lea ecx, [esi + 0xb0]
mov byte [esp + 0x30], 3
call sub.MFC42u.DLL_CDC::CDC
mov dword [esi + 0xd4], edi
mov dword [esi + 0xd0], 0x40d248
lea ecx, [esi + 0xf0]
mov byte [esp + 0x30], 5
call sub.MFC42u.DLL_CDC::CDC
lea ecx, [esi + 0x10c]
mov byte [esp + 0x30], 6
call fcn.004075c0
push edi
push edi
push edi
lea ecx, [esi + 0x134]
mov byte [esp + 0x3c], 7
call sub.MFC42u.DLL_CColorDialog::CColorDialog
lea ecx, [esi + 0x1c0]
mov byte [esp + 0x30], 8
call sub.MFC42u.DLL_CString::CString
xor ecx, ecx
xor eax, eax
push edi
push ecx
push eax
lea ecx, [esp + 0x24]
mov byte [esp + 0x3c], 9
mov dword [esi], 0x40d188
mov dword [esi + 0xc4], edi
call fcn.00404830
push eax
mov ecx, ebp
mov byte [esp + 0x34], 0xa
call fcn.00404860
lea ecx, [esp + 0x18]
mov byte [esp + 0x30], 9
call fcn.00404850
xor eax, eax
xor ecx, ecx
mov dword [esi + 0xe0], eax
mov dword [esi + 0xd8], eax
mov dword [esi + 0x1d8], edi
mov dword [esi + 0xa4], 2
mov dword [esi + 0xa0], edi
mov dword [esi + 0xc8], edi
mov dword [esi + 0xe4], ecx
mov dword [esi + 0xdc], ecx
mov dword [esi + 0xcc], ebx
mov dword [esi + 0x1dc], 0x3ff00000
mov dword [esi + 0x100], edi
mov dword [esi + 0xe8], ebx
mov dword [esi + 0xec], ebx
lea ebp, [esi + 0x114]
xor edx, edx
mov dword [esi + 0x1b8], edi
push 8
mov dword [ebp], eax
mov dword [esi + 0x128], edi
mov dword [esi + 0x12c], edi
mov dword [esi + 0x130], ebx
mov dword [ebp + 4], ecx
mov dword [esi + 0x124], edi
mov dword [esi + 0xc0], edi
mov dword [esi + 0xc4], ebx
mov dword [ebp + 8], edx
mov dword [esi + 0x1bc], 0x4062c000
mov dword [esi + 0x1c4], edi
mov dword [esi + 0x1c8], ebx
mov dword [ebp + 0xc], eax
mov dword [esi + 0x1cc], edi
mov dword [esi + 0x1d0], edi
mov dword [esi + 0x1e4], 0xffffffff
mov dword [esi + 0x1f0], edi
call sub.MFC42u.DLL_operatornew
add esp, 4
mov dword [esp + 0x14], eax
cmp eax, edi
mov byte [esp + 0x30], 0xb
je 0x404d77
push edi
push edi
push ebx
mov ecx, eax
call sub.MFC42u.DLL_CMutex::CMutex
jmp 0x404d79
xor eax, eax
mov ecx, dword [esp + 0x28]
mov dword [esi + 0x1e0], eax
mov dword [esi + 0x1ec], edi
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x24
ret
Function at 0x404ff0
Capabilities:
Link many functions at runtime

Disassembly:
sub esp, 0xd4
mov dword [0x426f40], 0
push str.Wintab32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
mov dword [0x426f40], eax
jne 0x40501b
add esp, 0xd4
ret
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.WTInfoA
push eax
call esi
mov dword [0x426fa0], eax
mov eax, dword [0x426f40]
push str.WTOpenA
push eax
call esi
mov ecx, dword [0x426f40]
push str.WTClose
push ecx
mov dword [0x426f74], eax
call esi
mov edx, dword [0x426f40]
push str.WTQueuePacketsEx
push edx
mov dword [0x426f48], eax
call esi
mov dword [0x426f84], eax
mov eax, dword [0x426f40]
push str.WTPacket
push eax
call esi
mov ecx, dword [0x426f40]
push str.WTGetA
push ecx
mov dword [0x426f60], eax
call esi
mov edx, dword [0x426f40]
push str.WTQueueSizeSet
push edx
mov dword [0x426f78], eax
call esi
mov dword [0x426fa4], eax
mov eax, dword [0x426f40]
push str.WTPacketsGet
push eax
call esi
mov ecx, dword [0x426f40]
push str.WTOverlap
push ecx
mov dword [0x426f70], eax
call esi
lea edx, [esp + 4]
mov dword [0x426fa8], eax
push edx
push 0
push 4
call dword [0x426fa0]
mov eax, dword [0x426f94]
lea ecx, [esp + 4]
push eax
push str.SysPress_Digitizing__x
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
mov edx, dword [esp + 0x84]
mov esi, dword [sym.imp.USER32.dll_GetSystemMetrics]
add esp, 0xc
mov eax, 0x5e0
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], 0x40
push 0
mov dword [esp + 0x78], eax
mov dword [esp + 0x80], edx
mov dword [esp + 0x9c], 0
call esi
push 1
mov dword [esp + 0xa8], eax
mov dword [esp + 0xa0], 0
call esi
mov ecx, dword [esp + 0xdc]
push 1
neg eax
mov dword [esp + 0xac], eax
lea eax, [esp + 8]
push eax
push ecx
call dword [0x426f74]
mov esi, eax
push 0x40
push esi
call dword [0x426fa4]
mov eax, esi
pop esi
add esp, 0xd4
ret
Function at 0x405960
Capabilities:
Capture screenshot

Disassembly:
sub esp, 0x10
push ebx
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x20]
push eax
call dword [sym.imp.USER32.dll_GetDC]
push eax
call sub.MFC42u.DLL_CDC::FromHandle
test esi, esi
mov ebx, eax
jne 0x405982
xor eax, eax
jmp 0x405985
mov eax, dword [esi + 0x20]
lea ecx, [esp + 0xc]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
test ebx, ebx
jne 0x405999
xor eax, eax
jmp 0x40599c
mov eax, dword [ebx + 4]
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
lea ecx, [esi + 0xf0]
call sub.MFC42u.DLL_CDC::Attach
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
mov edi, dword [esp + 0xc]
mov edx, dword [ebx + 4]
sub eax, ecx
mov ecx, dword [esp + 0x14]
sub ecx, edi
push eax
push ecx
push edx
lea edi, [esi + 0xa8]
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
mov ecx, edi
call sub.MFC42u.DLL_CGdiObject::Attach
call dword [sym.imp.KERNEL32.dll_GetLastError]
test edi, edi
je 0x4059ea
mov edi, dword [edi + 4]
mov eax, dword [esi + 0xf4]
push edi
push eax
call sub.MFC42u.DLL_CDC::SelectGdiObject
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
mov edi, eax
mov eax, dword [esp + 0x18]
sub eax, ecx
mov ecx, dword [esp + 0x14]
sub ecx, edx
test ebx, ebx
je 0x405a14
mov ebx, dword [ebx + 4]
push 0xcc0020
push 0
push 0
push ebx
push eax
push ecx
mov ecx, dword [esi + 0xf4]
push 0
push 0
push ecx
call dword [sym.imp.GDI32.dll_BitBlt]
test edi, edi
jne 0x405a49
mov edx, dword [esi + 0xf4]
push edi
push edx
call sub.MFC42u.DLL_CDC::SelectGdiObject
pop edi
pop esi
pop ebx
add esp, 0x10
ret
mov edi, dword [edi + 4]
mov edx, dword [esi + 0xf4]
push edi
push edx
call sub.MFC42u.DLL_CDC::SelectGdiObject
pop edi
pop esi
pop ebx
add esp, 0x10
ret
Function at 0x408e00
Capabilities:
Get common file path

Disassembly:
sub esp, 0x124
push ebx
mov ebx, ecx
push esi
mov eax, dword [ebx]
call dword [eax + 8]
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
test eax, eax
mov dword [ebx + 0x17c], eax
jne 0x408e39
mov edx, dword [ebx]
mov ecx, ebx
call dword [edx + 0xc]
pop esi
xor eax, eax
pop ebx
add esp, 0x124
ret
lea eax, [esp + 8]
mov ecx, ebx
push eax
push 0x1000066
mov dword [esp + 0x10], 0
call fcn.00408840
test byte [esp + 8], 1
je 0x408e6a
mov ecx, dword [ebx + 0x17c]
mov dword [ebx + 0x178], ecx
jmp 0x408f2d
mov eax, dword [0x427630]
cmp eax, 1
jne 0x408f1c
push edi
lea edx, [esp + 0x2c]
push 0x104
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov edi, str.kernel32.dll
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x2c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x2c]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
pop edi
test esi, esi
jne 0x408edb
mov edx, dword [ebx]
mov ecx, ebx
call dword [edx + 0xc]
pop esi
xor eax, eax
pop ebx
add esp, 0x124
ret
push str.OpenVxDHandle
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x408f04
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0xc]
pop esi
xor eax, eax
pop ebx
add esp, 0x124
ret
mov ecx, dword [ebx + 0x17c]
push ecx
call eax
push esi
mov dword [ebx + 0x178], eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x408f2d
cmp eax, 2
jne 0x408ef2
mov edx, dword [ebx + 0x17c]
mov dword [ebx + 0x178], edx
mov eax, dword [ebx + 0x178]
test eax, eax
je 0x408ef2
mov ecx, dword [ebx + 0x5c]
push 0
push 0
push 0
lea edx, [esp + 0x18]
push 0x1c
mov dword [esp + 0x2c], ecx
push edx
push 0x8000a008
mov ecx, ebx
mov dword [esp + 0x24], 0x100000a
mov dword [esp + 0x28], 0x100025c
mov dword [esp + 0x2c], 0x1000258
mov dword [esp + 0x30], 0
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], 0
call fcn.00407ea0
test eax, eax
je 0x408ef2
mov edx, dword [ebx]
mov ecx, ebx
call dword [edx + 0xc]
pop esi
mov eax, 1
pop ebx
add esp, 0x124
ret
Function at 0x409040
Capabilities:
Create thread

Disassembly:
push ecx
push esi
mov esi, ecx
mov eax, dword [esi]
call dword [eax + 8]
mov ecx, dword [esi + 4]
or eax, 0xffffffff
cmp ecx, eax
je 0x409058
cmp dword [esi + 0x5c], eax
jne 0x409064
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0xc]
xor eax, eax
pop esi
pop ecx
ret
mov eax, dword [esi + 0x180]
test eax, eax
je 0x409075
mov ecx, esi
call fcn.004090d0
lea eax, [esp + 4]
mov dword [esi + 0x24], 0
push eax
push 0
push esi
push 0x409320
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
mov dword [esi + 0x180], eax
jne 0x4090a9
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0xc]
xor eax, eax
pop esi
pop ecx
ret
push 2
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0xc]
mov eax, 1
pop esi
pop ecx
ret

Function at 0x4090d0
Capabilities:
Terminate thread

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi]
call dword [eax + 8]
mov eax, dword [esi + 0x180]
test eax, eax
je 0x40917a
mov eax, dword [esi + 0x17c]
test eax, eax
jne 0x4090fb
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0xc]
xor eax, eax
pop esi
ret
push eax
mov dword [esi + 0x24], 1
call dword [sym.imp.KERNEL32.dll_SetEvent]
test eax, eax
jne 0x409118
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0xc]
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x180]
test eax, eax
je 0x40917a
push 0x1388
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x409163
mov eax, dword [esi + 0x180]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov ecx, dword [esi + 0x180]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [esi]
mov ecx, esi
mov dword [esi + 0x180], 0
call dword [edx + 0xc]
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x180]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x180], 0
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0xc]
mov eax, 1
pop esi
ret

Function at 0x409640
Capabilities:
Create thread

Disassembly:
push ecx
push esi
mov esi, ecx
mov eax, dword [esi]
call dword [eax + 8]
mov eax, dword [esi + 0x24]
test eax, eax
je 0x409657
mov ecx, esi
call fcn.004096c0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
test eax, eax
mov dword [esi + 0x20], eax
jne 0x409678
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0xc]
xor eax, eax
pop esi
pop ecx
ret
lea eax, [esp + 4]
push eax
push 0
push esi
push 0x409860
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
mov dword [esi + 0x24], eax
jne 0x4096a2
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0xc]
xor eax, eax
pop esi
pop ecx
ret
push 2
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0xc]
mov eax, 1
pop esi
pop ecx
ret