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

Disassembly:
mov edx, dword [esp + 4]
mov ecx, 1
cmp dword [edx + 0x144], ecx
jbe 0x412cbd
push esi
lea eax, [edx + 0x66]
push edi
lea ebx, [ebx]
movzx esi, byte [eax + 1]
mov esi, dword [esi*4 + 0x466438]
movzx edi, byte [eax - 1]
xor esi, dword [edi*4 + 0x465c38]
movzx edi, byte [eax]
xor esi, dword [edi*4 + 0x466038]
movzx edi, byte [eax - 2]
xor esi, dword [edi*4 + 0x465838]
inc ecx
mov dword [eax - 2], esi
movzx esi, byte [eax + 5]
mov esi, dword [esi*4 + 0x466438]
movzx edi, byte [eax + 4]
xor esi, dword [edi*4 + 0x466038]
movzx edi, byte [eax + 3]
xor esi, dword [edi*4 + 0x465c38]
movzx edi, byte [eax + 2]
xor esi, dword [edi*4 + 0x465838]
add eax, 0x10
mov dword [eax - 0xe], esi
movzx esi, byte [eax - 7]
mov esi, dword [esi*4 + 0x466438]
movzx edi, byte [eax - 8]
xor esi, dword [edi*4 + 0x466038]
movzx edi, byte [eax - 9]
xor esi, dword [edi*4 + 0x465c38]
movzx edi, byte [eax - 0xa]
xor esi, dword [edi*4 + 0x465838]
mov dword [eax - 0xa], esi
movzx esi, byte [eax - 3]
movzx edi, byte [eax - 4]
mov esi, dword [esi*4 + 0x466438]
xor esi, dword [edi*4 + 0x466038]
movzx edi, byte [eax - 5]
xor esi, dword [edi*4 + 0x465c38]
movzx edi, byte [eax - 6]
xor esi, dword [edi*4 + 0x465838]
mov dword [eax - 6], esi
cmp ecx, dword [edx + 0x144]
jb 0x412bf0
pop edi
pop esi
ret
Function at 0x4142b0
Capabilities:
Read file on windows

Disassembly:
push esi
mov esi, dword [esp + 8]
mov eax, dword [esi + 0xc]
sub eax, 0
je 0x4142f4
sub eax, 1
jne 0x414316
mov eax, dword [esi + 8]
push eax
push 1
lea ecx, [esp + 0x10]
push 1
push ecx
call fcn.00435a1e
add esp, 0x10
test eax, eax
ja 0x4142ea
mov edx, dword [esp + 0xc]
mov dword [edx], 0xffffffff
or eax, 0xffffffff
pop esi
ret
inc dword [esi + 0x10]
movsx eax, byte [esp + 8]
pop esi
ret
mov ecx, dword [esi + 0x10]
cmp ecx, dword [esi]
jl 0x414309
mov eax, dword [esp + 0xc]
mov dword [eax], 0xffffffff
xor eax, eax
pop esi
ret
mov edx, dword [esi + 4]
movsx eax, byte [edx + ecx]
inc ecx
mov dword [esi + 0x10], ecx
pop esi
ret
mov eax, dword [esp + 8]
pop esi
ret

Function at 0x414320
Capabilities:
Write file on windows

