joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402c70
Capabilities:
Get system firmware table

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54262a
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x34
mov dword [ebp - 0x1c], 0x52534d42
push 0
push 0
push 0
push 0x52534d42
call dword [sym.imp.KERNEL32.dll_GetSystemFirmwareTable]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x402cd6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.GetSystemFirmwareTable_size_request_failed._Error:
push 0x5b31e0
call fcn.004053b0
add esp, 8
mov ecx, eax
call fcn.00403a40
mov eax, 1
jmp 0x402e21
mov eax, dword [ebp - 0x14]
push eax
lea ecx, [ebp - 0x30]
call fcn.00403e70
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x14]
push ecx
push 0
lea ecx, [ebp - 0x30]
call fcn.00403fa0
push eax
push 0
push 0x52534d42
call dword [sym.imp.KERNEL32.dll_GetSystemFirmwareTable]
test eax, eax
jne 0x402d47
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.GetSystemFirmwareTable_data_retrieval_failed._Error:
push 0x5b31e0
call fcn.004053b0
add esp, 8
mov ecx, eax
call fcn.00403a40
mov dword [ebp - 0x38], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.00403ed0
mov eax, dword [ebp - 0x38]
jmp 0x402e21
mov dword [ebp - 0x20], 0
push 4
lea ecx, [ebp - 0x30]
call fcn.00403fa0
mov dword [ebp - 0x10], eax
push 0
lea ecx, [ebp - 0x30]
call fcn.00403fa0
add eax, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
mov edx, dword [ebp - 0x10]
cmp edx, dword [ebp - 0x18]
jae 0x402dd4
mov eax, dword [ebp - 0x10]
movzx ecx, byte [eax]
cmp ecx, 4
jne 0x402d87
mov edx, dword [ebp - 0x20]
add edx, 1
mov dword [ebp - 0x20], edx
mov eax, dword [ebp - 0x10]
mov cl, byte [eax + 1]
mov byte [ebp - 0x31], cl
movzx edx, byte [ebp - 0x31]
add edx, dword [ebp - 0x10]
mov dword [ebp - 0x10], edx
jmp 0x402da5
mov eax, dword [ebp - 0x10]
add eax, 1
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x18]
sub ecx, 1
cmp dword [ebp - 0x10], ecx
jae 0x402dd2
mov edx, dword [ebp - 0x10]
movzx eax, byte [edx]
test eax, eax
jne 0x402dd0
mov ecx, dword [ebp - 0x10]
movzx edx, byte [ecx + 1]
test edx, edx
jne 0x402dd0
mov eax, dword [ebp - 0x10]
add eax, 2
mov dword [ebp - 0x10], eax
jmp 0x402dd2
jmp 0x402d9c
jmp 0x402d6b
cmp dword [ebp - 0x20], 4
jge 0x402df7
mov dword [ebp - 0x3c], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.00403ed0
mov eax, dword [ebp - 0x3c]
jmp 0x402e21
mov dword [ebp - 0x40], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.00403ed0
mov eax, dword [ebp - 0x40]
jmp 0x402e21
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x402f00
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push 4
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x402f27
xor eax, eax
jmp 0x402f5c
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00524e40
add esp, 0xc
lea eax, [ebp - 4]
push eax
push 0x40
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x402f57
xor eax, eax
jmp 0x402f5c
mov eax, 1
mov esp, ebp
pop ebp
ret

