joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10002bd0
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x10029dd8
push 0x1000f820
mov eax, dword fs:[0]
push eax
sub esp, 0x298
mov eax, dword [0x1002c0a0]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov eax, edx
mov dword [ebp - 0x2a8], eax
mov edi, ecx
mov dword [ebp - 0x2a4], edi
xor esi, esi
test edi, edi
je 0x10002d42
test eax, eax
je 0x10002d42
push edi
lea ecx, [ebp - 0x128]
call fcn.100028b0
push 0x10028670
mov edx, 0x104
lea ecx, [ebp - 0x128]
call fcn.10002900
lea eax, [ebp - 0x2a0]
push eax
lea eax, [ebp - 0x128]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x10002c70
or eax, eax
jmp 0x10002d47
test byte [ebp - 0x2a0], 0x10
jne 0x10002ce5
mov eax, edi
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10002c80
sub eax, edx
lea ecx, [ebp - 0x274]
push ecx
mov edx, 0x104
sub edx, eax
lea ecx, [ebp - 0x128]
add ecx, eax
call fcn.10002900
push 0
push 0
push 3
push 0
push 3
push 0
lea eax, [ebp - 0x128]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x10002cdf
lea eax, [ebp - 0x15c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
jne 0x10002cfb
mov edi, dword [ebp - 0x2a4]
lea eax, [ebp - 0x2a0]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x10002c70
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x10002d37
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x140]
mov ecx, dword [ebp - 0x2a8]
mov dword [ecx], eax
jmp 0x10002d30
mov dword [ebp - 4], 0xfffffffe
neg esi
sbb esi, esi
neg esi
lea eax, [esi - 1]
jmp 0x10002d47
mov eax, 0xfffffc13
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.1000c79d
mov esp, ebp
pop ebp
ret
Function at 0x10002fb0
Capabilities:
Get hostname
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x200
mov eax, dword [0x1002c0a0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
lea eax, [ebp - 0x200]
push eax
push 0x202
mov edi, ecx
or esi, 0xffffffff
call dword [sym.imp.WS2_32.dll_WSAStartup]
push 0x32
lea eax, [ebp - 0x6c]
push 0
push eax
call fcn.1000f020
push 0x32
lea eax, [ebp - 0x38]
push 0
push eax
call fcn.1000f020
add esp, 0x18
lea eax, [ebp - 0x6c]
push 0x32
push eax
call dword [sym.imp.WS2_32.dll_gethostname]
test eax, eax
jne 0x10003057
lea eax, [ebp - 0x6c]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
push dword [eax]
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
lea eax, [ebp - 0x38]
push 0x32
push eax
call fcn.1000d725
add esp, 0xc
cmp byte [ebp - 0x38], 0
jne 0x10003039
xor ecx, ecx
jmp 0x10003049
lea ecx, [ebp - 0x38]
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10003040
sub ecx, edx
push ecx
lea eax, [ebp - 0x38]
push eax
mov ecx, edi
call fcn.100022b0
xor esi, esi
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
xor ecx, ebp
pop esi
call fcn.1000c79d
mov esp, ebp
pop ebp
ret
Function at 0x10003070
Capabilities:
Get local ipv4 addresses
Get mac address on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100211d8
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x1002c0a0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x28], 0xf
mov dword [ebp - 0x2c], 0
mov byte [ebp - 0x3c], 0
push 0x11
push str.00:00:00:00:00:00
mov dword [ebp - 4], 0
call fcn.100022b0
lea ecx, [ebp - 0x3c]
call fcn.10003230
cmp eax, 0xffffffff
je 0x100031f4
push 0x288
mov dword [ebp - 0x40], 4
call fcn.1000d693
mov ebx, eax
add esp, 4
mov dword [ebp - 0x44], ebx
test ebx, ebx
je 0x100031f4
mov esi, dword [sym.imp.IPHLPAPI.DLL_GetAdaptersInfo]
lea eax, [ebp - 0x40]
push eax
push ebx
call esi
cmp eax, 0x6f
jne 0x1000312a
push ebx
call fcn.1000d346
add esp, 4
push dword [ebp - 0x40]
call fcn.1000d693
mov ebx, eax
add esp, 4
mov dword [ebp - 0x44], eax
test ebx, ebx
je 0x100031f4
lea eax, [ebp - 0x40]
push eax
push ebx
call esi
test eax, eax
jne 0x100031f4
mov edi, ebx
mov ebx, dword [ebp - 0x2c]
mov edi, edi
cmp byte [edi + 0x1b0], 0
lea edx, [edi + 0x1b0]
jne 0x10003153
xor esi, esi
jmp 0x10003161
mov esi, edx
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x10003158
sub esi, ecx
cmp dword [ebp - 0x28], 0x10
lea ecx, [ebp - 0x3c]
cmovae ecx, dword [ebp - 0x3c]
mov eax, esi
cmp ebx, esi
cmovb eax, ebx
push eax
call fcn.10002850
add esp, 4
test eax, eax
jne 0x1000318d
cmp ebx, esi
jb 0x1000318d
cmp ebx, esi
setne al
test eax, eax
je 0x10003195
mov edi, dword [edi]
test edi, edi
jne 0x10003140
jmp 0x100031e2
movzx eax, byte [edi + 0x199]
push eax
movzx eax, byte [edi + 0x198]
push eax
movzx eax, byte [edi + 0x197]
push eax
movzx eax, byte [edi + 0x196]
push eax
movzx eax, byte [edi + 0x195]
push eax
movzx eax, byte [edi + 0x194]
push eax
lea eax, [ebp - 0x24]
push str._02X:_02X:_02X:_02X:_02X:_02X
push eax
call fcn.100039c0
mov ecx, dword [ebp - 0x48]
add esp, 0x20
lea eax, [ebp - 0x24]
push eax
call fcn.10002230
push dword [ebp - 0x44]
call fcn.1000d346
add esp, 4
mov esi, 1
jmp 0x100031f7
or esi, 0xffffffff
cmp dword [ebp - 0x28], 0x10
jb 0x10003208
push dword [ebp - 0x3c]
call fcn.1000c7ac
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1000c79d
mov esp, ebp
pop ebp
ret
Function at 0x10003230
Capabilities:
Connect socket
Connect udp socket
Create udp socket
Get local ipv4 addresses
Get socket information
Reference google public dns server

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80
mov eax, dword [0x1002c0a0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0
push 2
push 2
mov esi, ecx
call dword [sym.imp.WS2_32.dll_socket]
mov edi, eax
test edi, edi
jns 0x1000327a
push 7
push str.0.0.0.0
mov ecx, esi
call fcn.100022b0
or eax, 0xffffffff
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000c79d
mov esp, ebp
pop ebp
ret
xorps xmm0, xmm0
mov eax, 2
movq qword [ebp - 0x6c], xmm0
push str.8.8.8.8
movq qword [ebp - 0x64], xmm0
mov word [ebp - 0x6c], ax
call dword [sym.imp.WS2_32.dll_inet_addr]
push 0x35
mov dword [ebp - 0x68], eax
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x6a], ax
push 0x10
lea eax, [ebp - 0x6c]
push eax
push edi
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
js 0x10003259
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x7c]
push eax
push edi
mov dword [ebp - 0x5c], 0x10
call dword [sym.imp.WS2_32.dll_getsockname]
push 0x50
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x78]
push eax
push 2
call dword [sym.imp.WS2_32.dll_inet_ntop]
test eax, eax
je 0x10003259
cmp byte [ebp - 0x58], 0
jne 0x100032f5
xor ecx, ecx
jmp 0x10003309
lea ecx, [ebp - 0x58]
lea edx, [ecx + 1]
jmp 0x10003300
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10003300
sub ecx, edx
push ecx
lea eax, [ebp - 0x58]
push eax
mov ecx, esi
call fcn.100022b0
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
mov eax, 1
pop esi
call fcn.1000c79d
mov esp, ebp
pop ebp
ret

