joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5a83e0
Capabilities:
Get graphical window text

Disassembly:
push 0xffffffffffffffff
push 0x5d90b6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x98
mov eax, dword [0x7537a0]
push ebx
push esi
mov esi, ecx
mov dword [esp + 8], eax
lea ecx, [esp + 8]
xor ebx, ebx
push ecx
mov ecx, esi
mov dword [esp + 0xac], ebx
call fcn.005c5f1d
cmp dword [0x794ab4], ebx
je 0x5a8450
lea ecx, [esp + 8]
mov dword [esp + 0xa8], 0xffffffff
call fcn.005c3afe
pop esi
pop ebx
mov ecx, dword [esp + 0x98]
mov dword fs:[0], ecx
add esp, 0xa4
ret
mov edx, dword [0x7537a0]
push ebp
push edi
mov edi, 1
mov dword [0x794ab4], edi
mov dword [esp + 0x40], edx
cmp esi, ebx
mov byte [esp + 0xb0], 1
jne 0x5a8479
mov dword [esp + 0x20], ebx
jmp 0x5a8480
mov eax, dword [esi + 0x1c]
mov dword [esp + 0x20], eax
mov ecx, esi
call fcn.005c8065
mov ecx, dword [esi + 0x84]
mov edx, dword [esi + 0x88]
mov dword [esp + 0x24], eax
lea eax, [esp + 0x10]
mov dword [esp + 0x2c], ecx
push eax
lea ecx, [esp + 0x44]
mov dword [esp + 0x2c], 0xffffff96
mov dword [esp + 0x38], 5
mov dword [esp + 0x34], edx
call fcn.005c3beb
mov eax, dword [esi + 0x9c]
mov ecx, dword [esi + 0x94]
mov edx, dword [esi + 0x1c]
cmp eax, ebx
mov dword [esp + 0x64], ecx
mov dword [esp + 0x1c], edx
jne 0x5a84de
mov dword [esp + 0x14], ebx
jmp 0x5a84e5
mov ebp, dword [eax + 0x1c]
mov dword [esp + 0x14], ebp
cmp ecx, 0xd
jne 0x5a84ff
mov eax, dword [eax + 0x3c8]
cmp eax, edi
je 0x5a84f9
cmp eax, 2
jne 0x5a84ff
mov dword [esp + 0x18], edi
jmp 0x5a8503
mov dword [esp + 0x18], ebx
mov eax, dword [esi + 0x20]
cmp eax, ebx
jne 0x5a8511
push edx
call dword [sym.imp.USER32.dll_GetParent]
push eax
call fcn.005c5553
mov edi, eax
cmp edi, ebx
jne 0x5a8521
xor eax, eax
jmp 0x5a8524
mov eax, dword [edi + 0x1c]
mov ebx, dword [sym.imp.USER32.dll_IsWindow]
push eax
call ebx
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
test eax, eax
je 0x5a854c
mov ecx, esi
call fcn.005c8065
mov edx, dword [edi + 0x1c]
lea ecx, [esp + 0x20]
push ecx
push eax
push 0x4e
push edx
call ebp
mov esi, dword [esp + 0x1c]
push esi
call ebx
test eax, eax
je 0x5a8564
push 0
push 0
push 0x10
push esi
call dword [sym.imp.USER32.dll_PostMessageA]
mov eax, dword [esp + 0x18]
mov dword [0x794ab4], 0
test eax, eax
je 0x5a858d
mov esi, dword [esp + 0x14]
push esi
call ebx
test eax, eax
je 0x5a858d
push 1
push 0xd
push 0x100
push esi
call ebp
lea ecx, [esp + 0x40]
mov byte [esp + 0xb0], 0
call fcn.005c3afe
lea ecx, [esp + 0x10]
mov dword [esp + 0xb0], 0xffffffff
call fcn.005c3afe
mov ecx, dword [esp + 0xa8]
pop edi
pop ebp
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0xa4
ret
Function at 0x5aa470
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x5d92a8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
push 0
lea ecx, [esp + 0x20]
call fcn.005ca754
push 0x3e8
lea eax, [esp + 0x20]
push 0x3e8
push eax
mov ecx, esi
mov dword [esp + 0x44], 0
call fcn.005aa3b0
mov ecx, dword [esi + 0x174]
mov eax, dword [esi + 0x178]
add ecx, 0x64
add eax, 0x64
mov dword [esp + 4], ecx
lea ecx, [esp + 4]
push ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0xc], eax
call fcn.005ca682
mov eax, dword [esi + 0x1c]
lea edx, [esp + 0xc]
push edx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 8]
mov edx, dword [esp + 0xc]
mov ecx, eax
mov eax, dword [esp + 0x14]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 4]
cmp dword [esp + 0x44], 1
jne 0x5aa537
cmp dword [esp + 0x40], 1
jne 0x5aa535
cmp ecx, eax
jge 0x5aa537
mov eax, ecx
cmp eax, 0x12c
jge 0x5aa543
mov eax, 0x12c
mov ecx, esi
mov dword [esi + 0x194], eax
mov dword [esi + 0x1dc], 1
call fcn.005aa590
mov ecx, dword [esi + 0x1c]
push 1
push 0
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.005ca7c6
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x5ae850
Capabilities:
Get graphical window text

