joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402db4
Capabilities:
Get common file path
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1000
call fcn.00409350
mov eax, dword [0x2abf018]
mov ecx, dword [0x2abdf6c]
push esi
shr eax, 3
xor esi, esi
cmp eax, esi
jbe 0x402ea9
push ebx
push edi
mov edi, ecx
mov ebx, eax
cmp dword [0x2abf018], 0x959
jne 0x402e97
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_SignalObjectAndWait]
push 0x402768
push esi
call dword [sym.imp.KERNEL32.dll_CreateJobObjectW]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_EnumDateFormatsExW]
push 0x402818
push esi
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
push 0x4028a0
push esi
call dword [sym.imp.KERNEL32.dll_SetFileShortNameA]
push esi
lea eax, [ebp - 0x800]
push eax
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_LCMapStringA]
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push esi
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push esi
call dword [sym.imp.KERNEL32.dll_HeapUnlock]
push esi
push esi
push esi
push esi
push esi
push esi
push 0x4028f0
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push esi
lea eax, [ebp - 0x400]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push esi
lea eax, [ebp - 0x1000]
push eax
push esi
push 0x4027f4
push esi
call dword [sym.imp.KERNEL32.dll_FoldStringW]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push 0x402958
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push edi
call fcn.00402bd7
add edi, 8
dec ebx
jne 0x402de0
pop edi
pop ebx
pop esi
leave
ret
Function at 0x4030ff
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x42c
push ebx
push esi
xor ebx, ebx
push edi
xor esi, esi
push ebx
call dword [sym.imp.USER32.dll_CharUpperW]
call dword [sym.imp.USER32.dll_GetMessageExtraInfo]
cmp esi, 0x2710
jge 0x403132
lea eax, [ebp - 0x42c]
push eax
push ebx
call dword [sym.imp.GDI32.dll_GetDeviceGammaRamp]
inc esi
cmp esi, 0x5d744c
jl 0x40310f
xor esi, esi
mov edi, 0x2b259d
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp esi, edi
jle 0x403155
cmp dword [ebp - 4], 0x785074d5
jne 0x40315e
inc esi
cmp esi, 0x1c1b
jl 0x403142
xor esi, esi
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
call dword [sym.imp.KERNEL32.dll_GetLastError]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
cmp esi, 0x206d47
jg 0x403184
inc esi
cmp esi, 0x4f6a4
jl 0x403160
cmp dword [0x2abf018], 0x400
jne 0x4031a6
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasExesLengthA]
push ebx
push ebx
call fcn.00403218
push ebx
call fcn.00403292
add esp, 0xc
mov eax, dword [0x44b04c]
mov dword [0x2abf018], eax
mov eax, dword [0x44b020]
mov dword [0x2abf01c], eax
call fcn.00402ec6
xor esi, esi
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFindAtomA]
cmp esi, edi
jle 0x4031d5
cmp dword [ebp - 4], 0x785074d5
jne 0x4031de
inc esi
cmp esi, 0x11915
jl 0x4031c1
mov esi, 0x3078f
cmp dword [0x2abf018], 0x51f
jne 0x4031f9
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
dec esi
jne 0x4031e3
mov eax, dword [0x2abdf6c]
mov dword [0x2abe5ac], eax
call eax
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret 0x10
Function at 0x406f0c
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0040476c
and dword [ebp - 4], 0
cmp dword [0x44b8e8], 0
mov ebx, eax
jne 0x406fbd
push 0x4019c4
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40706e
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4019b8
push edi
call esi
test eax, eax
je 0x40706e
push eax
call fcn.004046fa
mov dword [esp], 0x4019a8
push edi
mov dword [0x44b8e8], eax
call esi
push eax
call fcn.004046fa
mov dword [esp], 0x401994
push edi
mov dword [0x44b8ec], eax
call esi
push eax
call fcn.004046fa
mov dword [esp], 0x401978
push edi
mov dword [0x44b8f0], eax
call esi
push eax
call fcn.004046fa
pop ecx
mov dword [0x44b8f8], eax
test eax, eax
je 0x406fbd
push 0x401960
push edi
call esi
push eax
call fcn.004046fa
pop ecx
mov dword [0x44b8f4], eax
mov eax, dword [0x44b8f4]
cmp eax, ebx
je 0x407015
cmp dword [0x44b8f8], ebx
je 0x407015
push eax
call fcn.00404775
push dword [0x44b8f8]
mov esi, eax
call fcn.00404775
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x407015
test edi, edi
je 0x407015
call esi
test eax, eax
je 0x40700c
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40700c
test byte [ebp - 0xc], 1
jne 0x407015
or dword [ebp + 0x10], 0x200000
jmp 0x40704e
mov eax, dword [0x44b8ec]
cmp eax, ebx
je 0x40704e
push eax
call fcn.00404775
pop ecx
test eax, eax
je 0x40704e
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40704e
mov eax, dword [0x44b8f0]
cmp eax, ebx
je 0x40704e
push eax
call fcn.00404775
pop ecx
test eax, eax
je 0x40704e
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x44b8e8]
call fcn.00404775
pop ecx
test eax, eax
je 0x40706e
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x407070
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x407825
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x44aa10]
jne 0x40782f
repz ret
jmp fcn.00408ed9
Function at 0x432003
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
mov eax, section..text
nop
nop
nop
nop
push 4
nop
pop edi
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x432072
nop
nop
nop
mov ebx, 0x40c7d0
nop
nop
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
xor edx, edx
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x3e5d6245
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
nop
loop 0x432060
nop
nop
mov eax, section..data
nop
cmp eax, 0
nop
nop
je 0x4320d2
nop
nop
nop
nop
mov ebx, 0x42f314
nop
nop
nop
nop
nop
mov ecx, ebx
sub ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x7d76546a
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x4320c0
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x401800
Capabilities:
Create directory
Write file on windows

