joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10167240
Capabilities:
Delete file
Get common file path
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10197c28
mov eax, dword fs:[0]
push eax
sub esp, 0x244
mov eax, dword [0x101fc010]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
push str.OPENCV_TEMP_PATH
mov dword [ebp - 0x250], esi
mov dword [ebp - 0x24c], 0
call dword [sym.imp.MSVCR120.dll_getenv]
mov dword [ebp - 0x220], 0
mov edi, eax
mov dword [ebp - 0x21c], 0
mov dword [ebp - 0x21c], 0xf
mov dword [ebp - 0x220], 0
mov byte [ebp - 0x230], 0
mov dword [ebp - 4], 1
lea eax, [ebp - 0x217]
push 0x103
push 0
push eax
mov byte [ebp - 0x218], 0
call sub.MSVCR120.dll_memset
push 0x103
lea eax, [ebp - 0x113]
mov byte [ebp - 0x114], 0
push 0
push eax
call sub.MSVCR120.dll_memset
add esp, 0x1c
test edi, edi
je 0x10167307
cmp byte [edi], 0
jne 0x1016731f
lea eax, [ebp - 0x218]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea edi, [ebp - 0x218]
lea eax, [ebp - 0x114]
push eax
push 0
push 0x101ad1d0
push edi
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x10167349
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], eax
mov byte [esi], al
jmp 0x10167424
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
cmp byte [ebp - 0x114], 0
jne 0x10167363
xor ecx, ecx
jmp 0x10167379
lea ecx, [ebp - 0x114]
lea edx, [ecx + 1]
lea esp, [esp]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10167370
sub ecx, edx
push ecx
lea eax, [ebp - 0x114]
push eax
lea ecx, [ebp - 0x230]
call fcn.1000a180
lea eax, [ebp - 0x230]
test ebx, ebx
je 0x1016740b
cmp byte [ebx], 0x2e
je 0x101673fe
push 0x101a3880
push eax
lea eax, [ebp - 0x248]
push eax
call fcn.10164c20
mov byte [ebp - 4], 2
push ebx
push eax
push esi
call fcn.10001f50
add esp, 0x18
mov dword [ebp - 0x24c], 1
mov byte [ebp - 4], 1
cmp dword [ebp - 0x234], 0x10
jb 0x101673e1
push dword [ebp - 0x248]
call sub.MSVCR120.dll_void___cdecl_operator_delete_void__
add esp, 4
mov dword [ebp - 0x234], 0xf
mov dword [ebp - 0x238], 0
mov byte [ebp - 0x248], 0
jmp 0x1016742e
push ebx
push eax
push esi
call fcn.10164c20
add esp, 0xc
jmp 0x10167424
mov dword [esi + 0x14], 0xf
mov ecx, esi
mov dword [esi + 0x10], 0
push eax
mov byte [esi], 0
call fcn.10007310
mov dword [ebp - 0x24c], 1
mov byte [ebp - 4], 0
cmp dword [ebp - 0x21c], 0x10
jb 0x10167449
push dword [ebp - 0x230]
call sub.MSVCR120.dll_void___cdecl_operator_delete_void__
add esp, 4
mov dword [ebp - 0x21c], 0xf
mov dword [ebp - 0x220], 0
mov byte [ebp - 0x230], 0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10176850
mov esp, ebp
pop ebp
ret
Function at 0x101696b0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101980e1
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x101fc010]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov edi, dword [ebp + 8]
mov dword [esi], vtable.cv::FileStorage.0
mov eax, dword [edi + 4]
mov dword [esi + 4], eax
mov eax, dword [edi + 8]
mov dword [esi + 8], eax
test eax, eax
je 0x101696fe
push 1
push eax
call sym.opencv_core249.dll_int___cdecl_cv::_interlockedExchangeAdd_int___int_
add esp, 8
mov dword [ebp - 4], 0
lea ecx, [esi + 0xc]
push 0xffffffffffffffff
push 0
lea eax, [edi + 0xc]
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push eax
mov byte [ecx], 0
call fcn.1000a020
mov byte [ebp - 4], 1
lea eax, [edi + 0x24]
push eax
lea ecx, [esi + 0x24]
call fcn.10169250
mov byte [ebp - 4], 2
mov eax, dword [edi + 0x30]
mov dword [esi + 0x30], eax
mov dword [ebp - 4], 0xffffffff
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x101697e0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10198146
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x101fc010]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x10], ebx
mov esi, dword [ebp + 8]
lea ecx, [ebx + 0x18]
mov eax, dword [esi]
mov dword [ebx], eax
mov eax, dword [esi + 4]
mov dword [ebx + 4], eax
mov eax, dword [esi + 8]
mov dword [ebx + 8], eax
mov eax, dword [esi + 0xc]
mov dword [ebx + 0xc], eax
mov eax, dword [esi + 0x10]
mov dword [ebx + 0x10], eax
mov eax, dword [esi + 0x14]
mov dword [ebx + 0x14], eax
lea eax, [esi + 0x18]
push eax
call fcn.101692f0
mov dword [ebp - 4], 0
lea eax, [esi + 0x24]
push eax
lea ecx, [ebx + 0x24]
call fcn.10169430
mov byte [ebp - 4], 1
add esi, 0x30
lea edi, [ebx + 0x30]
mov ecx, 0x20
rep movsd dword es:[edi], dword [esi]
mov dword [ebp - 4], 0xffffffff
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x1016dc90
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 0x10]
mov dword [esi], 0
mov eax, edi
sub eax, dword [esi]
push eax
mov eax, dword [ebp + 0xc]
add eax, dword [esi]
push eax
push dword [ebx + 0x14]
call dword [sym.imp.MSVCR120.dll__read]
add esp, 0xc
test eax, eax
jle 0x1016dcc8
add dword [esi], eax
cmp dword [esi], edi
jb 0x1016dca5
test eax, eax
jns 0x1016dcec
call dword [sym.imp.MSVCR120.dll__errno]
push dword [eax]
call dword [sym.imp.MSVCR120.dll_strerror]
push eax
push 0xffffffffffffffff
push ebx
call fcn.1016e400
add esp, 0x10
or eax, 0xffffffff
pop edi
pop esi
pop ebx
pop ebp
ret
test eax, eax
jne 0x1016dcf7
mov dword [ebx + 0x40], 1
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret
Function at 0x101738b0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
test eax, eax
jne 0x101738bc
pop ebp
ret
mov dword [ebp + 0xc], eax
pop ebp
jmp fcn.10173e30

