joyce8/EMBER2024-capa huggingface dataset:
Function at 0x460c6c
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x460c7e
add esp, 0xfffffff0
call fcn.00403fa4
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041fe98
mov eax, dword [0x47eaf0]
mov dword [eax + 4], ebx
mov dword [eax], 0x461080
mov eax, dword [0x47eafc]
mov dword [eax + 4], ebx
mov dword [eax], 0x46108c
mov eax, ebx
call fcn.00461098
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x4169dc]
call fcn.00403b3c
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x4169dc]
call fcn.00403b3c
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x4169dc]
call fcn.00403b3c
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x4169dc]
call fcn.00403b3c
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x4169dc]
call fcn.00403b3c
mov dword [ebx + 0x74], 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, 0x45c0bc
push eax
push 0
push 0
mov eax, dword [0x47ec7c]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x4242b8]
call fcn.00425d38
mov dword [ebx + 0x7c], eax
mov dl, 1
mov eax, dword [0x4242b8]
call fcn.00425d38
mov dword [ebx + 0x80], eax
mov dl, 1
mov eax, dword [0x4242b8]
call fcn.00425d38
mov dword [ebx + 0x78], eax
mov dl, 1
mov eax, dword [0x4242b8]
call fcn.00425d38
mov dword [ebx + 0x84], eax
mov eax, ebx
call fcn.00461590
mov eax, dword [ebx + 0x7c]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x461468
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x461468
mov eax, dword [ebx + 0x78]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x461468
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x461468
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x460dd1
call fcn.00403ffc
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x461208
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffc60
push ebx
xor edx, edx
mov dword [ebp - 0x3a0], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4613b5
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x461396
mov dl, 1
mov eax, dword [0x416e54]
call fcn.0041b2e4
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
xor edx, edx
call fcn.004054d8
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x461385
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.00450f28
test al, al
je 0x461378
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x39c], eax
mov byte [ebp - 0x398], 0
lea ecx, [ebp - 0x39c]
mov edx, 0x4613c4
lea eax, [ebp - 0x394]
call fcn.0040b568
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW_1
test eax, eax
jne 0x461378
xor eax, eax
push ebp
push 0x461371
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0x200
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x314]
push eax
push 0
push 0
push 0x461434
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW_1
test eax, eax
jne 0x46135a
lea eax, [ebp - 0x3a0]
lea edx, [ebp - 0x314]
mov ecx, pe_nt_image_headers32
call fcn.00405690
mov edx, dword [ebp - 0x3a0]
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 0x46135a
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x314]
mov ecx, pe_nt_image_headers32
call fcn.00405690
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x461378
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x46127b
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x29], 0
mov dl, 1
call fcn.0041b0d0
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 0x4613bc
lea eax, [ebp - 0x3a0]
call fcn.004054c8
ret

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