Function at 0x10003a20
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1002144a
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x1002c0a0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [ebp + 8]
push 0
mov dword [ebp - 0x18], esi
call fcn.1001addc
mov dword [ebp - 4], 0
mov dword [esi + 4], 0
mov byte [esi + 8], 0
mov dword [esi + 0xc], 0
mov byte [esi + 0x10], 0
xor eax, eax
mov dword [esi + 0x14], 0
mov word [esi + 0x18], ax
mov dword [esi + 0x1c], eax
mov word [esi + 0x20], ax
mov dword [esi + 0x24], eax
mov byte [esi + 0x28], al
mov dword [esi + 0x2c], eax
mov byte [esi + 0x30], al
mov byte [ebp - 4], 6
test edi, edi
jne 0x10003ac6
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x14], str.bad_locale_name
call fcn.1000d7b1
push 0x10029d3c
lea eax, [ebp - 0x24]
push eax
mov dword [ebp - 0x24], vtable.std::runtime_error.0
call fcn.1000f270
push edi
push esi
call fcn.1001b073
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1000c79d
mov esp, ebp
pop ebp
ret 4
Function at 0x1000bbd0
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x37cc
call fcn.10019f30
mov eax, dword [0x1002c0a0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_DeviceIoControl]
push esi
xor eax, eax
push edi
mov dword [ebp - 0x37cc], eax
xor edi, edi
lea ebx, [ebx]
push edi
lea eax, [ebp - 0x108]
push str..PhysicalDrive_d
push eax
call fcn.1000c740
add esp, 0xc
lea eax, [ebp - 0x108]
push 0
push 0
push 3
push 0
push 3
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x1000bdcb
push 0x2710
xorps xmm0, xmm0
lea eax, [ebp - 0x2fe8]
movq qword [ebp - 0x37c8], xmm0
push 0
push eax
mov dword [ebp - 0x37bc], 0
mov dword [ebp - 0x37c0], 0
mov dword [ebp - 0x37c8], 0
mov dword [ebp - 0x37c4], 0
call fcn.1000f020
add esp, 0xc
lea eax, [ebp - 0x37bc]
push 0
push eax
push 0x2710
lea eax, [ebp - 0x2fe8]
push eax
push 0xc
lea eax, [ebp - 0x37c8]
push eax
push 0x2d1400
push esi
call ebx
test eax, eax
je 0x1000bdbe
mov edx, dword [ebp - 0x2fdc]
lea eax, [ebp - 0x37b8]
push eax
push 0
lea ecx, [ebp - 0x2fe8]
call fcn.1000ba70
mov edx, dword [ebp - 0x2fd8]
lea eax, [ebp - 0x8d8]
push eax
push 0
lea ecx, [ebp - 0x2fe8]
call fcn.1000ba70
mov edx, dword [ebp - 0x2fd4]
lea eax, [ebp - 0x33d0]
push eax
push 0
lea ecx, [ebp - 0x2fe8]
call fcn.1000ba70
mov edx, dword [ebp - 0x2fd0]
lea eax, [ebp - 0x4f0]
push eax
push 1
lea ecx, [ebp - 0x2fe8]
call fcn.1000ba70
add esp, 0x20
cmp byte [0x1002ef00], 0
jne 0x1000bd85
movsx eax, byte [ebp - 0x4f0]
push eax
call fcn.1000e207
add esp, 4
test eax, eax
jne 0x1000bd4c
movsx eax, byte [ebp - 0x4dd]
push eax
call fcn.1000e207
add esp, 4
test eax, eax
je 0x1000bd85
lea eax, [ebp - 0x4f0]
push eax
push 0x400
push 0x1002ef00
call fcn.1000d725
lea eax, [ebp - 0x8d8]
push eax
push 0x400
push 0x1002eb00
call fcn.1000d725
add esp, 0x18
mov dword [ebp - 0x37cc], 1
push 0x2710
lea eax, [ebp - 0x2fe8]
push 0
push eax
call fcn.1000f020
add esp, 0xc
lea eax, [ebp - 0x37bc]
push 0
push eax
push 0x2710
lea eax, [ebp - 0x2fe8]
push eax
push 0
push 0
push 0x700a0
push esi
call ebx
jmp 0x1000bdc4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc edi
cmp edi, 0x10
jl 0x1000bc00
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x37cc]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1000c79d
mov esp, ebp
pop ebp
ret
Function at 0x10015184
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x1002c0a0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
xor edi, edi
push edi
mov dword [ebp - 0x20], eax
call ebx
mov esi, eax
mov dword [ebp - 0x18], esi
call fcn.10011395
mov dword [ebp - 0x14], eax
cmp dword [0x1002e848], edi
jne 0x10015275
push 0x800
push edi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
jne 0x10015202
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x10015355
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x10015355
push str.MessageBoxW
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x10015355
push eax
call ebx
push str.GetActiveWindow
push esi
mov dword [0x1002e848], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push esi
mov dword [0x1002e84c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push esi
mov dword [0x1002e850], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x1002e858], eax
test eax, eax
je 0x10015272
push str.GetProcessWindowStation
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x1002e854], eax
mov esi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x1001529a
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x1001528d
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], edi
je 0x100152af
push 4
pop eax
jmp 0x10015357
cmp dword [ebp - 0x14], edi
je 0x100152af
push dword [0x1002e848]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x10015294
mov eax, dword [0x1002e854]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, esi
je 0x1001530d
cmp dword [0x1002e858], esi
je 0x1001530d
push eax
call ebx
push dword [0x1002e858]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x1001530d
test eax, eax
je 0x1001530d
call ecx
test eax, eax
je 0x10015302
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x10015302
test byte [ebp - 8], 1
jne 0x1001530d
mov esi, dword [ebp + 0x10]
or esi, 0x200000
jmp 0x1001533d
mov eax, dword [0x1002e84c]
cmp eax, esi
je 0x1001533a
push eax
call ebx
test eax, eax
je 0x1001533a
call eax
mov edi, eax
test edi, edi
je 0x1001533a
mov eax, dword [0x1002e850]
cmp eax, esi
je 0x1001533a
push eax
call ebx
test eax, eax
je 0x1001533a
push edi
call eax
mov edi, eax
mov esi, dword [ebp + 0x10]
push dword [0x1002e848]
call ebx
test eax, eax
je 0x10015355
push esi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push edi
call eax
jmp 0x10015357
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1000c79d
leave
ret
Function at 0x100196dd
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.10011114
mov esi, dword [ebp + 8]
push 2
mov edi, eax
lea eax, [ebp - 4]
push eax
mov ecx, esi
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x10019715
xor eax, eax
jmp 0x10019741
cmp esi, dword [ebp - 4]
je 0x1001973e
cmp dword [ebp + 0xc], 0
je 0x1001973e
push dword [edi + 0x9c]
call fcn.100192eb
push dword [edi + 0x9c]
mov esi, eax
call fcn.1001506d
pop ecx
pop ecx
cmp esi, eax
je 0x10019711
xor eax, eax
inc eax
pop edi
pop esi
leave
ret
Function at 0x402ff8
Capabilities:
Query or enumerate registry value

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