Disassembly:
push esi
mov esi, dword [esp + 8]
mov eax, dword [esi + 0xc]
sub eax, 0
je 0x414351
sub eax, 1
jne 0x414369
mov eax, dword [esi + 8]
push eax
push 1
lea ecx, [esp + 0x14]
push 1
push ecx
call fcn.00435b9d
add esp, 0x10
inc dword [esi + 0x10]
mov eax, 1
pop esi
ret
mov eax, dword [esi + 0x10]
cmp eax, dword [esi]
jl 0x41435c
xor eax, eax
pop esi
ret
mov edx, dword [esi + 4]
mov cl, byte [esp + 0xc]
mov byte [eax + edx], cl
inc dword [esi + 0x10]
mov eax, 1
pop esi
ret
Function at 0x414450
Capabilities:
Encode data using base64

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x28]
push edi
call fcn.00414280
xor ebp, ebp
add esp, 4
mov dword [esp + 0x18], ebp
xor esi, esi
lea esp, [esp]
mov eax, 0x55555556
imul esi
mov eax, edx
shr eax, 0x1f
add eax, edx
lea eax, [eax + eax*2]
mov ecx, eax
mov eax, esi
sub eax, ecx
mov dword [esp + 0x1c], eax
jmp 0x414490
cmp eax, ebp
jne 0x4144ae
lea edx, [esp + 0x14]
push edx
push edi
mov dword [esp + 0x1c], ebp
call fcn.004142b0
mov ebx, eax
mov eax, dword [esp + 0x24]
add esp, 8
jmp 0x4144b2
mov ebx, dword [esp + 0x18]
cmp ebx, 0xd
je 0x414490
cmp ebx, 0xa
je 0x414490
cmp dword [esp + 0x14], 0xffffffff
je 0x4145e4
lea eax, [esp + 0x14]
push eax
push edi
mov dword [esp + 0x1c], ebp
call fcn.004142b0
mov edx, eax
add esp, 8
mov dword [esp + 0x18], edx
cmp edx, 0x3d
je 0x4145e4
cmp edx, 0xd
je 0x4144c7
cmp edx, 0xa
je 0x4144c7
cmp dword [esp + 0x14], 0xffffffff
je 0x4145e4
cmp bl, 0x41
jb 0x41450f
cmp bl, 0x5a
ja 0x41450f
movzx eax, bl
sub eax, 0x41
jmp 0x414558
cmp bl, 0x61
jb 0x414521
cmp bl, 0x7a
ja 0x414521
movzx eax, bl
sub eax, 0x47
jmp 0x414558
cmp bl, 0x30
jb 0x414533
cmp bl, 0x39
ja 0x414533
movzx eax, bl
add eax, 4
jmp 0x414558
cmp bl, 0x2a
jne 0x41453f
mov eax, 0x3e
jmp 0x414558
cmp bl, 0x2f
jne 0x41454b
mov eax, 0x3f
jmp 0x414558
xor eax, eax
cmp bl, 0x3d
setne al
dec eax
and eax, 0x41
dec eax
mov ebx, dword [esp + 0x1c]
lea ecx, [ebx + ebx + 2]
shl al, cl
mov byte [esp + 0x13], al
cmp dl, 0x41
jb 0x414578
cmp dl, 0x5a
ja 0x414578
movzx eax, dl
sub eax, 0x41
jmp 0x4145c1
cmp dl, 0x61
jb 0x41458a
cmp dl, 0x7a
ja 0x41458a
movzx eax, dl
sub eax, 0x47
jmp 0x4145c1
cmp dl, 0x30
jb 0x41459c
cmp dl, 0x39
ja 0x41459c
movzx eax, dl
add eax, 4
jmp 0x4145c1
cmp dl, 0x2a
jne 0x4145a8
mov eax, 0x3e
jmp 0x4145c1
cmp dl, 0x2f
jne 0x4145b4
mov eax, 0x3f
jmp 0x4145c1
xor eax, eax
cmp dl, 0x3d
setne al
dec eax
and eax, 0x41
dec eax
mov edx, dword [esp + 0x24]
mov cl, 2
sub cl, bl
add cl, cl
shr al, cl
or al, byte [esp + 0x13]
movzx ecx, al
push ecx
push edx
call fcn.00414320
add esp, 8
inc esi
jmp 0x414470
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x10
ret

