joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44b094
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
push edi
push ecx
mov byte [esp + 1], cl
mov byte [esp], dl
mov esi, eax
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
mov edi, eax
mov eax, dword [0x460c94]
cmp esi, dword [eax + 0x30]
jne 0x44b0bb
or edi, 0x8000000
push esi
call sub.user32.dll_IsIconic
cmp eax, 1
sbb ebx, ebx
inc ebx
push esi
call sub.user32.dll_IsWindowVisible
test eax, eax
jne 0x44b0ea
mov eax, dword [0x460c94]
cmp esi, dword [eax + 0x30]
jne 0x44b0e6
mov eax, dword [0x460c94]
cmp byte [eax + 0x5b], 0
jne 0x44b0ea
xor eax, eax
jmp 0x44b0ec
mov al, 1
mov byte [esp + 2], al
movzx eax, byte [esp + 2]
or al, bl
je 0x44b101
push 0
push esi
call sub.user32.dll_ShowWindow
cmp byte [esp], 0
je 0x44b118
or edi, 0x40000
push edi
push 0xffffffffffffffec
push esi
call sub.user32.dll_SetWindowLongA
jmp 0x44b127
and edi, 0xfffbffff
push edi
push 0xffffffffffffffec
push esi
call sub.user32.dll_SetWindowLongA
movzx eax, byte [esp + 1]
and al, byte [esp + 2]
jne 0x44b136
test bl, bl
je 0x44b14c
test bl, bl
je 0x44b144
push 6
push esi
call sub.user32.dll_ShowWindow
jmp 0x44b14c
push 5
push esi
call sub.user32.dll_ShowWindow
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x44b3f0
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
add esp, 0xfffffff8
mov ebx, eax
call sub.user32.dll_GetActiveWindow
mov dword [esp], eax
mov byte [esp + 4], 0
test bl, bl
je 0x44b416
mov eax, esp
push eax
push 0x44b3b8
call sub.user32.dll_EnumWindows
jmp 0x44b429
mov eax, esp
push eax
push 0x44b398
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
call sub.user32.dll_EnumThreadWindows
movzx eax, byte [esp + 4]
pop ecx
pop edx
pop ebx
ret

Function at 0x44b4b4
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
movzx ebx, byte [0x44b508]
test si, 4
je 0x44b4c9
or bl, 1
test si, 8
je 0x44b4d3
or bl, 4
test si, 1
je 0x44b4dd
or bl, 8
test si, 2
je 0x44b4e7
or bl, 0x10
test si, 0x10
je 0x44b4f1
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x44b500
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x44b50c
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
movzx ebx, byte [0x44b548]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x44b526
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x44b535
or bl, 4
test esi, 0x20000000
je 0x44b540
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x453414
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x453426
add esp, 0xfffffff0
call fcn.00403d1c
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041a050
mov eax, dword [0x45b7d8]
mov dword [eax + 4], ebx
mov dword [eax], 0x4537b8
mov eax, dword [0x45b7e4]
mov dword [eax + 4], ebx
mov dword [eax], 0x4537c4
mov eax, ebx
call fcn.004537d0
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x411e00]
call fcn.004039e0
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x411e00]
call fcn.004039e0
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x411e00]
call fcn.004039e0
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x411e00]
call fcn.004039e0
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x411e00]
call fcn.004039e0
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, 0x44ee80
push eax
push 0
push 0
mov eax, dword [0x45b924]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x41dbe0]
call fcn.0041f100
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x41dbe0]
call fcn.0041f100
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x41dbe0]
call fcn.0041f100
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.00453c00
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x453ad0
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x453ad0
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x453ad0
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x453563
call fcn.00403d74
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x4538b4
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 0x453a5f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x453a40
mov dl, 1
mov eax, dword [0x412224]
call fcn.004039e0
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00404824
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x453a2f
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.00445db0
test al, al
je 0x453a22
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, 0x453a70
lea eax, [ebp - 0x254]
call fcn.0040926c
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x453a22
xor eax, eax
push ebp
push 0x453a1b
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 0x453aa8
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x453a04
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404a94
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 0x453a04
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404a94
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x453a22
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x453925
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x25], 0
mov dl, 1
call fcn.00415efc
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 0x453a66
lea eax, [ebp - 0x260]
call fcn.00404824
ret

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