Disassembly:
push ecx
mov eax, dword [0x48417c]
cmp byte [eax + 0xa9], 0
jne 0x461e16
cmp dword [0x484194], 0
jne 0x461dd6
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, dword [0x47e9d4]
push eax
push 3
call sub.user32.dll_SetWindowsHookExW
mov dword [0x484194], eax
cmp dword [0x484190], 0
jne 0x461df1
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventW
mov dword [0x484190], eax
cmp dword [0x484198], 0
jne 0x461e16
push esp
push 0
push 0
mov eax, dword [0x47e9d0]
push eax
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread_1
mov dword [0x484198], eax
pop edx
ret
Function at 0x46202c
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdfc
push ebx
push esi
test dl, dl
je 0x462043
add esp, 0xfffffff0
call fcn.00403fa4
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041fe98
mov eax, dword [0x47ea40]
cmp byte [eax], 0
jne 0x462070
push 0
call sub.ole32.dll_OleInitialize
test eax, 0x80000000
sete al
mov byte [ebx + 0x17c], al
mov eax, dword [0x47ec60]
cmp word [eax + 2], 0
jne 0x46208a
mov eax, dword [0x47ec60]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00463f1c
mov eax, dword [0x47ed24]
cmp word [eax + 2], 0
jne 0x4620a4
mov eax, dword [0x47ed24]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0046412c
mov byte [ebx + 0x31], 0
mov dl, 1
mov eax, dword [0x4242b8]
call fcn.00425d38
mov esi, eax
mov dword [ebx + 0x38], esi
mov dword [esi + 0xc], ebx
mov dword [esi + 8], 0x4645b0
mov dl, 1
mov eax, dword [0x4169dc]
call fcn.00403b3c
mov dword [ebx + 0x8c], eax
mov dl, 1
mov eax, dword [0x4169dc]
call fcn.00403b3c
mov dword [ebx + 0xac], eax
xor eax, eax
mov dword [ebx + 0x5c], eax
xor eax, eax
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x58], 0xff000018
mov dword [ebx + 0x74], 0x1f4
mov byte [ebx + 0x78], 1
xor eax, eax
mov dword [ebx + 0x7c], eax
mov dword [ebx + 0x70], 0x9c4
mov byte [ebx + 0x84], 0
mov byte [ebx + 0xa1], 1
mov byte [ebx + 0xb8], 1
mov dl, 1
mov eax, dword [0x424b10]
call fcn.0042b75c
mov esi, eax
mov dword [ebx + 0x9c], esi
push 0x462280
mov eax, dword [0x47eb5c]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconW
mov edx, eax
mov eax, esi
call fcn.0042bb60
mov eax, dword [ebx + 0x9c]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x464860
mov dl, 1
mov eax, dword [0x4169dc]
call fcn.00403b3c
mov dword [ebx + 0x94], eax
push pe_nt_image_headers32
lea eax, [ebp - 0x202]
push eax
mov eax, dword [0x47eb5c]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameW_1
lea eax, [ebp - 0x202]
mov dx, 0x5c
call fcn.0040b3b4
test eax, eax
je 0x4621b2
lea edx, [eax + 2]
lea eax, [ebp - 0x202]
call fcn.0040b1b4
lea eax, [ebp - 0x202]
mov dx, 0x2e
call fcn.0040b39c
test eax, eax
je 0x4621ca
mov word [eax], 0
lea eax, [ebp - 0x202]
push eax
call sub.user32.dll_CharNextW_1
push eax
call sub.user32.dll_CharLowerW
lea eax, [ebx + 0x88]
lea edx, [ebp - 0x202]
mov ecx, pe_nt_image_headers32
call fcn.00405690
push ebx
push 0x463930
call fcn.00458884
mov dword [ebx + 0x178], eax
mov byte [ebx + 0xcc], 0
mov eax, dword [0x47ea40]
cmp byte [eax], 0
jne 0x46221b
mov eax, ebx
call fcn.004623f4
mov byte [ebx + 0x55], 1
mov byte [ebx + 0x56], 1
mov byte [ebx + 0x57], 1
mov byte [ebx + 0xa2], 1
mov byte [ebx + 0xcd], 0
mov byte [ebx + 0xd8], 0
xor eax, eax
mov dword [ebx + 0xd0], eax
mov byte [ebx + 0xcf], 0
xor eax, eax
mov dword [ebx + 0xa4], eax
mov eax, ebx
call fcn.00464a88
mov eax, ebx
call fcn.0046564c
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x462278
call fcn.00403ffc
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x46269c
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [ebx + 0x170]
test eax, eax
je 0x46273e
cmp dword [ebx + 0x90], 0
jne 0x462738
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x462614
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x8c]
cmp dword [eax + 8], 0
je 0x462738
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_GetWindowLongW
test al, 8
je 0x4626fe
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x8c]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x462738
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x8c]
call fcn.00418ffc
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x46270d
inc dword [ebx + 0x90]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x46295c
Capabilities:
Enumerate gui resources
Hide graphical window

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
mov eax, dword [0x48417c]
cmp dword [eax + 0x170], 0
je 0x462ac1
test bl, bl
jne 0x462a0f
cmp dword [esi + 0x98], 0
jne 0x462a04
mov eax, esi
call fcn.0046549c
push eax
push 0x462868
call sub.user32.dll_EnumWindows
cmp dword [esi + 0x40], 0
je 0x4629d5
mov eax, dword [0x48417c]
cmp byte [eax + 0xcf], 0
je 0x4629d5
mov eax, dword [esi + 0xd4]
call fcn.0040632c
mov edi, eax
cmp edi, 0
jl 0x4629d5
push 0
mov eax, dword [esi + 0xd4]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x4629be
mov eax, dword [esi + 0x94]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x462a04
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0x94]
call fcn.00418ffc
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x4629e4
inc dword [esi + 0x98]
jmp 0x462ac1
cmp dword [esi + 0x98], 0
jle 0x462ac1
dec dword [esi + 0x98]
cmp dword [esi + 0x98], 0
jne 0x462ac1
cmp dword [esi + 0x40], 0
je 0x462a6c
mov eax, dword [0x48417c]
cmp byte [eax + 0xcf], 0
je 0x462a6c
mov eax, dword [esi + 0xd4]
call fcn.0040632c
mov edi, eax
cmp edi, 0
jl 0x462a6c
push 5
mov eax, dword [esi + 0xd4]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x462a55
mov eax, dword [esi + 0x94]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x462a9b
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0x94]
call fcn.00418ffc
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x462a7b
mov eax, dword [esi + 0x94]
mov edx, dword [eax]
call dword [edx + 8]
push 0
lea eax, [esi + 0xd4]
mov ecx, 1
mov edx, dword [0x458290]
call fcn.004064ec
add esp, 4
pop edi
pop esi
pop ebx
ret
Function at 0x46367c
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xfffffdfc
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa8], 0
je 0x4636e7
cmp byte [ebx + 0xcf], 0
jne 0x4636e7
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x170]
push eax
call sub.user32.dll_GetWindowTextW
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00405614
mov eax, dword [esi]
mov dword [esp + 0x200], eax
mov eax, dword [esp + 0x200]
test eax, eax
je 0x4636d4
sub eax, 4
mov eax, dword [eax]
test eax, eax
jne 0x4636f4
mov eax, esi
mov edx, dword [ebx + 0x88]
call fcn.004054d8
jmp 0x4636f4
mov eax, esi
mov edx, dword [ebx + 0x88]
call fcn.004054d8
add esp, 0x204
pop esi
pop ebx
ret

