joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43f0f0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x492563
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.00485e34
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], method.CBrush.virtual_0
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], method.CEdit.virtual_0
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
mov ecx, edi
call fcn.0048b4cc
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.0048c9e8
test eax, eax
je 0x43f20c
mov ecx, dword [esp + 0x3c]
call fcn.0048b4f9
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x43f1d0
push edi
mov ecx, esi
call fcn.00488b61
mov ecx, esi
call fcn.0043f3b0
cmp dword [esp + 0x38], 1
jne 0x43f205
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call fcn.00488c9c
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28
Function at 0x441400
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x441433
push esi
call fcn.0044f7e0
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x44142c
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x4414b9
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x4414a2
mov eax, dword [esi + 8]
test eax, eax
je 0x441457
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x44149e
cmp eax, 2
je 0x4414a2
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x44144a
cmp eax, 3
je 0x44147d
cmp eax, 1
jne 0x44144a
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x44144a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x44144a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.004414e0
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x4414c8
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.004414e0
add esp, 4
pop esi
ret

Function at 0x441d60
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
je 0x441d81
mov ecx, dword [eax + 0x40]
test ecx, ecx
je 0x441d81
mov eax, dword [eax + 0x44]
test eax, eax
je 0x441d81
mov edx, dword [esp + 8]
push edx
push eax
call ecx
add esp, 8
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x45f060
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x1ce4d78]
xor edx, edx
cmp eax, edx
jne 0x45f086
xor eax, eax
mov byte [eax + 0x1ce4c78], al
inc eax
cmp eax, 0x100
jl 0x45f06e
mov dword [0x1ce4d78], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x1ce4c78
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x45f117
xor esi, esi
push ebp
mov byte [esp + 0x20], dl
xor ecx, ecx
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
mov al, byte [esi + ebx]
and edi, 0xff
xor edx, edx
mov dl, byte [edi + ebp]
mov ebp, eax
and ebp, 0xff
add ecx, edx
add ecx, ebp
and ecx, 0x800000ff
jns 0x45f0ea
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [esp + 0x10], cl
mov ecx, dword [esp + 0x10]
and ecx, 0xff
mov dl, byte [ecx + ebx]
mov byte [esi + ebx], dl
mov byte [ecx + ebx], al
lea eax, [edi + 1]
cdq
idiv dword [esp + 0x1c]
inc esi
cmp esi, 0x100
mov byte [esp + 0x20], dl
jl 0x45f0b8
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x45f190
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
mov dword [ebp - 8], eax
mov byte [ebp - 1], cl
mov byte [ebp - 2], dl
xor ebx, ebx
mov bl, byte [ebp - 1]
xor edx, edx
mov dl, byte [ebp - 2]
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
xor eax, eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x45f1e3
inc bl
mov al, byte [esi + ebx]
add dl, al
xchg byte [esi + edx], al
mov byte [esi + ebx], al
add al, byte [esi + edx]
mov al, byte [esi + eax]
xor byte [edi], al
inc edi
dec ecx
jne 0x45f1ca
mov byte [ebp - 1], bl
mov byte [ebp - 2], dl
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 1]
mov dl, byte [ebp - 2]
pop edi
pop esi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x465b60
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x492a4e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x18]
push esi
push edi
mov edi, ecx
mov ecx, dword [esp + 0x1c]
push eax
push ecx
mov ecx, edi
mov dword [esp + 0x10], edi
call fcn.00466480
push 0x10
mov dword [esp + 0x18], 0
mov dword [edi], 0x1cb45ec
call fcn.004845c6
mov esi, eax
add esp, 4
mov dword [esp + 0x20], esi
mov al, 1
test esi, esi
mov byte [esp + 0x14], al
je 0x465bf3
push 4
mov byte [esi + 8], al
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.004845c6
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov byte [esp + 0x14], 2
je 0x465bec
push 0
mov ecx, eax
call fcn.0045cc90
mov dword [esi + 0xc], eax
jmp 0x465bf5
xor eax, eax
mov dword [esi + 0xc], eax
jmp 0x465bf5
xor esi, esi
mov ecx, dword [esp + 0xc]
mov dword [edi + 0x30], esi
mov dword [edi + 0x34], 0
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 8

