joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1006c55b
Capabilities:
Get system information on windows
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push edi
lea eax, [ebp - 4]
push eax
push str.SoftwareMicrosoftDirect3D
push getpeername
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
xor edi, edi
test eax, eax
jne 0x1006c5c9
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push edi
push 0x100ac984
push dword [ebp - 4]
mov dword [ebp - 8], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1006c5c0
cmp dword [ebp - 0xc], 4
jne 0x1006c5c0
cmp dword [ebp - 0x10], edi
je 0x1006c5c0
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [0x100d2de0], edi
xor eax, eax
jmp 0x1006c608
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [0x100d2de0], edi
jge 0x1006c603
lea eax, [ebp - 0x34]
push eax
mov dword [0x100d2de0], edi
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp word [ebp - 0x34], di
jne 0x1006c603
cmp word [ebp - 0x14], 5
jb 0x1006c603
call fcn.1006c536
test eax, eax
je 0x1006c603
emms
mov dword [0x100d2de0], 1
mov eax, dword [0x100d2de0]
pop edi
leave
ret

Function at 0x1008ea25
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x1008ea5d
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.1008cadc
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.1008cab4
jmp 0x1008ea69
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x10090113
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x10090155
call fcn.10095cae
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x10090155
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x1009014c
xor eax, eax
jmp 0x1009015d
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.10090163
pop edi
pop esi
pop ebx
ret 4
Function at 0x10001590
Capabilities:
Create thread

Disassembly:
mov eax, dword [0x100083d3]
push edi
test eax, eax
je 0x100010f5
mov edi, str.user32.dll
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x100010f5
mov edi, str.CreateWindowExA
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x100010f5
push esi
call fcn.100028c0
push str.CreateWindowExA
push str.user32.dll
call fcn.10002540
mov dword [0x100092b0], eax
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call fcn.10002d20
push 0x10001570
push 0x100092b0
call fcn.10002da0
cmp esi, dword [0x100092b4]
jne 0x100010d7
push section..text
push 0x100092b4
call fcn.10002da0
pop esi
pop edi
jmp 0x10002a70
cmp esi, dword [0x100092b8]
jne 0x100010ee
push 0x10001010
push 0x100092b8
call fcn.10002da0
pop esi
pop edi
jmp 0x10002a70
pop edi
ret
sub esp, 0x104
push edi
call fcn.10001020
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov edx, eax
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 5]
mov byte [esp + 4], 0
push 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 8]
mov dword [0x100092ac], edx
push eax
push edx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [esp + 4]
push 0x10008294
push ecx
call fcn.100011e0
add esp, 8
test eax, eax
pop edi
je 0x1000161a
push 0x10009290
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov eax, dword [0x100083d3]
test eax, eax
je 0x10001608
add esp, 0x104
jmp 0x10001050
push 0
push 0
push 0x10001580
call dword [sym.imp.MSVCRT.dll__beginthread]
add esp, 0xc
add esp, 0x104
ret
push 0
call fcn.10002a80
ret

Function at 0x10001630
Capabilities:
Terminate process

