joyce8/EMBER2024-capa huggingface dataset:
Function at 0x454594
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x4545ab
add esp, 0xfffffff0
call fcn.00403974
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041bd80
mov eax, dword [0x4b1b40]
cmp word [eax + 2], 0
jne 0x4545d3
mov eax, dword [0x4b1b40]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00455c70
mov eax, dword [0x4b1bd8]
cmp word [eax + 2], 0
jne 0x4545ed
mov eax, dword [0x4b1bd8]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00455e68
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x411a64]
call fcn.004035e0
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x411a64]
call fcn.004035e0
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], 0x80000018
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 [0x41e298]
call fcn.00425fe0
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x454774
mov eax, dword [0x4b1a44]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.004263b0
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x4563d8
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x4b1a44]
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.0040adcc
test eax, eax
je 0x4546e2
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00408d94
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040adf4
test eax, eax
je 0x4546f6
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.004045e4
mov eax, dword [0x4b18e8]
cmp byte [eax], 0
jne 0x45472a
mov eax, ebx
call fcn.0045489c
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.004565b4
mov eax, ebx
call fcn.00456ef4
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x45476a
call fcn.004039cc
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x454b10
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x4b2bfc]
cmp dword [eax + 0x30], 0
je 0x454bba
cmp dword [ebx + 0x94], 0
jne 0x454bb4
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x454aa0
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x454bb4
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 0x454b7a
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x454bb4
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.00414188
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x454b89
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x455698
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 0x4556cd
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.0040446c
jmp 0x4556da
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.004043d0
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x456790
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x4567d1
mov eax, esi
call fcn.0043c7b8
test al, al
je 0x4567d1
mov eax, dword [ebx + 0x84]
call fcn.0043c4b4
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x4567d1
push 0
mov eax, dword [ebx + 0x84]
call fcn.0043c4b4
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x4654e8
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x14], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x46561f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
call fcn.00462be8
test eax, eax
je 0x465601
mov eax, ebx
call fcn.00462be8
test byte [eax + 0x2ec], 8
jne 0x465601
mov al, byte [ebx + 0x79]
cmp al, 4
je 0x4655fa
mov byte [ebx + 0x78], al
mov byte [ebx + 0x79], 4
mov al, byte [ebx + 0x78]
cmp al, 2
je 0x465566
cmp al, 1
je 0x465566
cmp al, 3
je 0x465566
mov eax, ebx
call fcn.00462be8
lea edx, [ebp - 0x10]
call fcn.00435724
lea esi, [ebp - 0x10]
lea edi, [ebx + 0x68]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
cmp byte [ebx + 0x10a], 0
je 0x4655b1
lea edx, [ebp - 0x14]
mov eax, dword [0x4b1bc4]
mov eax, dword [eax]
call fcn.00455698
mov edx, dword [ebp - 0x14]
lea eax, [ebx + 0x94]
mov ecx, 0x3f
call fcn.00408e14
mov eax, dword [0x4b1bc4]
mov eax, dword [eax]
call fcn.004554ac
push 0
mov eax, dword [0x4b1bc4]
mov eax, dword [eax]
mov eax, dword [eax + 0x30]
push eax
call sub.user32.dll_ShowWindow
jmp 0x4655ed
mov eax, ebx
call fcn.00462be8
test eax, eax
je 0x4655de
mov eax, ebx
call fcn.00462be8
lea edx, [ebp - 0x18]
call fcn.00435d84
mov edx, dword [ebp - 0x18]
lea eax, [ebx + 0x94]
mov ecx, 0x3f
call fcn.00408e14
push 0
mov eax, ebx
call fcn.00462bf4
push eax
call sub.user32.dll_ShowWindow
lea eax, [ebx + 0x7c]
push eax
push 0
call sub.shell32.dll_Shell_NotifyIconA
jmp 0x465601
mov eax, ebx
call fcn.00464fa0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x465626
lea eax, [ebp - 0x18]
call fcn.0040437c
lea eax, [ebp - 0x14]
call fcn.0040437c
ret

Function at 0x471b88
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
mov ebx, edx
mov dword [ebp - 0xc], eax
xor eax, eax
mov al, byte [ebx + 4]
mov word [ebp - 6], ax
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x471baf
add word [ebp - 6], 0x2000
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x471bc1
add word [ebp - 6], 0x4000
test byte [ebx + 0xb], 0x20
je 0x471bcd
add word [ebp - 6], 0x8000
mov byte [ebp - 0xd], 0
movzx edx, word [ebp - 6]
mov cl, 2
mov eax, dword [ebp - 0xc]
call fcn.00471a18
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x471c35
lea edx, [ebp - 4]
mov eax, dword [0x4b1cd0]
mov eax, dword [eax]
call fcn.00426d1c
xor eax, eax
push ebp
push 0x471c2e
push dword fs:[eax]
mov dword fs:[eax], esp
push ebp
lea eax, [ebp - 4]
xor edx, edx
call fcn.00471a48
pop ecx
mov byte [ebp - 0xd], al
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x471c35
mov eax, dword [0x4b1cd0]
mov eax, dword [eax]
call fcn.00426d14
ret
cmp byte [ebp - 0xd], 2
je 0x471bcd
cmp dword [ebp - 4], 0
setne al
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x49af9c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.0040482c
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
setne al
pop ebx
ret

