joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40324c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
pushal
call 0x40325b
pop dword [ebp - 0x50]
mov eax, 0xb7870f22
add eax, 0x48b92339
sub dword [ebp - 0x50], eax
mov dword [ebp - 0x60], 0x8bb1539f
add dword [ebp - 0x60], 0xc2a0f1ac
mov dword [ebp - 0x5c], 0xcb808155
add dword [ebp - 0x5c], 0x66b2caf0
mov dword [ebp - 0x58], 0x1b861ed0
add dword [ebp - 0x58], 0x30c6255e
mov dword [ebp - 0x54], 0x945ce14b
sub dword [ebp - 0x54], 0x945ce14b
lea eax, [ebp - 0x60]
push eax
mov eax, 0x13f5ad44
sub eax, 0x13b52ccc
add eax, dword [ebp - 0x50]
call dword [eax]
mov dword [ebp - 0x60], 0xec0e898e
sub dword [ebp - 0x60], 0x779c2038
mov dword [ebp - 0x5c], 0x13e48389
sub dword [ebp - 0x5c], 0xd2782214
mov dword [ebp - 0x58], 0xc3f0cb1d
sub dword [ebp - 0x58], 0x60815eb1
mov dword [ebp - 0x54], 0xd43cd76
add dword [ebp - 0x54], 0xf2bc328a
lea ebx, [ebp - 0x60]
push ebx
push eax
mov eax, 0x23d75ac5
sub eax, 0x2396da49
add eax, dword [ebp - 0x50]
call dword [eax]
push 0x40
push 0x1000
push 0x3bfe0
push 0
call eax
mov ecx, 0xbc7bde01
add ecx, 0x43847dd7
mov ebx, eax
mov esi, 0x459200
add esi, dword [ebp - 0x50]
mov edx, 0x2a5444c1
sub dword [ebp - 0x2c], 0x564be363
mov edi, dword [esi]
xor dword [ebp - 0x38], 0xe535e689
add edi, edx
sub dword [ebp - 0x34], edx
mov dword [ebx], edi
mov dword [ebp - 0x40], 0xc64e4d74
add ebx, 4
add esi, 0x49bf6134
add esi, 0xb6409ed0
loop 0x403371
add eax, 0x94cc1c7
add eax, 0xf6b4a06c
mov ebx, eax
add eax, 5
mov ecx, 0x400000
add ecx, dword [ebp - 0x50]
call ebx
leave
ret
Function at 0x1000aff0
Capabilities:
Create process on windows

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff0
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
sub esp, 0x270
mov eax, dword [0x10016040]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x44
lea eax, [ebp - 0x260]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x218]
xorps xmm0, xmm0
movaps xmmword [ebp - 0x270], xmm0
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x110]
dec eax
nop
mov cl, byte [eax + 1]
lea eax, [eax + 1]
test cl, cl
jne 0x1000b050
mov ecx, dword [str._GameLaunching]
mov dword [eax], ecx
mov ecx, dword [0x10013ac4]
mov dword [eax + 4], ecx
mov ecx, dword [0x10013ac8]
mov dword [eax + 8], ecx
mov cx, word [0x10013acc]
mov word [eax + 0xc], cx
mov cl, byte [0x10013ace]
mov byte [eax + 0xe], cl
lea eax, [ebp - 0x270]
push eax
lea eax, [ebp - 0x260]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
push dword [ebp - 0x270]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x26c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10010289
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
Function at 0x1000c420
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10011980
mov eax, dword fs:[0]
push eax
push esi
mov eax, dword [0x10016040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
sub eax, 0
je 0x1000c657
sub eax, 1
jne 0x1000c67b
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push 0
push 2
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov dword [0x10016ed4], eax
call fcn.1000eaf0
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentThread]
test eax, eax
jne 0x1000c4aa
call esi
push eax
call fcn.1000efd0
test eax, eax
jne 0x1000c4a5
push 0x1000a4a0
push 0x10016fb0
call fcn.1000e390
test eax, eax
jne 0x1000c4a5
call fcn.1000eb50
test eax, eax
je 0x1000c4aa
call fcn.1000e9e0
call fcn.1000eaf0
test eax, eax
jne 0x1000c4e0
call esi
push eax
call fcn.1000efd0
test eax, eax
jne 0x1000c4db
push 0x1000a810
push 0x10016fbc
call fcn.1000e390
test eax, eax
jne 0x1000c4db
call fcn.1000eb50
test eax, eax
je 0x1000c4e0
call fcn.1000e9e0
call fcn.1000eaf0
test eax, eax
jne 0x1000c516
call esi
push eax
call fcn.1000efd0
test eax, eax
jne 0x1000c511
push 0x1000a3d0
push 0x10016fac
call fcn.1000e390
test eax, eax
jne 0x1000c511
call fcn.1000eb50
test eax, eax
je 0x1000c516
call fcn.1000e9e0
call fcn.1000eaf0
test eax, eax
jne 0x1000c54c
call esi
push eax
call fcn.1000efd0
test eax, eax
jne 0x1000c547
push 0x1000a590
push 0x10016fb4
call fcn.1000e390
test eax, eax
jne 0x1000c547
call fcn.1000eb50
test eax, eax
je 0x1000c54c
call fcn.1000e9e0
call fcn.1000eaf0
test eax, eax
jne 0x1000c582
call esi
push eax
call fcn.1000efd0
test eax, eax
jne 0x1000c57d
push 0x1000a900
push 0x10016fc0
call fcn.1000e390
test eax, eax
jne 0x1000c57d
call fcn.1000eb50
test eax, eax
je 0x1000c582
call fcn.1000e9e0
mov eax, dword fs:[0x2c]
mov ecx, dword [0x10016dc4]
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x10017038]
cmp eax, dword [ecx + 4]
jle 0x1000c5cb
push 0x10017038
call fcn.10010755
add esp, 4
cmp dword [0x10017038], 0xffffffff
jne 0x1000c5cb
mov eax, dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0x10017038
mov dword [0x10017034], eax
call fcn.10010704
add esp, 4
call fcn.1000eaf0
test eax, eax
jne 0x1000c601
call esi
push eax
call fcn.1000efd0
test eax, eax
jne 0x1000c5fc
push 0x1000a350
push 0x10017034
call fcn.1000e390
test eax, eax
jne 0x1000c5fc
call fcn.1000eb50
test eax, eax
je 0x1000c601
call fcn.1000e9e0
call fcn.1000eaf0
test eax, eax
jne 0x1000c637
call esi
push eax
call fcn.1000efd0
test eax, eax
jne 0x1000c632
push 0x1000a650
push 0x10016fb8
call fcn.1000e800
test eax, eax
jne 0x1000c632
call fcn.1000eb50
test eax, eax
je 0x1000c637
call fcn.1000e9e0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DisableThreadLibraryCalls]
push 0
push 0
push 0
push 0x1000c340
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
jmp 0x1000c67b
mov dword [ebp - 4], 0
mov eax, dword [0x100167bc]
cmp eax, 0xffffffff
je 0x1000c67b
push 0
push eax
call dword [0x10016ef0]
mov dword [0x100167bc], 0xffffffff
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x1000cf80
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x10016040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
mov edi, dword [ebp + 8]
mov eax, ecx
lea ecx, [ebp - 8]
mov dword [ebp - 0xc], eax
push ecx
push 0x40
push edi
push eax
mov bl, dl
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
movzx eax, bl
mov ebx, dword [ebp - 0xc]
push edi
push eax
push ebx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.10010289
mov esp, ebp
pop ebp
ret

