joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405697
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 0x10]
push eax
push 0x4251f0
xor eax, eax
push eax
push eax
push eax
push eax
push eax
push eax
push dword [ebp + 8]
mov dword [0x4251f0], 0x44
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x4056d2
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 4

Function at 0x405887
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4058a4
and eax, 0xfffffffe
push eax
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
ret 4

Function at 0x4058a7
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ecx, eax
inc ecx
push 0
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
push dword [esp + 0x14]
push 0
push 1
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
ret 0xc

Function at 0x4058d6
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, dword [ebp + 8]
push edi
push 0x64
pop edi
mov eax, dword [0x4089bc]
mov dword [ebp - 8], eax
mov eax, dword [0x4089c0]
dec edi
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x1a
pop ecx
xor edx, edx
div ecx
push esi
push 0
lea eax, [ebp - 8]
push eax
push dword [ebp + 0xc]
add word [ebp - 4], dx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x405926
test edi, edi
jne 0x4058e3
and word [esi], di
pop edi
pop esi
leave
ret 8
mov eax, esi
jmp 0x405920

Function at 0x40592a
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0x14]
push edi
lea eax, [ebp + 0x18]
push eax
mov eax, dword [ebp + 0x18]
xor edi, edi
neg eax
sbb eax, eax
and eax, 0x100
or eax, 0x20019
push eax
push edi
push dword [ebp + 0xc]
mov word [esi], di
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40599e
lea eax, [ebp + 0xc]
push eax
push esi
lea eax, [ebp + 0x14]
push eax
push edi
push dword [ebp + 0x10]
mov dword [ebp + 0xc], 0x800
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40598b
cmp dword [ebp + 0x14], 1
je 0x40598e
cmp dword [ebp + 0x14], 2
je 0x40598e
mov word [esi], di
push dword [ebp + 0x18]
mov word [esi + 0x7fe], di
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
ret 0x14
Function at 0x405fd5
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x425238
push esi
call fcn.00405a5d
push esi
call fcn.004057b0
mov edi, eax
test edi, edi
jne 0x405ff6
xor eax, eax
jmp 0x406054
push edi
call fcn.00405a8c
test byte [0x42a568], 0x80
je 0x406013
movzx eax, word [edi]
test ax, ax
je 0x405ff2
cmp ax, 0x5c
je 0x405ff2
sub edi, esi
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
sar edi, 1
jmp 0x406035
push esi
call fcn.00405b3b
test eax, eax
je 0x40602f
test byte [eax], 0x10
je 0x406059
push esi
call fcn.00405fa9
push esi
call ebx
cmp eax, edi
jg 0x406020
push esi
call fcn.00405f7a
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop ebx
pop edi
pop esi
ret 4
xor eax, eax
jmp 0x406053
Function at 0x4062eb
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
push 0x408aa4
mov ebx, 0x425a38
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov edi, dword [esp + 0x1c]
xor ebp, ebp
cmp edi, ebp
mov esi, 0x400
je 0x406339
push 1
push ebp
push edi
call fcn.004058a7
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
cmp eax, ebp
je 0x4064b0
cmp eax, esi
jg 0x4064b0
push esi
mov edi, 0x427888
push edi
push dword [esp + 0x20]
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
cmp eax, ebp
je 0x4064b0
cmp eax, esi
jg 0x4064b0
push ebp
push ebp
push esi
push 0x426238
push 0xffffffffffffffff
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push ebp
push ebp
call ebx
test eax, eax
je 0x4064b0
push ebp
push ebp
push esi
mov esi, 0x426888
push esi
push 0xffffffffffffffff
push edi
push ebp
push ebp
call ebx
test eax, eax
je 0x4064b0
push esi
push 0x426238
push str._s_s_r_n
push 0x426c88
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
mov ebx, eax
mov eax, dword [0x42a50c]
push dword [eax + 0x128]
push edi
call fcn.0040605d
push 4
push 0xc0000000
push edi
call fcn.004058a7
cmp eax, 0xffffffff
mov dword [esp + 0x1c], eax
je 0x4064b0
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
lea eax, [edi + ebx + 0xa]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
cmp esi, ebp
je 0x4064a6
push ebp
lea eax, [esp + 0x14]
push eax
push edi
push esi
push dword [esp + 0x2c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4064a6
cmp edi, dword [esp + 0x10]
jne 0x4064a6
push str._Rename__r_n
push esi
call fcn.0040580d
cmp eax, ebp
jne 0x40643d
push str._Rename__r_n
lea eax, [esi + edi]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
add edi, 0xa
jmp 0x40646e
push 0x408a98
add eax, 0xa
push eax
call fcn.0040580d
mov ebp, eax
test ebp, ebp
je 0x40646c
lea ecx, [esi + edi]
lea eax, [ecx + ebx]
jmp 0x40645f
mov dl, byte [ecx]
mov byte [eax], dl
dec eax
dec ecx
cmp ecx, ebp
ja 0x406459
sub ebp, esi
inc ebp
mov eax, ebp
xor ebp, ebp
jmp 0x406470
xor ebp, ebp
mov eax, edi
push ebx
push 0x426c88
add eax, esi
push eax
call fcn.00405863
push ebp
push ebp
push ebp
push dword [esp + 0x28]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebp
lea eax, [esp + 0x14]
push eax
add edi, ebx
push edi
push esi
push dword [esp + 0x2c]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x4064e9
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x25c
push ebx
mov ebx, dword [ebp + 8]
push ebx
call fcn.00405fd5
mov ecx, dword [ebp + 0xc]
test cl, 8
mov dword [ebp - 0xc], eax
je 0x40651e
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
neg eax
sbb eax, eax
inc eax
add dword [0x42a5c8], eax
jmp 0x4066b3
mov dword [ebp + 8], ecx
and dword [ebp + 8], 1
push esi
je 0x406539
test eax, eax
je 0x40665e
test cl, 2
je 0x40665e
push edi
push ebx
mov esi, 0x427088
push esi
call fcn.00405a5d
cmp dword [ebp + 8], 0
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatW]
je 0x40655c
push str..
push esi
call edi
jmp 0x406562
push ebx
call fcn.00405fa9
push 0x4082c8
push ebx
call edi
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [ebx + eax*2]
mov dword [ebp - 4], eax
lea eax, [ebp - 0x25c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
mov dword [ebp - 8], eax
je 0x40664e
lea esi, [ebp - 0x230]
push 0x3f
mov eax, esi
push eax
call fcn.0040575c
xor edi, edi
cmp word [eax], di
je 0x4065b1
cmp word [ebp - 0x28], di
je 0x4065b1
lea esi, [ebp - 0x28]
cmp word [esi], 0x2e
jne 0x4065cc
movzx eax, word [esi + 2]
cmp ax, di
je 0x40662b
cmp ax, 0x2e
jne 0x4065cc
cmp word [esi + 4], di
je 0x40662b
push esi
push dword [ebp - 4]
call fcn.00405a5d
test byte [ebp - 0x25c], 0x10
je 0x4065f3
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x40662b
push dword [ebp + 0xc]
push ebx
call fcn.004064e9
jmp 0x40662b
push ebx
call fcn.00405887
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x406623
test byte [ebp + 0xc], 4
je 0x40661b
push ebx
push 0xfffffffffffffff1
call fcn.00404a3e
push edi
push ebx
call fcn.004064b6
jmp 0x40662b
inc dword [0x42a5c8]
jmp 0x40662b
push ebx
push 0xfffffffffffffff2
call fcn.00404a3e
lea eax, [ebp - 0x25c]
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x406591
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x406650
xor edi, edi
cmp dword [ebp + 8], edi
pop edi
je 0x40665e
mov eax, dword [ebp - 4]
and word [eax - 2], 0
xor esi, esi
cmp dword [ebp + 8], esi
je 0x4066b2
cmp dword [ebp - 0xc], esi
je 0x4066a2
push ebx
call fcn.00405b3b
test eax, eax
je 0x4066b2
push ebx
call fcn.00405f7a
push ebx
call fcn.00405887
push ebx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x4066aa
test byte [ebp + 0xc], 4
je 0x4066a2
push ebx
push 0xfffffffffffffff1
call fcn.00404a3e
push esi
push ebx
call fcn.004064b6
jmp 0x4066b2
inc dword [0x42a5c8]
jmp 0x4066b2
push ebx
push 0xffffffffffffffe5
call fcn.00404a3e
pop esi
pop ebx
leave
ret 8
Function at 0x4066b8
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x42808c], 0
jne 0x4066f3
xor ecx, ecx
push esi
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x4066cc
mov dword [ecx*4 + 0x428088], eax
inc ecx
cmp ecx, 0x100
jl 0x4066c7
pop esi
cmp dword [ebp + 0x10], 0
mov eax, dword [ebp + 8]
not eax
jbe 0x406720
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
dec dword [ebp + 0x10]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x428088]
inc ecx
cmp dword [ebp + 0x10], 0
ja 0x406701
not eax
pop ebp
ret 0xc
Function at 0x65c9e2
Capabilities:
Execute anti-debugging instructions

