joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406e40
Capabilities:
Create http request

Disassembly:
push esi
mov esi, ecx
call fcn.00406da0
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
push eax
mov eax, dword [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x10]
push edx
push eax
push ecx
mov dword [esi], vtable.RC::RCInternetSession.0
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [esi + 4], eax
mov eax, esi
pop esi
ret 0x14

Function at 0x407bc0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x218
mov eax, dword [0x43d504]
xor eax, esp
mov dword [esp + 0x214], eax
push ebx
mov ebx, dword [esp + 0x224]
push ebp
push esi
mov esi, dword [esp + 0x228]
push edi
mov edi, dword [esp + 0x234]
xor ebp, ebp
push 0x208
lea eax, [esp + 0x1e]
push ebp
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], ebp
mov word [esi + 4], bp
push eax
mov word [esp + 0x24], bp
call fcn.00419b30
add esp, 0xc
cmp dword [edi + 0x18], 8
mov dword [esp + 0x10], 0x208
mov dword [esp + 0x14], 1
jb 0x407c30
mov edi, dword [edi + 4]
jmp 0x407c33
add edi, 4
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x1c]
push eax
push ebp
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x407c8c
mov eax, dword [esp + 0x10]
cmp eax, 0x104
ja 0x407c61
mov word [esp + eax*2 + 0x18], bp
jmp 0x407c69
mov word [esp + 0x220], bp
lea eax, [esp + 0x18]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x407c70
sub eax, edx
sar eax, 1
push eax
lea ecx, [esp + 0x1c]
push ecx
mov ecx, esi
call fcn.00401a4b
mov ecx, dword [esp + 0x224]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00419b1f
add esp, 0x218
ret 0xc
Function at 0x40af40
Capabilities:
Check os version