Disassembly:
mov eax, dword [0x100092c0]
sub esp, 0x114
push esi
mov esi, dword [esp + 0x11c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x1000169e
mov ecx, esi
push edi
mov edi, dword [sym.imp.USER32.dll_wsprintfA]
shr ecx, 0x10
jne 0x10001671
push esi
lea edx, [esp + 0xc]
push 0x100084dc
push edx
call edi
add esp, 0xc
lea esi, [esp + 8]
push esi
lea eax, [esp + 0x1c]
push 0x100084b4
push eax
call edi
add esp, 0xc
lea ecx, [esp + 0x18]
push 0x10
push 0x100084ac
push ecx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0xfffffffffffffffe
call dword [sym.imp.KERNEL32.dll_ExitProcess]
pop esi
add esp, 0x114
ret 4
Function at 0x100016b0
Capabilities:
Get common file path

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0x30c
cmp eax, 1
jne 0x1000175e
mov eax, dword [esp + 0x310]
push eax
call dword [sym.imp.KERNEL32.dll_DisableThreadLibraryCalls]
lea ecx, [esp]
push 0x104
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea edx, [esp]
push 0x10008500
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
mov dword [0x100092c0], eax
jne 0x10001740
lea ecx, [esp]
lea edx, [esp + 0x104]
push ecx
push 0x100084e0
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [esp + 0x104]
push 0x10
push 0x100084ac
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov eax, dword [0x100092c0]
test eax, eax
je 0x10001753
call fcn.10001590
mov eax, 1
add esp, 0x30c
ret 0xc
xor eax, eax
add esp, 0x30c
ret 0xc
test eax, eax
jne 0x10001772
mov eax, dword [0x100092c0]
test eax, eax
je 0x10001772
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, 1
add esp, 0x30c
ret 0xc
Function at 0x10002390
Capabilities:
Link many functions at runtime

Disassembly:
mov eax, dword [0x100095f8]
sub esp, 8
push ebx
xor ebx, ebx
cmp eax, ebx
push esi
jne 0x10002538
mov eax, dword [0x100095f4]
cmp eax, ebx
jne 0x1000253a
push edi
mov ecx, 9
xor eax, eax
mov edi, 0x100095d0
rep stosd dword es:[edi], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push str.dbghelp.dll
mov dword [0x100095d0], eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp eax, ebx
mov dword [0x100095d4], eax
pop edi
je 0x100024f9
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.ImagehlpApiVersionEx
push eax
call esi
mov dword [0x100095d8], eax
mov eax, dword [0x100095d4]
push str.SymInitialize
push eax
call esi
mov ecx, dword [0x100095d4]
push str.SymSetOptions
push ecx
mov dword [0x100095dc], eax
call esi
mov edx, dword [0x100095d4]
push str.SymGetOptions
push edx
mov dword [0x100095e0], eax
call esi
mov dword [0x100095e4], eax
mov eax, dword [0x100095d4]
push str.SymLoadModule64
push eax
call esi
mov ecx, dword [0x100095d4]
push str.SymGetModuleInfo64
push ecx
mov dword [0x100095e8], eax
call esi
mov edx, dword [0x100095d4]
push str.SymFromName
push edx
mov dword [0x100095ec], eax
call esi
xor ecx, ecx
mov esi, 7
mov dword [esp + 8], ecx
mov dword [0x100095f0], eax
mov dword [esp + 0xc], ecx
mov ecx, dword [0x100095d8]
cmp ecx, ebx
mov word [esp + 8], si
je 0x100024f4
cmp dword [0x100095dc], ebx
je 0x100024f4
cmp dword [0x100095e8], ebx
je 0x100024f4
cmp dword [0x100095ec], ebx
je 0x100024f4
cmp eax, ebx
je 0x100024f4
lea edx, [esp + 8]
push edx
call ecx
cmp word [esp + 8], si
jb 0x100024f4
mov eax, dword [0x100095d0]
push ebx
push ebx
push eax
call dword [0x100095dc]
test eax, eax
je 0x100024f4
mov eax, dword [0x100095e4]
cmp eax, ebx
je 0x100024df
cmp dword [0x100095e0], ebx
je 0x100024df
call eax
and al, 0xfc
or al, 4
push eax
call dword [0x100095e0]
pop esi
mov dword [0x100095f4], 0x100095d0
mov eax, 0x100095d0
pop ebx
add esp, 8
ret
mov eax, dword [0x100095d4]
cmp eax, ebx
mov dword [0x100095f8], 1
je 0x1000250e
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [0x100095d8], ebx
mov dword [0x100095dc], ebx
mov dword [0x100095e0], ebx
mov dword [0x100095e4], ebx
mov dword [0x100095e8], ebx
mov dword [0x100095ec], ebx
mov dword [0x100095f0], ebx
xor eax, eax
pop esi
pop ebx
add esp, 8
ret
Function at 0x10002800
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100040d0
push 0x10003b40
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
push 0x1c
lea eax, [ebp - 0x34]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 0x38], ecx
cmp word [ecx], 0x5a4d
jne 0x1000289b
mov eax, dword [ecx + 0x3c]
add eax, ecx
mov dword [ebp - 0x3c], eax
cmp dword [eax], 0x4550
jne 0x1000289b
mov edx, dword [eax + 0xd8]
lea edi, [edx + ecx]
mov esi, dword [ebp + 0xc]
cmp esi, edi
jb 0x1000289b
mov eax, dword [eax + 0xdc]
add eax, edx
add eax, ecx
cmp esi, eax
jae 0x1000289b
mov dword [ebp - 4], 0xffffffff
mov al, 1
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 4], 0xffffffff
xor al, al
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10002920
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ecx
push esi
mov esi, dword [0x100095fc]
test esi, esi
je 0x1000294a
push edi
mov edi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [esp + 8]
push eax
push 0x40
push 0x10000
push esi
call edi
mov esi, dword [esi + 4]
test esi, esi
jne 0x10002933
pop edi
pop esi
pop ecx
ret