Function at 0x10173c20
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x101fc010]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0x14]
mov dword [ebp - 0x108], edx
test edi, edi
jg 0x10173c5c
jl 0x10173c4a
test edx, edx
jne 0x10173c5c
mov eax, dword [ebp + 8]
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10176850
mov esp, ebp
pop ebp
ret
mov ecx, 1
mov dword [ebp - 0x84], 0xedb88320
mov eax, ecx
lea ecx, [ecx]
mov dword [ebp + eax*4 - 0x84], ecx
inc eax
add ecx, ecx
cmp eax, 0x20
jl 0x10173c70
push ebx
push esi
xor esi, esi
jmp 0x10173c90
mov eax, dword [ebp + esi - 0x84]
lea ecx, [ebp - 0x84]
xor edx, edx
test eax, eax
je 0x10173cb0
test al, 1
je 0x10173ca9
xor edx, dword [ecx]
add ecx, 4
shr eax, 1
jne 0x10173ca3
mov dword [ebp + esi - 0x104], edx
add esi, 4
cmp esi, 0x80
jl 0x10173c90
xor esi, esi
jmp 0x10173cd0
mov eax, dword [ebp + esi - 0x104]
lea ecx, [ebp - 0x104]
xor edx, edx
test eax, eax
je 0x10173cf0
test al, 1
je 0x10173ce9
xor edx, dword [ecx]
add ecx, 4
shr eax, 1
jne 0x10173ce3
mov dword [ebp + esi - 0x84], edx
add esi, 4
cmp esi, 0x80
jl 0x10173cd0
mov ebx, dword [ebp + 8]
jmp 0x10173d10
xor esi, esi
jmp 0x10173d20
mov eax, dword [ebp + esi - 0x84]
lea ecx, [ebp - 0x84]
xor edx, edx
test eax, eax
je 0x10173d40
test al, 1
je 0x10173d39
xor edx, dword [ecx]
add ecx, 4
shr eax, 1
jne 0x10173d33
mov dword [ebp + esi - 0x104], edx
add esi, 4
cmp esi, 0x80
jl 0x10173d20
mov edx, dword [ebp - 0x108]
mov eax, edx
and eax, 1
or eax, 0
je 0x10173d80
xor ecx, ecx
lea eax, [ebp - 0x104]
test ebx, ebx
je 0x10173d7e
mov edi, edi
test bl, 1
je 0x10173d77
xor ecx, dword [eax]
add eax, 4
shr ebx, 1
jne 0x10173d70
mov ebx, ecx
shrd edx, edi, 1
sar edi, 1
mov eax, edx
or eax, edi
mov dword [ebp - 0x108], edx
je 0x10173e16
xor esi, esi
jmp 0x10173da0
mov eax, dword [ebp + esi - 0x104]
lea ecx, [ebp - 0x104]
xor edx, edx
test eax, eax
je 0x10173dc0
test al, 1
je 0x10173db9
xor edx, dword [ecx]
add ecx, 4
shr eax, 1
jne 0x10173db3
mov dword [ebp + esi - 0x84], edx
add esi, 4
cmp esi, 0x80
jl 0x10173da0
mov edx, dword [ebp - 0x108]
mov eax, edx
and eax, 1
or eax, 0
je 0x10173e00
xor ecx, ecx
lea eax, [ebp - 0x84]
test ebx, ebx
je 0x10173dfe
mov edi, edi
test bl, 1
je 0x10173df7
xor ecx, dword [eax]
add eax, 4
shr ebx, 1
jne 0x10173df0
mov ebx, ecx
shrd edx, edi, 1
sar edi, 1
mov ecx, edx
or ecx, edi
mov dword [ebp - 0x108], edx
jne 0x10173d10
xor ebx, dword [ebp + 0xc]
mov ecx, dword [ebp - 4]
mov eax, ebx
pop esi
pop ebx
xor ecx, ebp
pop edi
call fcn.10176850
mov esp, ebp
pop ebp
ret
Function at 0x4102a0
Capabilities:
Encode data using xor