Function at 0x49e4fc
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x10], 0xca
jne 0x49e52a
mov eax, ebx
call fcn.0049efb4
cmp dword [ebx + 0x3c], 0
je 0x49e523
mov dword [ebx + 0x10], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x10], 0xcb
cmp dword [ebx + 0x10], 0xcb
jne 0x49e59b
mov edx, dword [ebx + 0x1ac]
cmp dword [edx + 0x10], 0
je 0x49e58d
cmp dword [ebx + 8], 0
je 0x49e54c
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1ac]
call dword [edx]
test eax, eax
jne 0x49e55e
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x49e58d
cmp dword [ebx + 8], 0
je 0x49e53f
cmp eax, 3
je 0x49e571
dec eax
jne 0x49e53f
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 0x49e53f
mov edx, dword [ebx + 0x138]
add dword [eax + 8], edx
jmp 0x49e53f
mov ecx, dword [ebx + 0x8c]
mov dword [ebx + 0x94], ecx
jmp 0x49e5b9
cmp dword [ebx + 0x10], 0xcc
je 0x49e5b9
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x12
mov edx, dword [ebx + 0x10]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.0049e5c4
pop ebx
ret
Function at 0x402934
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 0x402971
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 0x402991
lea eax, [esp + 0x109]
push eax
call sub.kernel32.dll_SetCurrentDirectoryA
mov eax, esi
lea edx, [esp + 4]
mov ecx, 0x105
call fcn.00404ddc
add esp, 0x210
pop esi
pop ebx
ret

Function at 0x402b58
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.00404b64
test esi, esi
jne 0x402b8e
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.00404c54
jmp 0x402bac
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00402a0c
mov edi, eax
test esi, esi
je 0x402bac
cmp dword [ebx], 0
je 0x402bac
dec esi
jmp 0x402b95
add esp, 0x108
pop edi
pop esi
pop ebx
ret

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

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

Function at 0x403c58
Capabilities:
Query or enumerate registry value

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

Function at 0x4049c8
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x48904c], 0
je 0x404a29
cmp word [0x489220], 0xd7b2
jne 0x4049f1
cmp dword [0x489228], 0
jbe 0x4049f1
mov eax, 0x48921c
call dword [0x489238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x486078
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 0x404a50
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x486020], 0
jne 0x404a45
push 0
push 0x486098
push 0x486078
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x406680
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 0x4068b0
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x406703
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x4068b0
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x406703
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x4068cc
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x40678c
xor eax, eax
push ebp
push 0x406785
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.004064c8
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 0x40676a
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x4068ec
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x40676a
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 0x40678c
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 0x4068a6
cmp byte [ebp - 0xd], 0
jne 0x4067d3
cmp byte [ebp - 0x12], 0
je 0x4068a6
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x4067ec
dec ebx
cmp byte [ebx], 0x2e
je 0x4067fb
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x4067eb
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x4068a6
inc ebx
cmp byte [ebp - 0x12], 0
je 0x406838
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 0x4068a6
cmp byte [ebp - 0xd], 0
je 0x4068a6
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 0x4068a6
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 0x4092c4
Capabilities:
Check if file exists
Get file attributes

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

Function at 0x409340
Capabilities:
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00405024
push eax
call sub.kernel32.dll_GetFileAttributesA
pop ebx
ret

Function at 0x409354
Capabilities:
Set file attributes

Disassembly:
push ebx
push esi
push edi
mov edi, edx
mov esi, eax
xor ebx, ebx
push edi
mov eax, esi
call fcn.00405024
push eax
call sub.kernel32.dll_SetFileAttributesA
test eax, eax
jne 0x409376
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
mov eax, ebx
pop edi
pop esi
pop ebx
ret

Function at 0x40937c
Capabilities:
Get file attributes

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

Function at 0x40c548
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 0x40c581
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404c54
jmp 0x40c58a
mov eax, ebx
mov edx, esi
call fcn.00404bb8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x40cc3c
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40cab4
mov eax, dword [0x488a00]
cmp byte [eax], 0
je 0x40cca9
mov eax, dword [0x48889c]
call fcn.00403030
call fcn.004028b4
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.00409bb4
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff5
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 0x40ccf0
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40ccdf
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x48886c]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x489718]
call fcn.0040648c
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 0x40db28
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 0x40db8c
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.00404ddc
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00408f20
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40db93
lea eax, [ebp - 0xc]
call fcn.00404b64
ret

Function at 0x40f158
Capabilities:
Identify system language via api

