joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100684c0
Capabilities:
Get socket status

Disassembly:
sub esp, 0x10c
mov eax, dword [ecx]
lea ecx, [esp]
push ecx
push 0
lea edx, [esp + 0x10]
push 0
push edx
push 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 1
call sub.WS2_32.dll_select
cmp eax, 0xffffffff
jne 0x10068509
xor eax, eax
add esp, 0x10c
ret 4
mov edx, dword [esp + 0x110]
xor ecx, ecx
test eax, eax
setne cl
mov dword [edx], ecx
mov eax, 1
add esp, 0x10c
ret 4

Function at 0x10068980
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x10089e70
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
lea ecx, [esp + 4]
call fcn.10068530
lea eax, [esp + 4]
lea ecx, [esi + 4]
push eax
mov dword [esp + 0x18], 0
call fcn.100685b0
lea ecx, [esp + 4]
push ecx
lea ecx, [esi + 0x14]
call fcn.100685b0
lea ecx, [esi + 0xc]
call fcn.1007bcc6
lea ecx, [esi + 0x10]
call fcn.1007bcc6
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x1c]
call fcn.10069b40
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x30]
call fcn.10069b40
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x44]
call fcn.10069b40
lea ecx, [esp + 8]
mov dword [esp + 0x14], 1
call fcn.1007bd3b
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.1007bd3b
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x10069d30
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0xa0
push ebx
push ebp
mov ebp, dword [esp + 0xac]
push esi
push edi
push ebp
call sub.RASAPI32.dll_RasHangUpA
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x28
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
mov dword [esp + 0x10], 0xa0
call esi
mov edi, eax
call esi
sub eax, edi
cmp eax, 0xbb8
jae 0x10069d96
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [esp + 0x10]
push eax
push ebp
call sub.RASAPI32.dll_RasGetConnectStatusA
cmp eax, 6
je 0x10069d96
push 0
call ebx
call esi
sub eax, edi
cmp eax, 0xbb8
jb 0x10069d77
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa0
ret