Disassembly:
xchg dh, bl
lea edx, [ecx + 0xca]
push eax
xchg bx, dx
rdtsc
bswap eax
jmp 0x65ca4a
lea edx, [edi - 0xfb]
pushal
mov dword [esp + 2], ebx
mov dx, 0x5c3d
xchg bx, dx
jmp 0x65c9c7
mov dh, byte [esp]
mov edx, 0xc4f1b1c2
mov dx, bp
mov dl, byte [esp]
lea edx, [eax - 0x6a47]
mov edx, eax
jmp 0x65ca72
mov dx, si
lea edx, [eax - 0x94]
mov dx, 0xa099
mov bh, 0x67
mov ebx, dword [esp + 0x26]
bswap edx
jmp 0x65c9f6
mov bl, 0x1f
lea eax, [eax + ebp]
rdtsc
pushal
mov dx, 0xcce3
mov eax, dword [esp + 0x20]
jmp 0x65ca1e
mov edx, dword [esp + 0x48]
lea esp, [esp + 0x4c]
push 0
pushfd
pushal
jmp 0x65cab7
setbe ah
xchg ah, bl
popal
call fcn.0065ca83
Function at 0x2111058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.021111a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x211107e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x211106a
add dl, dl
jne 0x2111089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x21110dc
xor eax, eax
add dl, dl
jne 0x2111096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x211117d
add dl, dl
jne 0x21110a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x21110b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x21110bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x21110c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x21110d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x2111075
mov eax, 1
add dl, dl
jne 0x21110ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x21110f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x21110e1
sub eax, ebx
mov ebx, 1
jne 0x2111128
mov ecx, 1
add dl, dl
jne 0x211110e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x2111119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x2111105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x2111075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x211113f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x211114a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x2111136
cmp eax, 0x7d00
jae 0x211116d
cmp eax, 0x500
jb 0x2111168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x2111075
cmp eax, 0x7f
ja 0x2111170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x2111075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x211119e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x2111075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
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.00406918
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.00406a54
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 + 0x4eb008], 0x8088405
inc edx
mov dword [ebx + 0x4eb008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x405de4
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4ef050], 0
je 0x405e45
cmp word [0x4ef32c], 0xd7b2
jne 0x405e0d
cmp dword [0x4ef334], 0
jbe 0x405e0d
mov eax, 0x4ef328
call dword [0x4ef344]
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 0x405e70
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4eb030], 0
jne 0x405e61
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x405ff0
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 [0x4eb034], 0
je 0x406016
mov edx, esi
mov eax, ebx
call dword [0x4eb034]
jmp 0x406025
mov eax, 8
call fcn.004041d4
mov dword [eax], ebx
mov dword [eax + 4], esi
mov byte [0x4ef051], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x405fb8
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 0x408800
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 0x408967
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
xor edx, edx
call fcn.00406918
cmp si, word [0x4eb7dc]
jb 0x40889a
cmp si, word [0x4eb9dc]
ja 0x40889a
mov edi, 0x40
xor eax, eax
mov dword [ebp - 0xc], eax
cmp edi, dword [ebp - 0xc]
jb 0x40889a
mov ebx, dword [ebp - 0xc]
add ebx, edi
shr ebx, 1
cmp si, word [ebx*8 + 0x4eb7dc]
jae 0x408874
mov edi, ebx
dec edi
jmp 0x408895
cmp si, word [ebx*8 + 0x4eb7dc]
jbe 0x408884
inc ebx
mov dword [ebp - 0xc], ebx
jmp 0x408895
mov edx, dword [ebp - 8]
mov eax, dword [ebx*8 + 0x4eb7e0]
call fcn.00408710
jmp 0x40889a
cmp edi, dword [ebp - 0xc]
jae 0x40885e
mov eax, dword [ebp - 8]
cmp dword [eax], 0
jne 0x408949
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x408949
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.00406b00
push dword [ebp - 0x164]
push 0x408984
lea eax, [ebp - 0x168]
lea edx, [ebp - 0x160]
mov ecx, 0x55
call fcn.00406b00
push dword [ebp - 0x168]
push 0x408994
lea eax, [ebp - 0x16c]
lea edx, [ebp - 0xb6]
mov ecx, 0x55
call fcn.00406b00
push dword [ebp - 0x16c]
mov eax, dword [ebp - 8]
mov edx, 5
call fcn.00406eb8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40896e
lea eax, [ebp - 0x16c]
mov edx, 3
call fcn.00406910
ret
Function at 0x408b20
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 0x408c25
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x4f1b58
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x4f1b70]
jne 0x408b6c
mov eax, esi
mov edx, 0x4f1b74
mov ecx, 0x55
call fcn.00406b00
push 0x4f1b58
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x408c0f
push 0x4f1b58
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
xor edx, edx
call fcn.00406918
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x408bdd
cmp byte [0x4f1b54], 0
je 0x408ba2
mov edx, esi
mov eax, ebx
call fcn.00408a00
jmp 0x408bdd
mov edx, esi
mov eax, ebx
call fcn.00408800
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x408bdd
cmp dword [esi], 0
je 0x408bc6
mov eax, esi
mov edx, 0x408c40
call fcn.00406d14
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.00408800
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.00406d14
push 0x4f1b58
call sub.kernel32.dll_EnterCriticalSection
mov word [0x4f1b70], bx
push 0xaa
mov eax, dword [esi]
call fcn.004069a4
push eax
push 0x4f1b74
call sub.kernel32.dll_lstrcpynW
push 0x4f1b58
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408c2c
lea eax, [ebp - 4]
call fcn.00406908
ret
Function at 0x408e64
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.00406900
xor eax, eax
push ebp
push 0x409049
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x408ea4
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x408ebe
push 0x105
mov eax, dword [ebp - 4]
call fcn.004069a4
push eax
lea eax, [ebp - 0x21a]
push eax
call sub.kernel32.dll_lstrcpynW
cmp word [ebp - 0x21a], 0
je 0x409033
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409058
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x408f4d
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409058
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x408f4d
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40908c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x408f4d
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x4090c0
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x409033
xor eax, eax
push ebp
push 0x40902c
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.00408c68
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 0x408fbc
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.00406ac4
jmp 0x409007
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x409100
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x409007
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 0x409100
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.00406ac4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409033
cmp dword [ebp - 8], 0
je 0x409022
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 0x409050
lea eax, [ebp - 4]
call fcn.00406908
ret
Function at 0x409314
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.00406900
mov eax, dword [ebp - 0x21c]
call fcn.00406900
lea edi, [ebp - 0x210]
xor eax, eax
push ebp
push 0x4094b3
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
xor edx, edx
call fcn.00406918
xor ebx, ebx
push 0x105
mov eax, dword [ebp - 0x21c]
call fcn.004069a4
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 0x4093b4
sub dword [edi], 2
mov eax, dword [edi]
cmp word [eax], 0x2e
je 0x4093c6
lea eax, [ebp - 0x20a]
cmp eax, dword [edi]
jne 0x4093b1
lea eax, [ebp - 0x20a]
cmp eax, dword [edi]
je 0x40947f
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 0x4093ef
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.00408e64
cmp dword [ebp - 0x220], 0
je 0x409427
push ebp
mov eax, dword [ebp - 0x220]
call fcn.00409208
pop ecx
mov ebx, eax
jmp 0x40947f
push ebp
call sub.kernel32.dll_GetUserDefaultUILanguage
lea edx, [ebp - 0x224]
call fcn.00408b20
mov eax, dword [ebp - 0x224]
call fcn.00409208
pop ecx
mov ebx, eax
test bl, bl
jne 0x409472
cmp byte [0x4f1b54], 0
jne 0x409472
push ebp
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 0x228]
call fcn.00408b20
mov eax, dword [ebp - 0x228]
call fcn.00409208
pop ecx
mov ebx, eax
test bl, bl
jne 0x40947f
push ebp
call fcn.004092b8
pop ecx
mov ebx, eax
test bl, bl
je 0x409495
mov eax, esi
lea edx, [ebp - 0x20a]
mov ecx, 0x105
call fcn.00406b00
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4094ba
lea eax, [ebp - 0x228]
mov edx, 5
call fcn.00406910
ret

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