Function at 0x402f60
Capabilities:
Create http request
Read data from internet
Receive data
Reference http user-agent string

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1018
call fcn.00525290
push 0
push 0
push 0
push 0
push str.Mozilla_5.0
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [ebp - 0x1010], eax
cmp dword [ebp - 0x1010], 0
jne 0x402f96
xor eax, eax
jmp 0x4030f2
push 0
push SysReAllocString
push 0
push 0
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x1010]
push ecx
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
mov dword [ebp - 0x100c], eax
cmp dword [ebp - 0x100c], 0
jne 0x402fd5
mov edx, dword [ebp - 0x1010]
push edx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
xor eax, eax
jmp 0x4030f2
mov dword [ebp - 0x1014], 0
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea ecx, [ebp - 0x1008]
push ecx
mov edx, dword [ebp - 0x100c]
push edx
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x403032
mov eax, dword [ebp - 0x100c]
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov ecx, dword [ebp - 0x1010]
push ecx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
xor eax, eax
jmp 0x4030f2
cmp dword [ebp - 0x1014], 0
jbe 0x4030c0
mov edx, dword [ebp - 8]
add edx, dword [ebp - 0x1014]
push edx
mov eax, dword [ebp - 4]
push eax
call fcn.005251db
add esp, 8
mov dword [ebp - 0x1018], eax
cmp dword [ebp - 0x1018], 0
jne 0x40308e
mov ecx, dword [ebp - 4]
push ecx
call fcn.005251a1
add esp, 4
mov edx, dword [ebp - 0x100c]
push edx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, dword [ebp - 0x1010]
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
xor eax, eax
jmp 0x4030f2
mov ecx, dword [ebp - 0x1018]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 0x1014]
push edx
lea eax, [ebp - 0x1008]
push eax
mov ecx, dword [ebp - 4]
add ecx, dword [ebp - 8]
push ecx
call fcn.00524e40
add esp, 0xc
mov edx, dword [ebp - 8]
add edx, dword [ebp - 0x1014]
mov dword [ebp - 8], edx
cmp dword [ebp - 0x1014], 0
ja 0x402fed
mov eax, dword [ebp - 0x100c]
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov ecx, dword [ebp - 0x1010]
push ecx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 8]
mov dword [edx], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x421741
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], ebx
je 0x421788
call fcn.0043cd59
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x421788
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x4217a4
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.00421246
mov esi, eax
test edi, edi
je 0x4217a2
test ebx, ebx
je 0x4217a2
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x425c9e
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x54da1c
call fcn.00525dc7
mov esi, ecx
cmp dword [esi + 0x6c], 0
jne 0x425cc3
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x425d15
call fcn.0043fb18
push eax
lea ecx, [ebp - 0x10]
call fcn.00401f70
mov ecx, dword [esi + 0x6c]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0052803c
push eax
call fcn.0040c87e
add esp, 0x14
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.00402010
mov eax, esi
call fcn.00525e9f
ret 8

Function at 0x444867
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
cmp dword [ebp + 0xc], ebx
je 0x4448af
call fcn.0043cd59
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x4448af
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x4448f2
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
test ebx, ebx
je 0x4448db
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x4448db
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x68], 0
je 0x4448ef
mov ecx, dword [esi + 0x68]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x445b5b
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
xor ebx, ebx
call fcn.0043cd59
mov esi, dword [eax + 0xc]
push 5
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x445b94
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov ecx, dword [ebp - 4]
push esi
push dword [ebp + 0xc]
push ebx
call fcn.0044579d
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8

Function at 0x445bf2
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [edi + 0x78], ebx
test ebx, 0xffff0000
jne 0x445c16
cmp dword [edi + 0x74], 0
jne 0x445c16
movzx eax, bx
mov dword [edi + 0x74], eax
call fcn.0043cd59
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [ebp + 0xc]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.00445bb3
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x44615f
Capabilities:
Get file attributes

Disassembly:
mov edi, edi
push esi
mov esi, ecx
push dword [esi + 0x24]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push 1
mov ecx, esi
test al, 1
je 0x446183
mov eax, dword [esi]
push 0
call dword [eax + 0xe0]
test eax, eax
jne 0x446191
pop esi
ret
mov eax, dword [esi + 0x24]
mov edx, dword [esi]
push eax
call dword [edx + 0xe0]
jmp 0x44617d
xor eax, eax
inc eax
pop esi
ret