Disassembly:
sub esp, 0x15c
mov eax, dword [0x40b040]
xor eax, esp
mov dword [esp + 0x154], eax
mov eax, dword [esp + 0x160]
push ebx
push ebp
push esi
push edi
xor esi, esi
push esi
push 0x20
push 2
push esi
push 3
push 0x40000000
push str..ClinkApi.dll
mov dword [esp + 0x34], eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x401912
push str..ClinkApi.dll
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, eax
lea ecx, [edi + 2]
push ecx
mov dword [esp + 0x20], edi
call fcn.004019d8
add esp, 4
cmp edi, esi
mov ebp, eax
jle 0x4018e9
mov edi, ebp
sub edi, str..ClinkApi.dll
jmp 0x401880
mov dl, byte [esi + str..ClinkApi.dll]
mov byte [edi + esi + str..ClinkApi.dll], dl
mov al, byte [esi + str..ClinkApi.dll]
cmp al, 0x2f
je 0x40189b
cmp al, 0x5c
jne 0x4018de
lea eax, [esp + 0x20]
push eax
push ebp
mov byte [edi + esi + str..ClinkApi.dll], 0
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
je 0x4018c4
test byte [esp + 0x20], 0x10
je 0x4018c4
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x4018d1
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov dword [esp + 0x10], eax
mov cl, byte [esi + str..ClinkApi.dll]
mov byte [edi + esi + str..ClinkApi.dll], cl
add esi, 1
cmp esi, dword [esp + 0x1c]
jl 0x401880
xor esi, esi
push ebp
call fcn.00401975
add esp, 4
cmp dword [esp + 0x10], esi
je 0x401960
push esi
push 0x20
push 2
push esi
push 3
push 0x40000000
push str..ClinkApi.dll
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, esi
je 0x401943
mov eax, dword [esp + 0x174]
mov ecx, dword [esp + 0x18]
push esi
lea edx, [esp + 0x18]
push edx
push eax
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40193c
mov dword [esp + 0x10], 1
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x164]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00401966
add esp, 0x15c
ret
mov dword [esp + 0x10], esi
jmp 0x401916