Disassembly:
shr dword [0xffa26d28], 1
xchg esi, eax
imul ebx, dword [eax - 0x32], 0xefb7037
adc esi, dword [edx + 0x6d]
push ecx
cmp al, 0xa2
mov al, byte [0x9ec1c9fb]
mov esi, 0xff39a42d
sub eax, 0xadff39a4
pop ebx
out 0x6f, al
adc bl, byte [esi - 0x3ba28e60]
sub al, byte [esi + eax*2]
sbb al, 0x35
mov al, byte [0x2ac45d71]
add al, 0x46
inc esi
mov dh, 0x69
mov al, byte [0xbd3fddb2]
xor esp, esi
lodsd eax, dword [esi]
xor ah, byte [edx + 0x5b]
or eax, 0x742755a9
xchg ebp, eax
pop ecx
mov dword [0x3793d012], eax
out 0xcc, al
lcall 0x9955, 0xb38c81f0
jno 0x41026d
cmp eax, 0xecc84297
or bh, byte [ebx - 0x58]
jnp 0x41024a
jnp 0x41024a
inc esp
stc
test dword [edx - 0x34], 0xca504475
or dword [eax], 0x2a1898a4
jb 0x4102a7
jne 0x4102ed
push eax
retf 0x881
and byte [edx], 0xd4
mov eax, 0x70f66275
movsb byte es:[edi], byte [esi]
mov al, 0xb0
push 0x2854f6b2
push edi
salc
jns 0x410275
dec esi
pop eax
stc
jbe 0x410339
lodsb al, byte [esi]
xchg ebx, eax
aaa
mov bl, 0xab
xor dword [ecx], eax
js 0x41034e
xchg ecx, eax
into
je 0x41034e
jno 0x4102f9
cmp eax, 0xb6e474d0
lcall 0x2027, 0xa7e979b8
push ss
sub dh, byte [ebp - 0x7ce562ca]
mov esi, 0x26c8f3c6
aaa
popfd
sbb al, byte [ebx - 0x370c3942]
aaa
and edx, esp
xor al, 0xf0
mov ch, 0x6c
adc dword [ebp + 0x69], 0xffffffed
inc ebp
cmp byte [eax], bl
sub dword [esi + 0x4a5efec1], 0x429e34db
invalid
inc edx
aad 0xa2
int3
inc edx
loopne 0x41036e
and byte [eax], 0xf9
ret
inc edx
invalid
in al, dx
adc byte [ebp + 0x53], bl
out 0x3f, eax
jae 0x410318
shr dword [eax + 0x3d], 1
mov dh, byte [edi + 0x7fbf85d0]
scasd eax, dword es:[edi]
sbb byte [esi - 0xf], dl
inc esi
mov ah, 0x7b
daa
inc edx
and edx, ebx
add byte [ebx + ecx*8 - 0x42292d58], al
int 0xc5
xchg edi, eax
out 0x18, al
jg 0x41030c
rcl dh, cl
mov ebp, 0xe697c5cd
sbb byte [edi - 0x6c], bh
dec edi
retf 0x5d67
Function at 0x47e692
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x47e6c0
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x47e6de
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0047e5f8
jmp 0x47e6de
mov eax, dword [esi + 0x14]
test eax, eax
je 0x47e6de
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0047e5f8
test edi, edi
mov eax, edi
jne 0x47e6c8
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
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.00406a68
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.00406ba4
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 0x4045d0
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x4d9008], 0x8088405
inc edx
mov dword [ebx + 0x4d9008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x405fd0
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4dc050], 0
je 0x406031
cmp word [0x4dc32c], 0xd7b2
jne 0x405ff9
cmp dword [0x4dc334], 0
jbe 0x405ff9
mov eax, 0x4dc328
call dword [0x4dc344]
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 0x40605c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4d9030], 0
jne 0x40604d
push 0
push 0x4d979c
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x4061bc
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 [0x4d9034], 0
je 0x4061e2
mov edx, esi
mov eax, ebx
call dword [0x4d9034]
jmp 0x4061f1
mov eax, 8
call fcn.004041d4
mov dword [eax], ebx
mov dword [eax + 4], esi
mov byte [0x4dc051], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x406184
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 0x40880c
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 0x408973
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
xor edx, edx
call fcn.00406a68
cmp si, word [0x4d97d8]
jb 0x4088a6
cmp si, word [0x4d99d8]
ja 0x4088a6
mov edi, 0x40
xor eax, eax
mov dword [ebp - 0xc], eax
cmp edi, dword [ebp - 0xc]
jb 0x4088a6
mov ebx, dword [ebp - 0xc]
add ebx, edi
shr ebx, 1
cmp si, word [ebx*8 + 0x4d97d8]
jae 0x408880
mov edi, ebx
dec edi
jmp 0x4088a1
cmp si, word [ebx*8 + 0x4d97d8]
jbe 0x408890
inc ebx
mov dword [ebp - 0xc], ebx
jmp 0x4088a1
mov edx, dword [ebp - 8]
mov eax, dword [ebx*8 + 0x4d97dc]
call fcn.0040871c
jmp 0x4088a6
cmp edi, dword [ebp - 0xc]
jae 0x40886a
mov eax, dword [ebp - 8]
cmp dword [eax], 0
jne 0x408955
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x408955
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.00406c50
push dword [ebp - 0x164]
push 0x408990
lea eax, [ebp - 0x168]
lea edx, [ebp - 0x160]
mov ecx, 0x55
call fcn.00406c50
push dword [ebp - 0x168]
push 0x4089a0
lea eax, [ebp - 0x16c]
lea edx, [ebp - 0xb6]
mov ecx, 0x55
call fcn.00406c50
push dword [ebp - 0x16c]
mov eax, dword [ebp - 8]
mov edx, 5
call fcn.00407008
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40897a
lea eax, [ebp - 0x16c]
mov edx, 3
call fcn.00406a60
ret
Function at 0x4089a4
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
xor ecx, ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 6], edx
mov word [ebp - 2], ax
xor eax, eax
push ebp
push 0x408b8a
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x4deb58
call sub.kernel32.dll_EnterCriticalSection
movzx eax, word [0x4deb70]
cmp ax, word [ebp - 2]
jne 0x4089fc
mov eax, dword [ebp - 6]
mov edx, 0x4deb74
mov ecx, 0x55
call fcn.00406c50
push 0x4deb58
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x408b74
push 0x4deb58
call sub.kernel32.dll_LeaveCriticalSection
mov eax, dword [ebp - 6]
xor edx, edx
call fcn.00406a68
push 2
movzx eax, word [ebp - 2]
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x408b3c
cmp byte [0x4deb54], 0
je 0x408af2
call dword [0x4deb4c]
mov word [ebp - 0x16], ax
movzx eax, word [ebp - 2]
push eax
call dword [0x4deb50]
xor eax, eax
mov dword [ebp - 0x10], eax
xor eax, eax
mov dword [ebp - 0xc], eax
xor ecx, ecx
push ebp
push 0x408aeb
push dword fs:[ecx]
mov dword fs:[ecx], esp
lea eax, [ebp - 0xc]
push eax
push 0
lea eax, [ebp - 0x14]
push eax
push 0x38
call dword [0x4deb48]
test al, al
je 0x408ac4
mov eax, dword [ebp - 0xc]
add eax, eax
call fcn.004041d4
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x38
call dword [0x4deb48]
mov edx, dword [ebp - 0xc]
sub edx, 2
test edx, edx
jb 0x408ab9
inc edx
xor eax, eax
mov ecx, dword [ebp - 0x10]
cmp word [ecx + eax*2], 0
jne 0x408ab5
mov ecx, dword [ebp - 0x10]
mov word [ecx + eax*2], 0x2c
inc eax
dec edx
jne 0x408aa2
mov eax, dword [ebp - 6]
mov edx, dword [ebp - 0x10]
call fcn.00406c14
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408b3c
movzx eax, word [ebp - 0x16]
push eax
call dword [0x4deb50]
cmp dword [ebp - 0x10], 0
je 0x408aea
mov eax, dword [ebp - 0x10]
call fcn.004041f0
ret
mov edx, dword [ebp - 6]
movzx eax, word [ebp - 2]
call fcn.0040880c
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp ax, word [ebp - 2]
je 0x408b3c
mov eax, dword [ebp - 6]
cmp dword [eax], 0
je 0x408b21
mov eax, dword [ebp - 6]
mov edx, 0x408ba4
call fcn.00406e64
mov eax, dword [ebp - 6]
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 0x1c]
call fcn.0040880c
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 6]
call fcn.00406e64
mov eax, dword [ebp - 6]
push 0x4deb58
call sub.kernel32.dll_EnterCriticalSection
movzx eax, word [ebp - 2]
mov word [0x4deb70], ax
push 0xaa
mov eax, dword [ebp - 6]
mov eax, dword [eax]
call fcn.00406af4
push eax
push 0x4deb74
call sub.kernel32.dll_lstrcpynW
push 0x4deb58
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408b91
lea eax, [ebp - 0x1c]
call fcn.00406a58
ret
Function at 0x408dc8
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.00406a50
xor eax, eax
push ebp
push 0x408fad
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x408e08
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x408e22
push 0x105
mov eax, dword [ebp - 4]
call fcn.00406af4
push eax
lea eax, [ebp - 0x21a]
push eax
call sub.kernel32.dll_lstrcpynW
cmp word [ebp - 0x21a], 0
je 0x408f97
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x408fbc
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x408eb1
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x408fbc
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x408eb1
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x408ff0
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x408eb1
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409024
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x408f97
xor eax, eax
push ebp
push 0x408f90
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.00408bcc
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 0x408f20
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.00406c14
jmp 0x408f6b
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x409064
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x408f6b
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 0x409064
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.00406c14
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408f97
cmp dword [ebp - 8], 0
je 0x408f86
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 0x408fb4
lea eax, [ebp - 4]
call fcn.00406a58
ret
Function at 0x409278
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.00406a50
mov eax, dword [ebp - 0x21c]
call fcn.00406a50
lea edi, [ebp - 0x210]
xor eax, eax
push ebp
push 0x409417
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
xor edx, edx
call fcn.00406a68
xor ebx, ebx
push 0x105
mov eax, dword [ebp - 0x21c]
call fcn.00406af4
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 0x409318
sub dword [edi], 2
mov eax, dword [edi]
cmp word [eax], 0x2e
je 0x40932a
lea eax, [ebp - 0x20a]
cmp eax, dword [edi]
jne 0x409315
lea eax, [ebp - 0x20a]
cmp eax, dword [edi]
je 0x4093e3
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 0x409353
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.00408dc8
cmp dword [ebp - 0x220], 0
je 0x40938b
push ebp
mov eax, dword [ebp - 0x220]
call fcn.0040916c
pop ecx
mov ebx, eax
jmp 0x4093e3
push ebp
call sub.kernel32.dll_GetUserDefaultUILanguage
lea edx, [ebp - 0x224]
call fcn.004089a4
mov eax, dword [ebp - 0x224]
call fcn.0040916c
pop ecx
mov ebx, eax
test bl, bl
jne 0x4093d6
cmp byte [0x4deb54], 0
jne 0x4093d6
push ebp
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 0x228]
call fcn.004089a4
mov eax, dword [ebp - 0x228]
call fcn.0040916c
pop ecx
mov ebx, eax
test bl, bl
jne 0x4093e3
push ebp
call fcn.0040921c
pop ecx
mov ebx, eax
test bl, bl
je 0x4093f9
mov eax, esi
lea edx, [ebp - 0x20a]
mov ecx, 0x105
call fcn.00406c50
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40941e
lea eax, [ebp - 0x228]
mov edx, 5
call fcn.00406a60
ret

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