Disassembly:
push ecx
mov eax, dword [0x460c94]
cmp byte [eax + 0xad], 0
jne 0x454449
cmp dword [0x460cb0], 0
jne 0x45440a
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x454394
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x460cb0], eax
cmp dword [0x460cac], 0
jne 0x454425
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x460cac], eax
cmp dword [0x460cb4], 0
jne 0x454449
push esp
push 0
push 0
push 0x454338
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x460cb4], eax
pop edx
ret
Function at 0x45461c
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x454633
add esp, 0xfffffff0
call fcn.00403d1c
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041a050
mov eax, dword [0x45b910]
cmp word [eax + 2], 0
jne 0x45465b
mov eax, dword [0x45b910]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0045621c
mov eax, dword [0x45b9b0]
cmp word [eax + 2], 0
jne 0x454675
mov eax, dword [0x45b9b0]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00456428
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x411e00]
call fcn.004039e0
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x411e00]
call fcn.004039e0
mov dword [ebx + 0x98], eax
mov dl, 1
mov eax, dword [0x411e00]
call fcn.004039e0
mov dword [ebx + 0xb0], 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 + 0xa5], 1
mov byte [ebx + 0xbc], 1
mov dl, 1
mov eax, dword [0x41e3bc]
call fcn.00424204
mov esi, eax
mov dword [ebx + 0xa0], esi
push 0x45482c
mov eax, dword [0x45b83c]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.004245d8
mov eax, dword [ebx + 0xa0]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x456aec
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x45b83c]
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.0040c9d0
test eax, eax
je 0x45477c
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00408c24
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040ca04
test eax, eax
je 0x454790
mov byte [eax], 0
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_CharNextA_1
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.00404a94
mov byte [ebx + 0xd4], 0
push ebx
push 0x455d44
call fcn.0041b1cc
mov dword [ebx + 0xc8], eax
mov eax, dword [0x45b748]
cmp byte [eax], 0
jne 0x4547e1
mov eax, ebx
call fcn.00454970
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0xa6], 1
xor eax, eax
mov dword [ebx + 0xa8], eax
mov eax, ebx
call fcn.00456cc4
mov eax, ebx
call fcn.00457828
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x454821
call fcn.00403d74
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x454bf0
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [ebx + 0x30]
test eax, eax
je 0x454c8f
cmp dword [ebx + 0x94], 0
jne 0x454c89
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x454b78
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x454c89
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 0x454c4f
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x454c89
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.004141a4
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x454c5e
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

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

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
mov eax, dword [0x460c94]
cmp dword [eax + 0x30], 0
je 0x455005
test bl, bl
jne 0x454f56
cmp dword [esi + 0x9c], 0
jne 0x454f4b
mov eax, esi
call fcn.004576a4
push eax
push 0x454dd4
call sub.user32.dll_EnumWindows
cmp dword [esi + 0x44], 0
je 0x454f1c
mov eax, dword [0x460c94]
call fcn.00457d84
test al, al
je 0x454f1c
mov eax, dword [0x460cb8]
call fcn.004056e0
mov edi, eax
cmp edi, 0
jl 0x454f1c
push 0
mov eax, dword [0x460cb8]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x454f06
mov eax, dword [esi + 0x98]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x454f4b
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0x98]
call fcn.004141a4
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x454f2b
inc dword [esi + 0x9c]
jmp 0x455005
cmp dword [esi + 0x9c], 0
jle 0x455005
dec dword [esi + 0x9c]
cmp dword [esi + 0x9c], 0
jne 0x455005
cmp dword [esi + 0x44], 0
je 0x454fb1
mov eax, dword [0x460c94]
call fcn.00457d84
test al, al
je 0x454fb1
mov eax, dword [0x460cb8]
call fcn.004056e0
mov edi, eax
cmp edi, 0
jl 0x454fb1
push 5
mov eax, dword [0x460cb8]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x454f9b
mov eax, dword [esi + 0x98]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x454fe0
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0x98]
call fcn.004141a4
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x454fc0
mov eax, dword [esi + 0x98]
mov edx, dword [eax]
call dword [edx + 8]
push 0
mov eax, 0x460cb8
mov ecx, 1
mov edx, dword [0x454db4]
call fcn.00405894
add esp, 4
pop edi
pop esi
pop ebx
ret
Function at 0x455a98
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xfffffefc
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xac], 0
je 0x455b02
mov eax, ebx
call fcn.00457d84
test al, al
jne 0x455b02
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.00404914
mov eax, dword [esi]
mov dword [esp + 0x100], eax
mov eax, dword [esp + 0x100]
test eax, eax
je 0x455aef
sub eax, 4
mov eax, dword [eax]
test eax, eax
jne 0x455b0f
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404878
jmp 0x455b0f
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404878
add esp, 0x104
pop esi
pop ebx
ret

