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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x467913
add esp, 0xfffffff0
call fcn.00403748
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.004257e4
mov eax, dword [0x4be5c8]
cmp word [eax + 2], 0
jne 0x46793b
mov eax, dword [0x4be5c8]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0046907c
mov eax, dword [0x4be6dc]
cmp word [eax + 2], 0
jne 0x467955
mov eax, dword [0x4be6dc]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00469274
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x41aaa0]
call fcn.004033b4
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x41aaa0]
call fcn.004033b4
mov dword [ebx + 0xa8], eax
xor eax, eax
mov dword [ebx + 0x60], eax
xor eax, eax
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x5c], 0xff000018
mov dword [ebx + 0x78], 0x1f4
mov byte [ebx + 0x7c], 1
xor eax, eax
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x74], 0x9c4
mov byte [ebx + 0x88], 0
mov byte [ebx + 0x9d], 1
mov byte [ebx + 0xb4], 1
mov dl, 1
mov eax, dword [0x427d48]
call fcn.0042f4f8
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x467adc
mov eax, dword [0x4be430]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.0042f8c8
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x469824
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x4be430]
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.0040d79c
test eax, eax
je 0x467a4a
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.004092e4
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040d7c4
test eax, eax
je 0x467a5e
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.004043e4
mov eax, dword [0x4be240]
cmp byte [eax], 0
jne 0x467a92
mov eax, ebx
call fcn.00467c04
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.00469a00
mov eax, ebx
call fcn.0046a3c4
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x467ad2
call fcn.004037a0
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x467e84
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x4bfbe0]
cmp dword [eax + 0x30], 0
je 0x467f2e
cmp dword [ebx + 0x94], 0
jne 0x467f28
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x467e14
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x467f28
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 0x467eee
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x467f28
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.0041d2d4
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x467efd
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x468a90
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 0x468ac5
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.00404264
jmp 0x468ad2
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.004041c8
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x469bdc
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x469c1d
mov eax, esi
call fcn.0044fe8c
test al, al
je 0x469c1d
mov eax, dword [ebx + 0x84]
call fcn.0044fb88
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x469c1d
push 0
mov eax, dword [ebx + 0x84]
call fcn.0044fb88
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret

Function at 0x48f31b
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
xor ebx, ebx
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push 0x4bdfde
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x48f373
movzx edx, word [ebp + 8]
mov dword [ebp - 8], edx
lea ecx, [ebp - 8]
push ecx
push dword [ebp + 0xc]
push 0
push 0
push 0x4bdfff
push dword [ebp - 4]
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x48f369
mov bx, 0x2a04
push dword [ebp - 4]
call sub.advapi32.dll_RegCloseKey_1
jmp 0x48f377
mov bx, 0x2a04
mov eax, ebx
pop ebx
pop ecx
pop ecx
pop ebp
ret 8
Function at 0x4a3ddc
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffde4
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x21c], ecx
mov dword [ebp - 0x218], ecx
mov dword [ebp - 0x214], ecx
mov dword [ebp - 0x210], ecx
mov dword [ebp - 0x20c], ecx
mov ebx, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4a403c
push dword fs:[eax]
mov dword fs:[eax], esp
cmp ebx, 1
jl 0x4a3e3f
lea edx, [ebp - 0x20c]
mov eax, dword [ebp - 4]
call fcn.004a38a4
mov eax, dword [ebp - 0x20c]
mov edx, ebx
call fcn.0040d2c8
cmp al, 1
jne 0x4a3e3f
dec ebx
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 4]
call fcn.004a3bbc
test al, al
je 0x4a3fcb
cmp dword [ebp - 8], 0
jge 0x4a3e5d
xor eax, eax
mov dword [ebp - 8], eax
mov ebx, dword [ebp - 8]
inc ebx
lea edx, [ebp - 0x210]
mov eax, dword [ebp - 4]
call fcn.004a38a4
mov eax, dword [ebp - 0x210]
call fcn.00404434
cmp ebx, eax
jge 0x4a3ea7
lea edx, [ebp - 0x214]
mov eax, dword [ebp - 4]
call fcn.004a38a4
mov eax, dword [ebp - 0x214]
mov al, byte [eax + ebx - 1]
mov edx, dword [0x4be8d0]
and eax, 0xff
bt dword [edx], eax
jae 0x4a3ea7
inc ebx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x228]
cmp eax, dword [ebp - 8]
jg 0x4a3ebb
mov dword [ebp - 8], eax
mov ebx, dword [ebp - 8]
mov ecx, ebx
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.004a3db8
cmp ebx, dword [ebp - 8]
je 0x4a3fbd
lea eax, [ebp - 0x108]
push eax
call sub.user32.dll_GetKeyboardState
mov edx, pe_nt_image_headers32
lea eax, [ebp - 0x208]
mov byte [eax], 0
inc eax
dec edx
jne 0x4a3ee7
mov byte [ebp - 0x1f8], 0x81
mov eax, dword [ebp - 4]
mov si, 0xffc8
call fcn.004035e0
and eax, 0x7f
movzx eax, word [eax*2 + 0x4be1b8]
mov byte [ebp + eax - 0x208], 0x81
lea eax, [ebp - 0x208]
push eax
call sub.user32.dll_SetKeyboardState
mov eax, dword [ebp - 4]
mov byte [eax + 0x23c], 1
xor eax, eax
push ebp
push 0x4a3faa
push dword fs:[eax]
mov dword fs:[eax], esp
push 1
mov eax, dword [ebp - 4]
mov si, 0xffc8
call fcn.004035e0
and eax, 0x7f
movzx eax, word [eax*2 + 0x4be1b8]
push eax
push pe_nt_image_headers32
mov eax, dword [ebp - 4]
call fcn.0044fb88
push eax
call sub.user32.dll_SendMessageA
push 1
mov eax, dword [ebp - 4]
mov si, 0xffc8
call fcn.004035e0
and eax, 0x7f
movzx eax, word [eax*2 + 0x4be1b8]
push eax
push 0x101
mov eax, dword [ebp - 4]
call fcn.0044fb88
push eax
call sub.user32.dll_SendMessageA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a3fb1
mov eax, dword [ebp - 4]
mov byte [eax + 0x23c], 0
ret
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov dword [eax + 0x230], edx
jmp 0x4a401e
cmp dword [ebp - 8], 0
jge 0x4a3fd6
xor eax, eax
mov dword [ebp - 8], eax
lea edx, [ebp - 0x218]
mov eax, dword [ebp - 4]
call fcn.004a38a4
mov eax, dword [ebp - 0x218]
call fcn.00404434
cmp eax, dword [ebp - 8]
jg 0x4a4010
lea edx, [ebp - 0x21c]
mov eax, dword [ebp - 4]
call fcn.004a38a4
mov eax, dword [ebp - 0x21c]
call fcn.00404434
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.004a3db8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a4043
lea eax, [ebp - 0x21c]
mov edx, 5
call fcn.00404198
ret
Function at 0x403158
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.00404970
test esi, esi
jne 0x40318e
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.00404a60
jmp 0x4031ac
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.0040305c
mov edi, eax
test esi, esi
je 0x4031ac
cmp dword [ebx], 0
je 0x4031ac
dec esi
jmp 0x403195
add esp, 0x108
pop edi
pop esi
pop ebx
ret

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

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

Function at 0x403928
Capabilities:
Query or enumerate registry value

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

Function at 0x4047f0
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4f704c], 0
je 0x404851
cmp word [0x4f7220], 0xd7b2
jne 0x404819
cmp dword [0x4f7228], 0
jbe 0x404819
mov eax, 0x4f721c
call dword [0x4f7238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push str.Runtime_error_____at_00000000
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 0x404878
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x46f030], 0
jne 0x40486d
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x406124
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 0x406354
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x4061a7
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x406354
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x4061a7
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x406370
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x406230
xor eax, eax
push ebp
push 0x406229
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00405f60
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 0x40620e
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x406390
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x40620e
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 0x406230
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 0x40634a
cmp byte [ebp - 0xd], 0
jne 0x406277
cmp byte [ebp - 0x12], 0
je 0x40634a
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x406290
dec ebx
cmp byte [ebx], 0x2e
je 0x40629f
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x40628f
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x40634a
inc ebx
cmp byte [ebp - 0x12], 0
je 0x4062dc
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 0x40634a
cmp byte [ebp - 0xd], 0
je 0x40634a
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 0x40634a
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 0x407cb8
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
mov edx, 0x407d00
mov eax, 0x407d04
mov ecx, 0x80000000
call fcn.00407770
mov esi, eax
push 0
push ebx
call sub.user32.dll_ShowWindow
push esi
push 0xfffffffffffffff8
push ebx
call sub.user32.dll_SetWindowLongA
push 5
push ebx
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret

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

