joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46c670
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x46c6a8]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x46c689
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x46c698
or bl, 4
test esi, 0x20000000
je 0x46c6a3
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x472e48
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x472e5a
add esp, 0xfffffff0
call fcn.00403614
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.004214b8
mov eax, dword [0x492ae0]
mov dword [eax + 4], ebx
mov dword [eax], 0x4731ec
mov eax, dword [0x492aec]
mov dword [eax + 4], ebx
mov dword [eax], 0x4731f8
mov eax, ebx
call fcn.00473204
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x4162e0]
call fcn.00403280
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x4162e0]
call fcn.00403280
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x4162e0]
call fcn.00403280
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x4162e0]
call fcn.00403280
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x4162e0]
call fcn.00403280
mov dword [ebx + 0x7c], eax
push 0
call sub.user32.dll_GetDC
mov esi, eax
push 0x5a
push esi
call sub.gdi32.dll_GetDeviceCaps
mov dword [ebx + 0x40], eax
push esi
push 0
call sub.user32.dll_ReleaseDC
mov eax, dword [ebx + 0x58]
push eax
mov eax, 0x46f620
push eax
push 0
push 0
mov eax, dword [0x492c50]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x422f4c]
call fcn.004246c0
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x422f4c]
call fcn.004246c0
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x422f4c]
call fcn.004246c0
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.00473624
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x473500
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x473500
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x473500
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x472f97
call fcn.0040366c
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x4732e4
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 0x47348f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x473470
mov dl, 1
mov eax, dword [0x416944]
call fcn.00403280
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.004040c4
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x47345f
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.00460330
test al, al
je 0x473452
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, 0x4734a0
lea eax, [ebp - 0x254]
call fcn.004092e4
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x473452
xor eax, eax
push ebp
push 0x47344b
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 0x4734d8
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x473434
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404334
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 0x473434
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404334
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x473452
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x473355
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.0041afb0
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 0x473496
lea eax, [ebp - 0x260]
call fcn.004040c4
ret

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

Disassembly:
push ecx
mov eax, dword [0x493bf0]
cmp byte [eax + 0xa5], 0
jne 0x473e35
cmp dword [0x493c08], 0
jne 0x473df6
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x473d80
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x493c08], eax
cmp dword [0x493c04], 0
jne 0x473e11
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x493c04], eax
cmp dword [0x493c0c], 0
jne 0x473e35
push esp
push 0
push 0
push 0x473d24
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread_1
mov dword [0x493c0c], eax
pop edx
ret
Function at 0x473f2c
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x473f43
add esp, 0xfffffff0
call fcn.00403614
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.004214b8
mov eax, dword [0x492c3c]
cmp word [eax + 2], 0
jne 0x473f6b
mov eax, dword [0x492c3c]
mov dword [eax + 4], ebx
mov dword [eax], fcn.004756ac
mov eax, dword [0x492d04]
cmp word [eax + 2], 0
jne 0x473f85
mov eax, dword [0x492d04]
mov dword [eax + 4], ebx
mov dword [eax], fcn.004758a4
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x4162e0]
call fcn.00403280
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x4162e0]
call fcn.00403280
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 [0x423a2c]
call fcn.0042b25c
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x47410c
mov eax, dword [0x492b4c]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.0042b62c
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x475e44
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x492b4c]
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.0040ca98
test eax, eax
je 0x47407a
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00408cc4
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040cac0
test eax, eax
je 0x47408e
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.00404334
mov eax, dword [0x492a24]
cmp byte [eax], 0
jne 0x4740c2
mov eax, ebx
call fcn.00474234
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.00476020
mov eax, ebx
call fcn.004769e4
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x474102
call fcn.0040366c
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4744b4
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x493bf0]
cmp dword [eax + 0x30], 0
je 0x47455e
cmp dword [ebx + 0x94], 0
jne 0x474558
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x474444
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x474558
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 0x47451e
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x474558
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.00418bc0
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x47452d
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x4750c0
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 0x4750f5
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.004041b4
jmp 0x475102
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404118
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x4761fc
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x47623d
mov eax, esi
call fcn.0045b8b4
test al, al
je 0x47623d
mov eax, dword [ebx + 0x84]
call fcn.0045b5b0
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x47623d
push 0
mov eax, dword [ebx + 0x84]
call fcn.0045b5b0
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret

Function at 0x47b790
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x14], 0xca
jne 0x47b7be
mov eax, ebx
call fcn.0047c244
cmp dword [ebx + 0x40], 0
je 0x47b7b7
mov dword [ebx + 0x14], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x14], 0xcb
cmp dword [ebx + 0x14], 0xcb
jne 0x47b82f
mov edx, dword [ebx + 0x1b4]
cmp dword [edx + 0x10], 0
je 0x47b821
cmp dword [ebx + 8], 0
je 0x47b7e0
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1b4]
call dword [edx]
test eax, eax
jne 0x47b7f2
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x47b821
cmp dword [ebx + 8], 0
je 0x47b7d3
cmp eax, 3
je 0x47b805
dec eax
jne 0x47b7d3
mov edx, dword [ebx + 8]
inc dword [edx + 4]
mov ecx, dword [edx + 4]
mov eax, dword [ebx + 8]
cmp ecx, dword [eax + 8]
jl 0x47b7d3
mov edx, dword [ebx + 0x140]
add dword [eax + 8], edx
jmp 0x47b7d3
mov ecx, dword [ebx + 0x90]
mov dword [ebx + 0x98], ecx
jmp 0x47b84d
cmp dword [ebx + 0x14], 0xcc
je 0x47b84d
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x14
mov edx, dword [ebx + 0x14]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.0047b858
pop ebx
ret
Function at 0x4028b8
Capabilities:
Generate random numbers using the delphi lcg

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