Function at 0x401966
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40b040]
jne 0x401970
repz ret
jmp fcn.00401c91
Function at 0x402521
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x40b070]
je 0x40253c
inc edi
cmp edi, 0x17
jb 0x40252d
cmp edi, 0x17
jae 0x4026bc
push ebp
push 3
call fcn.004051c9
cmp eax, 1
pop ecx
je 0x402688
push 3
call fcn.004051c9
test eax, eax
pop ecx
jne 0x402570
cmp dword [0x40b03c], 1
je 0x402688
cmp ebx, 0xfc
je 0x4026bb
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x40c310
push ebp
call fcn.004045a6
add esp, 0xc
test eax, eax
je 0x4025a6
push esi
push esi
push esi
push esi
push esi
call fcn.00404962
add esp, 0x14
push 0x104
mov esi, 0x40c329
push esi
push 0
mov byte [0x40c42d], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4025ea
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.004045a6
add esp, 0xc
test eax, eax
je 0x4025ea
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.00404962
add esp, 0x14
push esi
call fcn.00404610
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x40262f
push esi
call fcn.00404610
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x40c624
push 0x40878c
sub ecx, eax
push ecx
push eax
call fcn.00405116
add esp, 0x14
test eax, eax
je 0x40262f
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.00404962
add esp, 0x14
jmp 0x402631
xor esi, esi
push 0x408788
push ebx
push ebp
call fcn.004050a5
add esp, 0xc
test eax, eax
je 0x402651
push esi
push esi
push esi
push esi
push esi
call fcn.00404962
add esp, 0x14
push dword [edi*8 + 0x40b074]
push ebx
push ebp
call fcn.004050a5
add esp, 0xc
test eax, eax
je 0x402673
push esi
push esi
push esi
push esi
push esi
call fcn.00404962
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.00404ee8
add esp, 0xc
jmp 0x4026bb
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x4026bb
cmp ebp, 0xffffffff
je 0x4026bb
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x40b074]
push dword [esi]
call fcn.00404610
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x404ee8
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.0040308d
xor ebx, ebx
cmp dword [0x40c8dc], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x404fbe
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x40509e
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4088b8
push edi
call esi
cmp eax, ebx
je 0x40509e
push eax
call fcn.0040301f
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x40c8dc], eax
call esi
push eax
call fcn.0040301f
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x40c8e0], eax
call esi
push eax
call fcn.0040301f
mov dword [0x40c8e4], eax
lea eax, [ebp - 0xc]
push eax
call fcn.004022ae
test eax, eax
pop ecx
pop ecx
je 0x404f8c
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00404962
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x404fbe
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.0040301f
cmp eax, ebx
pop ecx
mov dword [0x40c8ec], eax
je 0x404fbe
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0040301f
pop ecx
mov dword [0x40c8e8], eax
mov eax, dword [0x40c8e8]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x405043
cmp dword [0x40c8ec], ecx
je 0x405043
push eax
call fcn.00403096
push dword [0x40c8ec]
mov esi, eax
call fcn.00403096
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x405043
cmp edi, ebx
je 0x405043
call esi
cmp eax, ebx
je 0x405010
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x405010
test byte [ebp - 0x18], 1
jne 0x405043
lea eax, [ebp - 0x10]
push eax
call fcn.004022e5
test eax, eax
pop ecx
je 0x40502b
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00404962
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x40503a
or dword [ebp + 0x10], 0x200000
jmp 0x40507e
or dword [ebp + 0x10], 0x40000
jmp 0x40507e
mov eax, dword [0x40c8e0]
cmp eax, dword [ebp - 8]
je 0x40507e
push eax
call fcn.00403096
cmp eax, ebx
pop ecx
je 0x40507e
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x40507e
mov eax, dword [0x40c8e4]
cmp eax, dword [ebp - 8]
je 0x40507e
push eax
call fcn.00403096
cmp eax, ebx
pop ecx
je 0x40507e
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x40c8dc]
call fcn.00403096
cmp eax, ebx
pop ecx
je 0x40509e
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4050a0
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x402ef8
Capabilities:
Generate random numbers using the delphi lcg

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

Function at 0x403350
Capabilities:
Query or enumerate registry value

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