Function at 0x486c29
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x486c61
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.00484ce0
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00484cb8
jmp 0x486c6d
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x48831e
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x488360
call fcn.0048ddd8
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x488360
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x488357
xor eax, eax
jmp 0x488368
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0048836e
pop edi
pop esi
pop ebx
ret 4
Function at 0x48e308
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 0x48e336
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x48e354
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0048e26e
jmp 0x48e354
mov eax, dword [esi + 0x14]
test eax, eax
je 0x48e354
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0048e26e
test edi, edi
mov eax, edi
jne 0x48e33e
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x463d04
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x14], 0xca
jne 0x463d32
mov eax, ebx
call fcn.004647b8
cmp dword [ebx + 0x40], 0
je 0x463d2b
mov dword [ebx + 0x14], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x14], 0xcb
cmp dword [ebx + 0x14], 0xcb
jne 0x463da3
mov edx, dword [ebx + 0x1b4]
cmp dword [edx + 0x10], 0
je 0x463d95
cmp dword [ebx + 8], 0
je 0x463d54
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1b4]
call dword [edx]
test eax, eax
jne 0x463d66
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x463d95
cmp dword [ebx + 8], 0
je 0x463d47
cmp eax, 3
je 0x463d79
dec eax
jne 0x463d47
mov edx, dword [ebx + 8]
inc dword [edx + 4]
mov ecx, dword [edx + 4]
mov eax, dword [ebx + 8]
cmp ecx, dword [eax + 8]
jl 0x463d47
mov edx, dword [ebx + 0x140]
add dword [eax + 8], edx
jmp 0x463d47
mov ecx, dword [ebx + 0x90]
mov dword [ebx + 0x98], ecx
jmp 0x463dc1
cmp dword [ebx + 0x14], 0xcc
je 0x463dc1
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x14
mov edx, dword [ebx + 0x14]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.00463dcc
pop ebx
ret

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 0x438c89
Capabilities:
Encode data using xor

Disassembly:
mov edi, 0x438a14
add ebx, ebx
call fcn.00438cba
mov edx, edx
push 0xb743f7a2
pop edx
sub ebx, 0x27aba7b1
xor dword [esi], edi
sub ebx, 0x66e7fe12
inc esi
mov edx, 0xda2e64d
cmp esi, eax
jne fcn.00438c89
and edx, ebx
ret
Function at 0x3063700
Capabilities:
Decompress data using aplib

Disassembly:
pushal
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x28]
cld
mov dl, 0x80
xor ebx, ebx
movsb byte es:[edi], byte [esi]
mov bl, 2
call fcn.0306378f
jae 0x306370e
xor ecx, ecx
call fcn.0306378f
jae 0x306373d
xor eax, eax
call fcn.0306378f
jae 0x306374d
mov bl, 2
inc ecx
mov al, 0x10
call fcn.0306378f
adc al, al
jae 0x306372f
jne 0x3063779
stosb byte es:[edi], al
jmp 0x3063711
call fcn.0306379b
sub ecx, ebx
jne 0x3063756
call fcn.03063799
jmp 0x3063775
lodsb al, byte [esi]
shr eax, 1
je 0x3063783
adc ecx, ecx
jmp 0x3063772
xchg ecx, eax
dec eax
shl eax, 8
lodsb al, byte [esi]
call fcn.03063799
cmp eax, 0x7d00
jae 0x3063772
cmp ah, 5
jae 0x3063773
cmp eax, 0x7f
ja 0x3063774
inc ecx
inc ecx
xchg ebp, eax
mov eax, ebp
mov bl, 1
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x3063711
sub edi, dword [esp + 0x28]
mov dword [esp + 0x1c], edi
popal
ret 8

Function at 0x3083700
Capabilities:
Decompress data using aplib