Function at 0x417f43
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [edi + 0x58], ebx
test ebx, 0xffff0000
jne 0x417f67
cmp dword [edi + 0x54], 0
jne 0x417f67
movzx eax, bx
mov dword [edi + 0x54], eax
call fcn.00420d5e
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [ebp + 0xc]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.00417f04
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x41d60d
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], ebx
je 0x41d654
call fcn.00420d5e
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x41d654
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x41d670
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.0041d185
mov esi, eax
test edi, edi
je 0x41d66e
test ebx, ebx
je 0x41d66e
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x41e4ba
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x44a06b
call fcn.004329a3
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x41e4df
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x41e525
lea ecx, [ebp - 0x10]
call fcn.004158e2
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00415301
add esp, 0x10
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.004026b1
mov eax, esi
call fcn.00432a7b
ret 8
Function at 0x41edbb
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x274
mov eax, dword [0x467fd0]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], 0x800
mov eax, dword [ebp + 8]
push esi
mov dword [ebp - 0x234], eax
mov esi, ecx
lea eax, [ebp - 0xc]
jne 0x41ee53
push 0x45505c
push 4
push eax
call fcn.004368f3
push eax
call fcn.004025c8
add esp, 0x10
push ebx
push edi
call fcn.00436c6e
mov edi, dword [eax]
call fcn.00436c6e
xor ebx, ebx
mov dword [eax], ebx
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0x234]
lea eax, [ebp - 0x230]
push esi
push 0x111
mov esi, 0x112
push esi
push eax
call fcn.004337c0
add esp, 0x18
mov dword [ebp - 0x234], eax
call fcn.00436c6e
cmp dword [eax], ebx
je 0x41ee6a
call fcn.00436c6e
push dword [eax]
call fcn.00416f36
pop ecx
jmp 0x41ee71
push 4
push eax
push 3
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x41edfe
jmp 0x41eef8
call fcn.00436c6e
mov dword [eax], edi
cmp dword [ebp - 0x234], 0xffffffff
je 0x41eef4
cmp dword [ebp - 0x234], esi
jae 0x41eef4
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push 0x3c
mov esi, eax
lea eax, [ebp - 0x270]
push ebx
push eax
mov dword [ebp - 0x274], 0x40
call fcn.00432ab0
add esp, 0xc
push 0x454dbc
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
cmp eax, ebx
je 0x41eee3
push str.FindActCtxSectionStringW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x41eee3
lea ecx, [ebp - 0x274]
push ecx
push esi
push 2
push ebx
push ebx
call eax
test eax, eax
je 0x41eee3
push ebx
push ebx
push esi
jmp 0x41eeec
push ebx
push ebx
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
jmp 0x41eef6
xor eax, eax
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00432994
leave
ret

Function at 0x421427
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
cmp dword [ebp + 0xc], ebx
je 0x42146f
call fcn.00420d5e
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x42146f
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x4214b2
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
test ebx, ebx
je 0x42149b
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x42149b
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x4214af
mov ecx, dword [esi + 0x4c]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x432994
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x467fd0]
jne 0x43299e
repz ret
jmp fcn.0043ad5c
Function at 0x436494
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x4364c5
call fcn.00436c81
mov dword [eax], esi
call fcn.00436c6e
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.00433965
add esp, 0x14
push 0x16
pop eax
jmp 0x43651a
test dword [ebp + 0xc], 0xfffffff9
jne 0x4364a1
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4364f2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00436c94
pop ecx
call fcn.00436c6e
mov eax, dword [eax]
jmp 0x43651a
test al, 0x10
jne 0x436518
test al, 1
je 0x436518
test byte [ebp + 0xc], 2
je 0x436518
call fcn.00436c81
mov dword [eax], 5
call fcn.00436c6e
mov dword [eax], 0xd
jmp 0x4364e9
xor eax, eax
pop esi
pop ebp
ret