Function at 0x1000cfe0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x10016040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
lea eax, [ebp - 8]
mov edi, ecx
push eax
push 0x40
push 1
push edi
mov bl, dl
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [ebp - 8]
mov byte [edi], bl
push eax
push dword [ebp - 8]
push 1
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.10010289
mov esp, ebp
pop ebp
ret

Function at 0x1000d030
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x10016040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
lea eax, [ebp - 8]
mov ebx, ecx
push eax
push 0x40
push 4
push ebx
mov edi, edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [ebp - 8]
mov dword [ebx], edi
push eax
push dword [ebp - 8]
push 4
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.10010289
mov esp, ebp
pop ebp
ret

Function at 0x1000d210
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 0xc]
sub eax, 0x10000
push eax
call fcn.1000d3c0
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 8]
jbe 0x1000d2dd
mov edx, dword [ebp - 4]
cmp edx, dword [section..data]
jb 0x1000d25a
mov eax, dword [ebp - 4]
cmp eax, dword [0x10016004]
ja 0x1000d25a
mov ecx, dword [ebp - 4]
sub ecx, 0x8000000
mov dword [ebp - 4], ecx
jmp 0x1000d22a
push 0x1c
push 0
lea edx, [ebp - 0x24]
push edx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
push 0x1c
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
jne 0x1000d280
jmp 0x1000d2dd
cmp dword [ebp - 0x14], 0x10000
jne 0x1000d2c3
cmp dword [ebp - 0x18], 0x10000
jb 0x1000d2c3
push 0x40
push 0x3000
push 0x10000
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x1000d2b6
mov eax, dword [ebp - 8]
jmp 0x1000d2df
mov eax, dword [ebp - 4]
sub eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x1000d2d8
mov ecx, dword [ebp - 0x20]
sub ecx, 0x10000
push ecx
call fcn.1000d3c0
add esp, 4
mov dword [ebp - 4], eax
jmp 0x1000d22a
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x1000d2f0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 8]
push eax
call fcn.1000d3f0
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 0xc]
jae 0x1000d3b5
mov edx, dword [ebp - 4]
cmp edx, dword [section..data]
jb 0x1000d335
mov eax, dword [ebp - 4]
cmp eax, dword [0x10016004]
ja 0x1000d335
mov ecx, dword [ebp - 4]
add ecx, 0x8000000
mov dword [ebp - 4], ecx
jmp 0x1000d305
push 0x1c
push 0
lea edx, [ebp - 0x24]
push edx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
push 0x1c
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
jne 0x1000d35b
jmp 0x1000d3b5
cmp dword [ebp - 0x14], 0x10000
jne 0x1000d39e
cmp dword [ebp - 0x18], 0x10000
jb 0x1000d39e
push 0x40
push 0x3000
push 0x10000
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x1000d391
mov eax, dword [ebp - 8]
jmp 0x1000d3b7
mov eax, dword [ebp - 4]
add eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x1000d3b0
mov ecx, dword [ebp - 0x24]
add ecx, dword [ebp - 0x18]
push ecx
call fcn.1000d3f0
add esp, 4
mov dword [ebp - 4], eax
jmp 0x1000d305
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x1000d420
Capabilities:
Hook routines via microsoft detours

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 0x10]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.1000d810
add esp, 0xc
mov dword [ebp - 4], 0
cmp dword [0x10016a4c], 0
jne 0x1000d45d
cmp dword [0x10016a48], 0
je 0x1000d45d
mov eax, dword [0x10016a48]
mov dword [0x10016a4c], eax
cmp dword [0x10016a4c], 0
je 0x1000d4da
mov ecx, dword [0x10016a4c]
cmp dword [ecx + 8], 0
je 0x1000d4da
mov edx, dword [0x10016a4c]
mov eax, dword [edx + 8]
cmp eax, dword [ebp - 0x10]
jb 0x1000d4da
mov ecx, dword [0x10016a4c]
mov edx, dword [ecx + 8]
cmp edx, dword [ebp - 0xc]
ja 0x1000d4da
mov eax, dword [0x10016a4c]
mov ecx, dword [eax + 8]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
cmp edx, dword [ebp - 0x10]
jb 0x1000d4a9
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0xc]
jbe 0x1000d4b0
xor eax, eax
jmp 0x1000d5f9
mov ecx, dword [0x10016a4c]
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x40]
mov dword [ecx + 8], eax
push 0x48
push 0xcc
mov ecx, dword [ebp - 4]
push ecx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov eax, dword [ebp - 4]
jmp 0x1000d5f9
mov edx, dword [0x10016a48]
mov dword [0x10016a4c], edx
jmp 0x1000d4f6
mov eax, dword [0x10016a4c]
mov ecx, dword [eax + 4]
mov dword [0x10016a4c], ecx
cmp dword [0x10016a4c], 0
je 0x1000d536
cmp dword [0x10016a4c], 0
je 0x1000d534
mov edx, dword [0x10016a4c]
cmp dword [edx + 8], 0
je 0x1000d534
mov eax, dword [0x10016a4c]
mov ecx, dword [eax + 8]
cmp ecx, dword [ebp - 0x10]
jb 0x1000d534
mov edx, dword [0x10016a4c]
mov eax, dword [edx + 8]
cmp eax, dword [ebp - 0xc]
ja 0x1000d534
jmp 0x1000d48e
jmp 0x1000d4e8
mov ecx, dword [ebp + 8]
and ecx, 0xffff
mov edx, dword [ebp + 8]
sub edx, ecx
mov dword [ebp + 8], edx
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.1000d600
add esp, 0xc
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x1000d5f7
mov eax, dword [ebp - 0x18]
mov dword [0x10016a4c], eax
mov ecx, dword [0x10016a4c]
mov dword [ecx], 0x52727464
mov edx, dword [0x10016a4c]
mov dword [edx + 8], 0
mov eax, dword [0x10016a4c]
mov ecx, dword [0x10016a48]
mov dword [eax + 4], ecx
mov edx, dword [0x10016a4c]
mov dword [0x10016a48], edx
mov dword [ebp - 0x14], 0
mov eax, dword [0x10016a4c]
add eax, 0x48
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0x38c
jmp 0x1000d5c7
mov ecx, dword [ebp - 8]
sub ecx, 1
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 1
jle 0x1000d5e7
imul edx, dword [ebp - 8], 0x48
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x14]
mov dword [eax + edx + 0x40], ecx
imul edx, dword [ebp - 8], 0x48
add edx, dword [ebp - 4]
mov dword [ebp - 0x14], edx
jmp 0x1000d5be
mov eax, dword [0x10016a4c]
mov ecx, dword [ebp - 0x14]
mov dword [eax + 8], ecx
jmp 0x1000d48e
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x1000feb4
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push 2
lea eax, [ebp - 4]
push eax
push 0x20000001
push str._x_sys_default_locale
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
xor ecx, ecx
test eax, eax
jne 0x1000fedb
mov eax, ecx
mov dword [ebp - 4], eax
jmp 0x1000fede
mov eax, dword [ebp - 4]
push esi
mov esi, dword [ebp + 0xc]
push ecx
push ecx
push esi
push eax
push dword [ebp + 8]
push ecx
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push eax
push dword [esi]
call fcn.1000fe90
pop esi
leave
ret 8
Function at 0x402f74
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x454020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x40300c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x402fec
xor eax, eax
push ebp
push 0x402fe5
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 0x403028
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x402fec
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
mov ax, word [0x454020]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x454020], ax
mov esp, ebp
pop ebp
ret

