joyce8/EMBER2024-capa huggingface dataset:
Function at 0x437930
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff94
push ebx
push esi
push edi
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0x1f8], 0
je 0x43794c
cmp dword [esi + 4], 0
je 0x437979
test byte [ebx + 0x55], 1
jne 0x43796b
mov eax, ebx
call fcn.004364d0
test eax, eax
jne 0x43796b
mov edx, esi
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx - 0x10]
jmp 0x437a89
mov edx, esi
mov eax, ebx
call fcn.00437454
jmp 0x437a89
push 0
call sub.user32.dll_GetDC
mov edi, eax
lea edx, [ebp - 0x5c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x64]
push eax
push edi
call sub.gdi32.dll_CreateCompatibleBitmap
mov dword [ebp - 8], eax
push edi
push 0
call sub.user32.dll_ReleaseDC
push 0
call sub.gdi32.dll_CreateCompatibleDC
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_SelectObject
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x437a82
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.004397a0
push eax
call sub.user32.dll_BeginPaint
mov edi, eax
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 4]
mov edx, 0x14
mov eax, ebx
call fcn.0043416c
mov eax, dword [ebp - 4]
mov dword [esi + 4], eax
mov edx, esi
mov eax, ebx
call fcn.00437930
xor eax, eax
mov dword [esi + 4], eax
push 0xcc0020
push 0
push 0
mov eax, dword [ebp - 4]
push eax
lea edx, [ebp - 0x5c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x64]
push eax
push 0
push 0
push edi
call sub.gdi32.dll_BitBlt
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.004397a0
push eax
call sub.user32.dll_EndPaint
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x437a89
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_SelectObject
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_DeleteDC
mov eax, dword [ebp - 8]
push eax
call sub.gdi32.dll_DeleteObject
ret
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x43e058
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x45621c]
cmp byte [eax + 0xc], 0
je 0x43e1c5
push 0x8000
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x43e1be
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x457b90], 0
jne 0x43e0ac
push 0x43e1cc
call sub.kernel32.dll_GetModuleHandleA_2
mov ebx, eax
push 0x43e1d4
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x457b90], eax
cmp dword [0x455bd8], 0
jne 0x43e1a7
push 0x43e1e4
call sub.kernel32.dll_LoadLibraryA
mov dword [0x455bd8], eax
cmp dword [0x455bd8], 0
je 0x43e1a7
push 0x43e1f0
mov eax, dword [0x455bd8]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x457b94], eax
push 0x43e200
mov eax, dword [0x455bd8]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x457b98], eax
push 0x43e214
mov eax, dword [0x455bd8]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x457b9c], eax
push 0x43e22c
mov eax, dword [0x455bd8]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x457ba0], eax
push 0x43e244
mov eax, dword [0x455bd8]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x457ba4], eax
push 0x43e258
mov eax, dword [0x455bd8]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x457ba8], eax
push 0x43e270
mov eax, dword [0x455bd8]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x457bac], eax
push 0x43e288
mov eax, dword [0x455bd8]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x457bb0], eax
push 0x43e2a4
mov eax, dword [0x455bd8]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x457bb4], eax
push 0x43e2b0
mov eax, dword [0x455bd8]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x457bb8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43e1c5
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret

Function at 0x442050
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
mov ebx, edx
mov word [ebp - 2], ax
mov eax, ebx
call fcn.004043e4
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x44209f
push pe_nt_image_headers32
lea edx, [ebp - 0x102]
push edx
push eax
call sub.user32.dll_GetKeyNameTextA
mov eax, ebx
lea edx, [ebp - 0x102]
mov ecx, pe_nt_image_headers32
call fcn.00404654
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x449848
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x449898]
test si, 4
je 0x44985c
or bl, 1
test si, 8
je 0x449866
or bl, 4
test si, 1
je 0x449870
or bl, 8
test si, 2
je 0x44987a
or bl, 0x10
test si, 0x10
je 0x449884
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x449893
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x44989c
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x4498d4]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x4498b5
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x4498c4
or bl, 4
test esi, 0x20000000
je 0x4498cf
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x44ff98
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x44ffaa
add esp, 0xfffffff0
call fcn.00403990
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00419df8
mov eax, dword [0x455ee8]
mov dword [eax + 4], ebx
mov dword [eax], 0x45033c
mov eax, dword [0x455ef4]
mov dword [eax + 4], ebx
mov dword [eax], 0x450348
mov eax, ebx
call fcn.00450354
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x41205c]
call fcn.00403628
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x41205c]
call fcn.00403628
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x41205c]
call fcn.00403628
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x41205c]
call fcn.00403628
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x41205c]
call fcn.00403628
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, 0x44c76c
push eax
push 0
push 0
mov eax, dword [0x45603c]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x41b84c]
call fcn.0041cfe4
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x41b84c]
call fcn.0041cfe4
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x41b84c]
call fcn.0041cfe4
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.004507a4
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x45066c
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x45066c
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x45066c
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x4500e7
call fcn.004039e8
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x450450
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 0x4505fb
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x4505dc
mov dl, 1
mov eax, dword [0x412478]
call fcn.00403628
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.004043e4
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x4505cb
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.0043e3b8
test al, al
je 0x4505be
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, 0x45060c
lea eax, [ebp - 0x254]
call fcn.0040916c
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x4505be
xor eax, eax
push ebp
push 0x4505b7
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 0x450644
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x4505a0
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404654
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 0x4505a0
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404654
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4505be
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x4504c1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.00415f54
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 0x450602
lea eax, [ebp - 0x260]
call fcn.004043e4
ret

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

Disassembly:
push ecx
mov eax, dword [0x457bdc]
cmp byte [eax + 0xa5], 0
jne 0x450fb5
cmp dword [0x457bf4], 0
jne 0x450f76
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x450f00
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x457bf4], eax
cmp dword [0x457bf0], 0
jne 0x450f91
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x457bf0], eax
cmp dword [0x457bf8], 0
jne 0x450fb5
push esp
push 0
push 0
push 0x450ea4
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x457bf8], eax
pop edx
ret
Function at 0x451648
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x457bdc]
cmp dword [eax + 0x30], 0
je 0x4516f2
cmp dword [ebx + 0x94], 0
jne 0x4516ec
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x4515d8
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x4516ec
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 0x4516b2
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x4516ec
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.004143c4
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x4516c1
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x452250
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 0x452285
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.004044d4
jmp 0x452292
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404438
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x4533b4
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x4533f5
mov eax, esi
call fcn.00439a78
test al, al
je 0x4533f5
mov eax, dword [ebx + 0x84]
call fcn.004397a0
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x4533f5
push 0
mov eax, dword [ebx + 0x84]
call fcn.004397a0
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x402ccc
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 0x402d09
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 0x402d29
lea eax, [esp + 0x109]
push eax
call sub.kernel32.dll_SetCurrentDirectoryA
mov eax, esi
lea edx, [esp + 4]
mov ecx, 0x105
call fcn.00404a08
add esp, 0x210
pop esi
pop ebx
ret