Function at 0x4040f0
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x61f04c], 0
je 0x404151
cmp word [0x61f220], 0xd7b2
jne 0x404119
cmp dword [0x61f228], 0
jbe 0x404119
mov eax, 0x61f21c
call dword [0x61f238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x456070
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 0x404178
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x456034], 0
jne 0x40416d
push 0
push 0x456068
push 0x456070
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x406110
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 0x406176
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.004044e4
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402f14
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x406160
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40617d
lea eax, [ebp - 0x10]
call fcn.00404274
ret

Function at 0x40b1e0
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 0x40b219
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404364
jmp 0x40b222
mov eax, ebx
mov edx, esi
call fcn.004042c8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x40b8e4
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40b74c
mov eax, dword [0x61e758]
cmp byte [eax], 0
je 0x40b960
mov eax, dword [0x61e560]
call fcn.00402d64
call fcn.00402bd4
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.0040899c
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 0x40b9a8
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40b996
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x61e50c]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x61f668]
call fcn.0040557c
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 0x40c24c
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 0x40c322
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.0040430c
lea eax, [ebp - 8]
call fcn.00404784
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.00404734
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40c30c
mov eax, ebx
call fcn.00402a48
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40c305
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.00404734
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40c2ef
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40c334
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40c2ef
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 0x40c30c
mov eax, dword [ebp - 0x10]
call fcn.00402a78
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c329
lea eax, [ebp - 8]
call fcn.00404274
ret

Function at 0x40c7fc
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 0x40c860
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.004044e4
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.004084f8
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c867
lea eax, [ebp - 0xc]
call fcn.00404274
ret
Function at 0x41dc0c
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
lea ebx, [ebp - 0xc]
mov esi, 0x61f888
cmp dword [esi], 0
jne 0x41dcb2
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov edx, dword [0x61f884]
mov dword [eax], edx
mov eax, dword [ebp - 8]
lea edx, [eax + 4]
mov eax, 0x456400
mov ecx, 2
call fcn.00402c68
mov edx, 0x41dbe4
mov eax, dword [ebp - 8]
add eax, 5
call fcn.0041dc04
mov edx, dword [ebp - 8]
mov dword [edx + 6], eax
mov eax, dword [ebp - 8]
add eax, 0xa
mov dword [ebx], eax
mov eax, dword [ebx]
mov byte [eax], 0xe8
mov eax, dword [ebp - 8]
lea edx, [eax + 4]
mov eax, dword [ebx]
call fcn.0041dc04
mov edx, dword [ebx]
mov dword [edx + 1], eax
mov eax, dword [ebx]
mov edx, dword [esi]
mov dword [eax + 5], edx
mov eax, dword [ebx]
mov dword [esi], eax
add dword [ebx], 0xd
mov eax, dword [ebx]
sub eax, dword [ebp - 8]
cmp eax, 0xffc
jl 0x41dc79
mov eax, dword [ebp - 8]
mov dword [0x61f884], eax
mov eax, dword [esi]
mov dword [ebp - 4], eax
mov eax, dword [esi]
mov dword [ebx], eax
mov eax, dword [ebx]
mov eax, dword [eax + 5]
mov dword [esi], eax
mov eax, dword [ebx]
mov edx, dword [ebp + 8]
mov dword [eax + 5], edx
mov edx, dword [ebp + 0xc]
mov dword [eax + 9], edx
mov eax, dword [ebp - 4]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x41eed8
Capabilities:
Encode data using xor

Disassembly:
mov ecx, edx
mov edx, eax
xor eax, eax
rol ax, 5
xor al, byte [edx]
inc edx
dec ecx
jne 0x41eede
ret

Function at 0x421350
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x2c]
push eax
call sub.kernel32.dll_GetSystemInfo
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 8]
dec ecx
js 0x4213a1
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x421388
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x421378
jmp 0x4213a1
push ebx
xor ebx, ebx
mov eax, dword [edx + ecx*4]
mov bh, al
mov bl, ah
shr eax, 0x10
shl ebx, 8
mov bl, al
mov dword [edx + ecx*4], ebx
dec ecx
jns 0x421389
pop ebx
mov esp, ebp
pop ebp
ret