Function at 0x464c5c
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x80]
test esi, esi
je 0x464cca
mov eax, esi
call fcn.0044b898
test al, al
je 0x464cca
mov eax, dword [ebx + 0x80]
call fcn.0044b518
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x464cca
mov eax, dword [ebx + 0x80]
mov edx, dword [eax]
call dword [edx + 0xec]
test al, al
je 0x464cbe
push 0
mov eax, dword [ebx + 0x80]
call fcn.0044b518
push eax
call sub.user32.dll_ShowWindow
xor edx, edx
mov eax, dword [ebx + 0x80]
call fcn.00442b80
jmp 0x464cca
mov cl, 1
mov edx, dword [ebx + 0x70]
mov eax, ebx
call fcn.00464aa8
pop esi
pop ebx
ret
Function at 0x402a90
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.004044fc
test esi, esi
jne 0x402ac6
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.004045ec
jmp 0x402ae4
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00402944
mov edi, eax
test esi, esi
je 0x402ae4
cmp dword [ebx], 0
je 0x402ae4
dec esi
jmp 0x402acd
add esp, 0x108
pop edi
pop esi
pop ebx
ret

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

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

Function at 0x4035b4
Capabilities:
Query or enumerate registry value

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

Function at 0x4042dc
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x44b044], 0
je 0x40433d
cmp word [0x44b218], 0xd7b2
jne 0x404305
cmp dword [0x44b220], 0
jbe 0x404305
mov eax, 0x44b214
call dword [fcn.0044b230]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x446074
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 0x404364
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x446034], 0
jne 0x404359
push 0
push 0x44606c
push 0x446074
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x4044b0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
mov eax, 8
call fcn.00402728
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x44b045], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x404478
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x405b8c
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 0x405dbc
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x405c0f
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405dbc
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x405c0f
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405dd8
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x405c98
xor eax, eax
push ebp
push 0x405c91
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.004059d4
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 0x405c76
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x405df8
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x405c76
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 0x405c98
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 0x405db2
cmp byte [ebp - 0xd], 0
jne 0x405cdf
cmp byte [ebp - 0x12], 0
je 0x405db2
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x405cf8
dec ebx
cmp byte [ebx], 0x2e
je 0x405d07
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x405cf7
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x405db2
inc ebx
cmp byte [ebp - 0x12], 0
je 0x405d44
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 0x405db2
cmp byte [ebp - 0xd], 0
je 0x405db2
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 0x405db2
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 0x406454
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 0x4064ba
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.0040476c
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00403040
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x4064a4
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4064c1
lea eax, [ebp - 0x10]
call fcn.004044fc
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.004049bc
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x408509
test al, 0x10
jne 0x40850d
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x40b158
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 0x40b191
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.004045ec
jmp 0x40b19a
mov eax, ebx
mov edx, esi
call fcn.00404550
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x40c76c
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 0x40c7d0
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.0040476c
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.0040811c
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c7d7
lea eax, [ebp - 0xc]
call fcn.004044fc
ret

Function at 0x41c454
Capabilities:
Resume thread