Function at 0x10002950
Capabilities:
Resume thread

Disassembly:
push ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x10009608], eax
je 0x10002966
mov eax, 0x10dd
pop ecx
ret
push ebx
push ebp
push esi
mov esi, dword [0x10009618]
xor ebp, ebp
push edi
cmp esi, ebp
je 0x100029bd
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov edx, dword [esi + 0x10]
mov ecx, dword [esi + 0x14]
lea eax, [esp + 0x10]
push eax
xor eax, eax
mov al, byte [edx + 0x17]
push ecx
mov ecx, dword [esi + 0xc]
push eax
push ecx
call ebx
cmp dword [esi + 4], ebp
jne 0x100029ac
mov eax, dword [esi + 0x10]
cmp eax, ebp
je 0x100029ac
push eax
call fcn.10002a40
add esp, 4
mov dword [esi + 0x10], ebp
mov edi, dword [esi]
push esi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
cmp edi, ebp
mov esi, edi
jne 0x1000297c
mov dword [0x10009618], ebp
call fcn.10002a10
mov esi, dword [0x10009614]
cmp esi, ebp
je 0x100029ef
mov ebx, dword [sym.imp.KERNEL32.dll_ResumeThread]
mov edx, dword [esi + 4]
push edx
call ebx
mov edi, dword [esi]
push esi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
cmp edi, ebp
mov esi, edi
jne 0x100029d8
pop edi
mov dword [0x10009614], ebp
mov dword [0x10009608], ebp
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
Function at 0x10002d20
Capabilities:
Suspend thread

Disassembly:
mov eax, dword [0x1000960c]
push esi
test eax, eax
push edi
jne 0x10002d96
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov edi, dword [esp + 0xc]
cmp edi, eax
je 0x10002d94
push 8
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov esi, eax
add esp, 4
test esi, esi
jne 0x10002d50
mov edi, 8
jmp 0x10002d6d
push edi
call dword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
jne 0x10002d84
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
mov edi, eax
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov dword [0x1000960c], edi
mov eax, edi
pop edi
mov dword [0x10009610], 0
pop esi
ret 4
mov dword [esi + 4], edi
mov eax, dword [0x10009614]
mov dword [esi], eax
mov dword [0x10009614], esi
xor eax, eax
pop edi
pop esi
ret 4
Function at 0x100032f0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100040e0
push 0x10003b40
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
push 0x1c
lea eax, [ebp - 0x38]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x1000337a
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x34]
cmp word [eax], 0x5a4d
jne 0x10003373
mov ecx, dword [eax + 0x3c]
add ecx, eax
mov dword [ebp - 0x3c], ecx
cmp dword [ecx], 0x4550
jne 0x10003373
cmp word [ecx + 0x14], 0
mov dword [ebp - 4], 0xffffffff
je 0x1000337a
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 4], 0xffffffff
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x432000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43200c
nop
nop
nop
pop eax
nop
nop
nop
add eax, 0x40729f
sub eax, 0x407245
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x432030
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43201e
nop
popal
nop
nop
nop
nop
nop
jmp 0x431219
Function at 0x402e1c
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
add esp, 0xfffffef4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00404568
test esi, esi
jne 0x402e53
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.00404658
jmp 0x402e74
call sub.kernel32.dll_GetCommandLineA
mov dword [esp], eax
mov edx, ebx
mov eax, dword [esp]
call fcn.00402cb8
mov dword [esp], eax
test esi, esi
je 0x402e74
cmp dword [ebx], 0
je 0x402e74
dec esi
jmp 0x402e5b
add esp, 0x10c
pop esi
pop ebx
ret

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

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