Disassembly:
push 0xffffffffffffffff
push 0x5d9796
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x98
mov eax, dword [0x7537a0]
push ebx
push ebp
push esi
mov esi, ecx
mov dword [esp + 0xc], eax
lea ecx, [esp + 0xc]
xor ebx, ebx
push ecx
mov ecx, esi
mov dword [esp + 0xb0], ebx
call fcn.005c5f1d
mov edx, dword [0x7537a0]
mov dword [esp + 0x3c], edx
cmp esi, ebx
mov byte [esp + 0xac], 1
jne 0x5ae8aa
mov dword [esp + 0x1c], ebx
jmp 0x5ae8b1
mov eax, dword [esi + 0x1c]
mov dword [esp + 0x1c], eax
push edi
mov ecx, esi
call fcn.005c8065
mov ecx, dword [esi + 0x3c]
mov edx, dword [esi + 0x40]
mov dword [esp + 0x24], eax
lea eax, [esp + 0x10]
mov edi, 1
mov dword [esp + 0x2c], ecx
push eax
lea ecx, [esp + 0x44]
mov dword [esp + 0x2c], 0xffffff96
mov dword [esp + 0x38], edi
mov dword [esp + 0x34], edx
call fcn.005c3beb
mov eax, dword [esi + 0x54]
mov ecx, dword [esi + 0x1c]
cmp eax, ebx
mov dword [esp + 0x64], ebx
mov dword [esp + 0x1c], ecx
jne 0x5ae902
mov dword [esp + 0x14], ebx
jmp 0x5ae909
mov edx, dword [eax + 0x1c]
mov dword [esp + 0x14], edx
cmp dword [esi + 0x44], 0xd
jne 0x5ae924
mov eax, dword [eax + 0x3c8]
cmp eax, edi
je 0x5ae91e
cmp eax, 2
jne 0x5ae924
mov dword [esp + 0x18], edi
jmp 0x5ae928
mov dword [esp + 0x18], ebx
mov eax, dword [esi + 0x20]
cmp eax, ebx
jne 0x5ae936
push ecx
call dword [sym.imp.USER32.dll_GetParent]
push eax
call fcn.005c5553
mov edi, eax
cmp edi, ebx
jne 0x5ae946
xor eax, eax
jmp 0x5ae949
mov eax, dword [edi + 0x1c]
mov ebx, dword [sym.imp.USER32.dll_IsWindow]
push eax
call ebx
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
test eax, eax
je 0x5ae971
mov ecx, esi
call fcn.005c8065
mov edx, dword [edi + 0x1c]
lea ecx, [esp + 0x20]
push ecx
push eax
push 0x4e
push edx
call ebp
mov eax, dword [esp + 0x1c]
push eax
call ebx
test eax, eax
pop edi
je 0x5ae98d
mov ecx, dword [esi + 0x1c]
push 0
push 0
push 0x10
push ecx
call dword [sym.imp.USER32.dll_PostMessageA]
mov eax, dword [esp + 0x14]
test eax, eax
je 0x5ae9ac
mov esi, dword [esp + 0x10]
push esi
call ebx
test eax, eax
je 0x5ae9ac
push 1
push 0xd
push 0x100
push esi
call ebp
lea ecx, [esp + 0x3c]
mov byte [esp + 0xac], 0
call fcn.005c3afe
lea ecx, [esp + 0xc]
mov dword [esp + 0xac], 0xffffffff
call fcn.005c3afe
mov ecx, dword [esp + 0xa4]
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0xa4
ret
Function at 0x5c5f1d
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x5c5f55
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.005c3f59
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.005c3f31
jmp 0x5c5f61
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x5c7791
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x5c77d3
call fcn.005cdf79
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x5c77d3
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x5c77ca
xor eax, eax
jmp 0x5c77db
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.005c77e1
pop edi
pop esi
pop ebx
ret 4

Function at 0x5ce4a9
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x5ce4d7
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x5ce4f5
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.005ce40f
jmp 0x5ce4f5
mov eax, dword [esi + 0x14]
test eax, eax
je 0x5ce4f5
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.005ce40f
test edi, edi
mov eax, edi
jne 0x5ce4df
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x5d0d99
Capabilities:
Check for time delay via gettickcount
Log keystrokes via polling