Disassembly:
push eax
call 0x406d98
cmp eax, 0xffffffff
je 0x407e73
test al, 0x10
je 0x407e76
xor eax, eax
ret
mov al, 1
ret

Function at 0x407e7c
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc0
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x18], edx
mov esi, eax
xor eax, eax
push ebp
push 0x407fe3
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x10]
push eax
lea edx, [ebp - 0x18]
xor eax, eax
call fcn.00403158
mov eax, dword [ebp - 0x18]
call fcn.00404e34
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x407fc0
push ebx
push 0x40
call sub.kernel32.dll_GlobalAlloc
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x407fb6
xor eax, eax
push ebp
push 0x407faf
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
push eax
push ebx
push 0
lea edx, [ebp - 0x1c]
xor eax, eax
call fcn.00403158
mov eax, dword [ebp - 0x1c]
call fcn.00404e34
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x407f98
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x407ff4
mov eax, dword [ebp - 8]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x407f8c
mov ebx, dword [ebp - 0x14]
lea eax, [ebp - 0x20]
push eax
mov edi, dword [ebx + 8]
mov eax, edi
shr eax, 0x10
mov dword [ebp - 0x40], eax
mov byte [ebp - 0x3c], 0
and edi, 0xffff
mov dword [ebp - 0x38], edi
mov byte [ebp - 0x34], 0
mov eax, dword [ebx + 0xc]
shr eax, 0x10
mov dword [ebp - 0x30], eax
mov byte [ebp - 0x2c], 0
mov eax, dword [ebx + 0xc]
and eax, 0xffff
mov dword [ebp - 0x28], eax
mov byte [ebp - 0x24], 0
lea edx, [ebp - 0x40]
mov ecx, 3
mov eax, 0x408000
call fcn.00407d44
mov edx, dword [ebp - 0x20]
mov eax, esi
call fcn.004049c4
jmp 0x407f98
mov eax, esi
mov edx, 0x408014
call fcn.004049c4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x407fc8
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GlobalFree
ret
call sub.kernel32.dll_GetLastError
mov dword [ebp - 4], eax
jmp 0x407fc8
call sub.kernel32.dll_GetLastError
mov dword [ebp - 4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x407fea
lea eax, [ebp - 0x20]
mov edx, 3
call fcn.00404994
ret
Function at 0x40814c
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404e24
xor eax, eax
push ebp
push 0x408208
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
mov edx, 0x408220
call fcn.004049c4
push 0
push 0x20
push 4
push 0
push 3
push 0xc0000000
lea eax, [ebp - 4]
call fcn.00404e8c
push eax
call sub.kernel32.dll_CreateFileA
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4081f2
push 0xffff
push 0x42
call sub.kernel32.dll_GlobalAlloc
mov esi, eax
test esi, esi
jne 0x4081bc
push ebx
call sub.kernel32.dll_CloseHandle
jmp 0x4081f2
push esi
call sub.kernel32.dll_GlobalLock
mov edi, eax
push 0
lea eax, [ebp - 0xc]
push eax
push 0xfffe
push edi
push ebx
call sub.kernel32.dll_ReadFile
mov eax, dword [ebp - 8]
mov edx, edi
call fcn.00404b68
push ebx
call sub.kernel32.dll_CloseHandle
push edi
call sub.kernel32.dll_GlobalUnlock
push esi
call sub.kernel32.dll_GlobalFree
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40820f
lea eax, [ebp - 4]
call fcn.00404970
ret

Function at 0x408224
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffc00
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
mov eax, ebx
call fcn.00404e34
push eax
push 0x400
lea eax, [ebp - 0x400]
push eax
mov eax, dword [ebp + 0xc]
call fcn.00404e34
push eax
mov eax, edi
call fcn.00404e34
push eax
mov eax, esi
call fcn.00404e34
push eax
call sub.kernel32.dll_GetPrivateProfileStringA
mov ecx, eax
lea edx, [ebp - 0x400]
mov eax, dword [ebp + 8]
call fcn.00404a60
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x409b9c
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, eax
mov eax, edx
test esi, esi
je 0x409c2c
mov edx, dword [esi - 4]
mov edi, eax
test edx, edx
jle 0x409c2c
mov ecx, dword [eax]
mov ebx, edx
test ecx, ecx
je 0x409bdf
test edx, 3
jne 0x409bce
xor edx, dword [ecx - 4]
cmp edx, 3
jbe 0x409bd9
jmp 0x409bdf
or edx, 2
xor edx, dword [ecx - 4]
cmp edx, 1
ja 0x409bdf
cmp dword [ecx - 8], 1
je 0x409be9
mov edx, ebx
or edx, 3
call fcn.004050bc
mov edi, dword [edi]
mov dword [edi - 4], ebx
mov byte [edi + ebx], 0
add ebx, 0xffffffff
and ebx, 0xfffffffc
mov eax, dword [esi + ebx]
mov ecx, eax
or eax, 0x80808080
mov edx, eax
sub eax, 0x7b7b7b7b
xor edx, ecx
or eax, 0x80808080
sub eax, 0x66666666
and eax, edx
shr eax, 2
xor eax, ecx
mov dword [edi + ebx], eax
mov eax, dword [esi + ebx - 4]
sub ebx, 4
jge 0x409bfb
pop edi
pop esi
pop ebx
ret
pop edi
pop esi
pop ebx
jmp fcn.00404970

Function at 0x409c38
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, eax
mov eax, edx
test esi, esi
je 0x409cc8
mov edx, dword [esi - 4]
mov edi, eax
test edx, edx
jle 0x409cc8
mov ecx, dword [eax]
mov ebx, edx
test ecx, ecx
je 0x409c7b
test edx, 3
jne 0x409c6a
xor edx, dword [ecx - 4]
cmp edx, 3
jbe 0x409c75
jmp 0x409c7b
or edx, 2
xor edx, dword [ecx - 4]
cmp edx, 1
ja 0x409c7b
cmp dword [ecx - 8], 1
je 0x409c85
mov edx, ebx
or edx, 3
call fcn.004050bc
mov edi, dword [edi]
mov dword [edi - 4], ebx
mov byte [edi + ebx], 0
add ebx, 0xffffffff
and ebx, 0xfffffffc
mov eax, dword [esi + ebx]
mov ecx, eax
or eax, 0x80808080
mov edx, eax
sub eax, 0x5b5b5b5b
xor edx, ecx
or eax, 0x80808080
sub eax, 0x66666666
and eax, edx
shr eax, 2
xor eax, ecx
mov dword [edi + ebx], eax
mov eax, dword [esi + ebx - 4]
sub ebx, 4
jge 0x409c97
pop edi
pop esi
pop ebx
ret
pop edi
pop esi
pop ebx
jmp fcn.00404970

Function at 0x40d068
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 0x40d0a1
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404a60
jmp 0x40d0aa
mov eax, ebx
mov edx, esi
call fcn.004049c4
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40d0b4
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 0x40d0d6
movzx eax, byte [esp]
jmp 0x40d0d8
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x40d768
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40d5e0
mov eax, dword [0x4f65b8]
cmp byte [eax], 0
je 0x40d7e4
mov eax, dword [0x4f63a0]
call fcn.004032b4
call fcn.00402ec8
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.0040a71c
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 0x40d82c
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40d81a
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x4f6340]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x4f97f8]
call fcn.00405f08
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 0x40e0cc
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor edx, edx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40e1a2
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.00404a08
lea eax, [ebp - 4]
call fcn.00404e84
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00404e34
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40e18c
mov eax, ebx
call fcn.00402d6c
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40e185
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 - 4]
call fcn.00404e34
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40e16f
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40e1b4
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40e16f
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40e18c
mov eax, dword [ebp - 0x10]
call fcn.00402d88
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40e1a9
lea eax, [ebp - 4]
call fcn.00404970
ret