Function at 0x403cd0
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x456048], 0
je 0x403d31
cmp word [0x45621c], 0xd7b2
jne 0x403cf9
cmp dword [0x456224], 0
jbe 0x403cf9
mov eax, 0x456218
call dword [0x456234]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x45406c
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 0x403d58
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle
push eax
call sub.KERNEL32.DLL_WriteFile
pop edx
ret
cmp byte [0x454030], 0
jne 0x403d4d
push 0
push 0x454064
push 0x45406c
push 0
call sub.user32.dll_MessageBoxA_1
pop edx
ret
Function at 0x4050dc
Capabilities:
Get geographical location
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x11d]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x40530c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
je 0x40515f
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x40530c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
je 0x40515f
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405328
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x4051e8
xor eax, eax
push ebp
push 0x4051e1
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00404f24
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x4051c6
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x405348
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x4051c6
mov byte [ebp - 0x12], 0
mov byte [ebp - 0xe], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4051e8
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
push 0x105
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_lstrcpynA
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.KERNEL32.DLL_GetThreadLocale
push eax
call sub.KERNEL32.DLL_GetLocaleInfoA
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x405302
cmp byte [ebp - 0xd], 0
jne 0x40522f
cmp byte [ebp - 0x12], 0
je 0x405302
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x405248
dec ebx
cmp byte [ebx], 0x2e
je 0x405257
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x405247
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x405302
inc ebx
cmp byte [ebp - 0x12], 0
je 0x405294
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.KERNEL32.DLL_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x405302
cmp byte [ebp - 0xd], 0
je 0x405302
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.KERNEL32.DLL_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x405302
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.KERNEL32.DLL_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_LoadLibraryExA
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4059d4
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 0x405a3a
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.004040bc
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402b38
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x405a24
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405a41
lea eax, [ebp - 0x10]
call fcn.00403e4c
ret