Function at 0x456ea8
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x456f16
mov eax, esi
call fcn.00440a74
test al, al
je 0x456f16
mov eax, dword [ebx + 0x84]
call fcn.004406c4
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x456f16
mov eax, dword [ebx + 0x84]
mov edx, dword [eax]
call dword [edx + 0xf0]
test al, al
je 0x456f0a
push 0
mov eax, dword [ebx + 0x84]
call fcn.004406c4
push eax
call sub.user32.dll_ShowWindow
xor edx, edx
mov eax, dword [ebx + 0x84]
call fcn.00438658
jmp 0x456f16
mov cl, 1
mov edx, dword [ebx + 0x74]
mov eax, ebx
call fcn.00456ce4
pop esi
pop ebx
ret
Function at 0x402958
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebx
push esi
add esp, 0xfffffdf0
mov esi, edx
mov ebx, eax
test bl, bl
je 0x402995
xor eax, eax
mov al, bl
add eax, 0x41
dec eax
mov byte [esp], al
mov byte [esp + 1], 0x3a
mov byte [esp + 2], 0
lea eax, [esp + 0x109]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryA
push esp
call sub.kernel32.dll_SetCurrentDirectoryA
lea eax, [esp + 4]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryA
test bl, bl
je 0x4029b5
lea eax, [esp + 0x109]
push eax
call sub.kernel32.dll_SetCurrentDirectoryA
mov eax, esi
lea edx, [esp + 4]
mov ecx, 0x105
call fcn.00404434
add esp, 0x210
pop esi
pop ebx
ret

Function at 0x402b1c
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.004041c4
test esi, esi
jne 0x402b52
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.004042b4
jmp 0x402b70
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00402a30
mov edi, eax
test esi, esi
je 0x402b70
cmp dword [ebx], 0
je 0x402b70
dec esi
jmp 0x402b59
add esp, 0x108
pop edi
pop esi
pop ebx
ret

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

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

Function at 0x403220
Capabilities:
Query or enumerate registry value

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

Function at 0x403fc4
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x48404c], 0
je 0x404025
cmp word [0x484220], 0xd7b2
jne 0x403fed
cmp dword [0x484228], 0
jbe 0x403fed
mov eax, 0x48421c
call dword [0x484238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x482070
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 0x40404c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x482034], 0
jne 0x404041
push 0
push 0x482068
push 0x482070
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x404178
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.00402744
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x48404d], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x404140
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x405fd0
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 0x406036
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.00404434
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402de4
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x406020
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40603d
lea eax, [ebp - 0x10]
call fcn.004041c4
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00404684
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x4089f1
test al, 0x10
jne 0x4089f5
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x40b714
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 0x40b74d
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.004042b4
jmp 0x40b756
mov eax, ebx
mov edx, esi
call fcn.00404218
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x40be08
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40bc80
mov eax, dword [0x483380]
cmp byte [eax], 0
je 0x40be84
mov eax, dword [0x483150]
call fcn.00402c34
call fcn.004028ac
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.00408e6c
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 0x40becc
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40beba
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x4830f4]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x484668]
call fcn.004054e4
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 0x40c774
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor edx, edx
mov dword [ebp - 8], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40c84a
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.0040425c
lea eax, [ebp - 8]
call fcn.004046d4
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.00404684
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40c834
mov eax, ebx
call fcn.00402744
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40c82d
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
push eax
push ebx
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.00404684
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40c817
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40c85c
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40c817
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov dword [ebp - 4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c834
mov eax, dword [ebp - 0x10]
call fcn.00402764
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c851
lea eax, [ebp - 8]
call fcn.004041c4
ret

Function at 0x40ce28
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 0x40ce8c
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.00404434
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00408638
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40ce93
lea eax, [ebp - 0xc]
call fcn.004041c4
ret

Function at 0x421a60
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.004218b8
dec esi
jne 0x421a82
mov byte [ebx + 0xe], 0
pop esi
pop ebx
ret