Disassembly:
sub esp, 0x118
mov eax, dword [0x43d504]
xor eax, esp
mov dword [esp + 0x114], eax
push esi
push 0x400
mov esi, ecx
push 0
push esi
call fcn.00419b30
push 0x110
lea eax, [esp + 0x18]
push 0
push eax
mov byte [esi + 0x400], 0
mov dword [esi + 0x404], 0
mov dword [esp + 0x1c], 0x114
call fcn.00419b30
add esp, 0x18
lea ecx, [esp + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x40afae
cmp dword [esp + 8], 6
jb 0x40afae
mov byte [esi + 0x400], 1
mov ecx, esi
call fcn.0040a430
mov ecx, dword [esp + 0x118]
mov eax, esi
pop esi
xor ecx, esp
call fcn.00419b1f
add esp, 0x118
ret

Function at 0x40b000
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
test edi, edi
mov esi, ecx
je 0x40b081
cmp word [edi], 0
je 0x40b081
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40b081
test al, 0x10
jne 0x40b081
cmp dword [esi], 0
jne 0x40b045
push 0x438
call fcn.0041969f
add esp, 4
test eax, eax
je 0x40b041
mov ecx, eax
call fcn.0040af40
jmp 0x40b043
xor eax, eax
mov dword [esi], eax
mov eax, dword [esi]
mov word [eax], 0
mov ecx, dword [esi]
push 0x1ff
push ecx
push edi
call fcn.0040ad90
cmp eax, 2
mov ecx, dword [esi]
mov dword [ecx + 0x404], eax
je 0x40b07a
cmp eax, 3
je 0x40b07a
mov edx, dword [esi]
pop edi
xor al, al
mov word [edx], 0
pop esi
ret 4
pop edi
mov al, 1
pop esi
ret 4
pop edi
xor al, al
pop esi
ret 4
Function at 0x40c6e0
Capabilities:
Get session user name

Disassembly:
sub esp, 0x250
mov eax, dword [0x43d504]
xor eax, esp
mov dword [esp + 0x24c], eax
mov eax, dword [esp + 0x254]
push ebx
push ebp
mov ebp, 7
push esi
mov esi, ecx
mov dword [esi + 0x18], ebp
push edi
xor edi, edi
mov dword [esi + 0x14], edi
mov word [esi + 4], di
mov dword [esi + 0x34], ebp
mov dword [esi + 0x30], edi
mov word [esi + 0x20], di
mov dword [esi + 0x50], ebp
mov dword [esi + 0x4c], edi
mov word [esi + 0x3c], di
mov dword [esi + 0x74], ebp
mov dword [esi + 0x70], edi
mov word [esi + 0x60], di
mov dword [esi + 0x90], ebp
mov dword [esi + 0x8c], edi
mov word [esi + 0x7c], di
mov dword [esi + 0xac], ebp
mov dword [esi + 0xa8], edi
mov word [esi + 0x98], di
mov dword [esi + 0xc8], ebp
mov dword [esi + 0xc4], edi
mov word [esi + 0xb4], di
lea ebx, [esi + 0xcc]
mov dword [ebx + 0x18], ebp
mov dword [ebx + 0x14], edi
push edi
mov dword [esp + 0x14], eax
mov word [ebx + 4], di
call fcn.0041a303
push eax
call fcn.0041a33f
push ebx
mov dword [esi + 0x54], edi
mov dword [esi + 0x58], edi
call fcn.00402d48
add esp, 0xc
cmp dword [esi + 0xe0], edi
je 0x40c88c
push 0x208
lea ecx, [esp + 0x56]
push edi
push ecx
mov dword [esp + 0x58], ebp
mov dword [esp + 0x54], edi
mov word [esp + 0x44], di
mov word [esp + 0x5c], di
call fcn.00419b30
add esp, 0xc
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x54]
push eax
mov dword [esp + 0x1c], 0x104
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
lea eax, [esp + 0x50]
mov word [esp + 0x256], di
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x40c7f0
sub eax, edx
sar eax, 1
push eax
lea ecx, [esp + 0x54]
push ecx
lea ecx, [esp + 0x3c]
call fcn.00401a4b
lea edx, [esp + 0x34]
push str.__r_t_n
push edx
call fcn.004022b4
mov eax, dword [esp + 0x18]
add esp, 8
cmp dword [eax + 0x14], edi
mov ebp, 8
lea ecx, [esp + 0x34]
jne 0x40c83f
push ebp
push str.sss.temp
call fcn.00403175
jmp 0x40c848
push 0xffffffffffffffff
push edi
push eax
call fcn.004030cc
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x1c]
push ebx
push ecx
call fcn.00402e95
add esp, 0xc
push 0xffffffffffffffff
push edi
push eax
mov ecx, ebx
call fcn.0040176b
cmp dword [esp + 0x30], ebp
jb 0x40c879
mov edx, dword [esp + 0x1c]
push edx
call fcn.004192c0
add esp, 4
cmp dword [esp + 0x4c], ebp
jb 0x40c88c
mov eax, dword [esp + 0x38]
push eax
call fcn.004192c0
add esp, 4
mov ecx, dword [esp + 0x25c]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00419b1f
add esp, 0x250
ret 4
Function at 0x4139b0
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 0x4139d0
Capabilities:
Set registry value

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
push edi
mov edi, ecx
jne 0x4139e6
push 0x80004005
call fcn.00413000
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 0x413a10
Capabilities:
Set registry value

