joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40dde0
Capabilities:
Connect to http server
Create http request
Parse url
Read data from internet
Receive data
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x754
mov dword [ebp - 0x304], 0
mov dword [ebp - 0x344], 0
push 0x38
push 0
lea eax, [ebp - 0x340]
push eax
call sub.ntdll.dll_memset
add esp, 0xc
mov dword [ebp - 0x344], 0x3c
lea ecx, [ebp - 0x100]
mov dword [ebp - 0x334], ecx
mov dword [ebp - 0x330], 0x100
lea edx, [ebp - 0x300]
mov dword [ebp - 0x318], edx
mov dword [ebp - 0x314], 0x200
lea eax, [ebp - 0x344]
push eax
push 0x10000000
push 0
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.WININET.dll_InternetCrackUrlA]
push 0
push 0
push 0
push 1
push 0
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [ebp - 0x308], eax
cmp dword [ebp - 0x308], 0
je 0x40dff7
push 0
push 0
push 3
push 0
push 0
movzx edx, word [ebp - 0x32c]
push edx
lea eax, [ebp - 0x100]
push eax
mov ecx, dword [ebp - 0x308]
push ecx
call dword [sym.imp.WININET.dll_InternetConnectA]
mov dword [ebp - 0x348], eax
cmp dword [ebp - 0x348], 0
je 0x40dfea
push 0
push 0
push 0
push 0
push 0
lea edx, [ebp - 0x300]
push edx
push 0x411a10
mov eax, dword [ebp - 0x348]
push eax
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov dword [ebp - 0x34c], eax
cmp dword [ebp - 0x34c], 0
je 0x40dfdd
push 0
push 0
push 0
push 0
mov ecx, dword [ebp - 0x34c]
push ecx
call dword [sym.imp.WININET.dll_HttpSendRequestA]
test eax, eax
je 0x40dfd0
cmp dword [ebp + 0xc], 0
je 0x40dfc6
mov dword [ebp - 0x350], 0
mov edx, 1
test edx, edx
je 0x40dfb9
lea eax, [ebp - 0x754]
push eax
push 0x400
lea ecx, [ebp - 0x750]
push ecx
mov edx, dword [ebp - 0x34c]
push edx
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x40df5b
cmp dword [ebp - 0x754], 0
jne 0x40df5d
jmp 0x40dfb9
mov eax, dword [ebp - 0x350]
add eax, dword [ebp - 0x754]
push eax
mov ecx, dword [ebp - 0x304]
push ecx
call fcn.0040a200
add esp, 8
mov dword [ebp - 0x304], eax
mov edx, dword [ebp - 0x754]
push edx
lea eax, [ebp - 0x750]
push eax
mov ecx, dword [ebp - 0x304]
add ecx, dword [ebp - 0x350]
push ecx
call sub.ntdll.dll_memcpy
add esp, 0xc
mov edx, dword [ebp - 0x350]
add edx, dword [ebp - 0x754]
mov dword [ebp - 0x350], edx
jmp 0x40df21
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x350]
mov dword [eax], ecx
jmp 0x40dfd0
mov dword [ebp - 0x304], 1
mov edx, dword [ebp - 0x34c]
push edx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, dword [ebp - 0x348]
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov ecx, dword [ebp - 0x308]
push ecx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, dword [ebp - 0x304]
mov esp, ebp
pop ebp
ret
Function at 0x40e710
Capabilities:
Connect to http server
Create http request
Parse url
Read data from internet
Receive data
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x75c
mov dword [ebp - 0x304], 0
mov dword [ebp - 0x344], 0
push 0x38
push 0
lea eax, [ebp - 0x340]
push eax
call sub.ntdll.dll_memset
add esp, 0xc
mov dword [ebp - 0x344], 0x3c
lea ecx, [ebp - 0x100]
mov dword [ebp - 0x334], ecx
mov dword [ebp - 0x330], 0x100
lea edx, [ebp - 0x300]
mov dword [ebp - 0x318], edx
mov dword [ebp - 0x314], 0x200
lea eax, [ebp - 0x344]
push eax
push 0x10000000
push 0
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.WININET.dll_InternetCrackUrlA]
push 0
push 0
push 0
push 1
push str.Mozilla_4.0__compatible__UPnP_1.0__Windows_9x_
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [ebp - 0x308], eax
cmp dword [ebp - 0x308], 0
je 0x40e941
push 0
push 0
push 3
push 0
push 0
movzx edx, word [ebp - 0x32c]
push edx
lea eax, [ebp - 0x100]
push eax
mov ecx, dword [ebp - 0x308]
push ecx
call dword [sym.imp.WININET.dll_InternetConnectA]
mov dword [ebp - 0x348], eax
cmp dword [ebp - 0x348], 0
je 0x40e934
push 0
push 0
push 0
push 0
push 0
lea edx, [ebp - 0x300]
push edx
push str.POST
mov eax, dword [ebp - 0x348]
push eax
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov dword [ebp - 0x34c], eax
cmp dword [ebp - 0x34c], 0
je 0x40e927
push 0xa0000000
push 0xffffffffffffffff
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 0x34c]
push edx
call dword [sym.imp.WININET.dll_HttpAddRequestHeadersA]
mov dword [ebp - 0x350], str.Content_Type:_text_xml__charset_utf_8__r_nConnection:_Close_r_nCache_Control:_no_cache_r_nPragma:_no_cache_r_n
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax]
push ecx
mov edx, dword [ebp + 0x10]
push edx
push 0xffffffffffffffff
mov eax, dword [ebp - 0x350]
push eax
mov ecx, dword [ebp - 0x34c]
push ecx
call dword [sym.imp.WININET.dll_HttpSendRequestA]
test eax, eax
je 0x40e91a
mov dword [ebp - 0x354], 0
mov edx, 1
test edx, edx
je 0x40e90f
lea eax, [ebp - 0x75c]
push eax
push 0x400
lea ecx, [ebp - 0x758]
push ecx
mov edx, dword [ebp - 0x34c]
push edx
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x40e8b1
cmp dword [ebp - 0x75c], 0
jne 0x40e8b3
jmp 0x40e90f
mov eax, dword [ebp - 0x354]
add eax, dword [ebp - 0x75c]
push eax
mov ecx, dword [ebp - 0x304]
push ecx
call fcn.0040a200
add esp, 8
mov dword [ebp - 0x304], eax
mov edx, dword [ebp - 0x75c]
push edx
lea eax, [ebp - 0x758]
push eax
mov ecx, dword [ebp - 0x304]
add ecx, dword [ebp - 0x354]
push ecx
call sub.ntdll.dll_memcpy
add esp, 0xc
mov edx, dword [ebp - 0x354]
add edx, dword [ebp - 0x75c]
mov dword [ebp - 0x354], edx
jmp 0x40e877
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp - 0x354]
mov dword [eax], ecx
mov edx, dword [ebp - 0x34c]
push edx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, dword [ebp - 0x348]
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov ecx, dword [ebp - 0x308]
push ecx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, dword [ebp - 0x304]
mov esp, ebp
pop ebp
ret
Function at 0x40e950
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push 0xa
lea eax, [ebp - 0xc]
push eax
push 7
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
push 0x4124e8
lea ecx, [ebp - 0xc]
push ecx
call sub.ntdll.dll_strcmp
add esp, 8
test eax, eax
jne 0x40e982
mov al, 1
jmp 0x40e984
xor al, al
mov esp, ebp
pop ebp
ret

