joyce8/EMBER2024-capa huggingface dataset:
Function at 0x458e00
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda0
push ebx
xor edx, edx
mov dword [ebp - 0x260], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x458fab
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x458f8c
mov dl, 1
mov eax, dword [0x415b28]
call fcn.0040328c
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.0040400c
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x458f7b
inc eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.00446d40
test al, al
je 0x458f6e
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x25c], eax
mov byte [ebp - 0x258], 0
lea ecx, [ebp - 0x25c]
mov edx, 0x458fbc
lea eax, [ebp - 0x254]
call fcn.0040902c
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x458f6e
xor eax, eax
push ebp
push 0x458f67
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], pe_nt_image_headers32
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push 0x458ff4
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x458f50
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.0040427c
mov edx, dword [ebp - 0x260]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x3c]
jne 0x458f50
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.0040427c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x458f6e
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x458e71
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.00419604
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x34]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x458fb2
lea eax, [ebp - 0x260]
call fcn.0040400c
ret

Function at 0x4598e0
Capabilities:
Create thread
Set global application hook

Disassembly:
push ecx
mov eax, dword [0x467be0]
cmp byte [eax + 0xa5], 0
jne 0x459951
cmp dword [0x467bf8], 0
jne 0x459912
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x45989c
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x467bf8], eax
cmp dword [0x467bf4], 0
jne 0x45992d
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x467bf4], eax
cmp dword [0x467bfc], 0
jne 0x459951
push esp
push 0
push 0
push 0x459840
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x467bfc], eax
pop edx
ret
Function at 0x459a48
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x459a5f
add esp, 0xfffffff0
call fcn.004035e0
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041d414
mov eax, dword [0x466208]
cmp word [eax + 2], 0
jne 0x459a87
mov eax, dword [0x466208]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0045b120
mov eax, dword [0x4662bc]
cmp word [eax + 2], 0
jne 0x459aa1
mov eax, dword [0x4662bc]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0045b318
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x41570c]
call fcn.0040328c
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x41570c]
call fcn.0040328c
mov dword [ebx + 0xa8], eax
xor eax, eax
mov dword [ebx + 0x60], eax
xor eax, eax
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x5c], 0xff000018
mov dword [ebx + 0x78], 0x1f4
mov byte [ebx + 0x7c], 1
xor eax, eax
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x74], 0x9c4
mov byte [ebx + 0x88], 0
mov byte [ebx + 0x9d], 1
mov byte [ebx + 0xb4], 1
mov dl, 1
mov eax, dword [0x41fa00]
call fcn.00427408
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x459c28
mov eax, dword [0x466124]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.004277d8
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x45b8c8
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x466124]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameA_1
lea eax, [ebp - 0x101]
push eax
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_OemToCharA
lea eax, [ebp - 0x101]
mov dl, 0x5c
call fcn.0040c784
test eax, eax
je 0x459b96
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00408a20
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040c7ac
test eax, eax
je 0x459baa
mov byte [eax], 0
lea eax, [ebp - 0x101]
inc eax
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.0040427c
mov eax, dword [0x465fec]
cmp byte [eax], 0
jne 0x459bde
mov eax, ebx
call fcn.00459d50
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0x9e], 1
xor eax, eax
mov dword [ebx + 0xa0], eax
mov eax, ebx
call fcn.0045baa4
mov eax, ebx
call fcn.0045c468
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x459c1e
call fcn.00403638
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x459fd0
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x467be0]
cmp dword [eax + 0x30], 0
je 0x45a07a
cmp dword [ebx + 0x94], 0
jne 0x45a074
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x459f60
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x45a074
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x45a03a
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x45a074
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.00417a74
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x45a049
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x45abdc
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x45ac11
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.004040fc
jmp 0x45ac1e
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404060
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x45bc80
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x45bcc1
mov eax, esi
call fcn.0044236c
test al, al
je 0x45bcc1
mov eax, dword [ebx + 0x84]
call fcn.00442068
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x45bcc1
push 0
mov eax, dword [ebx + 0x84]
call fcn.00442068
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x45c9dc
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x48], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
lea eax, [ebp - 0x10]
mov edx, dword [0x414cb4]
call fcn.004049a4
xor eax, eax
push ebp
push 0x45cb20
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x465f6c], 0
jne 0x45ca2f
mov ecx, dword [0x465ffc]
mov dl, 1
mov eax, dword [0x407204]
call fcn.0040ba28
call fcn.00403a48
lea eax, [ebp - 0x20]
xor ecx, ecx
mov edx, 0x10
call fcn.00402cd0
mov eax, ebx
call fcn.00404874
mov dword [ebp - 0x1c], eax
push esi
push edi
mov esi, 0x45cb30
lea edi, [ebp - 0x30]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop edi
pop esi
lea eax, [ebp - 0x30]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0xc]
call fcn.00405928
xor eax, eax
mov dword [ebp - 8], eax
mov eax, ebx
call fcn.00404884
test eax, eax
jle 0x45cac7
mov dword [ebp - 4], 0x10
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x40]
push eax
call sub.kernel32.dll_GetComputerNameA
test eax, eax
je 0x45cac0
lea eax, [ebp - 0x44]
mov edx, ebx
call fcn.00404294
mov eax, dword [ebp - 0x44]
push eax
lea eax, [ebp - 0x48]
lea edx, [ebp - 0x40]
mov ecx, 0x10
call fcn.0040427c
mov eax, dword [ebp - 0x48]
pop edx
call fcn.00408044
test eax, eax
jne 0x45cac0
mov ebx, 0x15
jmp 0x45cacc
mov ebx, 0x10
jmp 0x45cacc
mov ebx, 0x15
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 0x20]
push eax
push ebx
push 0
push esi
call dword [0x465f6c]
call fcn.0045c8d8
mov eax, dword [ebp - 8]
call fcn.0045c8d8
mov eax, edi
mov edx, dword [ebp - 0xc]
call fcn.00405940
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45cb27
lea eax, [ebp - 0x48]
mov edx, 2
call fcn.00404030
lea eax, [ebp - 0x10]
mov edx, dword [0x414cb4]
call fcn.00404a74
ret
Function at 0x463508
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004044bc
mov eax, dword [ebp - 8]
call fcn.004044bc
mov eax, dword [ebp - 0xc]
call fcn.004044bc
xor eax, eax
push ebp
push 0x463614
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x14]
mov edx, dword [ebp - 4]
call fcn.004040a4
mov eax, dword [ebp - 0xc]
call fcn.004044cc
push eax
mov eax, dword [ebp - 8]
call fcn.004044cc
push eax
mov eax, dword [0x467668]
push eax
call sub.kernel32.dll_FindResourceA
mov ebx, eax
test ebx, ebx
je 0x4635f1
push ebx
mov eax, dword [0x467668]
push eax
call sub.kernel32.dll_SizeofResource
mov edi, eax
test edi, edi
je 0x4635f1
push ebx
mov eax, dword [0x467668]
push eax
call sub.kernel32.dll_LoadResource
mov ebx, eax
test ebx, ebx
je 0x4635f1
push ebx
call sub.kernel32.dll_LockResource
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x4635f1
push 0
push 0x80
push 2
push 0
push 2
push 0x40000000
mov eax, dword [ebp - 0x14]
call fcn.004044cc
push eax
call sub.kernel32.dll_CreateFileA
mov esi, eax
cmp esi, 0xffffffff
je 0x4635f1
push 0
lea eax, [ebp - 0x18]
push eax
push edi
mov eax, dword [ebp - 0x10]
push eax
push esi
call sub.kernel32.dll_WriteFile_1
push esi
call sub.kernel32.dll_CloseHandle
mov eax, ebx
call fcn.00406c48
push ebx
call sub.kernel32.dll_FreeResource
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46361b
lea eax, [ebp - 0x14]
call fcn.0040400c
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00404030
ret
Function at 0x4636b0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeec
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 0x114], eax
mov dword [ebp - 0x110], eax
mov dword [ebp - 0x10c], eax
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x4638af
push dword fs:[eax]
mov dword fs:[eax], esp
push pe_nt_image_headers32
lea eax, [ebp - 0x108]
push eax
call sub.kernel32.dll_GetSystemDirectoryA
mov dl, 1
mov eax, dword [0x415b28]
call fcn.0040328c
mov dword [ebp - 4], eax
mov edx, 0x4638c8
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov edx, 0x4638e4
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov edx, 0x463904
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x38]
xor eax, eax
push ebp
push 0x463774
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x10c]
lea edx, [ebp - 0x108]
mov ecx, pe_nt_image_headers32
call fcn.0040427c
lea eax, [ebp - 0x10c]
mov edx, 0x463928
call fcn.004042d4
mov edx, dword [ebp - 0x10c]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x74]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x463788
lea eax, [ebp - 0x110]
lea edx, [ebp - 0x108]
mov ecx, pe_nt_image_headers32
call fcn.0040427c
mov edx, dword [ebp - 0x110]
lea eax, [ebp - 8]
mov ecx, 0x463960
call fcn.00404318
mov eax, dword [ebp - 8]
call fcn.00408824
test al, al
jne 0x4637cf
mov ecx, 0x463978
mov edx, 0x463984
mov eax, dword [ebp - 8]
call fcn.00463508
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x44]
mov eax, dword [ebp - 8]
call fcn.00408824
test al, al
je 0x463827
lea eax, [ebp - 0x114]
lea edx, [ebp - 0x108]
mov ecx, pe_nt_image_headers32
call fcn.0040427c
lea eax, [ebp - 0x114]
mov edx, 0x463960
call fcn.004042d4
mov eax, dword [ebp - 0x114]
call fcn.00463624
test al, al
jne 0x463834
mov edx, 0x463998
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x38]
jmp 0x463834
mov edx, 0x4639b8
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x14]
test eax, eax
jle 0x463881
xor eax, eax
push ebp
push 0x46386d
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x4663a0]
mov eax, dword [eax]
mov edx, dword [eax + 0x308]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x74]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x463881
mov eax, dword [ebp - 4]
call fcn.004032bc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4638b6
lea eax, [ebp - 0x114]
mov edx, 3
call fcn.00404030
lea eax, [ebp - 8]
call fcn.0040400c
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x441430
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x2f000]
push edi
jmp 0x44144a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x441451
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x441440
mov eax, 1
add ebx, ebx
jne 0x441463
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x441458
jne 0x441474
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x441458
xor ecx, ecx
sub eax, 3
jb 0x441488
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4414fa
mov ebp, eax
add ebx, ebx
jne 0x441493
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x4414a0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x4414c4
inc ecx
add ebx, ebx
jne 0x4414b0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4414a5
jne 0x4414c1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4414a5
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4414e4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4414d5
jmp 0x441446
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4414e4
add edi, ecx
jmp 0x441446
pop esi
mov edi, esi
mov ecx, 0xa88
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x441502
cmp byte [edi], 0x12
jne 0x441502
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x441507
lea edi, [esi + 0x3f000]
mov eax, dword [edi]
or eax, eax
je 0x44157f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x5987c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x5995c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x441534
mov ecx, edi
jns 0x441563
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x59964]
or eax, eax
je 0x441579
mov dword [ebx], eax
add ebx, 4
jmp 0x441551
call dword [esi + 0x59960]
mov ebp, dword [esi + 0x59968]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x17f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x4415b3
sub esp, 0xffffff80
jmp 0x41c35f
Function at 0x402e40
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 0x4033f8
Capabilities:
Query or enumerate registry value

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