Function at 0x403d5c
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x48204c], 0
je 0x403dbd
cmp word [0x482220], 0xd7b2
jne 0x403d85
cmp dword [0x482228], 0
jbe 0x403d85
mov eax, 0x48221c
call dword [0x482238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x47f06c
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 0x403de4
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x47f030], 0
jne 0x403dd9
push 0
push 0x47f064
push 0x47f06c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x405e80
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 0x405ee6
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.00404168
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402bbc
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x405ed0
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405eed
lea eax, [ebp - 0x10]
call fcn.00403ef8
ret

Function at 0x40b034
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 0x40b06d
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00403fe8
jmp 0x40b076
mov eax, ebx
mov edx, esi
call fcn.00403f4c
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x40b728
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40b5a0
mov eax, dword [0x4817b0]
cmp byte [eax], 0
je 0x40b7a4
mov eax, dword [0x481494]
call fcn.00402a28
call fcn.0040289c
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.00408874
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 0x40b7ec
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40b7da
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x48142c]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x482668]
call fcn.00405394
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 0x40c088
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 0x40c15e
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.00403f90
lea eax, [ebp - 8]
call fcn.00404424
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.004043d4
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40c148
mov eax, ebx
call fcn.00402734
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40c141
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.004043d4
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40c12b
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40c170
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40c12b
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 0x40c148
mov eax, dword [ebp - 0x10]
call fcn.00402754
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c165
lea eax, [ebp - 8]
call fcn.00403ef8
ret

Function at 0x40c670
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 0x40c6d4
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.00404168
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.0040839c
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c6db
lea eax, [ebp - 0xc]
call fcn.00403ef8
ret

Function at 0x41e320
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x482888
cmp dword [edi], 0
jne 0x41e39c
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x482884]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x47f3fc
mov ecx, 2
call fcn.00402930
mov edx, 0x41e2f8
lea eax, [esi + 5]
call fcn.0041e318
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0041e318
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 0x41e371
mov dword [0x482884], 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 0x41f930
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 0x41f936
ret
Function at 0x421ec0
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 0x421f11
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x421ef8
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x421ee8
jmp 0x421f11
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 0x421ef9
pop ebx
mov esp, ebp
pop ebp
ret