Function at 0x460858
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov dword [ebp - 4], ecx
test esi, esi
jne 0x460872
call fcn.0043cd59
mov esi, dword [eax + 0xc]
push dword [0x5afb5c]
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x460890
xor eax, eax
pop edi
pop esi
leave
ret 8
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp + 0xc], eax
test eax, eax
je 0x460888
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
jne 0x4608bd
xor esi, esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop ebx
jmp 0x46088a
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 4]
push eax
push ebx
call fcn.00460786
mov esi, eax
jmp 0x4608af

Function at 0x4b8e8b
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov edi, edi
push esi
mov esi, ecx
call fcn.0041fbcc
call fcn.004177f2
cmp eax, esi
pop esi
jne 0x4b8ea7
mov ecx, 0x5af668
jmp fcn.004512dc
ret
Function at 0x4baa8d
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
test byte [esi + 4], 1
push edi
mov ebx, ecx
je 0x4baaa5
mov edi, dword [esi + 0xc]
jmp 0x4baae5
push 5
push dword [esi + 0xc]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x4baabe
call fcn.00449875
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x4baad3
call fcn.00449875
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x4baae5
call fcn.00449875
call fcn.0043cd59
cmp dword [eax + 0x3c], 0
je 0x4baafa
push edi
mov ecx, ebx
call fcn.004b994b
mov edi, eax
push dword [ebp + 0xc]
push edi
call fcn.004ba9a7
mov dword [ebp + 8], eax
mov eax, dword [ebx + 0x7c]
test eax, eax
je 0x4bab18
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
and dword [ebx + 0x7c], 0
mov eax, dword [ebp + 8]
test eax, eax
je 0x4bab24
mov edi, eax
mov dword [ebx + 0x7c], eax
or dword [esi + 4], 1
mov dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x4c4cb5
Capabilities:
Query or enumerate registry value

Disassembly:
push 0
mov eax, 0x54ae27
call fcn.00525dc7
push dword [ebp + 0xc]
lea ecx, [ebp + 0xc]
call fcn.00401c80
and dword [ebp - 4], 0
cmp dword [ebp + 8], 0x80000000
jne 0x4c4d17
call fcn.0043c61c
cmp eax, 1
jne 0x4c4d17
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp + 8]
push str.SoftwareClasses_
push eax
call fcn.0044367b
add esp, 0xc
push eax
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 1
call fcn.0041476d
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.00402010
mov dword [ebp + 8], SysStringLen
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
mov esi, eax
call fcn.00402010
mov eax, esi
call fcn.00525e9f
ret 0x10

Function at 0x4c4d40
Capabilities:
Set registry value

Disassembly:
push 0
mov eax, 0x54ae27
call fcn.00525dc7
push dword [ebp + 0xc]
lea ecx, [ebp + 0xc]
call fcn.00401c80
and dword [ebp - 4], 0
cmp dword [ebp + 8], 0x80000000
jne 0x4c4da2
call fcn.0043c61c
cmp eax, 1
jne 0x4c4da2
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp + 8]
push str.SoftwareClasses_
push eax
call fcn.0044367b
add esp, 0xc
push eax
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 1
call fcn.0041476d
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.00402010
mov dword [ebp + 8], SysStringLen
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueA]
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
mov esi, eax
call fcn.00402010
mov eax, esi
call fcn.00525e9f
ret 0x14
Function at 0x4cc058
Capabilities:
Move file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, ecx
cmp dword [esi], 0
je 0x4cc096
push 0x56a5f0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
je 0x4cc0a4
push str.MoveFileTransactedA
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4cc0a4
push dword [esi]
push 2
push 0
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
jmp 0x4cc0a6
cmp dword [esi + 4], 0
je 0x4cc0a4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_MoveFileA]
xor eax, eax
pop esi
pop ebp
ret 8