Disassembly:
add esp, 0xffffffe4
push 0
call sub.user32.dll_SetActiveWindow
push 0xfffffffffffffff6
call sub.kernel32.dll_GetStdHandle_1
mov dword [0x489858], eax
cmp dword [0x489858], 0xffffffff
je 0x40f180
cmp dword [0x489858], 0
jne 0x40f191
call sub.kernel32.dll_AllocConsole
push 0xfffffffffffffff6
call sub.kernel32.dll_GetStdHandle_1
mov dword [0x489858], eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle_1
mov dword [0x48985c], eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
mov dword [0x489860], eax
lea eax, [esp + 4]
push eax
mov eax, dword [0x48985c]
push eax
call sub.kernel32.dll_GetConsoleScreenBufferInfo
test eax, eax
je 0x40f220
mov ax, word [esp + 0xc]
mov word [0x489870], ax
mov word [0x489880], ax
mov word [0x489872], ax
mov ax, word [esp + 0xe]
inc eax
mov word [esp], ax
mov ax, word [esp + 0x10]
inc eax
mov word [esp + 2], ax
mov eax, dword [esp]
mov dword [0x489864], eax
mov eax, dword [esp + 4]
mov dword [0x48986c], eax
mov ax, word [esp + 0x12]
inc eax
mov word [esp], ax
mov ax, word [esp + 0x14]
inc eax
mov word [esp + 2], ax
mov eax, dword [esp]
mov dword [0x489868], eax
mov byte [0x489888], 0
jmp 0x40f227
mov byte [0x489888], 1
mov dword [0x489874], 0x3e8
mov dword [0x489878], 0xffffffff
call sub.kernel32.dll_GetConsoleOutputCP
mov dword [0x489884], eax
call sub.kernel32.dll_GetUserDefaultLangID
and ax, 0x3ff
cmp ax, 7
sete byte [0x489889]
add esp, 0x1c
ret
Function at 0x428550
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
test dl, dl
je 0x428565
add esp, 0xfffffff0
call fcn.0040413c
mov dword [ebp - 8], ecx
mov byte [ebp - 1], dl
mov ebx, eax
mov esi, dword [ebp + 8]
xor edx, edx
mov eax, ebx
call fcn.00403dc0
movzx edx, si
mov eax, dword [ebp - 8]
call fcn.0040912c
mov edi, eax
mov dword [ebx + 0x10], edi
cmp edi, 0xffffffff
jne 0x428593
call fcn.0040e480
and si, 0xf
cmp si, 2
jne 0x4285a9
mov esi, 8
mov edi, 1
jmp 0x4285b3
mov esi, 2
mov edi, 4
push 0
push 0
push 0
push esi
push 0
mov eax, dword [ebx + 0x10]
push eax
call sub.kernel32.dll_CreateFileMappingA
mov dword [ebx + 0x14], eax
cmp dword [ebx + 0x14], 0
jne 0x4285ec
mov eax, ebx
call fcn.00428504
mov ecx, dword [0x48892c]
mov dl, 1
mov eax, dword [0x428438]
call fcn.004248c8
call fcn.004045a4
push 0
push 0
push 0
push edi
mov eax, dword [ebx + 0x14]
push eax
call sub.kernel32.dll_MapViewOfFile
mov esi, eax
test esi, esi
jne 0x428620
mov eax, ebx
call fcn.00428504
mov ecx, dword [0x488a58]
mov dl, 1
mov eax, dword [0x42849c]
call fcn.004248c8
call fcn.004045a4
push 0
mov eax, dword [ebx + 0x10]
push eax
call sub.kernel32.dll_GetFileSize_1
cmp eax, 0xffffffff
jne 0x428654
push esi
call sub.kernel32.dll_UnmapViewOfFile
mov eax, ebx
call fcn.00428504
mov ecx, dword [0x4889dc]
mov dl, 1
mov eax, dword [0x42849c]
call fcn.004248c8
call fcn.004045a4
mov ecx, eax
test ecx, ecx
jns 0x42865f
call fcn.00403d28
mov edx, esi
mov eax, ebx
call fcn.0041ece8
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x42867f
call fcn.00404194
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 4

Function at 0x428928
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push ebx
push esi
push edi
mov esi, edx
mov edi, eax
xor eax, eax
push ebp
push 0x4289fc
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.00404b64
push 0
push 0
call sub.kernel32.dll_GetTempPathA
mov ebx, eax
lea eax, [ebp - 4]
mov edx, ebx
call fcn.004051b0
mov eax, dword [ebp - 4]
call fcn.00405024
push eax
push ebx
call sub.kernel32.dll_GetTempPathA
mov ebx, eax
test ebx, ebx
je 0x4289e1
mov eax, dword [ebp - 4]
call fcn.00405024
call fcn.00424c38
mov edx, eax
lea eax, [ebp - 4]
call fcn.004051b0
lea eax, [ebp - 8]
mov edx, 0x104
call fcn.004051b0
mov eax, dword [ebp - 8]
call fcn.00405024
push eax
push 0
mov eax, edi
call fcn.00405024
push eax
mov eax, dword [ebp - 4]
call fcn.00405024
push eax
call sub.kernel32.dll_GetTempFileNameA
mov ebx, eax
test ebx, ebx
je 0x4289e1
mov eax, dword [ebp - 8]
call fcn.00405024
call fcn.00424c38
mov edx, eax
lea eax, [ebp - 8]
call fcn.004051b0
mov eax, esi
mov edx, dword [ebp - 8]
call fcn.00404bb8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x428a03
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404b88
ret