Disassembly:
push ebx
push esi
mov ebx, eax
mov eax, dword [ebx + 4]
push eax
call sub.kernel32.dll_ResumeThread
mov esi, eax
test esi, esi
setge dl
mov eax, ebx
call fcn.0041c2ac
dec esi
jne 0x41c476
mov byte [ebx + 0xe], 0
pop esi
pop ebx
ret
Function at 0x42a2a4
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
mov ecx, 8
push 0
push 0
dec ecx
jne 0x42a2ac
push ecx
push ebx
push esi
push edi
mov ebx, eax
xor eax, eax
push ebp
push 0x42a49e
push dword fs:[eax]
mov dword fs:[eax], esp
mov esi, dword [ebx + 8]
lea ecx, [ebp - 0xc]
mov edx, 0x42a4b4
mov eax, esi
call fcn.00427d9c
mov edx, dword [ebp - 0xc]
lea eax, [ebx + 0xc]
call fcn.00404550
lea ecx, [ebp - 0x10]
mov edx, 0x42a4c8
mov eax, esi
call fcn.00427d9c
mov edx, dword [ebp - 0x10]
lea eax, [ebx + 0x28]
call fcn.00404550
lea ecx, [ebp - 0x14]
mov edx, 0x42a4e0
mov eax, esi
call fcn.00427d9c
mov edx, dword [ebp - 0x14]
lea eax, [ebx + 0x10]
call fcn.00404550
lea ecx, [ebp - 0x18]
mov edx, 0x42a4fc
mov eax, esi
call fcn.00427d9c
mov edx, dword [ebp - 0x18]
lea eax, [ebx + 0x14]
call fcn.00404550
lea ecx, [ebp - 0x1c]
mov edx, 0x42a518
mov eax, esi
call fcn.00427d9c
mov edx, dword [ebp - 0x1c]
lea eax, [ebx + 0x24]
call fcn.00404550
lea ecx, [ebp - 0x24]
mov edx, 0x42a530
mov eax, esi
call fcn.00427d9c
mov eax, dword [ebp - 0x24]
lea edx, [ebp - 0x20]
call fcn.00407d0c
mov eax, dword [ebp - 0x20]
or edx, 0xffffffff
call fcn.0040811c
mov edi, eax
mov dword [ebx + 0x18], edi
test edi, edi
setge al
mov byte [ebx + 0x4c], al
lea ecx, [ebp - 0x28]
mov edx, 0x42a548
mov eax, esi
call fcn.00427d9c
mov eax, dword [ebp - 0x28]
call fcn.00426e98
fstp qword [ebx + 0x30]
wait
lea ecx, [ebp - 0x2c]
mov edx, 0x42a558
mov eax, esi
call fcn.00427d9c
mov eax, dword [ebp - 0x2c]
call fcn.00426e98
fstp qword [ebx + 0x40]
wait
lea ecx, [ebp - 0x30]
mov edx, 0x42a570
mov eax, esi
call fcn.00427d9c
mov eax, dword [ebp - 0x30]
or edx, 0xffffffff
call fcn.0040811c
inc eax
je 0x42a441
lea ecx, [ebp - 0x34]
mov edx, 0x42a570
mov eax, esi
call fcn.00427d9c
mov eax, dword [ebp - 0x34]
call fcn.004080e0
mov edi, eax
mov eax, edi
mov ecx, 0xe10
cdq
idiv ecx
mov dword [ebp - 8], eax
mov eax, edi
mov ecx, 0xe10
cdq
idiv ecx
mov ecx, edx
mov eax, ecx
push ecx
mov ecx, 0x3c
cdq
idiv ecx
pop ecx
mov dword [ebp - 4], eax
mov eax, ecx
mov ecx, 0x3c
cdq
idiv ecx
mov edi, edx
push 0
mov ecx, edi
mov dx, word [ebp - 4]
mov ax, word [ebp - 8]
call fcn.0040985c
fstp qword [ebp - 0x3c]
wait
call fcn.00409bc0
fadd qword [ebp - 0x3c]
fstp qword [ebx + 0x38]
wait
jmp 0x42a45c
lea ecx, [ebp - 0x40]
mov edx, 0x42a570
mov eax, esi
call fcn.00427d9c
mov eax, dword [ebp - 0x40]
call fcn.00426e98
fstp qword [ebx + 0x38]
wait
lea ecx, [ebp - 0x44]
mov edx, 0x42a580
mov eax, esi
call fcn.00427d9c
mov edx, dword [ebp - 0x44]
lea eax, [ebx + 0x48]
call fcn.00404550
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42a4a5
lea eax, [ebp - 0x44]
mov edx, 2
call fcn.00404520
lea eax, [ebp - 0x34]
mov edx, 0xb
call fcn.00404520
ret