Function at 0x402d40
Capabilities:
Query or enumerate registry value

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

Function at 0x403794
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x42604c], 0
je 0x4037f5
cmp word [0x426220], 0xd7b2
jne 0x4037bd
cmp dword [0x426228], 0
jbe 0x4037bd
mov eax, 0x42621c
call dword [0x426238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x42506c
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 0x40381c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x425030], 0
jne 0x403811
push 0
push 0x425064
push 0x42506c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x404f80
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 0x4051b0
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x405003
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x4051b0
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x405003
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x4051cc
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x40508c
xor eax, eax
push ebp
push 0x405085
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00404dc8
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 0x40506a
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x4051ec
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x40506a
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 0x40508c
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 0x4051a6
cmp byte [ebp - 0xd], 0
jne 0x4050d3
cmp byte [ebp - 0x12], 0
je 0x4051a6
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x4050ec
dec ebx
cmp byte [ebx], 0x2e
je 0x4050fb
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x4050eb
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x4051a6
inc ebx
cmp byte [ebp - 0x12], 0
je 0x405138
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 0x4051a6
cmp byte [ebp - 0xd], 0
je 0x4051a6
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 0x4051a6
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 0x40508c
Capabilities:
Get geographical location

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 0x4051b0
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x405003
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x4051b0
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x405003
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x4051cc
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x40508c
xor eax, eax
push ebp
push 0x405085
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00404dc8
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 0x40506a
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x4051ec
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x40506a
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 0x40508c
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 0x4051a6
cmp byte [ebp - 0xd], 0
jne 0x4050d3
cmp byte [ebp - 0x12], 0
je 0x4051a6
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x4050ec
dec ebx
cmp byte [ebx], 0x2e
je 0x4050fb
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x4050eb
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x4051a6
inc ebx
cmp byte [ebp - 0x12], 0
je 0x405138
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 0x4051a6
cmp byte [ebp - 0xd], 0
je 0x4051a6
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 0x4051a6
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 0x405368
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 0x4053ce
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.00403ba0
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.004028d4
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x4053b8
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4053d5
lea eax, [ebp - 0x10]
call fcn.00403930
ret

Function at 0x4065f0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeec
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x114], ecx
mov esi, edx
mov ebx, eax
lea edi, [ebp - 4]
xor eax, eax
push ebp
push 0x4066eb
push dword fs:[eax]
mov dword fs:[eax], esp
test ebx, ebx
jne 0x406644
push 0x105
lea eax, [ebp - 0x10d]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA_2
mov ecx, eax
lea edx, [ebp - 0x10d]
mov eax, esi
call fcn.00403a20
jmp 0x4066d2
call sub.kernel32.dll_GetCommandLineA_1
mov dword [edi], eax
mov eax, dword [edi]
call fcn.00406578
mov dword [edi], eax
mov eax, dword [edi]
mov dword [ebp - 8], eax
mov eax, dword [edi]
call fcn.004065a0
mov dword [edi], eax
test ebx, ebx
je 0x406672
dec ebx
test ebx, ebx
jl 0x406672
mov eax, dword [edi]
cmp eax, dword [ebp - 8]
jne 0x40664b
push esi
lea eax, [ebp - 0x114]
mov edx, dword [ebp - 8]
call fcn.00403b28
mov eax, dword [ebp - 0x114]
mov ecx, dword [edi]
sub ecx, dword [ebp - 8]
mov edx, 1
call fcn.00403e2c
mov eax, dword [esi]
call fcn.00403bcc
cmp eax, 2
jl 0x4066d2
mov eax, dword [esi]
cmp byte [eax], 0x22
jne 0x4066d2
mov eax, dword [esi]
call fcn.00403bcc
mov edx, dword [esi]
cmp byte [edx + eax - 1], 0x22
jne 0x4066d2
push esi
mov eax, dword [esi]
call fcn.00403bcc
mov ecx, eax
sub ecx, 2
mov eax, dword [esi]
mov edx, 2
call fcn.00403e2c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4066f2
lea eax, [ebp - 0x114]
call fcn.00403930
ret

Function at 0x407408
Capabilities:
Create thread

Disassembly:
push ebx
mov eax, dword [0x4258f8]
mov byte [eax], 1
mov edx, dword [0x405ab0]
xor eax, eax
call fcn.004090f0
mov ebx, eax
mov byte [ebx + 0x18], 1
lea eax, [ebx + 0x1e]
push eax
push 4
push ebx
push 0x4073f8
push 0
push 0
call sub.kernel32.dll_CreateThread
mov dword [ebx + 0x1a], eax
mov eax, ebx
pop ebx
ret

Function at 0x4074d0
Capabilities:
Resume thread

Disassembly:
push ebx
mov ebx, eax
mov byte [ebx + 0x18], 0
mov eax, dword [ebx + 0x1a]
push eax
call sub.kernel32.dll_ResumeThread
cmp eax, 1
jbe 0x4074eb
mov byte [ebx + 0x18], 1
pop ebx
ret
cmp word [ebx + 0x2c], 0
je 0x4074fa
mov edx, ebx
mov eax, dword [ebx + 0x2e]
call dword [ebx + 0x2a]
pop ebx
ret

Function at 0x4074fc
Capabilities:
Terminate thread

Disassembly:
push ebx
mov ebx, eax
push 0
mov eax, dword [ebx + 0x1a]
push eax
call sub.kernel32.dll_TerminateThread
mov byte [ebx + 0x19], 1
pop ebx
ret