joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4d6f80
Capabilities:
Access peb ldr_data
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4d714b
push dword fs:[eax]
mov dword fs:[eax], esp
mov ebx, dword [edx + 0xc]
mov eax, dword [edx + 0x10]
mov edx, dword [ebx + 0x28]
add edx, 0x30
dec edx
cmp eax, edx
jne 0x4d7135
lea edx, [ebp - 8]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x40]
mov ecx, dword [eax]
call dword [ecx + 0xc]
xor eax, eax
push ebp
push 0x4d712e
push dword fs:[eax]
mov dword fs:[eax], esp
mov al, byte [ebx + 0xc]
sub al, 1
jb 0x4d6fe5
je 0x4d70bc
dec al
je 0x4d7007
jmp 0x4d7115
lea eax, [ebx + 0x2c]
push eax
mov eax, dword [ebx + 0x28]
push eax
mov eax, dword [ebx + 0x1c]
push eax
push 0
mov cx, word [ebx + 0x24]
mov edx, dword [ebx + 0x20]
mov eax, dword [ebp - 4]
call fcn.004d6bb0
jmp 0x4d7115
lea edx, [ebp - 0x10]
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
call dword [ecx + 0x2c]
xor eax, eax
push ebp
push 0x4d70b5
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
mov edx, dword [eax]
call dword [edx + 0xc]
mov esi, eax
dec esi
cmp esi, 0
jl 0x4d709c
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + esi*8 + 4]
mov dword [ebp - 0xc], eax
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [ebp - 0xc]
sub eax, dword [edx + 0xc]
cmp eax, 0x1d4c0
ja 0x4d7096
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
xor edx, edx
push edx
push eax
mov eax, dword [ebx + 0x18]
cdq
cmp edx, dword [esp + 4]
jne 0x4d7062
cmp eax, dword [esp]
pop edx
pop eax
je 0x4d7096
cmp dword [ebx + 0x1c], 0x1e
jle 0x4d7073
mov dword [ebx + 0x1c], 0x1e
lea eax, [ebx + 0x2c]
push eax
mov eax, dword [ebx + 0x28]
push eax
mov eax, dword [ebx + 0x1c]
push eax
push 0
mov eax, dword [ebp - 0xc]
mov cx, word [eax + 8]
mov eax, dword [ebp - 0xc]
mov edx, dword [eax + 4]
mov eax, dword [ebp - 4]
call fcn.004d6bb0
dec esi
cmp esi, 0xffffffff
jne 0x4d7030
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d7115
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
call dword [ecx + 0x30]
ret
lea ecx, [ebp - 0xc]
mov edx, dword [ebx + 0x14]
mov eax, dword [ebp - 8]
mov esi, dword [eax]
call dword [esi + 0x20]
test al, al
je 0x4d7115
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [ebp - 0xc]
sub eax, dword [edx + 0xc]
cmp eax, 0x2bf20
jbe 0x4d70f2
mov edx, dword [ebx + 0x14]
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
call dword [ecx + 0x1c]
call fcn.004045dc
jmp 0x4d7135
lea eax, [ebx + 0x2c]
push eax
mov eax, dword [ebx + 0x28]
push eax
mov eax, dword [ebx + 0x1c]
push eax
push 0
mov eax, dword [ebp - 0xc]
mov cx, word [eax + 8]
mov eax, dword [ebp - 0xc]
mov edx, dword [eax + 4]
mov eax, dword [ebp - 4]
call fcn.004d6bb0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d7135
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x40]
mov edx, dword [eax]
call dword [edx + 0x10]
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d7152
lea eax, [ebp - 8]
call fcn.004069cc
ret
Function at 0x4d886c
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
push edi
mov esi, eax
xor eax, eax
push ebp
push 0x4d893f
push dword fs:[eax]
mov dword fs:[eax], esp
cmp byte [esi + 0x10740], 0
je 0x4d8929
call sub.kernel32.dll_GetTickCount_1
sub eax, dword [esi + 0x10730]
cmp eax, 0x1388
jbe 0x4d8929
call sub.kernel32.dll_GetTickCount_1
mov dword [esi + 0x10730], eax
xor edx, edx
push ebp
push 0x4d88ed
push dword fs:[edx]
mov dword fs:[edx], esp
xor eax, eax
mov dword [esi + 0x1073c], eax
mov ebx, 1
mov eax, dword [esi + ebx*4 + 0x10634]
test eax, eax
je 0x4d88dd
mov edx, dword [eax]
call dword [edx + 0x10]
inc ebx
cmp ebx, 0x29
jne 0x4d88cd
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4d8929
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d8946
lea eax, [ebp - 4]
call fcn.00404bb4
ret
Function at 0x401000
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x435004]
jne 0x40100a
repz ret
jmp fcn.0040170c