Function at 0x4f338b
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push dword [ebp + 0xc]
mov ecx, esi
call fcn.004f304a
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x4f33d5
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.0041f7dc
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.0041de8e
jmp 0x4f33e0
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.00490f41
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x4f33e6
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov ecx, dword [esi + 4]
lea eax, [ebp + 8]
push eax
push dword [ebp + 0xc]
call fcn.00425547
push 0xfffffffffffffff0
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowLongA]
push dword [ebp + 0xc]
and eax, 3
mov ecx, esi
cmp al, 3
je 0x4f3423
call fcn.004f304a
mov dword [esi + 0xc], 1
jmp 0x4f3428
call fcn.004f304a
cmp dword [esi], 0
je 0x4f3471
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
test eax, eax
jle 0x4f3449
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.0041f7dc
jmp 0x4f345b
mov ecx, dword [ebp + 0x10]
push 0xff
call fcn.004020f0
push 0x100
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.0041de8e
jmp 0x4f3495
mov esi, dword [ebp + 0x10]
push dword [esi]
push 0xffffffffffffffff
push 0x14d
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SendMessageA]
cmp eax, 0xffffffff
jne 0x4f3495
push dword [esi]
push dword [ebp + 8]
call fcn.00490f41
pop esi
pop ebp
ret 0xc

Function at 0x525db8
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x5ab324]
jne 0x525dc2
repz ret
jmp fcn.00533a83
Function at 0x53a5af
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x5ab324]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0052c472
and dword [ebp - 0x14], 0
cmp dword [0x5b30f4], 0
mov dword [ebp - 0x18], eax
jne 0x53a662
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x53a70a
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x53a70a
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x5856b4
push ebx
mov dword [0x5b30f4], eax
call edi
push eax
call esi
push 0x5856a0
push ebx
mov dword [0x5b30f8], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x5b30fc], eax
call edi
push eax
call esi
mov dword [0x5b3104], eax
test eax, eax
je 0x53a662
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x5b3100], eax
mov eax, dword [0x5b3100]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x53a6bb
cmp dword [0x5b3104], ecx
je 0x53a6bb
push eax
call esi
push dword [0x5b3104]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x53a6bb
test ebx, ebx
je 0x53a6bb
call edi
test eax, eax
je 0x53a6b2
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x53a6b2
test byte [ebp - 8], 1
jne 0x53a6bb
or dword [ebp + 0x10], 0x200000
jmp 0x53a6ee
mov eax, dword [0x5b30f8]
cmp eax, dword [ebp - 0x18]
je 0x53a6ee
push eax
call esi
test eax, eax
je 0x53a6ee
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x53a6ee
mov eax, dword [0x5b30fc]
cmp eax, dword [ebp - 0x18]
je 0x53a6ee
push eax
call esi
test eax, eax
je 0x53a6ee
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x5b30f4]
call esi
test eax, eax
je 0x53a70a
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x53a70c
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00525db8
leave
ret
Function at 0x402668
Capabilities:
Generate random numbers using the delphi lcg

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

Function at 0x4027f0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x40b010]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x402888
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x402868
xor eax, eax
push ebp
push 0x402861
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 0x4028a4
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 0x402868
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x40b010]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x40b010], ax
mov esp, ebp
pop ebp
ret

Function at 0x402ed0
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x40d034], 0
je 0x402f31
cmp word [0x40d208], 0xd7b2
jne 0x402ef9
cmp dword [0x40d210], 0
jbe 0x402ef9
mov eax, 0x40d204
call dword [0x40d220]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x40b058
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 0x402f58
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x40b01c], 0
jne 0x402f4d
push 0
push 0x40b050
push 0x40b058
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x4035b0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
xor edx, edx
push ebp
push 0x403616
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0xb]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.004031b8
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402684
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x403600
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40361d
lea eax, [ebp - 0x10]
call fcn.0040304c
ret

Function at 0x404688
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef4
push ebx
xor edx, edx
mov dword [ebp - 0x10c], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4046f2
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x105
lea eax, [ebp - 0x105]
push eax
call sub.kernel32.dll_GetSystemDirectoryA
lea eax, [ebp - 0x10c]
lea edx, [ebp - 0x105]
call fcn.0040317c
mov eax, dword [ebp - 0x10c]
mov edx, ebx
call fcn.00404608
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4046f9
lea eax, [ebp - 0x10c]
call fcn.0040304c
ret