Function at 0x1007e0c5
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x1007e0fd
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.1007c196
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.1007c16e
jmp 0x1007e109
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x1007f7b8
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x1007f7fa
call fcn.10085212
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x1007f7fa
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x1007f7f1
xor eax, eax
jmp 0x1007f802
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.1007f808
pop edi
pop esi
pop ebx
ret 4
Function at 0x8217e0
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0xffffffff
mov dword [ebp - 0xc], 0
jmp 0x821805
mov ecx, dword [ebp - 0xc]
add ecx, 1
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0xc]
cmp edx, dword [ebp + 0xc]
jae 0x821878
mov eax, dword [ebp - 4]
add eax, dword [ebp - 0xc]
movzx ecx, byte [eax]
movzx edx, byte [ebp - 8]
xor ecx, edx
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 8]
shr eax, 8
mov dword [ebp - 8], eax
mov dword [ebp - 0x14], 0
jmp 0x82183a
mov ecx, dword [ebp - 0x14]
add ecx, 1
mov dword [ebp - 0x14], ecx
cmp dword [ebp - 0x14], 8
jge 0x82186d
mov edx, dword [ebp - 0x10]
and edx, 1
neg edx
sbb edx, edx
neg edx
mov byte [ebp - 0x15], dl
mov eax, dword [ebp - 0x10]
shr eax, 1
mov dword [ebp - 0x10], eax
movzx ecx, byte [ebp - 0x15]
test ecx, ecx
je 0x82186b
mov edx, dword [ebp - 0x10]
xor edx, 0xedb88320
mov dword [ebp - 0x10], edx
jmp 0x821831
mov eax, dword [ebp - 8]
xor eax, dword [ebp - 0x10]
mov dword [ebp - 8], eax
jmp 0x8217fc
mov eax, dword [ebp - 8]
not eax
mov esp, ebp
pop ebp
ret
Function at 0x404b90
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, 0xffff
movzx eax, bx
mov dword [ebp - 0x34], eax
mov esi, ecx
cmp di, bx
jne 0x404bcd
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00407b35
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
mov ecx, dword [eax]
test ecx, ecx
je 0x404c07
mov edx, dword [esi + 0x30]
mov eax, dword [edx]
lea eax, [ecx + eax*2]
cmp ecx, eax
jae 0x404c07
dec dword [edx]
mov ax, bx
mov edx, dword [esi + 0x20]
pop edi
mov esi, dword [edx]
lea ecx, [esi + 2]
mov dword [edx], ecx
mov word [esi], bx
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00407b35
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
je 0x404cd7
mov ecx, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [ecx], eax
jne 0x404c34
mov eax, dword [esi + 0xc]
mov edx, dword [esi + 0x54]
mov ecx, dword [esi + 0x50]
sub edx, ecx
sar edx, 1
mov dword [eax], ecx
mov eax, dword [esi + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi + 0x2c]
mov dword [eax], edx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x404c67
push dword [esi + 0x4c]
push ebx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputwc]
add esp, 8
movzx ecx, bx
cmp ax, di
cmove ecx, edi
pop edi
pop esi
mov ax, cx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00407b35
mov esp, ebp
pop ebp
ret 4
movzx eax, bx
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x26]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [esi + 0x40]
push eax
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_wchar_t__char__struct__Mbstatet_::out_struct__Mbstatet___wchar_t_const___wchar_t_const___wchar_t_const____char___char___char___const]
sub eax, 0
je 0x404ca6
sub eax, 1
je 0x404ca6
sub eax, 2
jne 0x404cd7
push dword [esi + 0x4c]
push dword [ebp - 0x28]
jmp 0x404c3f
mov ebx, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub ebx, eax
je 0x404cc4
push dword [esi + 0x4c]
push ebx
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp ebx, eax
jne 0x404cd7
mov eax, dword [ebp - 0x34]
lea ecx, [ebp - 0x28]
cmp dword [ebp - 0x30], ecx
movzx eax, ax
mov byte [esi + 0x3e], 1
cmovne edi, eax
mov ecx, dword [ebp - 4]
mov ax, di
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00407b35
mov esp, ebp
pop ebp
ret 4
Function at 0x405160
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x38], 0
je 0x405224
cmp byte [esi + 0x3e], 0
je 0x405224
mov eax, dword [esi]
push edi
push 0xffff
call dword [eax + 0xc]
mov ecx, 0xffff
cmp cx, ax
je 0x405212
mov ecx, dword [esi + 0x38]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [esi + 0x40]
push eax
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_wchar_t__char__struct__Mbstatet_::unshift_struct__Mbstatet___char___char___char___const]
sub eax, 0
je 0x4051d9
sub eax, 1
je 0x4051dd
sub eax, 2
jne 0x405212
mov byte [esi + 0x3e], al
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00407b35
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3e], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x4051fb
push dword [esi + 0x4c]
push edi
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp edi, eax
jne 0x405212
cmp byte [esi + 0x3e], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00407b35
mov esp, ebp
pop ebp
ret
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00407b35
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.00407b35
mov esp, ebp
pop ebp
ret

Function at 0x407a57
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 0x407a7e
mov eax, ecx
mov dword [ebp - 4], eax
jmp 0x407a81
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.00407a33
pop esi
leave
ret 8

Function at 0x40855e
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x40859d
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40859d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40859d
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x40859d
cmp dword [ecx + 0x74], 0xe
jbe 0x40859d
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x41c500
Capabilities:
Query environment variable

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
cmp dword [0x427850], 0
jne 0x41c581
cmp dword [0x427870], 0
jne 0x41c530
call sub.KERNEL32.DLL_GetEnvironmentStrings
mov dword [0x427870], eax
test eax, eax
jne 0x41c530
push str.GetEnvironmentStrings_failed
call fcn.0041bd1c
pop ecx
xor ebp, ebp
xor esi, esi
mov ebx, dword [0x427870]
jmp 0x41c544
lea eax, [edi + 1]
inc esi
add ebp, eax
add ebx, eax
push ebx
call fcn.004168a4
pop ecx
mov edi, eax
test eax, eax
jne 0x41c53c
lea edi, [ebp + 1]
push edi
call fcn.004161a8
pop ecx
mov ebx, eax
mov dword [0x427854], ebx
test ebx, ebx
jne 0x41c56e
xor eax, eax
jmp 0x41c644
push edi
mov edx, dword [0x427870]
push edx
push ebx
call fcn.00416754
add esp, 0xc
jmp 0x41c5a1
xor esi, esi
mov ebx, dword [0x427850]
jmp 0x41c59b
push eax
call fcn.004168a4
pop ecx
test eax, eax
jne 0x41c597
dec esi
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x41c58b
lea ebx, [esi + 4]
push 4
mov dword [0x427858], ebx
inc ebx
push ebx
call fcn.00415c80
add esp, 8
test eax, eax
mov dword [esp], eax
jne 0x41c5c4
xor eax, eax
jmp 0x41c644
cmp dword [0x427850], 0
jne 0x41c5f5
xor esi, esi
mov ebx, dword [0x427854]
mov eax, dword [esp]
mov ebp, eax
jmp 0x41c5e6
mov dword [ebp], ebx
add ebp, 4
inc esi
inc edi
add ebx, edi
push ebx
call fcn.004168a4
pop ecx
mov edi, eax
test eax, eax
jne 0x41c5dc
jmp 0x41c626
xor esi, esi
mov ebx, dword [0x427850]
mov eax, dword [esp]
mov edi, eax
jmp 0x41c620
push eax
call fcn.004168a4
pop ecx
test eax, eax
je 0x41c615
mov eax, dword [ebx]
mov dword [edi], eax
jmp 0x41c619
dec esi
add edi, 0xfffffffc
add edi, 4
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x41c604
mov eax, dword [0x427850]
test eax, eax
je 0x41c636
push eax
call fcn.004161b8
pop ecx
mov edx, dword [esp]
mov eax, 1
mov dword [0x427850], edx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x43b634
Capabilities:
Encode data using xor

Disassembly:
push 0x43b3c1
pop eax
mov edi, edi
call fcn.0043b663
dec esi
or esi, edi
xor dword [ebx], eax
push edi
pop edi
add ebx, 1
add esi, esi
cmp ebx, edx
jne fcn.0043b634
mov edi, edi
inc esi
ret
Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
push 4
nop
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
je 0x433072
nop
nop
mov ebx, 0x40de38
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x4bc6724
nop
nop
xor dword [eax], esi
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x433060
nop
nop
nop
nop
mov eax, section..data
nop
nop
nop
cmp eax, 0
je 0x4330d2
nop
nop
nop
nop
mov ebx, 0x4304d8
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
mov esi, 0x42067231
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x4330c0
nop
nop
nop
nop
popal
nop
jmp 0x431219

Function at 0x430006
Capabilities:
Encode data using xor

Disassembly:
call 0x43000c
nop
pop eax
nop
nop
nop
nop
nop
add eax, 0x403daa
nop
sub eax, 0x403d50
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
jl 0x430030
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
jne 0x43001e
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp loc.00401219
Function at 0x4056a4
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff4
mov edi, edx
mov esi, eax
mov ebp, dword [esi + 0x10]
mov eax, esi
call fcn.00405a90
mov byte [esp], al
cmp byte [esp], 0
jne 0x40582d
test edi, edi
je 0x40582d
mov byte [esp + 1], 0
test ebp, ebp
jle 0x405764
call sub.KERNEL32.DLL_GetTickCount_1
mov dword [esp + 4], eax
test ebp, ebp
jle 0x40573f
cmp edi, 0xffffffff
je 0x405703
call sub.KERNEL32.DLL_GetTickCount_1
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x405703
mov byte [esp], 0
jmp 0x40582d
mov ebx, dword [esi]
cmp ebx, 1
jg 0x40573f
test ebx, ebx
jne 0x405738
mov eax, esi
xor ecx, ecx
mov edx, 1
call fcn.00402580
test eax, eax
jne 0x405738
call sub.KERNEL32.DLL_GetCurrentThreadId_1
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x40582d
pause
dec ebp
test ebp, ebp
jg 0x4056e8
cmp edi, 0xffffffff
je 0x405764
call sub.KERNEL32.DLL_GetTickCount_1
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x405762
mov byte [esp], 0
jmp 0x40582d
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x4056b2
lea edx, [ebx + 2]
mov eax, esi
mov ecx, ebx
call fcn.00402580
cmp ebx, eax
jne 0x405764
call sub.KERNEL32.DLL_GetTickCount_1
mov dword [esp + 4], eax
mov eax, esi
call fcn.004058a0
mov edx, eax
mov ebx, dword [0x52f8c8]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x4057cb
call sub.KERNEL32.DLL_GetTickCount_1
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x4057c9
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x4057cb
xor edi, edi
cmp byte [esp], 0
je 0x4057f4
mov ebx, dword [esi]
test bl, 1
jne 0x40580d
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, esi
mov ecx, ebx
call fcn.00402580
cmp ebx, eax
jne 0x4057d1
mov byte [esp + 1], 1
jmp 0x40580d
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, esi
mov ecx, ebx
call fcn.00402580
cmp ebx, eax
jne 0x4057f4
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x40577e
cmp byte [esp], 0
je 0x40582d
call sub.KERNEL32.DLL_GetCurrentThreadId_1
mov dword [esi + 8], eax
mov dword [esi + 4], 1
movzx eax, byte [esp]
add esp, 0xc
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x4065a8
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x52f050], 0
je 0x406609
cmp word [0x52f32c], 0xd7b2
jne 0x4065d1
cmp dword [0x52f334], 0
jbe 0x4065d1
mov eax, 0x52f328
call dword [0x52f344]
push 0
lea eax, [esp + 4]
push eax
push 0x1d
push str.Runtime_error_____at_00000000
push 0xfffffffffffffff5
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 0x406634
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle_1
push eax
call sub.KERNEL32.DLL_WriteFile_1
pop edx
ret
cmp byte [0x4f1028], 0
jne 0x406625
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x4067b4
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov edi, dword [ebp + 0x10]
cmp dword [0x4f102c], 0
je 0x4067df
mov edx, edi
mov eax, esi
call dword [0x4f102c]
mov ebx, eax
jmp 0x4067f0
mov eax, 8
call fcn.00404368
mov ebx, eax
mov dword [ebx], esi
mov dword [ebx + 4], edi
mov byte [0x52f051], 1
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
mov eax, 0x40677c
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.KERNEL32.DLL_CreateThread_2
mov esi, eax
test esi, esi
jne 0x406825
mov edx, 8
mov eax, ebx
call fcn.00404384
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 0xc

Function at 0x408978
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe98
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x160], ecx
mov dword [ebp - 0x164], ecx
mov dword [ebp - 0x168], ecx
mov dword [ebp - 4], edx
mov esi, eax
xor eax, eax
push ebp
push 0x408add
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.004068f8
cmp si, word [0x4f17dc]
jb 0x408a10
cmp si, word [0x4f19dc]
ja 0x408a10
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x408a10
mov ebx, dword [ebp - 8]
add ebx, edi
shr ebx, 1
cmp si, word [ebx*8 + 0x4f17dc]
jae 0x4089ea
mov edi, ebx
dec edi
jmp 0x408a0b
cmp si, word [ebx*8 + 0x4f17dc]
jbe 0x4089fa
inc ebx
mov dword [ebp - 8], ebx
jmp 0x408a0b
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x4f17e0]
call fcn.00408888
jmp 0x408a10
cmp edi, dword [ebp - 8]
jae 0x4089d4
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x408abf
push 2
movzx eax, si
push eax
call sub.KERNEL32.DLL_IsValidLocale_1
test eax, eax
je 0x408abf
push 0x55
lea eax, [ebp - 0xb2]
push eax
push 0x59
movzx ebx, si
push ebx
call sub.KERNEL32.DLL_GetLocaleInfoW_1
push 0x55
lea eax, [ebp - 0x15c]
push eax
push 0x5a
push ebx
call sub.KERNEL32.DLL_GetLocaleInfoW_1
lea eax, [ebp - 0x160]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.00407300
push dword [ebp - 0x160]
push 0x408af8
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.00407300
push dword [ebp - 0x164]
push 0x408b08
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.00407300
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.00407538
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408ae4
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.00406958
ret
Function at 0x408c90
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x408d93
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x531b51
call sub.KERNEL32.DLL_EnterCriticalSection_1
cmp bx, word [0x531b6a]
jne 0x408cdc
mov eax, esi
mov edx, 0x531b6c
mov ecx, 0x55
call fcn.00407300
push 0x531b51
call sub.KERNEL32.DLL_LeaveCriticalSection_1
jmp 0x408d7d
push 0x531b51
call sub.KERNEL32.DLL_LeaveCriticalSection_1
mov eax, esi
call fcn.004068f8
push 2
movzx eax, bx
push eax
call sub.KERNEL32.DLL_IsValidLocale_1
test eax, eax
je 0x408d4b
cmp byte [0x531b50], 0
je 0x408d10
mov edx, esi
mov eax, ebx
call fcn.00408b74
jmp 0x408d4b
mov edx, esi
mov eax, ebx
call fcn.00408978
call sub.KERNEL32.DLL_GetSystemDefaultUILanguage
cmp bx, ax
je 0x408d4b
cmp dword [esi], 0
je 0x408d34
mov eax, esi
mov edx, 0x408dac
call fcn.00407458
call sub.KERNEL32.DLL_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.00408978
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.00407458
push 0x531b51
call sub.KERNEL32.DLL_EnterCriticalSection_1
mov word [0x531b6a], bx
push 0xaa
mov eax, dword [esi]
call fcn.0040725c
push eax
push 0x531b6c
call sub.KERNEL32.DLL_lstrcpynW
push 0x531b51
call sub.KERNEL32.DLL_LeaveCriticalSection_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408d9a
lea eax, [ebp - 4]
call fcn.004068f8
ret
Function at 0x408fc8
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffde4
push ebx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004069dc
xor eax, eax
push ebp
push 0x4091ed
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x409008
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameW_1
jmp 0x409022
push 0x105
mov eax, dword [ebp - 4]
call fcn.0040725c
push eax
lea eax, [ebp - 0x21a]
push eax
call sub.KERNEL32.DLL_lstrcpynW
cmp word [ebp - 0x21a], 0
je 0x4091d7
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x4091fc
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW_1
test eax, eax
je 0x4090f1
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x4091fc
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW_1
test eax, eax
je 0x4090f1
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409238
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW_1
test eax, eax
je 0x4090f1
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409238
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW_1
test eax, eax
je 0x4090f1
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40926c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW_1
test eax, eax
je 0x4090f1
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x4092a0
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW_1
test eax, eax
jne 0x4091d7
xor eax, eax
push ebp
push 0x4091d0
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.00408dd4
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
lea eax, [ebp - 0x21a]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW_1
test eax, eax
jne 0x409160
mov eax, dword [ebp - 0x10]
call fcn.00404368
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
lea eax, [ebp - 0x21a]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW_1
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.004072ac
jmp 0x4091ab
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x4092e0
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW_1
test eax, eax
jne 0x4091ab
mov eax, dword [ebp - 0x10]
call fcn.00404368
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x4092e0
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW_1
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.004072ac
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4091d7
cmp dword [ebp - 8], 0
je 0x4091c6
mov eax, dword [ebp - 8]
call fcn.00404384
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4091f4
lea eax, [ebp - 4]
call fcn.004068f8
ret