Disassembly:
pushal
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x28]
cld
mov dl, 0x80
xor ebx, ebx
movsb byte es:[edi], byte [esi]
mov bl, 2
call fcn.0308378f
jae 0x308370e
xor ecx, ecx
call fcn.0308378f
jae 0x308373d
xor eax, eax
call fcn.0308378f
jae 0x308374d
mov bl, 2
inc ecx
mov al, 0x10
call fcn.0308378f
adc al, al
jae 0x308372f
jne 0x3083779
stosb byte es:[edi], al
jmp 0x3083711
call fcn.0308379b
sub ecx, ebx
jne 0x3083756
call fcn.03083799
jmp 0x3083775
lodsb al, byte [esi]
shr eax, 1
je 0x3083783
adc ecx, ecx
jmp 0x3083772
xchg ecx, eax
dec eax
shl eax, 8
lodsb al, byte [esi]
call fcn.03083799
cmp eax, 0x7d00
jae 0x3083772
cmp ah, 5
jae 0x3083773
cmp eax, 0x7f
ja 0x3083774
inc ecx
inc ecx
xchg ebp, eax
mov eax, ebp
mov bl, 1
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x3083711
sub edi, dword [esp + 0x28]
mov dword [esp + 0x1c], edi
popal
ret 8

Function at 0x4011f0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
mov dword [0x40414d], eax
push 0
mov ecx, dword [ebp + 8]
push ecx
push 0
push 0
push 0
push 0x80000000
push 0
push 0x80000000
push 0xcf0000
push str.trast
push str.bask
push 0
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x401238
xor eax, eax
jmp 0x401253
push 0
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.USER32.dll_UpdateWindow]
mov eax, 1
mov esp, ebp
pop ebp
ret

Function at 0x4025a0
Capabilities:
Terminate process