Function at 0x402f34
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
xor eax, eax
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x402f8d
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
call sub.kernel32.dll_GetCommandLineA
lea edx, [ebp - 8]
call fcn.00402dd0
mov dword [ebp - 4], eax
lea edx, [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.00402dd0
mov dword [ebp - 4], eax
cmp dword [ebp - 8], 0
je 0x402f77
inc ebx
jmp 0x402f60
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x402f94
lea eax, [ebp - 8]
call fcn.00404798
ret

Function at 0x402f9c
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
add esp, 0xfffffef4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00404798
test esi, esi
jne 0x402fd3
push 0x105
lea eax, [esp + 8]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
lea edx, [esp + 4]
mov eax, ebx
call fcn.00404888
jmp 0x402ff4
call sub.kernel32.dll_GetCommandLineA
mov dword [esp], eax
mov edx, ebx
mov eax, dword [esp]
call fcn.00402dd0
mov dword [esp], eax
test esi, esi
je 0x402ff4
cmp dword [ebx], 0
je 0x402ff4
dec esi
jmp 0x402fdb
add esp, 0x10c
pop esi
pop ebx
ret

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

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

Function at 0x403750
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x49d024]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x4037e8
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x4037c8
xor eax, eax
push ebp
push 0x4037c1
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 0x403804
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 0x4037c8
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x49d024]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x49d024], ax
mov esp, ebp
pop ebp
ret
Function at 0x404590
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4a104c], 0
je 0x4045f1
cmp word [0x4a1220], 0xd7b2
jne 0x4045b9
cmp dword [0x4a1228], 0
jbe 0x4045b9
mov eax, 0x4a121c
call dword [0x4a1238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x49d070
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 0x404618
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x49d034], 0
jne 0x40460d
push 0
push 0x49d068
push 0x49d070
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x40474c
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.00402a88
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x4a104d], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x404714
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x4067a0
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 0x406806
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.00404a08
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.004032e4
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x4067f0
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40680d
lea eax, [ebp - 0x10]
call fcn.00404798
ret

Function at 0x407aac
Capabilities:
Read file via mapping

Disassembly:
xor eax, eax
call fcn.00407a20
mov dword [0x49d108], eax
cmp dword [0x49d108], 0
jbe 0x407aee
push 0
push 0
push 0
push 4
mov eax, dword [0x49d108]
push eax
call sub.kernel32.dll_MapViewOfFile
mov dword [0x49d10c], eax
cmp dword [0x49d10c], 0
je 0x407aee
mov eax, dword [0x49d10c]
mov eax, dword [eax]
mov dword [0x49d0d0], eax
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00404c58
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x409711
test al, 0x10
jne 0x409715
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x409804
Capabilities:
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00404c58
push eax
call sub.kernel32.dll_GetFileAttributesA
test al, 1
setne al
pop ebx
ret

Function at 0x40981c
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
mov byte [esp], dl
mov esi, eax
xor ebx, ebx
mov eax, esi
call fcn.00404c58
mov ebp, eax
push ebp
call sub.kernel32.dll_GetFileAttributesA
mov edi, eax
cmp edi, 0xffffffff
je 0x409859
cmp byte [esp], 0
je 0x409849
or edi, 1
jmp 0x40984c
and edi, 0xfffffffe
push edi
push ebp
call sub.kernel32.dll_SetFileAttributesA
cmp eax, 1
sbb ebx, ebx
inc ebx
mov eax, ebx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x40c864
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 0x40c89d
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404888
jmp 0x40c8a6
mov eax, ebx
mov edx, esi
call fcn.004047ec
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40c8b0
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 0x40c8d1
mov al, byte [esp]
jmp 0x40c8d3
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x40cf68
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call fcn.0040cdd0
mov eax, dword [0x4a0568]
cmp byte [eax], 0
je 0x40cfe4
mov eax, dword [0x4a0364]
call fcn.004030f8
call fcn.00402c4c
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.00409f38
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 0x40d02c
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40d01a
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x4a0314]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x4a1668]
call fcn.00405b88
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 0x40d8d0
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 0x40d9a6
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.00404830
lea eax, [ebp - 8]
call fcn.00404ca8
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.00404c58
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40d990
mov eax, ebx
call fcn.00402a88
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40d989
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.00404c58
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40d973
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40d9b8
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40d973
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 0x40d990
mov eax, dword [ebp - 0x10]
call fcn.00402ab8
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d9ad
lea eax, [ebp - 8]
call fcn.00404798
ret

Function at 0x40e07c
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 0x40e0e0
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.00404a08
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.0040932c
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40e0e7
lea eax, [ebp - 0xc]
call fcn.00404798
ret