Function at 0x40e990
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], 0
push 0
push 0
push 3
push 0
push 1
push accept
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
je 0x40e9d8
push 0
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 4], eax
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x40e9e0
Capabilities:
Get file size
Read file via mapping
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov byte [ebp - 0x11], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 4], 0
push 0
push 0
push 3
push 0
push 0
push accept
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
je 0x40eb3a
push 0
push 0
push 0
push 2
push 0
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x40eb30
push 0
push 0
push 0
push 4
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x40eb26
push 0
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0x100
jbe 0x40eb1c
mov ecx, dword [ebp - 0x1c]
push ecx
call fcn.0040ca10
add esp, 4
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x40eb1c
mov edx, dword [ebp - 8]
sub edx, 0x100
mov eax, dword [ebp - 0x10]
cmp dword [eax + 0x18], edx
jne 0x40eb1c
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x18]
mov dword [ebp - 8], edx
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 0x1c]
add ecx, 0x100
push ecx
push 0x10
mov edx, dword [ebp - 0x10]
add edx, 8
push edx
call fcn.0040c3b0
add esp, 0x10
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x40eb1c
lea eax, [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp - 4]
push edx
call fcn.0040a700
add esp, 0xc
push 0x10
lea eax, [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 0x10]
add ecx, 8
push ecx
call sub.ntdll.dll_memcmp
add esp, 0xc
test eax, eax
je 0x40eb1c
mov edx, dword [ebp - 4]
push edx
call fcn.0040a3d0
add esp, 4
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 4], 0
je 0x40eb94
push 0
push 0
push 2
push 0
push 0
push 0x40000000
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
je 0x40eb88
mov byte [ebp - 0x11], 1
push 0
lea ecx, [ebp - 8]
push ecx
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
push eax
call fcn.0040a3d0
add esp, 4
mov al, byte [ebp - 0x11]
mov esp, ebp
pop ebp
ret
Function at 0x40eba0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
push 0x44
push 0
lea eax, [ebp - 0x60]
push eax
call sub.ntdll.dll_memset
add esp, 0xc
push 0x10
push 0
lea ecx, [ebp - 0x14]
push ecx
call sub.ntdll.dll_memset
add esp, 0xc
mov dword [ebp - 0x60], 0x44
mov dword [ebp - 0x34], 1
mov edx, 5
mov word [ebp - 0x30], dx
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x60]
push ecx
push 0
push 0
push 0x20
push 0
push 0
push 0
mov edx, dword [ebp + 8]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
cmp eax, 1
jne 0x40ec11
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov al, 1
jmp 0x40ec48
push 0
push 0
push 0
mov eax, dword [ebp + 8]
push eax
push 0x4124ec
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x64], ecx
cmp dword [ebp - 0x64], 0x20
jle 0x40ec46
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov al, 1
jmp 0x40ec48
xor al, al
mov esp, ebp
pop ebp
ret