Disassembly:
mov ecx, 0x404240
push ecx
jmp fcn.004025ab
Function at 0x404654
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.00406a0c
test esi, esi
jne 0x40468c
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.00406b48
jmp 0x4046aa
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00404538
mov edi, eax
test esi, esi
je 0x4046aa
cmp dword [ebx], 0
je 0x4046aa
dec esi
jmp 0x404693
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x405f18
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x556054], 0
je 0x405f79
cmp word [0x556330], 0xd7b2
jne 0x405f41
cmp dword [0x556338], 0
jbe 0x405f41
mov eax, 0x55632c
call dword [0x556348]
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 0x405fa4
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x54d030], 0
jne 0x405f95
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x406124
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 [0x54d034], 0
je 0x40614a
mov edx, esi
mov eax, ebx
call dword [0x54d034]
jmp 0x406159
mov eax, 8
call fcn.00404280
mov dword [eax], ebx
mov dword [eax + 4], esi
mov byte [0x556055], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x4060ec
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 0x408ae4
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 0x408c4b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
xor edx, edx
call fcn.00406a0c
cmp si, word [0x54d7dc]
jb 0x408b7e
cmp si, word [0x54d9dc]
ja 0x408b7e
mov edi, 0x40
xor eax, eax
mov dword [ebp - 0xc], eax
cmp edi, dword [ebp - 0xc]
jb 0x408b7e
mov ebx, dword [ebp - 0xc]
add ebx, edi
shr ebx, 1
cmp si, word [ebx*8 + 0x54d7dc]
jae 0x408b58
mov edi, ebx
dec edi
jmp 0x408b79
cmp si, word [ebx*8 + 0x54d7dc]
jbe 0x408b68
inc ebx
mov dword [ebp - 0xc], ebx
jmp 0x408b79
mov edx, dword [ebp - 8]
mov eax, dword [ebx*8 + 0x54d7e0]
call fcn.004089f4
jmp 0x408b7e
cmp edi, dword [ebp - 0xc]
jae 0x408b42
mov eax, dword [ebp - 8]
cmp dword [eax], 0
jne 0x408c2d
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x408c2d
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.00406c0c
push dword [ebp - 0x164]
push 0x408c68
lea eax, [ebp - 0x168]
lea edx, [ebp - 0x160]
mov ecx, 0x55
call fcn.00406c0c
push dword [ebp - 0x168]
push 0x408c78
lea eax, [ebp - 0x16c]
lea edx, [ebp - 0xb6]
mov ecx, 0x55
call fcn.00406c0c
push dword [ebp - 0x16c]
mov eax, dword [ebp - 8]
mov edx, 5
call fcn.00406fc4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408c52
lea eax, [ebp - 0x16c]
mov edx, 3
call fcn.00406a04
ret
Function at 0x408e04
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 0x408f09
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x558b5c
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x558b74]
jne 0x408e50
mov eax, esi
mov edx, 0x558b78
mov ecx, 0x55
call fcn.00406c0c
push 0x558b5c
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x408ef3
push 0x558b5c
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
xor edx, edx
call fcn.00406a0c
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x408ec1
cmp byte [0x558b58], 0
je 0x408e86
mov edx, esi
mov eax, ebx
call fcn.00408ce4
jmp 0x408ec1
mov edx, esi
mov eax, ebx
call fcn.00408ae4
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x408ec1
cmp dword [esi], 0
je 0x408eaa
mov eax, esi
mov edx, 0x408f24
call fcn.00406e20
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.00408ae4
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.00406e20
push 0x558b5c
call sub.kernel32.dll_EnterCriticalSection
mov word [0x558b74], bx
push 0xaa
mov eax, dword [esi]
call fcn.00406a98
push eax
push 0x558b78
call sub.kernel32.dll_lstrcpynW
push 0x558b5c
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408f10
lea eax, [ebp - 4]
call fcn.004069fc
ret
Function at 0x409148
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.004069f4
xor eax, eax
push ebp
push 0x40932d
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x409188
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x4091a2
push 0x105
mov eax, dword [ebp - 4]
call fcn.00406a98
push eax
lea eax, [ebp - 0x21a]
push eax
call sub.kernel32.dll_lstrcpynW
cmp word [ebp - 0x21a], 0
je 0x409317
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40933c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409231
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40933c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409231
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409370
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409231
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x4093a4
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x409317
xor eax, eax
push ebp
push 0x409310
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.00408f4c
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 0x4092a0
mov eax, dword [ebp - 0x10]
call fcn.00404280
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.00406bb8
jmp 0x4092eb
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x4093e4
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x4092eb
mov eax, dword [ebp - 0x10]
call fcn.00404280
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x4093e4
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.00406bb8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409317
cmp dword [ebp - 8], 0
je 0x409306
mov eax, dword [ebp - 8]
call fcn.0040429c
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 0x409334
lea eax, [ebp - 4]
call fcn.004069fc
ret
Function at 0x4095f8
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.004069f4
mov eax, dword [ebp - 0x21c]
call fcn.004069f4
lea edi, [ebp - 0x210]
xor eax, eax
push ebp
push 0x409797
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
xor edx, edx
call fcn.00406a0c
xor ebx, ebx
push 0x105
mov eax, dword [ebp - 0x21c]
call fcn.00406a98
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 0x409698
sub dword [edi], 2
mov eax, dword [edi]
cmp word [eax], 0x2e
je 0x4096aa
lea eax, [ebp - 0x20a]
cmp eax, dword [edi]
jne 0x409695
lea eax, [ebp - 0x20a]
cmp eax, dword [edi]
je 0x409763
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 0x4096d3
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.00409148
cmp dword [ebp - 0x220], 0
je 0x40970b
push ebp
mov eax, dword [ebp - 0x220]
call fcn.004094ec
pop ecx
mov ebx, eax
jmp 0x409763
push ebp
call sub.kernel32.dll_GetUserDefaultUILanguage
lea edx, [ebp - 0x224]
call fcn.00408e04
mov eax, dword [ebp - 0x224]
call fcn.004094ec
pop ecx
mov ebx, eax
test bl, bl
jne 0x409756
cmp byte [0x558b58], 0
jne 0x409756
push ebp
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 0x228]
call fcn.00408e04
mov eax, dword [ebp - 0x228]
call fcn.004094ec
pop ecx
mov ebx, eax
test bl, bl
jne 0x409763
push ebp
call fcn.0040959c
pop ecx
mov ebx, eax
test bl, bl
je 0x409779
mov eax, esi
lea edx, [ebp - 0x20a]
mov ecx, 0x105
call fcn.00406c0c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40979e
lea eax, [ebp - 0x228]
mov edx, 5
call fcn.00406a04
ret

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