Disassembly:
push ecx
push ebp
mov ebp, dword [esp + 0x10]
test ebp, ebp
mov dword [esp + 4], ecx
jne 0x413a28
push 0x80004005
call fcn.00413000
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 0x413a35
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 0x414070
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x21c
mov eax, dword [0x43d504]
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 0x4140de
test ecx, ecx
je 0x4140d0
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 0x4140ec
test ecx, ecx
je 0x414191
push ecx
jmp 0x41418b
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 0x41415e
jmp 0x414120
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x10]
call fcn.00414070
mov edi, eax
test edi, edi
jne 0x4141ad
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 0x414120
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0xc]
test eax, eax
je 0x414175
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 0x414191
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.00419b1f
add esp, 0x21c
ret 4
mov eax, dword [esp + 0xc]
test eax, eax
je 0x4141bc
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
jmp 0x414193
Function at 0x415700
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x74
mov eax, dword [0x43d504]
xor eax, esp
mov dword [esp + 0x70], eax
push ebx
mov ebx, dword [esp + 0x80]
push ebp
push esi
mov esi, dword [esp + 0x84]
push edi
lea eax, [esp + 0x64]
push eax
xor edi, edi
push esi
mov dword [esp + 0x84], 7
mov dword [esp + 0x80], edi
mov word [esp + 0x70], di
call fcn.00402d59
xor eax, eax
push 0x44
lea ecx, [esp + 0x2c]
push edi
push ecx
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
call fcn.00419b30
mov eax, dword [ebx + 0x14]
add esp, 0x14
xor ebp, ebp
cmp eax, edi
mov dword [esp + 0x20], 0x44
je 0x41581c
lea edi, [eax + 0x208]
xor ecx, ecx
mov eax, edi
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00418690
push 0x4359d8
mov ebp, eax
push edi
push ebp
call fcn.0041b427
add esp, 0x10
cmp dword [esi + 0x18], 8
jb 0x4157b5
mov esi, dword [esi + 4]
jmp 0x4157b8
add esi, 4
push esi
push edi
push ebp
call fcn.0041b3ad
push 0x436534
push edi
push ebp
call fcn.0041b3ad
mov esi, 8
add esp, 0x18
cmp dword [ebx + 0x18], esi
jb 0x4157de
mov ebx, dword [ebx + 4]
jmp 0x4157e1
add ebx, 4
push ebx
push edi
push ebp
call fcn.0041b3ad
mov eax, dword [esp + 0x74]
add esp, 0xc
cmp dword [esp + 0x7c], esi
jae 0x4157fa
lea eax, [esp + 0x68]
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x24]
push edx
push eax
push 0
push 0
push 1
push 0
push 0
push ebp
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
xor edi, edi
jmp 0x41585a
mov eax, dword [esp + 0x68]
mov ecx, 8
cmp dword [esp + 0x7c], ecx
jae 0x41582f
lea eax, [esp + 0x68]
cmp dword [esi + 0x18], ecx
jb 0x415839
mov esi, dword [esi + 4]
jmp 0x41583c
add esi, 4
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x24]
push edx
push eax
push edi
push edi
push 1
push edi
push edi
push edi
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov esi, 8
cmp eax, edi
jne 0x415886
cmp dword [esp + 0x7c], esi
jb 0x415871
mov eax, dword [esp + 0x68]
push eax
call fcn.004192c0
add esp, 4
pop edi
pop esi
pop ebp
xor al, al
pop ebx
mov ecx, dword [esp + 0x70]
xor ecx, esp
call fcn.00419b1f
add esp, 0x74
ret
mov eax, dword [esp + 0x14]
cmp eax, edi
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x41589b
push eax
call ebx
mov dword [esp + 0x14], edi
mov eax, dword [esp + 0x10]
cmp eax, edi
je 0x4158bd
cmp byte [esp + 0x90], 0
je 0x4158ba
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esp + 0x10]
push eax
call ebx
cmp ebp, edi
je 0x4158ca
push ebp
call fcn.00419753
add esp, 4
cmp dword [esp + 0x7c], esi
jb 0x4158dd
mov ecx, dword [esp + 0x68]
push ecx
call fcn.004192c0
add esp, 4
mov ecx, dword [esp + 0x80]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
mov al, 1
call fcn.00419b1f
add esp, 0x74
ret
Function at 0x415fa0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
sub esp, 0x414
mov eax, dword [0x43d504]
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 [0x43d4dc]
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 0x416003
call fcn.00413830
mov esi, eax
jmp 0x4160c8
push ebx
push ebp
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x41601c
call fcn.00413830
jmp 0x4160bf
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebp, eax
test ebp, ebp
jne 0x416034
call fcn.00413830
jmp 0x4160bf
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
lea eax, [esi + 1]
cmp eax, esi
jae 0x416068
lea eax, [esp + 0x20]
cmp dword [esp + 0x1c], eax
je 0x416058
lea ecx, [esp + 0x1c]
call fcn.00414010
lea ecx, [esp + 0x10]
call fcn.00413fa0
mov eax, 0x8007000e
jmp 0x4160e2
push eax
lea ecx, [esp + 0x20]
call fcn.004146f0
mov ebx, dword [esp + 0x1c]
test ebx, ebx
jne 0x416081
mov esi, 0x8007000e
jmp 0x4160c1
call dword [0x43d4dc]
push esi
push ebx
push esi
push ebp
push 0
push eax
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x41609f
call fcn.00413830
jmp 0x4160bf
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.00415550
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [esp + 0x20]
cmp dword [esp + 0x1c], ecx
je 0x4160e0
lea ecx, [esp + 0x1c]
call fcn.00414010
jmp 0x4160e0
mov eax, esi
mov ecx, dword [esp + 0x420]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00419b1f
add esp, 0x414
ret 0x10
Function at 0x418070
Capabilities:
Extract resource via kernel32 functions