Disassembly:
sub esp, 0x20
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
xor ebx, ebx
push 1
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
mov dword [esi + 0x38], ebx
call edi
test ax, ax
jge 0x5d0dc1
or dword [esi + 0x38], 1
or dword [esi + 0x34], 2
jmp 0x5d0dd2
push 2
call edi
test ax, ax
jge 0x5d0dd2
or dword [esi + 0x38], 2
or dword [esi + 0x34], 1
mov ebp, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebp
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x34]
push dword [eax + 0x1c]
call dword [sym.imp.USER32.dll_SetCapture]
push eax
call fcn.005c5553
cmp dword [esi + 0x30], ebx
jne 0x5d0eac
mov edi, dword [sym.imp.USER32.dll_PeekMessageA]
mov ebx, 0x100
call dword [sym.imp.USER32.dll_GetCapture]
push eax
call fcn.005c5553
cmp eax, dword [esp + 0x34]
jne 0x5d0eac
push 1
push 0x209
push 0x200
lea eax, [esp + 0x20]
push 0
push eax
call edi
test eax, eax
jne 0x5d0e48
push 1
push 0x108
push ebx
push eax
lea eax, [esp + 0x24]
push eax
call edi
test eax, eax
je 0x5d0e8d
mov eax, dword [esp + 0x18]
cmp eax, 0x202
je 0x5d0eac
cmp eax, 0x205
je 0x5d0eac
cmp eax, 0x201
je 0x5d0eac
cmp eax, 0x204
je 0x5d0eac
cmp eax, ebx
jne 0x5d0e73
cmp dword [esp + 0x1c], 0x1b
je 0x5d0eac
push dword [esp + 0x2c]
lea eax, [esi + 0x20]
push dword [esp + 0x2c]
push eax
call dword [sym.imp.USER32.dll_PtInRect]
neg eax
sbb eax, eax
inc eax
mov dword [esi + 0x30], eax
call ebp
sub eax, dword [esp + 0x10]
cmp eax, dword [0x7968c4]
jbe 0x5d0ea2
mov dword [esi + 0x30], 1
cmp dword [esi + 0x30], 0
je 0x5d0e05
call dword [sym.imp.USER32.dll_ReleaseCapture]
mov eax, dword [esi + 0x30]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 4
Function at 0x401550
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
push edi
xor edi, edi
test ebx, ebx
je 0x401702
push ebp
mov ebp, dword [esp + 0x10]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseEventLog]
nop dword [eax]
push 0
call esi
add byte [edi + ebp], 0x53
push 0
call esi
add byte [edi + ebp], 0x50
push 0
call esi
xor byte [edi + ebp], 0xea
push 0
call esi
add byte [edi + ebp], 0xca
push 0
call esi
inc byte [edi + ebp]
push 0
call esi
add byte [edi + ebp], 0xc7
push 0
call esi
add byte [edi + ebp], 0xfc
push 0
call esi
xor byte [edi + ebp], 0xaf
push 0
call esi
add byte [edi + ebp], 0x79
push 0
call esi
add byte [edi + ebp], 0x43
push 0
call esi
xor byte [edi + ebp], 0xbb
push 0
call esi
add byte [edi + ebp], 0x72
push 0
call esi
add byte [edi + ebp], 0xe0
push 0
call esi
add byte [edi + ebp], 0xfe
push 0
call esi
add byte [edi + ebp], 0x74
push 0
call esi
add byte [edi + ebp], 0xdf
push 0
call esi
xor byte [edi + ebp], 0x65
push 0
call esi
add byte [edi + ebp], 0xc4
push 0
call esi
add byte [edi + ebp], 0xdd
push 0
call esi
add byte [edi + ebp], 0xfb
push 0
call esi
add byte [edi + ebp], 0xa7
push 0
call esi
add byte [edi + ebp], 0xb0
push 0
call esi
add byte [edi + ebp], 0x6a
push 0
call esi
add byte [edi + ebp], 0xd2
push 0
call esi
add byte [edi + ebp], 0x44
push 0
call esi
xor byte [edi + ebp], 0xd5
push 0
call esi
add byte [edi + ebp], 0xa4
push 0
call esi
add byte [edi + ebp], 8
push 0
call esi
add byte [edi + ebp], 0xce
push 0
call esi
add byte [edi + ebp], 0x37
push 0
call esi
add byte [edi + ebp], 0xbd
push 0
call esi
xor byte [edi + ebp], 0xcd
push 0
call esi
xor byte [edi + ebp], 0x68
push 0
call esi
xor byte [edi + ebp], 0xcc
push 0
call esi
add byte [edi + ebp], 0x49
push 0
call esi
add byte [edi + ebp], 0x5b
push 0
call esi
xor byte [edi + ebp], 0x99
push 0
call esi
add byte [edi + ebp], 0x87
push 0
call esi
add byte [edi + ebp], 0x5e
push 0
call esi
xor byte [edi + ebp], 0x2a
push 0
call esi
sub byte [edi + ebp], 0x80
push 0
call esi
xor byte [edi + ebp], 3
push 0
call esi
add byte [edi + ebp], 0xbf
push 0
call esi
xor byte [edi + ebp], 0x81
push 0
call esi
add byte [edi + ebp], 0x91
push 0
call esi
xor byte [edi + ebp], 0x7e
push 0
call esi
add byte [edi + ebp], 0xb6
push 0
call esi
add byte [edi + ebp], 0xd8
push 0
call esi
add byte [edi + ebp], 0xec
inc edi
cmp edi, ebx
jb 0x401570
pop esi
pop ebp
pop edi
pop ebx
ret
Function at 0x401940
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push esi
push edi
mov eax, 0x1a1
cmp eax, 0x24
ja 0x40194e
call 0xc5618e1
inc eax
inc ecx
add byte [ebx + ecx*4 + 0x3d], ah
xor byte [eax], al
add byte [eax], al
call dword [sym.imp.KERNEL32.dll_FreeConsole]
mov edi, dword fs:[0x30]
mov edi, dword [edi + 0xc]
mov esi, dword [edi + 0xc]
mov eax, dword [esi]
mov eax, dword [eax]
mov eax, dword [eax + 0x18]
mov dword [0x44b000], eax
push 0
call dword [sym.imp.ADVAPI32.dll_GetSidSubAuthorityCount]
sub eax, eax
je 0x40197b
jmp 0xd040823a
push 0x2d000
push section..pal
call fcn.00401550
add esp, 8
call fcn.004011b0
pop edi
xor eax, eax
pop esi
ret