Function at 0x4035ac
Capabilities:
Query or enumerate registry value

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

Function at 0x404340
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x48e048], 0
je 0x4043a1
cmp word [0x48e21c], 0xd7b2
jne 0x404369
cmp dword [0x48e224], 0
jbe 0x404369
mov eax, 0x48e218
call dword [0x48e234]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x489070
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 0x4043c8
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x489034], 0
jne 0x4043bd
push 0
push 0x489068
push 0x489070
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x40451c
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.00402a58
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x48e049], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x4044e4
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x40631c
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 0x406382
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.004047d8
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00403140
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x40636c
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406389
lea eax, [ebp - 0x10]
call fcn.00404568
ret

Function at 0x40b988
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 0x40b9c1
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404658
jmp 0x40b9ca
mov eax, ebx
mov edx, esi
call fcn.004045bc
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x40c08c
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40bef4
mov eax, dword [0x48dd80]
cmp byte [eax], 0
je 0x40c108
mov eax, dword [0x48da04]
call fcn.00402f54
call fcn.00402be4
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.00409090
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 0x40c150
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40c13e
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x48d97c]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x48e664]
call fcn.00405788
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 0x40c9ac
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 0x40ca82
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.00404600
lea eax, [ebp - 8]
call fcn.00404a78
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.00404a28
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40ca6c
mov eax, ebx
call fcn.00402a58
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40ca65
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.00404a28
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40ca4f
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40ca94
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40ca4f
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 0x40ca6c
mov eax, dword [ebp - 0x10]
call fcn.00402a88
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40ca89
lea eax, [ebp - 8]
call fcn.00404568
ret

Function at 0x40d0a8
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 0x40d10c
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.004047d8
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00408b34
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d113
lea eax, [ebp - 0xc]
call fcn.00404568
ret

Function at 0x41baa8
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov al, byte [eax + 0xe]
mov byte [ebp - 5], al
xor eax, eax
push ebp
push 0x41baf5
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov byte [eax + 0xe], 1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.kernel32.dll_SuspendThread
test eax, eax
setge dl
mov eax, dword [ebp - 4]
call fcn.0041b8e8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x41bb0d
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret

Function at 0x41bb14
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.0041b8e8
dec esi
jne 0x41bb36
mov byte [ebx + 0xe], 0
pop esi
pop ebx
ret
Function at 0x41cc78
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x48e888
cmp dword [edi], 0
jne 0x41ccf4
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x48e884]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x4893f0
mov ecx, 2
call fcn.00402c78
mov edx, 0x41cc50
lea eax, [esi + 5]
call fcn.0041cc70
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0041cc70
mov dword [ebx + 1], eax
mov eax, dword [edi]
mov dword [ebx + 5], eax
mov dword [edi], ebx
add ebx, 0xd
mov eax, ebx
sub eax, esi
cmp eax, 0xffc
jl 0x41ccc9
mov dword [0x48e884], esi
mov eax, dword [edi]
mov ebx, dword [edi]
mov edx, dword [ebx + 5]
mov dword [edi], edx
mov edx, dword [ebp + 8]
mov dword [ebx + 5], edx
mov edx, dword [ebp + 0xc]
mov dword [ebx + 9], edx
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x41e268
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 0x41e26e
ret

Function at 0x420734
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 0x420785
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x42076c
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x42075c
jmp 0x420785
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 0x42076d
pop ebx
mov esp, ebp
pop ebp
ret