Disassembly:
movzx eax, word [esp + 4]
sub esp, 0x88
push esi
push 0x4367ac
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x41809a
xor al, al
pop esi
add esp, 0x88
ret
push ebx
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
je 0x418122
push edi
push esi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, dword [esp + 0x9c]
mov esi, eax
test esi, esi
je 0x418103
cmp dword [edi + 0x18], 8
jb 0x4180d3
mov eax, dword [edi + 4]
jmp 0x4180d6
lea eax, [edi + 4]
push 1
push 0x40
push 0x20
push eax
lea ecx, [esp + 0x1c]
call fcn.00417cc0
push esi
push ebx
lea ecx, [esp + 0x14]
call fcn.00417b70
lea ecx, [esp + 0xc]
call fcn.00417740
lea ecx, [esp + 0xc]
call fcn.00417810
push edi
call fcn.004034ed
add esp, 4
xor ecx, ecx
cmp eax, esi
pop edi
jne 0x418122
cmp edx, ecx
jne 0x418122
pop ebx
mov al, 1
pop esi
add esp, 0x88
ret
pop ebx
xor al, al
pop esi
add esp, 0x88
ret

Function at 0x41920e
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x43d504]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.004191a3
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.00419b30
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 0x41925d
cmp dword [ebp - 0x1c], 5
jb 0x419275
jmp 0x419271
cmp dword [ebp - 0x10], 1
jne 0x419275
cmp dword [ebp - 0x1c], 4
ja 0x419271
jne 0x419275
cmp dword [ebp - 0x18], 0
jbe 0x419275
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x436964
call fcn.00413050
test eax, eax
jge 0x419296
mov byte [0x43ec80], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00419b1f
add ebp, 0x78
leave
ret