Function at 0x4024a2
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4024e1
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4024e1
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4024e1
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x4024e1
cmp dword [ecx + 0x74], 0xe
jbe 0x4024e1
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x408a74
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x416860
push 0x416858
push str.FlsAlloc
push 0x1e
call fcn.00408935
mov esi, eax
add esp, 0x10
test esi, esi
je 0x408aa8
push dword [ebp + 8]
mov ecx, esi
call dword [0x414124]
call esi
jmp 0x408aae
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x408af2
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x416870
push 0x416868
push str.FlsGetValue
push 0x20
call fcn.00408935
mov esi, eax
add esp, 0x10
test esi, esi
je 0x408b29
push dword [ebp + 8]
mov ecx, esi
call dword [0x414124]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x4029f4
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00404010
test esi, esi
jne 0x402a2a
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00404100
jmp 0x402a48
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00402908
mov edi, eax
test esi, esi
je 0x402a48
cmp dword [ebx], 0
je 0x402a48
dec esi
jmp 0x402a31
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x402cbc
Capabilities:
Generate random numbers using the delphi lcg

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

Function at 0x403138
Capabilities:
Query or enumerate registry value

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

Function at 0x403e94
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x46a048], 0
je 0x403ef5
cmp word [0x46a21c], 0xd7b2
jne 0x403ebd
cmp dword [0x46a224], 0
jbe 0x403ebd
mov eax, 0x46a218
call dword [0x46a234]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x468070
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 0x403f1c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x468034], 0
jne 0x403f11
push 0
push 0x468068
push 0x468070
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x4052a0
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 0x4054d0
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x405323
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x4054d0
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x405323
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x4054ec
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x4053ac
xor eax, eax
push ebp
push 0x4053a5
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.004050e8
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 0x40538a
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x40550c
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x40538a
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 0x4053ac
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 0x4054c6
cmp byte [ebp - 0xd], 0
jne 0x4053f3
cmp byte [ebp - 0x12], 0
je 0x4054c6
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x40540c
dec ebx
cmp byte [ebx], 0x2e
je 0x40541b
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x40540b
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x4054c6
inc ebx
cmp byte [ebp - 0x12], 0
je 0x405458
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 0x4054c6
cmp byte [ebp - 0xd], 0
je 0x4054c6
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 0x4054c6
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 0x405b98
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 0x405bfe
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.00404280
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402cd8
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x405be8
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405c05
lea eax, [ebp - 0x10]
call fcn.00404010
ret

Function at 0x40ad4c
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 0x40ad85
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404100
jmp 0x40ad8e
mov eax, ebx
mov edx, esi
call fcn.00404064
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40ad98
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 0x40adb9
mov al, byte [esp]
jmp 0x40adbb
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40b440
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40b2b8
mov eax, dword [0x469964]
cmp byte [eax], 0
je 0x40b4bc
mov eax, dword [0x469774]
call fcn.00402b28
call fcn.00402834
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x48]
push eax
call sub.user32.dll_CharToOemA
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.004084ec
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff4
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 0x40b504
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40b4f2
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x469724]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x46a664]
call fcn.004050ac
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