Function at 0x440ed0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov byte [ebp - 0x4c], 0xca
mov byte [ebp - 0x4b], 0xee
mov byte [ebp - 0x4a], 0xc9
mov byte [ebp - 0x49], 0xc1
mov byte [ebp - 0x48], 0xc8
mov byte [ebp - 0x47], 0xa7
call fcn.00440c49
mov dh, cl
dec ebx
in eax, 0x8d
inc ebp
test al, 0x50
call fcn.00440c59
mov esi, dword [ebp + 0xc]
push eax
push esi
push dword [ebp + 8]
call fcn.00440c0e
add esp, 0x10
lea ecx, [ebp - 0xb0]
push ecx
call eax
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xac]
xor edx, edx
div ecx
xor edx, edx
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp - 8]
div ecx
test edx, edx
je 0x440f37
invalid
inc dword [ebp - 0x8c]
imul ecx, dword [ebp - 0x8c]
mov dword [ebp + 0xc], ecx
mov byte [ebp - 0x40], bl
mov byte [ebp - 0x3f], bl
mov byte [ebp - 0x3e], 0xec
mov byte [ebp - 0x3d], bl
mov byte [ebp - 0x3c], 0x45
mov byte [ebp - 0x3b], 0x7a
mov byte [ebp - 0x3a], 0x61
mov byte [ebp - 0x39], 0x67
mov byte [ebp - 0x38], 0x66
mov byte [ebp - 0x37], 0x72
mov byte [ebp - 0x36], 0x7f
mov byte [ebp - 0x35], 0x52
mov byte [ebp - 0x34], 0x7f
mov byte [ebp - 0x33], 0x7f
mov byte [ebp - 0x32], 0x7c
mov byte [ebp - 0x31], 0x70
mov byte [ebp - 0x30], 0x13
call fcn.00440c49
push 0xffffffffffffffd2
daa
jbe 0x440f19
inc ebp
Function at 0x44293f
Capabilities:
Contain obfuscated stackstrings

Disassembly:
and byte [ebp - 0x7ac], 0
and byte [ebp - 0x7ab], 0
mov byte [ebp - 0x7aa], 0xed
and byte [ebp - 0x7a9], 0
mov byte [ebp - 0x7a8], 0x4e
mov byte [ebp - 0x7a7], 0x55
mov byte [ebp - 0x7a6], 0x56
mov byte [ebp - 0x7a5], 0x7e
mov byte [ebp - 0x7a4], 0x21
mov byte [ebp - 0x7a3], 0x20
mov byte [ebp - 0x7a2], 0x3c
mov byte [ebp - 0x7a1], 0x76
mov byte [ebp - 0x7a0], 0x7e
mov byte [ebp - 0x79f], 0x7e
mov byte [ebp - 0x79e], 0x12
push 0xb
lea eax, [ebp - 0x7ac]
push eax
call fcn.00440c59
pop ecx
push eax
mov eax, dword [ebp - 0x338]
lea eax, [ebp + eax - 0x230]
push eax
call fcn.00440bba
add esp, 0xc
jmp 0x442bc1
mov eax, dword [ebp - 0x6fc]
inc eax
mov dword [ebp - 0x6fc], eax
and dword [ebp - 0x37c], 0
call fcn.00440c49
mov dword [0xffbd821a], eax
mov ch, 0x60
cld
invalid

Function at 0x442df7
Capabilities:
Access peb ldr_data
Resolve function by parsing pe exports