Function at 0x419b1f
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x43d504]
jne 0x419b29
repz ret
jmp fcn.00421a3c
Function at 0x4266c6
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x43d8b8]
je 0x4266e1
inc edi
cmp edi, 0x17
jb 0x4266d2
cmp edi, 0x17
jae 0x426861
push ebp
push 3
call fcn.0042c7b0
cmp eax, 1
pop ecx
je 0x42682d
push 3
call fcn.0042c7b0
test eax, eax
pop ecx
jne 0x426715
cmp dword [0x43d510], 1
je 0x42682d
cmp ebx, 0xfc
je 0x426860
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x43f490
push ebp
call fcn.0042128d
add esp, 0xc
test eax, eax
je 0x42674b
push esi
push esi
push esi
push esi
push esi
call fcn.00419556
add esp, 0x14
push 0x104
mov esi, 0x43f4a9
push esi
push 0
mov byte [0x43f5ad], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x42678f
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.0042128d
add esp, 0xc
test eax, eax
je 0x42678f
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.00419556
add esp, 0x14
push esi
call fcn.0041c4b0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x4267d4
push esi
call fcn.0041c4b0
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x43f7a4
push 0x437964
sub ecx, eax
push ecx
push eax
call fcn.0042a656
add esp, 0x14
test eax, eax
je 0x4267d4
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.00419556
add esp, 0x14
jmp 0x4267d6
xor esi, esi
push 0x437960
push ebx
push ebp
call fcn.0042a596
add esp, 0xc
test eax, eax
je 0x4267f6
push esi
push esi
push esi
push esi
push esi
call fcn.00419556
add esp, 0x14
push dword [edi*8 + 0x43d8bc]
push ebx
push ebp
call fcn.0042a596
add esp, 0xc
test eax, eax
je 0x426818
push esi
push esi
push esi
push esi
push esi
call fcn.00419556
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.0042c5f3
add esp, 0xc
jmp 0x426860
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x426860
cmp ebp, 0xffffffff
je 0x426860
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x43d8bc]
push dword [esi]
call fcn.0041c4b0
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x42c5f3
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00421444
xor ebx, ebx
cmp dword [0x43fa74], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x42c6c9
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x42c7a9
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x42c7a9
push eax
call fcn.004213d6
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x43fa74], eax
call esi
push eax
call fcn.004213d6
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x43fa78], eax
call esi
push eax
call fcn.004213d6
mov dword [0x43fa7c], eax
lea eax, [ebp - 0xc]
push eax
call fcn.00420213
test eax, eax
pop ecx
pop ecx
je 0x42c697
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00419556
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x42c6c9
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.004213d6
cmp eax, ebx
pop ecx
mov dword [0x43fa84], eax
je 0x42c6c9
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004213d6
pop ecx
mov dword [0x43fa80], eax
mov eax, dword [0x43fa80]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x42c74e
cmp dword [0x43fa84], ecx
je 0x42c74e
push eax
call fcn.0042144d
push dword [0x43fa84]
mov esi, eax
call fcn.0042144d
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x42c74e
cmp edi, ebx
je 0x42c74e
call esi
cmp eax, ebx
je 0x42c71b
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x42c71b
test byte [ebp - 0x18], 1
jne 0x42c74e
lea eax, [ebp - 0x10]
push eax
call fcn.0042024a
test eax, eax
pop ecx
je 0x42c736
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00419556
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x42c745
or dword [ebp + 0x10], 0x200000
jmp 0x42c789
or dword [ebp + 0x10], 0x40000
jmp 0x42c789
mov eax, dword [0x43fa78]
cmp eax, dword [ebp - 8]
je 0x42c789
push eax
call fcn.0042144d
cmp eax, ebx
pop ecx
je 0x42c789
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x42c789
mov eax, dword [0x43fa7c]
cmp eax, dword [ebp - 8]
je 0x42c789
push eax
call fcn.0042144d
cmp eax, ebx
pop ecx
je 0x42c789
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x43fa74]
call fcn.0042144d
cmp eax, ebx
pop ecx
je 0x42c7a9
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x42c7ab
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x402bb8
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x484008], 0x8088405
inc edx
mov dword [ebx + 0x484008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x403010
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x484024]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x4030a8
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x403088
xor eax, eax
push ebp
push 0x403081
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x4030c4
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403088
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x484024]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x484024], ax
mov esp, ebp
pop ebp
ret

Function at 0x403d6c
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x486048], 0
je 0x403dcd
cmp word [0x48621c], 0xd7b2
jne 0x403d95
cmp dword [0x486224], 0
jbe 0x403d95
mov eax, 0x486218
call dword [0x486234]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x484070
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x403df4
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x484034], 0
jne 0x403de9
push 0
push 0x484068
push 0x484070
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret