joyce8/EMBER2024-capa huggingface dataset:
Function at 0x6de9e5a0
Capabilities:
Log keystrokes

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, ecx
sub esp, 0x14
test eax, eax
jne 0x6de9e5b6
cmp dword [ebp + 8], 0x7ff
jbe 0x6de9e5d0
cmp ebx, 0xa
je 0x6de9e5e9
mov edx, eax
or edx, 0xffffff80
test ah, 1
je 0x6de9e638
mov ebx, dword [ebp - 4]
mov eax, edx
leave
ret
mov dword [esp + 4], 0
mov dword [esp], edx
call dword [sym.imp.user32.dll_MapVirtualKeyW]
sub esp, 8
cmp ebx, 0xa
jne case.0x6de9e5fb.14
cmp eax, 0x2b
ja 0x6de9e620
cmp eax, 0xc
jbe 0x6de9e638
lea edx, [eax - 0xd]
cmp edx, 0x1e
ja case.0x6de9e5fb.14
jmp dword [edx*4 + 0x6dea9ba0]
mov edx, 0xffffff91
mov ebx, dword [ebp - 4]
leave
mov eax, edx
ret
mov edx, 0xffffff90
mov ebx, dword [ebp - 4]
leave
mov eax, edx
ret
mov edx, 0x2b
cmp eax, 0x73
jne case.0x6de9e5fb.14
mov ebx, dword [ebp - 4]
mov eax, edx
leave
ret
mov edx, eax
mov ebx, dword [ebp - 4]
leave
mov eax, edx
ret
mov edx, 0x1b
jmp 0x6de9e5c5
mov edx, 0x1a
jmp 0x6de9e5c5
mov edx, 0xffffff92
jmp 0x6de9e5c5
mov edx, 0xffffff94
jmp 0x6de9e5c5