Function at 0x40ec50
Capabilities:
Create http request
Get http content length
Reference http user-agent string

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov byte [ebp - 5], 0
push 0
push 0
push 0
push 1
push 0x4124f8
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x40ece8
push 0
push 0
push 0
push 0
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x40ecde
mov dword [ebp - 0x14], 4
push 0
lea edx, [ebp - 0x14]
push edx
lea eax, [ebp - 0x10]
push eax
push 0x20000005
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
cmp dword [ebp - 0x10], 0x1388
jbe 0x40ecd4
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x10]
cmp eax, dword [edx]
je 0x40ecd4
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 0x10]
mov dword [ecx], edx
mov byte [ebp - 5], 1
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov al, byte [ebp - 5]
mov esp, ebp
pop ebp
ret
Function at 0x40f2ed
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x40f31e
mov eax, dword fs:[4]
mov dword [ebp + 8], eax
mov eax, dword fs:[8]
mov dword [ebp - 4], eax
cmp ebx, dword [ebp - 4]
jb 0x40f325
cmp ebx, dword [ebp + 8]
jae 0x40f325
xor eax, eax
jmp 0x40f50b
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x40f336
xor eax, eax
inc eax
jmp 0x40f50a
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x40f348
cmp ecx, edx
jae 0x40f3ac
cmp dword [eax + 4], 0
je 0x40f351
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x40f33d
cmp dword [ebp + 8], 0
je 0x40f36b
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x40f3ac
cmp eax, esi
jae 0x40f3ac
mov ecx, dword [0x416918]
mov esi, ebx
and esi, 0xfffff000
xor eax, eax
test ecx, ecx
jle 0x40f38d
cmp dword [eax*4 + 0x416920], esi
je 0x40f3b3
inc eax
cmp eax, ecx
jl 0x40f37f
lea eax, [ebp + 8]
push eax
push 0x1c
lea eax, [ebp - 0x20]
push eax
push 0
push ebx
or edi, 0xffffffff
push edi
call sub.ntdll.dll_NtQueryVirtualMemory
test eax, eax
jl 0x40f423
mov eax, dword [ebp + 8]
jmp 0x40f425
xor eax, eax
jmp 0x40f50a
test eax, eax
jle 0x40f32e
xor edx, edx
mov ebx, 0x416960
inc edx
mov edi, ebx
xchg dword [edi], edx
test edx, edx
jne 0x40f32e
cmp dword [eax*4 + 0x416920], esi
je 0x40f402
lea eax, [ecx - 1]
test eax, eax
jl 0x40f3ef
cmp dword [eax*4 + 0x416920], esi
je 0x40f3eb
dec eax
jns 0x40f3df
test eax, eax
jge 0x40f400
cmp ecx, 0x10
jge 0x40f3fb
inc ecx
mov dword [0x416918], ecx
lea eax, [ecx - 1]
jmp 0x40f402
je 0x40f41a
xor edx, edx
test eax, eax
jl 0x40f41a
lea ecx, [edx*4 + 0x416920]
mov edi, dword [ecx]
inc edx
cmp edx, eax
mov dword [ecx], esi
mov esi, edi
jle 0x40f408
xor eax, eax
xchg dword [ebx], eax
jmp 0x40f32e
xor eax, eax
test eax, eax
je 0x40f508
cmp dword [ebp - 8], 0x1000000
jne 0x40f508
test byte [ebp - 0xc], 0xcc
je 0x40f49a
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x40f508
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x40f508
cmp word [eax + 0x18], 0x10b
jne 0x40f508
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x40f508
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x40f49a
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x40f49a
test byte [ecx + 0x27], 0x80
jne 0x40f3ac
xor eax, eax
inc eax
mov ecx, eax
mov edx, 0x416960
xchg dword [edx], ecx
test ecx, ecx
jne 0x40f50a
mov ecx, dword [0x416918]
test ecx, ecx
mov edx, ecx
jle 0x40f4c9
lea eax, [ecx*4 + 0x41691c]
cmp dword [eax], esi
je 0x40f4c9
dec edx
sub eax, 4
test edx, edx
jg 0x40f4bd
test edx, edx
jne 0x40f4fa
push 0xf
pop ebx
cmp ecx, ebx
jg 0x40f4d6
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x40f4ee
lea eax, [edx*4 + 0x416920]
mov edi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], esi
mov esi, edi
jle 0x40f4dc
cmp ecx, 0x10
jge 0x40f4fa
inc ecx
mov dword [0x416918], ecx
xor eax, eax
mov ecx, 0x416960
xchg dword [ecx], eax
jmp 0x40f32e
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x402a24
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.00404660
test esi, esi
jne 0x402a5a
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.00404750
jmp 0x402a78
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00402938
mov edi, eax
test esi, esi
je 0x402a78
cmp dword [ebx], 0
je 0x402a78
dec esi
jmp 0x402a61
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x4037a0
Capabilities:
Query or enumerate registry value

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

Function at 0x4044e4
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x458048], 0
je 0x404545
cmp word [0x45821c], 0xd7b2
jne 0x40450d
cmp dword [0x458224], 0
jbe 0x40450d
mov eax, 0x458218
call dword [0x458234]
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 0x40456c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x456030], 0
jne 0x404561
push 0
push 0x456068
push 0x456070
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x4061e0
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 0x406246
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.004048d0
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00403208
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x406230
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40624d
lea eax, [ebp - 0x10]
call fcn.00404660
ret

Function at 0x40b20c
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 0x40b245
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404750
jmp 0x40b24e
mov eax, ebx
mov edx, esi
call fcn.004046b4
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x40c218
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 0x40c2ee
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.004046f8
lea eax, [ebp - 8]
call fcn.00404b70
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.00404b20
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40c2d8
mov eax, ebx
call fcn.004026fc
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40c2d1
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.00404b20
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40c2bb
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40c300
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40c2bb
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 0x40c2d8
mov eax, dword [ebp - 0x10]
call fcn.0040271c
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c2f5
lea eax, [ebp - 8]
call fcn.00404660
ret
Function at 0x40c7e4
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 0x40c848
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.004048d0
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00408560
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c84f
lea eax, [ebp - 0xc]
call fcn.00404660
ret

Function at 0x41a970
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x458884
cmp dword [edi], 0
jne 0x41a9ec
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x458880]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x4563f0
mov ecx, 2
call fcn.004028f8
mov edx, 0x41a948
lea eax, [esi + 5]
call fcn.0041a968
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0041a968
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 0x41a9c1
mov dword [0x458880], 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 0x41bc18
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 0x41bc1e
ret

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