Disassembly:
cmpsd dword [esi], dword es:[edi]
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov esi, dword [eax + 0x1c]
lodsd eax, dword [esi]
cmp byte [eax + 0x1c], 0x18
je 0x442e0d
xchg esi, eax
lodsd eax, dword [esi]
mov eax, dword [eax + 8]
push eax
call fcn.00440c49
pop ds
mov esp, 0xf88b505c
mov eax, dword [edi + 0x3c]
mov edx, dword [edi + eax + 0x78]
add edx, edi
mov ecx, dword [edx + 0x18]
mov ebx, dword [edx + 0x20]
add ebx, edi
call fcn.00440c49
push cs
test edi, ecx
ror dword [ecx - 0x75], 1
xor al, 0x8b
dec ecx
mov esi, dword [ebx + ecx*4]
add esi, edi
mov eax, 0x50746547
cmp dword [esi], eax
jne 0x442e36
mov eax, 0x41636f72
cmp dword [esi + 4], eax
jne 0x442e36
call fcn.00440c49
cdq
invalid
Function at 0x404548
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffdf4
mov ebx, edx
mov esi, eax
mov eax, ebx
xor edx, edx
call fcn.0040681c
test esi, esi
jne 0x404580
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.00406958
jmp 0x40459e
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.0040448c
mov edi, eax
test esi, esi
je 0x40459e
cmp dword [ebx], 0
je 0x40459e
dec esi
jmp 0x404587
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x405de0
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4b4050], 0
je 0x405e41
cmp word [0x4b432c], 0xd7b2
jne 0x405e09
cmp dword [0x4b4334], 0
jbe 0x405e09
mov eax, 0x4b4328
call dword [0x4b4344]
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
push 0x405e6c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4b1030], 0
jne 0x405e5d
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x405fcc
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 4], edx
mov edi, eax
mov esi, dword [ebp + 0x10]
cmp dword [0x4b1034], 0
je 0x405ff2
mov edx, esi
mov eax, ebx
call dword [0x4b1034]
jmp 0x406001
mov eax, 8
call fcn.004041d4
mov dword [eax], ebx
mov dword [eax + 4], esi
mov byte [0x4b4051], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x405f94
push eax
mov eax, dword [ebp - 4]
push eax
push edi
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 0xc
Function at 0x4085e4
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe94
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x164], ecx
mov dword [ebp - 0x168], ecx
mov dword [ebp - 0x16c], ecx
mov dword [ebp - 8], edx
mov esi, eax
xor eax, eax
push ebp
push 0x40874b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
xor edx, edx
call fcn.0040681c
cmp si, word [0x4b17dc]
jb 0x40867e
cmp si, word [0x4b19dc]
ja 0x40867e
mov edi, 0x40
xor eax, eax
mov dword [ebp - 0xc], eax
cmp edi, dword [ebp - 0xc]
jb 0x40867e
mov ebx, dword [ebp - 0xc]
add ebx, edi
shr ebx, 1
cmp si, word [ebx*8 + 0x4b17dc]
jae 0x408658
mov edi, ebx
dec edi
jmp 0x408679
cmp si, word [ebx*8 + 0x4b17dc]
jbe 0x408668
inc ebx
mov dword [ebp - 0xc], ebx
jmp 0x408679
mov edx, dword [ebp - 8]
mov eax, dword [ebx*8 + 0x4b17e0]
call fcn.004084f4
jmp 0x40867e
cmp edi, dword [ebp - 0xc]
jae 0x408642
mov eax, dword [ebp - 8]
cmp dword [eax], 0
jne 0x40872d
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40872d
push 0x55
lea eax, [ebp - 0xb6]
push eax
push 0x59
movzx ebx, si
push ebx
call sub.kernel32.dll_GetLocaleInfoW
push 0x55
lea eax, [ebp - 0x160]
push eax
push 0x5a
push ebx
call sub.kernel32.dll_GetLocaleInfoW
lea eax, [ebp - 0x164]
lea edx, [ebp - 0xb6]
mov ecx, 0x55
call fcn.00406a04
push dword [ebp - 0x164]
push 0x408768
lea eax, [ebp - 0x168]
lea edx, [ebp - 0x160]
mov ecx, 0x55
call fcn.00406a04
push dword [ebp - 0x168]
push 0x408778
lea eax, [ebp - 0x16c]
lea edx, [ebp - 0xb6]
mov ecx, 0x55
call fcn.00406a04
push dword [ebp - 0x16c]
mov eax, dword [ebp - 8]
mov edx, 5
call fcn.00406dbc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408752
lea eax, [ebp - 0x16c]
mov edx, 3
call fcn.00406814
ret
Function at 0x408904
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 0x408a09
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x4b6b58
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x4b6b70]
jne 0x408950
mov eax, esi
mov edx, 0x4b6b74
mov ecx, 0x55
call fcn.00406a04
push 0x4b6b58
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x4089f3
push 0x4b6b58
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
xor edx, edx
call fcn.0040681c
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x4089c1
cmp byte [0x4b6b54], 0
je 0x408986
mov edx, esi
mov eax, ebx
call fcn.004087e4
jmp 0x4089c1
mov edx, esi
mov eax, ebx
call fcn.004085e4
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x4089c1
cmp dword [esi], 0
je 0x4089aa
mov eax, esi
mov edx, 0x408a24
call fcn.00406c18
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.004085e4
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.00406c18
push 0x4b6b58
call sub.kernel32.dll_EnterCriticalSection
mov word [0x4b6b70], bx
push 0xaa
mov eax, dword [esi]
call fcn.004068a8
push eax
push 0x4b6b74
call sub.kernel32.dll_lstrcpynW
push 0x4b6b58
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408a10
lea eax, [ebp - 4]
call fcn.0040680c
ret
Function at 0x408c48
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.00406804
xor eax, eax
push ebp
push 0x408e2d
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x408c88
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x408ca2
push 0x105
mov eax, dword [ebp - 4]
call fcn.004068a8
push eax
lea eax, [ebp - 0x21a]
push eax
call sub.kernel32.dll_lstrcpynW
cmp word [ebp - 0x21a], 0
je 0x408e17
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x408e3c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x408d31
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x408e3c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x408d31
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x408e70
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x408d31
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x408ea4
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x408e17
xor eax, eax
push ebp
push 0x408e10
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.00408a4c
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
test eax, eax
jne 0x408da0
mov eax, dword [ebp - 0x10]
call fcn.004041d4
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
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.004069c8
jmp 0x408deb
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x408ee4
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x408deb
mov eax, dword [ebp - 0x10]
call fcn.004041d4
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x408ee4
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.004069c8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408e17
cmp dword [ebp - 8], 0
je 0x408e06
mov eax, dword [ebp - 8]
call fcn.004041f0
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408e34
lea eax, [ebp - 4]
call fcn.0040680c
ret
Function at 0x4090f8
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdd8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x228], ebx
mov dword [ebp - 0x224], ebx
mov dword [ebp - 0x220], ebx
mov esi, ecx
mov dword [ebp - 0x21c], edx
mov dword [ebp - 0x218], eax
mov eax, dword [ebp - 0x218]
call fcn.00406804
mov eax, dword [ebp - 0x21c]
call fcn.00406804
lea edi, [ebp - 0x210]
xor eax, eax
push ebp
push 0x409297
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
xor edx, edx
call fcn.0040681c
xor ebx, ebx
push 0x105
mov eax, dword [ebp - 0x21c]
call fcn.004068a8
push eax
lea eax, [ebp - 0x20a]
push eax
call sub.kernel32.dll_lstrcpynW
lea eax, [ebp - 0x20a]
push eax
call sub.kernel32.dll_lstrlenW
add eax, eax
lea edx, [ebp - 0x20a]
add eax, edx
sub eax, 2
mov dword [edi], eax
jmp 0x409198
sub dword [edi], 2
mov eax, dword [edi]
cmp word [eax], 0x2e
je 0x4091aa
lea eax, [ebp - 0x20a]
cmp eax, dword [edi]
jne 0x409195
lea eax, [ebp - 0x20a]
cmp eax, dword [edi]
je 0x409263
add dword [edi], 2
mov eax, dword [edi]
mov word [eax], 0
lea eax, [ebp - 0x20a]
mov edx, dword [edi]
sub edx, eax
sar edx, 1
jns 0x4091d3
adc edx, 0
mov eax, 0x105
sub eax, edx
mov dword [ebp - 0x214], eax
lea edx, [ebp - 0x220]
mov eax, dword [ebp - 0x218]
call fcn.00408c48
cmp dword [ebp - 0x220], 0
je 0x40920b
push ebp
mov eax, dword [ebp - 0x220]
call fcn.00408fec
pop ecx
mov ebx, eax
jmp 0x409263
push ebp
call sub.kernel32.dll_GetUserDefaultUILanguage
lea edx, [ebp - 0x224]
call fcn.00408904
mov eax, dword [ebp - 0x224]
call fcn.00408fec
pop ecx
mov ebx, eax
test bl, bl
jne 0x409256
cmp byte [0x4b6b54], 0
jne 0x409256
push ebp
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 0x228]
call fcn.00408904
mov eax, dword [ebp - 0x228]
call fcn.00408fec
pop ecx
mov ebx, eax
test bl, bl
jne 0x409263
push ebp
call fcn.0040909c
pop ecx
mov ebx, eax
test bl, bl
je 0x409279
mov eax, esi
lea edx, [ebp - 0x20a]
mov ecx, 0x105
call fcn.00406a04
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40929e
lea eax, [ebp - 0x228]
mov edx, 5
call fcn.00406814
ret

Function at 0x409a10
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