Function at 0x6de9e720
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
xor eax, eax
mov ecx, 0x90
mov ebp, esp
push edi
push esi
lea edi, [ebp - 0x258]
push ebx
xor ebx, ebx
sub esp, 0x27c
mov esi, dword [ebp + 8]
mov dword [ebp - 0x25c], 0
rep stosd dword es:[edi], eax
mov eax, dword [0x6dea72e8]
lea edi, [ebp - 0x238]
mov dword [ebp - 0x258], 0x240
mov dword [ebp - 0x244], 1
mov dword [ebp - 0x254], eax
mov eax, dword [0x6dea72ec]
mov dword [ebp - 0x240], 0x104
mov dword [ebp - 0x250], eax
mov eax, dword [0x6dea72f0]
mov dword [ebp - 0x24c], eax
mov eax, dword [0x6dea72f4]
mov dword [ebp - 0x248], eax
movzx eax, byte [esi + 0x6d]
mov dword [ebp - 0x264], eax
jmp 0x6de9e7d3
test ecx, ecx
je 0x6de9e871
mov eax, dword [ebp - 0x260]
mov dword [ebp - 0x25c], eax
add ebx, 1
cmp ebx, 0x200
je 0x6de9e8c0
mov eax, ebx
mov dword [esp + 8], 0x104
shl eax, 0x10
mov dword [esp + 4], edi
mov dword [esp], eax
call dword [sym.imp.user32.dll_GetKeyNameTextW]
sub esp, 0xc
test eax, eax
je 0x6de9e7c4
mov eax, dword [esi + 0x38]
mov ecx, dword [ebp - 0x264]
xor edx, edx
mov eax, dword [eax + 0x1c]
mov dword [esp], eax
mov eax, ebx
call sym._map_dik_code
movzx eax, al
test eax, eax
je 0x6de9e7c4
mov ecx, dword [ebp - 0x25c]
mov edx, eax
mov dword [ebp - 0x244], eax
shl edx, 8
add ecx, 1
or edx, 4
mov dword [ebp - 0x260], ecx
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x240], edx
test ecx, ecx
je 0x6de9e84b
mov ecx, dword [ebp + 0x10]
and ecx, edx
and ecx, 4
je 0x6de9e7b8
mov ecx, dword [ebp + 0xc]
mov ecx, dword [ecx + 0xc]
cmp ecx, 1
je 0x6de9e8b0
cmp ecx, 2
jne 0x6de9e7b0
mov eax, dword [ebp + 0xc]
xor edx, dword [eax + 8]
and edx, 0xffffff
jne 0x6de9e7b8
mov eax, dword [ebp + 0x18]
mov dword [esp + 8], 0
mov dword [esp], esi
mov dword [esp + 0x10], eax
lea eax, [ebp - 0x258]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x25c]
mov dword [esp + 4], eax
call dword [ebp + 0x14]
cmp eax, 1
je 0x6de9e7b8
lea esp, [ebp - 0xc]
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret
mov edx, dword [ebp + 0xc]
cmp eax, dword [edx + 8]
jne 0x6de9e7b8
jmp 0x6de9e871
lea esp, [ebp - 0xc]
mov eax, 1
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x6de9f860
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
lea eax, [ebp - 0x10]
sub esp, 0x20
mov ebx, dword [ebp + 8]
mov dword [esp], eax
call dword [sym.imp.user32.dll_GetCursorPos]
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
sub esp, 4
test byte [ebx + 0x50c], 1
jne 0x6de9f899
mov dword [ebx + 0x938], eax
xor eax, eax
mov dword [ebx + 0x93c], edx
xor edx, edx
mov dword [ebx + 0x529], edx
mov esi, dword [sym.imp.user32.dll_GetKeyState]
mov dword [ebx + 0x525], eax
mov dword [ebx + 0x52d], 0
mov dword [esp], 1
call esi
sub esp, 4
and eax, 0xffffff80
mov byte [ebx + 0x531], al
mov dword [esp], 2
call esi
sub esp, 4
and eax, 0xffffff80
mov byte [ebx + 0x532], al
mov dword [esp], 4
call esi
and eax, 0xffffff80
sub esp, 4
mov byte [ebx + 0x533], al
test byte [ebx + 0x4c0], 1
jne 0x6de9f940
cmp dword [ebx + 0x94c], 2
je 0x6de9f920
mov eax, dword [ebx + 0x940]
test eax, eax
jne 0x6de9f968
lea esp, [ebp - 8]
xor eax, eax
pop ebx
pop esi
pop ebp
ret
mov edx, dword [ebx + 0x4c4]
test edx, edx
je 0x6de9f990
mov eax, ebx
mov edx, 1
call sym._warp_check
lea esp, [ebp - 8]
xor eax, eax
pop ebx
pop esi
pop ebp
ret
mov dword [esp], 0
call dword [sym.imp.user32.dll_ShowCursor]
mov eax, ebx
mov edx, 1
sub esp, 4
call sym._warp_check
lea esp, [ebp - 8]
xor eax, eax
pop ebx
pop esi
pop ebp
ret
mov dword [esp], 0
call dword [sym.imp.user32.dll_ClipCursor]
xor eax, eax
mov dword [ebx + 0x940], 0
sub esp, 4
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret
call dword [sym.imp.user32.dll_GetDesktopWindow]
mov dword [ebx + 0x4c4], eax
jmp 0x6de9f92a
Function at 0x6dea08c0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
and esp, 0xfffffff0
sub esp, 0x10
mov esi, dword [ebp + 8]
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_strlen]
mov ebx, eax
xor eax, eax
test ebx, ebx
je 0x6dea091b
cmp byte [esi + ebx - 1], 0xa
je 0x6dea08ef
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
xchg dword [0x6deb80c4], eax
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_fwrite]
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret
Function at 0x6dea12e0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov esi, eax
push ebx
mov ebx, edx
sub esp, 0x22c
mov eax, dword [0x6deb80e0]
test eax, eax
je 0x6dea1398
mov dword [esp], ebx
call eax
mov dword [ebx + 8], eax
sub esp, 4
test eax, eax
jns 0x6dea1320
mov eax, dword [ebx]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
lea edi, [ebp - 0x220]
mov dword [esp + 8], 0x104
mov dword [esp + 4], edi
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_GetModuleFileNameW]
mov eax, dword [ebx]
sub esp, 0xc
mov edx, dword [eax]
mov dword [esp + 8], edi
mov dword [esp + 4], str.MODULE
mov dword [esp], eax
call dword [edx + 0xc]
sub esp, 0xc
mov dword [esp + 8], 0x104
mov dword [esp + 4], edi
mov dword [esp], str.SystemRoot
call dword [sym.imp.kernel32.dll_GetEnvironmentVariableW]
mov eax, dword [ebx]
sub esp, 0xc
mov edx, dword [eax]
mov dword [esp + 8], edi
mov dword [esp + 4], str.SystemRoot
mov dword [esp], eax
call dword [edx + 0xc]
sub esp, 0xc
jmp 0x6dea130c
mov dword [esp], str.atl100.dll
call dword [sym.imp.kernel32.dll_LoadLibraryW]
sub esp, 4
test eax, eax
je 0x6dea13cd
mov dword [esp + 4], 0x6deb0b7c
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetProcAddress]
mov dword [0x6deb80e0], eax
sub esp, 8
test eax, eax
jne 0x6dea12fd
mov dword [ebx + 8], 0x80004002
xor eax, eax
jmp 0x6dea130e
Function at 0x6dea13e0
Capabilities:
Access peb ldr_data
Extract resource via kernel32 functions
Get process heap flags
Get process heap force flags

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push edi
push esi
push ebx
push ecx
sub esp, 0x38
mov edi, dword [ecx]
mov edx, dword [ecx + 4]
mov eax, dword [ecx + 8]
mov esi, dword [ecx + 0xc]
mov dword [esp + 8], edx
mov dword [esp + 4], eax
mov dword [esp], edi
call dword [sym.imp.kernel32.dll_FindResourceW]
sub esp, 0xc
mov dword [ebp - 0x1c], eax
mov dword [esp + 4], eax
mov dword [esp], edi
call dword [sym.imp.kernel32.dll_LoadResource]
mov edx, dword [ebp - 0x1c]
sub esp, 8
mov ebx, eax
mov dword [esp + 4], edx
mov dword [esp], edi
call dword [sym.imp.kernel32.dll_SizeofResource]
mov dword [ebp - 0x1c], eax
sub esp, 8
test ebx, ebx
je 0x6dea1578
mov eax, dword [esi]
test eax, eax
je 0x6dea1560
mov edx, dword [sym.imp.kernel32.dll_MultiByteToWideChar]
mov eax, dword [ebp - 0x1c]
mov dword [esp + 8], ebx
mov dword [esp + 0x14], 0
mov dword [ebp - 0x28], edx
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], eax
mov dword [esp + 4], 0
mov dword [esp], 0xfde9
call edx
lea ecx, [eax + 1]
sub esp, 0x18
lea eax, [ecx + ecx]
mov dword [esp + 4], 0
mov edi, eax
mov dword [ebp - 0x20], eax
mov dword [esp + 8], edi
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov dword [ebp - 0x24], ecx
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x28]
sub esp, 0xc
test eax, eax
mov edi, eax
je 0x6dea1588
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x1c]
mov dword [esp + 0x14], ecx
mov dword [esp + 0xc], eax
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov dword [esp], 0xfde9
call edx
mov eax, dword [ebp - 0x20]
mov ecx, dword [esi + 4]
xor edx, edx
sub esp, 0x18
mov word [edi + eax - 2], dx
mov eax, dword [esi]
test ecx, ecx
mov edx, dword [eax]
mov dword [esp + 4], edi
mov dword [esp], eax
jne 0x6dea1550
call dword [edx + 0x28]
mov dword [esi + 8], eax
sub esp, 8
mov dword [esp + 8], edi
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
mov eax, dword [esi + 8]
sub esp, 0xc
lea esp, [ebp - 0x10]
pop ecx
not eax
pop ebx
shr eax, 0x1f
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0x10
call dword [edx + 0x24]
mov dword [esi + 8], eax
sub esp, 8
jmp 0x6dea1516
mov edx, esi
mov eax, edi
call sym._create_registrar
test eax, eax
jne 0x6dea1450
lea esi, [esi]
xor eax, eax
lea esp, [ebp - 0x10]
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0x10
mov dword [esi + 8], 0x8007000e
xor eax, eax
jmp 0x6dea157a
Function at 0x402b3a
Capabilities:
Terminate process

Disassembly:
jmp 0x449d58
push 0x17
call dword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x449d69
push 5
pop ecx
int 0x29
push esi
push 1
mov esi, 0xc0000417
push esi
push 2
call fcn.0040169a
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
pop esi
ret

Function at 0x4039b8
Capabilities:
Parse pe header

Disassembly:
jmp 0x43ad8e
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x43adce
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x43adce
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x43adce
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x43adce
cmp dword [ecx + 0x74], 0xe
jbe 0x43adce
cmp dword [ecx + 0xe8], 0
je 0x43adce
mov al, 1
ret
xor al, al
ret

Function at 0x404863
Capabilities:
Query environment variable

Disassembly:
jmp 0x4873ce
mov edi, edi
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x4873e2
xor edi, edi
jmp 0x487419
push ebx
push esi
call fcn.004872d8
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.0040314d
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x487409
push ebx
push esi
push edi
call fcn.004049b2
add esp, 0xc
push 0
call fcn.004017da
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
pop ebx
mov eax, edi
pop edi
pop esi
ret
Function at 0x407758
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffdf4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.0040a480
test esi, esi
jne 0x40778e
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.0040a618
jmp 0x4077ac
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00407638
mov edi, eax
test esi, esi
je 0x4077ac
cmp dword [ebx], 0
je 0x4077ac
dec esi
jmp 0x407795
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x4090c8
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff0
mov edi, edx
mov esi, eax
mov ebp, dword [esi + 0x10]
mov eax, esi
call fcn.00409588
mov byte [esp], al
cmp byte [esp], 0
jne 0x409251
test edi, edi
je 0x409251
mov byte [esp + 1], 0
test ebp, ebp
jle 0x409191
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
xor eax, eax
mov dword [esp + 0xc], eax
test ebp, ebp
jle 0x40916c
cmp edi, 0xffffffff
je 0x40912d
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x40912d
mov byte [esp], 0
jmp 0x409251
cmp dword [esi], 1
jg 0x40916c
cmp dword [esi], 0
jne 0x40915e
xor eax, eax
mov edx, 1
lock cmpxchg dword [esi], edx
test eax, eax
jne 0x40915e
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x409251
lea eax, [esp + 0xc]
call fcn.00408d7c
dec ebp
test ebp, ebp
jg 0x409112
cmp edi, 0xffffffff
je 0x409191
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x40918f
mov byte [esp], 0
jmp 0x409251
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x4090d6
lea edx, [ebx + 2]
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x409191
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.004092cc
mov edx, eax
mov ebx, dword [0x6b58fc]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x4091f5
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x4091f3
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x4091f5
xor edi, edi
cmp byte [esp], 0
je 0x40921b
mov ebx, dword [esi]
test bl, 1
jne 0x409231
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x4091fb
mov byte [esp + 1], 1
jmp 0x409231
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x40921b
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x4091a8
cmp byte [esp], 0
je 0x409251
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
movzx eax, byte [esp]
add esp, 0x10
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x40a118
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x6b505c], 0
je 0x40a17f
cmp word [0x6b5348], 0xd7b2
jne 0x40a141
cmp dword [0x6b5350], 0
jbe 0x40a141
mov eax, 0x6b5344
call dword [0x6b5360]
push 0
lea eax, [esp + 4]
push eax
push 0x1d
push str.Runtime_error_____at_00000000
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
mov eax, 0x40a1ac
call fcn.0040aca0
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x6ab036], 0
jne 0x40a19b
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x40a340
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 [0x6ab038], 0
je 0x40a36b
mov edx, edi
mov eax, esi
call dword [0x6ab038]
mov ebx, eax
jmp 0x40a37c
mov eax, 8
call fcn.00406fe8
mov ebx, eax
mov dword [ebx], esi
mov dword [ebx + 4], edi
mov byte [0x6b505d], 1
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
mov eax, 0x40a308
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_CreateThread
mov esi, eax
test esi, esi
jne 0x40a3ac
mov eax, ebx
call fcn.00407004
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 0xc
Function at 0x40dd48
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 0x40deaf
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.0040a480
cmp si, word [0x6aba18]
jb 0x40dde0
cmp si, word [0x6abc18]
ja 0x40dde0
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x40dde0
mov ebx, edi
add ebx, dword [ebp - 8]
shr ebx, 1
cmp si, word [ebx*8 + 0x6aba18]
jae 0x40ddba
mov edi, ebx
dec edi
jmp 0x40dddb
cmp si, word [ebx*8 + 0x6aba18]
jbe 0x40ddca
inc ebx
mov dword [ebp - 8], ebx
jmp 0x40dddb
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x6aba1c]
call fcn.0040dc64
jmp 0x40dde0
cmp edi, dword [ebp - 8]
jae 0x40dda4
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x40de8f
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40de8f
push 0x55
lea eax, [ebp - 0xb2]
push eax
push 0x59
movzx ebx, si
push ebx
call sub.kernel32.dll_GetLocaleInfoW
push 0x55
lea eax, [ebp - 0x15c]
push eax
push 0x5a
push ebx
call sub.kernel32.dll_GetLocaleInfoW
lea eax, [ebp - 0x160]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.0040afe8
push dword [ebp - 0x160]
push 0x40decc
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.0040afe8
push dword [ebp - 0x164]
push 0x40dedc
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.0040afe8
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.0040b220
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40deb6
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.0040a4e0
pop eax
jmp eax
Function at 0x40e064
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 0x40e16a
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x6b7c18
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x6b7c30]
jne 0x40e0b0
mov eax, esi
mov edx, 0x6b7c32
mov ecx, 0x55
call fcn.0040afe8
push 0x6b7c18
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x40e152
push 0x6b7c18
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
call fcn.0040a480
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40e11f
cmp byte [0x6b7c14], 0
je 0x40e0e4
mov edx, esi
mov eax, ebx
call fcn.0040df48
jmp 0x40e11f
mov edx, esi
mov eax, ebx
call fcn.0040dd48
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x40e11f
cmp dword [esi], 0
je 0x40e108
mov eax, esi
mov edx, 0x40e184
call fcn.0040b140
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.0040dd48
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.0040b140
push 0x6b7c18
call sub.kernel32.dll_EnterCriticalSection
mov word [0x6b7c30], bx
mov eax, dword [esi]
call fcn.0040af34
mov ecx, eax
mov eax, 0x6b7c32
mov edx, 0xaa
call fcn.0040dbc4
push 0x6b7c18
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40e171
lea eax, [ebp - 4]
call fcn.0040a480
pop eax
jmp eax
Function at 0x40e3ac
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffde0
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 8], ecx
mov esi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0040a574
xor eax, eax
push ebp
push 0x40e5d4
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x40e3f2
push 0x105
lea eax, [ebp - 0x21e]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x40e40c
mov eax, dword [ebp - 4]
call fcn.0040af34
mov ecx, eax
lea eax, [ebp - 0x21e]
mov edx, 0x105
call fcn.0040dbc4
cmp word [ebp - 0x21e], 0
je 0x40e5b7
xor eax, eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40e5e4
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40e4db
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40e5e4
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40e4db
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40e620
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40e4db
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40e620
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40e4db
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40e654
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40e4db
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40e688
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x40e5b7
xor eax, eax
push ebp
push 0x40e5b0
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 8]
lea eax, [ebp - 0x21e]
call fcn.0040e1ac
mov ebx, eax
lea eax, [ebp - 0x14]
push eax
push 0
push 0
push 0
push ebx
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x40e53e
mov eax, dword [ebp - 0x14]
call fcn.00406fe8
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0xc]
push eax
push 0
push 0
push ebx
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, esi
mov edx, dword [ebp - 0xc]
call fcn.0040af94
jmp 0x40e589
lea eax, [ebp - 0x14]
push eax
push 0
push 0
push 0
push 0x40e6c8
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x40e589
mov eax, dword [ebp - 0x14]
call fcn.00406fe8
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0xc]
push eax
push 0
push 0
push 0x40e6c8
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, esi
mov edx, dword [ebp - 0xc]
call fcn.0040af94
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40e5b7
cmp dword [ebp - 0xc], 0
je 0x40e5a4
mov eax, dword [ebp - 0xc]
call fcn.00407004
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegCloseKey
pop eax
jmp eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40e5db
lea eax, [ebp - 8]
mov edx, 2
call fcn.0040a4e0
pop eax
jmp eax
Function at 0x40e8e8
Capabilities:
Get geographical location
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
xor ecx, ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], ecx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0040a574
xor eax, eax
push ebp
push 0x40e9aa
push dword fs:[eax]
mov dword fs:[eax], esp
push 4
lea eax, [ebp - 0xc]
push eax
push 3
call sub.kernel32.dll_GetUserDefaultUILanguage
movzx eax, ax
push eax
call sub.kernel32.dll_GetLocaleInfoW
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.0040afe8
mov ecx, dword [ebp - 0x10]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.0040b198
mov eax, dword [ebx]
call fcn.0040e790
test al, al
jne 0x40e985
mov word [ebp - 8], 0
lea eax, [ebp - 0x14]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.0040afe8
mov ecx, dword [ebp - 0x14]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.0040b198
mov eax, dword [ebx]
call fcn.0040e790
test al, al
jne 0x40e985
mov eax, ebx
call fcn.0040a480
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40e9b1
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.0040a4e0
lea eax, [ebp - 4]
call fcn.0040a480
pop eax
jmp eax

Function at 0x410510
Capabilities:
Get system information on windows

Disassembly:
add esp, 0xffffffdc
push esp
call sub.kernel32.dll_GetSystemInfo
mov eax, dword [esp + 0x14]
add esp, 0x24
ret