joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40632a
Capabilities:
Encode data using xor
Hash data using murmur2
Resolve function by parsing pe exports

Disassembly:
jmp 0x4131f0
sub esp, 0x30
mov eax, dword [0x4cd024]
xor eax, esp
mov dword [esp + 0x2c], eax
push ebx
mov ebx, dword [esp + 0x38]
push ebp
push esi
xor ebp, ebp
mov dword [esp + 0x10], ebx
mov eax, dword [ebx + 0x3c]
push edi
mov dword [esp + 0x18], 0
mov ecx, dword [eax + ebx + 0x78]
mov eax, dword [ecx + ebx + 0x20]
add ecx, ebx
mov dword [esp + 0x20], ecx
add eax, ebx
mov dword [esp + 0x10], eax
mov ecx, dword [ecx + 0x18]
mov dword [esp + 0x1c], ecx
test ecx, ecx
je 0x4133ca
nop word [eax + eax]
mov edx, dword [eax]
xorps xmm0, xmm0
add edx, ebx
mov dword [esp + 0x34], 0
mov eax, edx
mov dword [esp + 0x38], 0
movups xmmword [esp + 0x24], xmm0
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x413261
sub eax, esi
lea ecx, [esp + 0x24]
push eax
push edx
call fcn.00405286
mov edi, dword [esp + 0x34]
lea ebx, [esp + 0x24]
mov esi, edi
xor esi, 0x36c
cmp dword [esp + 0x38], 0x10
cmovae ebx, dword [esp + 0x24]
push ebx
shr edi, 2
push edi
push str._x_and__p
call fcn.004021cb
add esp, 0xc
xor edx, edx
test edi, edi
je 0x4132d1
nop word [eax + eax]
imul ecx, dword [ebx + edx*4], 0x5bd1e995
inc edx
imul esi, esi, 0x5bd1e995
mov eax, ecx
shr eax, 0x18
xor eax, ecx
imul ecx, eax, 0x5bd1e995
xor esi, ecx
cmp edx, edi
jl 0x4132b0
mov eax, dword [esp + 0x34]
xor ecx, ecx
and eax, 3
sub eax, 1
je 0x4132fb
sub eax, 1
je 0x4132f1
sub eax, 1
jne 0x413309
movsx ecx, byte [ebx + edi*4 + 2]
shl ecx, 0x10
movsx eax, byte [ebx + edi*4 + 1]
shl eax, 8
xor ecx, eax
movsx eax, byte [ebx + edi*4]
xor eax, ecx
imul eax, eax, 0x5bd1e995
xor esi, eax
mov eax, esi
shr eax, 0xd
xor eax, esi
imul ecx, eax, 0x5bd1e995
mov eax, ecx
shr eax, 0xf
xor eax, ecx
cmp eax, dword [esp + 0x48]
je 0x413379
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x38]
add eax, 4
mov dword [esp + 0x10], eax
cmp ecx, 0x10
jb 0x413368
mov edx, dword [esp + 0x24]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x41335a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4133e3
push ecx
push edx
call fcn.00401a05
mov eax, dword [esp + 0x18]
add esp, 8
mov ebx, dword [esp + 0x14]
inc ebp
cmp ebp, dword [esp + 0x1c]
jb 0x413240
jmp 0x4133ca
mov edx, dword [esp + 0x20]
mov ebx, dword [esp + 0x14]
mov eax, dword [edx + 0x24]
lea eax, [eax + ebp*2]
movzx ecx, word [eax + ebx]
mov eax, dword [edx + 0x1c]
lea eax, [eax + ecx*4]
mov ecx, dword [eax + ebx]
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x38]
cmp ecx, 0x10
jb 0x4133ca
mov edx, dword [esp + 0x24]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4133c0
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4133e3
push ecx
push edx
call fcn.00401a05
add esp, 8
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x3c]
add eax, ebx
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00402f8b
add esp, 0x30
ret
call fcn.00404601
int3
Function at 0x491352
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00401d70
mov eax, dword [0x4cd024]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.00405c1d
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x491394
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x4914f0
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00405d71
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x4d08e8]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.00403184
mov ecx, dword [esi*4 + 0x4d08e8]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x4914e9
cmp eax, dword [edi + ecx + 0x24]
jne 0x4914e9
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4914e9
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00403184
add esp, 0x14
test edx, edx
jl 0x4914e9
jg 0x49145f
test eax, eax
jb 0x4914e9
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x4914e9
jl 0x491479
cmp dword [ebp - 0x1008], eax
ja 0x4914e9
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x491497
test ebx, ebx
je 0x4914d0
cmp ecx, edi
jae 0x4914d0
mov al, byte [ecx]
cmp al, 0xd
jne 0x4914b1
lea eax, [edi - 1]
cmp ecx, eax
jae 0x4914bd
cmp byte [ecx + 1], 0xa
jne 0x4914bd
inc ecx
jmp 0x4914bd
movzx eax, al
movsx eax, byte [eax + 0x4cdb88]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x491497
cmp edx, ebx
jne 0x491497
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x4914ee
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00402f8b
leave
ret
Function at 0x497470
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x4cd024]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x4974bb
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.00497932
test al, al
jne 0x4974b5
sub edx, 2
cmp edx, edi
jne 0x49749b
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x4974dd
lea eax, [edi + 2]
cmp edx, eax
je 0x4974dd
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.00497069
add esp, 0x10
jmp 0x4975d7
push esi
lea ecx, [ebp - 0x255]
call fcn.00497932
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x497520
push dword [ebp - 0x25c]
jmp 0x4974cd
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x49755d
cmp word [ebp - 0x226], 0
je 0x49757e
cmp word [ebp - 0x226], ax
jne 0x49755d
cmp word [ebp - 0x224], 0
je 0x49757e
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.00497069
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x4975ca
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x497537
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x4975b2
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x4975d7
push 0x496a51
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.0040531c
add esp, 0x10
jmp 0x4975a7
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00402f8b
leave
ret
Function at 0x4a30b3
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x4d08e8]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4a30f3
cmp byte [ebx], 0xa
jne 0x4a30f3
or byte [eax + edi + 0x28], 4
jmp 0x4a30f8
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x4a31f6
mov al, byte [edx]
cmp al, 0x1a
je 0x4a31d8
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x4a3127
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x4a314c
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x4a3156
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x4a3109
jmp 0x4a31f6
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4a31d3
cmp dword [ebp - 0xc], 0
je 0x4a31d3
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x4d08e8]
test byte [eax + edi + 0x28], 0x48
je 0x4a31ad
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x4a3198
mov byte [esi], dl
jmp 0x4a31a9
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x4d08e8]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x4a31f6
cmp byte [ebp - 1], 0xa
jne 0x4a31bc
cmp esi, ebx
jne 0x4a31bc
mov byte [esi], 0xa
jmp 0x4a31f5
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00401915
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x4a31f6
mov byte [esi], 0xd
jmp 0x4a31f5
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x4d08e8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4a31f2
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4a31f6
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4a3252
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x4d08e8]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4a3295
cmp word [esi], dx
jne 0x4a3295
or byte [edi + eax + 0x28], 4
jmp 0x4a329a
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x4a33ed
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x4a33cd
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x4a32dc
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x4a3312
cmp eax, edx
jae 0x4a331e
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x4a32b4
jmp 0x4a33ed
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4a33c9
cmp dword [ebp - 0x14], 0
je 0x4a33c9
mov eax, dword [ebx*4 + 0x4d08e8]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x4a33a1
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x4a336a
mov word [esi], cx
jmp 0x4a339d
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x4d08e8]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x4d08e8]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x4d08e8]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x4a33ed
pop ebx
cmp word [ebp - 4], bx
jne 0x4a33b2
cmp esi, dword [ebp + 0xc]
jne 0x4a33b2
mov word [esi], bx
jmp 0x4a33ea
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00401915
add esp, 0x10
cmp word [ebp - 4], bx
je 0x4a33ed
push 0xd
jmp 0x4a33e6
mov ecx, dword [ebx*4 + 0x4d08e8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4a33e4
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4a33ed
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x431000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
nop
nop
push 4
nop
nop
pop edi
nop
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x431072
nop
mov ebx, 0x40915c
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x182446b
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
loop 0x431060
mov eax, section..data
nop
cmp eax, 0
nop
nop
nop
nop
je 0x4310d2
nop
nop
nop
mov ebx, 0x42f3f8
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
nop
div edi
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x7b7b168a
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x4310c0
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x401219
Function at 0x404678
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.004077d0
test esi, esi
jne 0x4046b0
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.0040790c
jmp 0x4046ce
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.0040455c
mov edi, eax
test esi, esi
je 0x4046ce
cmp dword [ebx], 0
je 0x4046ce
dec esi
jmp 0x4046b7
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x404e18
Capabilities:
Read file on windows

Disassembly:
push ebx
xor ecx, ecx
mov ebx, eax
mov cx, word [eax + 4]
sub ecx, 0xd7b1
je 0x404e2e
sub ecx, 2
jne 0x404e50
push 0
mov eax, esp
push 0
push eax
push dword [ebx + 8]
push edx
push dword [ebx]
call sub.kernel32.dll_ReadFile
pop edx
dec eax
jne 0x404e57
cmp edx, dword [ebx + 8]
je 0x404e61
mov eax, 0x64
jmp 0x404e5c
mov eax, 0x67
jmp 0x404e5c
call sub.kernel32.dll_GetLastError
call fcn.00404420
pop ebx
ret

Function at 0x4067b8
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x544054], 0
je 0x406819
cmp word [0x544330], 0xd7b2
jne 0x4067e1
cmp dword [0x544338], 0
jbe 0x4067e1
mov eax, 0x54432c
call dword [0x544348]
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 0x406844
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x53e030], 0
jne 0x406835
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x4069c4
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 [0x53e038], 0
je 0x4069ea
mov edx, esi
mov eax, ebx
call dword [0x53e038]
jmp 0x4069f9
mov eax, 8
call fcn.00404298
mov dword [eax], ebx
mov dword [eax + 4], esi
mov byte [0x544055], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x40698c
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 0x409888
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 0x4099ef
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
xor edx, edx
call fcn.004077d0
cmp si, word [0x53e800]
jb 0x409922
cmp si, word [0x53ea00]
ja 0x409922
mov edi, 0x40
xor eax, eax
mov dword [ebp - 0xc], eax
cmp edi, dword [ebp - 0xc]
jb 0x409922
mov ebx, dword [ebp - 0xc]
add ebx, edi
shr ebx, 1
cmp si, word [ebx*8 + 0x53e800]
jae 0x4098fc
mov edi, ebx
dec edi
jmp 0x40991d
cmp si, word [ebx*8 + 0x53e800]
jbe 0x40990c
inc ebx
mov dword [ebp - 0xc], ebx
jmp 0x40991d
mov edx, dword [ebp - 8]
mov eax, dword [ebx*8 + 0x53e804]
call fcn.00409798
jmp 0x409922
cmp edi, dword [ebp - 0xc]
jae 0x4098e6
mov eax, dword [ebp - 8]
cmp dword [eax], 0
jne 0x4099d1
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x4099d1
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.004079e0
push dword [ebp - 0x164]
push 0x409a0c
lea eax, [ebp - 0x168]
lea edx, [ebp - 0x160]
mov ecx, 0x55
call fcn.004079e0
push dword [ebp - 0x168]
push 0x409a1c
lea eax, [ebp - 0x16c]
lea edx, [ebp - 0xb6]
mov ecx, 0x55
call fcn.004079e0
push dword [ebp - 0x16c]
mov eax, dword [ebp - 8]
mov edx, 5
call fcn.00407d98
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4099f6
lea eax, [ebp - 0x16c]
mov edx, 3
call fcn.004077c8
ret
Function at 0x409ba8
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 0x409cad
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x546b5c
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x546b74]
jne 0x409bf4
mov eax, esi
mov edx, 0x546b78
mov ecx, 0x55
call fcn.004079e0
push 0x546b5c
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x409c97
push 0x546b5c
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
xor edx, edx
call fcn.004077d0
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x409c65
cmp byte [0x546b58], 0
je 0x409c2a
mov edx, esi
mov eax, ebx
call fcn.00409a88
jmp 0x409c65
mov edx, esi
mov eax, ebx
call fcn.00409888
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x409c65
cmp dword [esi], 0
je 0x409c4e
mov eax, esi
mov edx, 0x409cc8
call fcn.00407bf4
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.00409888
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.00407bf4
push 0x546b5c
call sub.kernel32.dll_EnterCriticalSection
mov word [0x546b74], bx
push 0xaa
mov eax, dword [esi]
call fcn.0040785c
push eax
push 0x546b78
call sub.kernel32.dll_lstrcpynW
push 0x546b5c
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409cb4
lea eax, [ebp - 4]
call fcn.004077c0
ret
Function at 0x409eec
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.004077b8
xor eax, eax
push ebp
push 0x40a0d1
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x409f2c
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x409f46
push 0x105
mov eax, dword [ebp - 4]
call fcn.0040785c
push eax
lea eax, [ebp - 0x21a]
push eax
call sub.kernel32.dll_lstrcpynW
cmp word [ebp - 0x21a], 0
je 0x40a0bb
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40a0e0
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409fd5
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40a0e0
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409fd5
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40a114
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409fd5
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40a148
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x40a0bb
xor eax, eax
push ebp
push 0x40a0b4
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.00409cf0
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 0x40a044
mov eax, dword [ebp - 0x10]
call fcn.00404298
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.0040798c
jmp 0x40a08f
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x40a188
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x40a08f
mov eax, dword [ebp - 0x10]
call fcn.00404298
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x40a188
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.0040798c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40a0bb
cmp dword [ebp - 8], 0
je 0x40a0aa
mov eax, dword [ebp - 8]
call fcn.004042b4
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 0x40a0d8
lea eax, [ebp - 4]
call fcn.004077c0
ret
Function at 0x40a39c
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.004077b8
mov eax, dword [ebp - 0x21c]
call fcn.004077b8
lea edi, [ebp - 0x210]
xor eax, eax
push ebp
push 0x40a53b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
xor edx, edx
call fcn.004077d0
xor ebx, ebx
push 0x105
mov eax, dword [ebp - 0x21c]
call fcn.0040785c
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 0x40a43c
sub dword [edi], 2
mov eax, dword [edi]
cmp word [eax], 0x2e
je 0x40a44e
lea eax, [ebp - 0x20a]
cmp eax, dword [edi]
jne 0x40a439
lea eax, [ebp - 0x20a]
cmp eax, dword [edi]
je 0x40a507
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 0x40a477
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.00409eec
cmp dword [ebp - 0x220], 0
je 0x40a4af
push ebp
mov eax, dword [ebp - 0x220]
call fcn.0040a290
pop ecx
mov ebx, eax
jmp 0x40a507
push ebp
call sub.kernel32.dll_GetUserDefaultUILanguage
lea edx, [ebp - 0x224]
call fcn.00409ba8
mov eax, dword [ebp - 0x224]
call fcn.0040a290
pop ecx
mov ebx, eax
test bl, bl
jne 0x40a4fa
cmp byte [0x546b58], 0
jne 0x40a4fa
push ebp
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 0x228]
call fcn.00409ba8
mov eax, dword [ebp - 0x228]
call fcn.0040a290
pop ecx
mov ebx, eax
test bl, bl
jne 0x40a507
push ebp
call fcn.0040a340
pop ecx
mov ebx, eax
test bl, bl
je 0x40a51d
mov eax, esi
lea edx, [ebp - 0x20a]
mov ecx, 0x105
call fcn.004079e0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40a542
lea eax, [ebp - 0x228]
mov edx, 5
call fcn.004077c8
ret

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