Function at 0x40aa04
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 0x40aa3d
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00403f3c
jmp 0x40aa46
mov eax, ebx
mov edx, esi
call fcn.00403ea0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x40ba10
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 0x40bae6
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.00403ee4
lea eax, [ebp - 8]
call fcn.0040435c
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.0040430c
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40bad0
mov eax, ebx
call fcn.004026bc
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40bac9
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.0040430c
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40bab3
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40baf8
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40bab3
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 0x40bad0
mov eax, dword [ebp - 0x10]
call fcn.004026dc
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40baed
lea eax, [ebp - 8]
call fcn.00403e4c
ret
Function at 0x40bff0
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 0x40c054
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.004040bc
mov eax, dword [ebp - 0xc]
push eax
call sub.KERNEL32.DLL_GetACP
mov edx, eax
pop eax
call fcn.00407dc0
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c05b
lea eax, [ebp - 0xc]
call fcn.00403e4c
ret

Function at 0x41a17c
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x456884
cmp dword [edi], 0
jne 0x41a1f8
push 0x40
push 0x1000
push 0x1000
push 0
call sub.KERNEL32.DLL_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x456880]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x4543ec
mov ecx, 2
call fcn.004028b8
mov edx, 0x41a154
lea eax, [esi + 5]
call fcn.0041a174
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0041a174
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 0x41a1cd
mov dword [0x456880], 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 0x41b764
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 0x41b76a
ret

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