Function at 0x404c0b
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x435004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00402b8c
and dword [ebp - 0x14], 0
cmp dword [0x4374f0], 0
mov dword [ebp - 0x18], eax
jne 0x404cbe
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x404d66
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x404d66
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x4374f0], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x4374f4], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x4374f8], eax
call edi
push eax
call esi
mov dword [0x437500], eax
test eax, eax
je 0x404cbe
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x4374fc], eax
mov eax, dword [0x4374fc]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x404d17
cmp dword [0x437500], ecx
je 0x404d17
push eax
call esi
push dword [0x437500]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x404d17
test ebx, ebx
je 0x404d17
call edi
test eax, eax
je 0x404d0e
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x404d0e
test byte [ebp - 8], 1
jne 0x404d17
or dword [ebp + 0x10], 0x200000
jmp 0x404d4a
mov eax, dword [0x4374f4]
cmp eax, dword [ebp - 0x18]
je 0x404d4a
push eax
call esi
test eax, eax
je 0x404d4a
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x404d4a
mov eax, dword [0x4374f8]
cmp eax, dword [ebp - 0x18]
je 0x404d4a
push eax
call esi
test eax, eax
je 0x404d4a
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x4374f0]
call esi
test eax, eax
je 0x404d66
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x404d68
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401000
leave
ret

Function at 0x431926
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
push 0x40
push dword [0x438da4]
push dword [0x438bf0]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
leave
ret
Function at 0x4319b5
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x810
mov eax, dword [0x435004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x80c], eax
cmp ebx, 0x19f
jne 0x4319e1
push 0
call dword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
push edi
xor edi, edi
test ebx, ebx
jle 0x431a29
push esi
and dword [ebp - 0x808], 0
lea esi, [ebp - 0x808]
call fcn.004319aa
mov eax, dword [ebp - 0x80c]
mov cl, byte [ebp - 0x808]
xor byte [eax + edi], cl
cmp ebx, 0xf
jne 0x431a23
lea eax, [ebp - 0x810]
push eax
lea eax, [ebp - 0x804]
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
inc edi
cmp edi, ebx
jl 0x4319e9
pop esi
pop edi
cmp ebx, 0x2d
jne 0x431a40
or dword [0x438edc], 0xffffffff
mov dword [0x438ed8], 0xa62e7790
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401000
leave
ret
Function at 0x401a90
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x1b
mov dword [esp + 4], 1
lea ebx, [esp + 0x24]
mov dword [esp], str.Mingw_w64_runtime_failure:_n
add eax, 0x40
mov dword [esp + 0xc], eax
call sym._fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp + 4], eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp], eax
call sym._vfprintf
call sym._abort
jmp dbg.mark_section_writable

Function at 0x401af0
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
sub esp, 0x30
mov esi, dword [0x4050f0]
test esi, esi
jle 0x401bdd
mov edi, dword [0x4050f4]
xor ebx, ebx
lea edx, [edi + 4]
nop
mov ecx, dword [edx]
cmp ecx, eax
ja 0x401b24
mov edi, dword [edx + 4]
add ecx, dword [edi + 8]
cmp eax, ecx
jb 0x401bd6
add ebx, 1
add edx, 0xc
cmp ebx, esi
jne 0x401b10
mov dword [esp], eax
mov ebx, eax
call dbg.__mingw_GetSectionForAddress
test eax, eax
mov edi, eax
je 0x401c1a
lea ebx, [esi + esi*2]
mov esi, dword [0x4050f4]
shl ebx, 2
add esi, ebx
mov dword [esi + 8], eax
mov dword [esi], 0
call dbg._GetPEImageBase
add eax, dword [edi + 0xc]
mov dword [esi + 4], eax
lea eax, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], eax
mov eax, dword [0x4050f4]
mov eax, dword [eax + ebx + 4]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x401bfa
mov eax, dword [esp + 0x28]
lea edx, [eax - 4]
and edx, 0xfffffffb
je 0x401bcf
sub eax, 0x40
and eax, 0xffffffbf
je 0x401bcf
mov eax, dword [esp + 0x20]
add ebx, dword [0x4050f4]
mov dword [esp + 8], 0x40
mov dword [esp + 4], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0xc], ebx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
je 0x401be4
add dword [0x4050f0], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
xor esi, esi
jmp 0x401b2e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call dbg.__report_error
mov eax, dword [0x4050f4]
mov eax, dword [eax + ebx + 4]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call dbg.__report_error
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call dbg.__report_error
lea esi, [esi]
Function at 0x4020e0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x405488
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x405480]
sub esp, 4
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
test ebx, ebx
je 0x402135
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
sub esp, 4
mov esi, eax
call edi
test eax, eax
jne 0x40212e
test esi, esi
je 0x40212e
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x402110
mov dword [esp], 0x405488
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x402350
Capabilities:
Enumerate pe sections