Function at 0x404170
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x486048], 0
je 0x4041d1
cmp word [0x48621c], 0xd7b2
jne 0x404199
cmp dword [0x486224], 0
jbe 0x404199
mov eax, 0x486218
call dword [0x486234]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x484058
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 0x4041f8
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x484020], 0
jne 0x4041ed
push 0
push 0x484078
push 0x484058
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x405c70
Capabilities:
Get geographical location
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x11d]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405ea0
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x405cf3
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405ea0
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x405cf3
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405ebc
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x405d7c
xor eax, eax
push ebp
push 0x405d75
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00405ab8
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x405d5a
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x405edc
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x405d5a
mov byte [ebp - 0x12], 0
mov byte [ebp - 0xe], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405d7c
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
ret
push 0x105
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrcpynA
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.kernel32.dll_GetThreadLocale
push eax
call sub.kernel32.dll_GetLocaleInfoA
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x405e96
cmp byte [ebp - 0xd], 0
jne 0x405dc3
cmp byte [ebp - 0x12], 0
je 0x405e96
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x405ddc
dec ebx
cmp byte [ebx], 0x2e
je 0x405deb
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x405ddb
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x405e96
inc ebx
cmp byte [ebp - 0x12], 0
je 0x405e28
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x405e96
cmp byte [ebp - 0xd], 0
je 0x405e96
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x405e96
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4099b4
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x4099ed
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.004043dc
jmp 0x4099f6
mov eax, ebx
mov edx, esi
call fcn.00404340
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x409a00
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x409a21
mov al, byte [esp]
jmp 0x409a23
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40a0a8
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x409f20
mov eax, dword [0x4859cc]
cmp byte [eax], 0
je 0x40a110
mov eax, dword [0x4857ec]
call fcn.00402ca0
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.00408bd8
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x40a158
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40a146
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x4857a0]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x486714]
call fcn.00405a7c
push eax
call sub.user32.dll_LoadStringA_1
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
call sub.user32.dll_MessageBoxA_1
add esp, 0x444
ret

Function at 0x40acbc
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
mov dword [ebp - 0xc], edx
xor edx, edx
push ebp
push 0x40ad20
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 7]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.00404554
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.004086e0
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40ad27
lea eax, [ebp - 0xc]
call fcn.004042ec
ret