Disassembly:
push esi
push ebx
mov edx, dword [esp + 0xc]
mov ebx, dword [esp + 0x10]
add edx, dword [edx + 0x3c]
movzx esi, word [edx + 6]
movzx eax, word [edx + 0x14]
test esi, esi
lea eax, [edx + eax + 0x18]
je 0x402388
xor ecx, ecx
nop
mov edx, dword [eax + 0xc]
cmp edx, ebx
ja 0x40237e
add edx, dword [eax + 8]
cmp ebx, edx
jb 0x40238a
add ecx, 1
add eax, 0x28
cmp ecx, esi
jne 0x402370
xor eax, eax
pop ebx
pop esi
ret
Function at 0x401000
Capabilities:
Create service
Persist via windows service
Start service

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push 2
xor edi, edi
push edi
push edi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov ebx, eax
cmp ebx, edi
je 0x40105c
push edi
push edi
push edi
push edi
push edi
push dword [ebp + 8]
mov esi, 0xf01ff
push 1
push 2
push 0x110
push esi
push dword [ebp + 0xc]
push dword [ebp + 0xc]
push ebx
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
mov dword [ebp - 4], eax
cmp eax, edi
je 0x40105c
push esi
push dword [ebp + 0xc]
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
cmp eax, edi
je 0x40105c
push edi
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
push dword [ebp - 4]
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push ebx
call esi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4010da
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1fc
mov eax, dword [0x40a020]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 2
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov esi, 0x40aeb0
jl 0x401109
push dword [eax + 4]
push esi
call fcn.00401910
pop ecx
pop ecx
mov edi, 0x40ae78
push edi
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0x1f4
lea eax, [ebp - 0x1fc]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push str.WinPlayer
mov ebx, 0x40ac80
push ebx
call fcn.00401910
push esi
push 0x40816c
call fcn.004018b9
add esp, 0x10
test eax, eax
je 0x401181
push esi
push 0x408168
call fcn.004018b9
pop ecx
pop ecx
test eax, eax
je 0x401181
push 0
push 0
push 0x4010c7
call fcn.0040166b
add esp, 0xc
push 0x40a004
call dword [sym.imp.ADVAPI32.dll_StartServiceCtrlDispatcherA]
push edi
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
jmp 0x401190
lea eax, [ebp - 0x1fc]
push ebx
push eax
call fcn.00401000
pop ecx
pop ecx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.00401a08
leave
ret

Function at 0x401a08
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40a020]
jne 0x401a12
repz ret
jmp fcn.00403d57
Function at 0x402a9c
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.00404160
test esi, esi
jne 0x402ad2
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.00404250
jmp 0x402af0
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00402950
mov edi, eax
test esi, esi
je 0x402af0
cmp dword [ebx], 0
je 0x402af0
dec esi
jmp 0x402ad9
add esp, 0x108
pop edi
pop esi
pop ebx
ret

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

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

Function at 0x403240
Capabilities:
Query or enumerate registry value

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

Function at 0x403fe4
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4d004c], 0
je 0x404045
cmp word [0x4d0220], 0xd7b2
jne 0x40400d
cmp dword [0x4d0228], 0
jbe 0x40400d
mov eax, 0x4d021c
call dword [0x4d0238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x4c9070
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 0x40406c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4c9034], 0
jne 0x404061
push 0
push 0x4c9068
push 0x4c9070
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x4060bc
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 0x406122
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.004043d0
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402de0
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x40610c
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406129
lea eax, [ebp - 0x10]
call fcn.00404160
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.0040463c
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x408e3d
test al, 0x10
jne 0x408e41
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x408f30
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.0040463c
push eax
call sub.kernel32.dll_SetFileAttributesA
test eax, eax
jne 0x408f52
call sub.kernel32.dll_GetLastError
mov ebx, eax
mov eax, ebx
pop edi
pop esi
pop ebx
ret

Function at 0x40badc
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 0x40bb15
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404250
jmp 0x40bb1e
mov eax, ebx
mov edx, esi
call fcn.004041b4
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40c048
mov eax, dword [0x4cf224]
cmp byte [eax], 0
je 0x40c24c
mov eax, dword [0x4ceee0]
call fcn.00402bf4
call fcn.0040287c
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.004091d4
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 0x40c294
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40c282
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x4cee6c]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x4d0668]
call fcn.004055d0
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 0x40cb54
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 0x40cc2a
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.004041f8
lea eax, [ebp - 8]
call fcn.0040468c
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.0040463c
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40cc14
mov eax, ebx
call fcn.00402714
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40cc0d
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.0040463c
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40cbf7
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40cc3c
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40cbf7
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 0x40cc14
mov eax, dword [ebp - 0x10]
call fcn.00402734
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40cc31
lea eax, [ebp - 8]
call fcn.00404160
ret

Function at 0x40d1ec
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 0x40d250
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.004043d0
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00408a84
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d257
lea eax, [ebp - 0xc]
call fcn.00404160
ret
Function at 0x422f30
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x4d0888
cmp dword [edi], 0
jne 0x422fac
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x4d0884]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x4c94a8
mov ecx, 2
call fcn.00402910
mov edx, 0x422f08
lea eax, [esi + 5]
call fcn.00422f28
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.00422f28
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 0x422f81
mov dword [0x4d0884], 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 0x424580
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 0x424586
ret

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