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

Disassembly:
mov eax, 0xa8
call fcn.00573a90
mov eax, dword [0x63506c]
xor eax, esp
mov dword [esp + 0xa4], eax
mov eax, dword [esp + 0xac]
push ebx
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0xb4]
push ebp
push esi
mov esi, dword [esp + 0xc4]
xor ebp, ebp
mov eax, dword [eax + 4]
push edi
mov edi, dword [esp + 0xc4]
mov dword [esp + 0x14], eax
sub eax, edi
mov dword [esp + 0x10], eax
cmp esi, edi
jae 0x55b216
push str.orig_len___md_size
push 0xf8
push str.._ssl_s3_cbc.c
call fcn.004dcf00
add esp, 0xc
cmp edi, 0x40
jbe 0x55b232
push str.md_size___EVP_MAX_MD_SIZE
push 0xf9
push str.._ssl_s3_cbc.c
call fcn.004dcf00
add esp, 0xc
lea eax, [esp + 0x34]
neg eax
lea ebx, [esp + 0x34]
and eax, 0x3f
add ebx, eax
lea eax, [edi + 0x100]
mov dword [esp + 0x20], ebx
cmp esi, eax
jbe 0x55b259
mov ebp, esi
sub ebp, edi
sub ebp, 0x100
mov eax, edi
xor edx, edx
and eax, 0xfffffffe
shl eax, 0x17
sub eax, ebp
add eax, dword [esp + 0x10]
div edi
push edi
mov esi, edx
push 0
push ebx
mov dword [esp + 0x38], esi
call fcn.0058b9c0
add esp, 0xc
mov dword [esp + 0x18], 0
cmp ebp, dword [esp + 0xc8]
jae 0x55b351
mov ecx, dword [esp + 0x10]
mov edx, ecx
mov ebx, dword [esp + 0x14]
mov esi, ebx
mov eax, dword [esp + 0xc0]
sub esi, ecx
shr edx, 0x1f
mov dword [esp + 0x1c], edx
mov edx, ebx
shr edx, 0x1f
mov eax, dword [eax + 0xc]
mov dword [esp + 0x14], edx
mov edx, ebp
sub edx, ebx
mov dword [esp + 0x24], esi
mov esi, dword [esp + 0x20]
add eax, ebx
mov dword [esp + 0x10], edx
mov dword [esp + 0x28], eax
mov ebx, dword [esp + 0x24]
mov ecx, ebp
shr ecx, 0x1f
inc ebp
mov al, cl
xor al, byte [esp + 0x1c]
lea ebx, [ebx + edx]
shr edx, 0x1f
xor dl, byte [esp + 0x14]
shr ebx, 0x1f
xor bl, byte [esp + 0x1c]
or bl, al
mov al, cl
xor al, byte [esp + 0x14]
xor bl, cl
or dl, al
dec bl
mov eax, dword [esp + 0x10]
xor dl, cl
mov ecx, dword [esp + 0x28]
dec dl
not dl
mov al, byte [ecx + eax]
mov ecx, dword [esp + 0x18]
and dl, al
and dl, bl
or byte [ecx + esi], dl
mov edx, ecx
inc edx
mov ecx, edx
mov eax, edx
sub ecx, edi
xor eax, edi
xor ecx, edi
or ecx, eax
xor ecx, edx
shr ecx, 0x1f
neg ecx
and edx, ecx
mov dword [esp + 0x18], edx
mov edx, dword [esp + 0x10]
inc edx
mov dword [esp + 0x10], edx
cmp ebp, dword [esp + 0xc8]
jb 0x55b2d0
mov esi, dword [esp + 0x2c]
mov ebx, dword [esp + 0x20]
xor edx, edx
test edi, edi
je 0x55b38a
mov ebp, dword [esp + 0x30]
nop dword [eax + eax]
mov eax, esi
xor eax, 0x20
mov al, byte [eax + ebx]
movzx eax, byte [esi + ebx]
inc esi
mov byte [edx + ebp], al
mov ecx, esi
sub ecx, edi
mov eax, esi
xor ecx, edi
xor eax, edi
or ecx, eax
inc edx
xor ecx, esi
shr ecx, 0x1f
neg ecx
and esi, ecx
cmp edx, edi
jb 0x55b360
mov ecx, dword [esp + 0xb4]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00572b23
add esp, 0xa8
ret
Function at 0x55bdc0
Capabilities:
Encode data using xor

Disassembly:
mov eax, 4
call fcn.00573a90
push ebp
mov ebp, dword [esp + 0x18]
push esi
mov esi, dword [esp + 0x14]
inc ebp
push edi
mov edi, dword [esp + 0x14]
mov eax, dword [edi + 8]
mov eax, dword [eax + 0x64]
test byte [eax + 0x38], 1
je 0x55be08
mov ecx, dword [esp + 0x1c]
mov edx, dword [esi + 4]
lea eax, [ecx + ebp]
cmp eax, edx
jbe 0x55bdfb
pop edi
pop esi
xor eax, eax
pop ebp
pop ecx
ret
add dword [esi + 0xc], ecx
add dword [esi + 0x10], ecx
sub edx, ecx
mov dword [esi + 4], edx
jmp 0x55be0d
cmp ebp, dword [esi + 4]
ja 0x55bdf4
test dword [edi + 0x100], 0x200
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 4]
push ebx
movzx ebx, byte [ecx + eax - 1]
je 0x55be60
cmp dword [edi + 0x88], 0
jne 0x55be60
mov eax, dword [edi + 0x58]
push 8
add eax, 8
push 0x60470c
push eax
call fcn.004dcaf0
add esp, 0xc
test eax, eax
jne 0x55be53
test bl, 1
jne 0x55be53
mov eax, dword [edi + 0x58]
or dword [eax], 8
mov eax, dword [edi + 0x58]
test byte [eax], 8
je 0x55be60
test ebx, ebx
je 0x55be60
dec ebx
mov eax, dword [edi + 0x80]
push dword [eax]
call fcn.004fbb00
add esp, 4
test eax, 0x200000
je 0x55be8a
or eax, 0xffffffff
sub eax, ebx
add dword [esi + 4], eax
mov eax, 1
pop ebx
pop edi
pop esi
pop ebp
pop ecx
ret
mov edi, dword [esi + 4]
lea ecx, [ebx + ebp]
mov edx, edi
mov dword [esp + 0x10], edi
sub edx, ecx
mov eax, edi
xor edx, ecx
xor eax, ecx
or edx, eax
mov ebp, 0xff
xor edx, edi
lea eax, [edi - 1]
shr edx, 0x1f
dec edx
cmp eax, ebp
mov dword [esp + 0x24], edx
cmovb ebp, eax
xor edx, edx
test ebp, ebp
je 0x55bf0f
mov ecx, ebx
dec edi
shr ecx, 0x1f
add edi, dword [esi + 0xc]
mov dword [esp + 0x18], ecx
nop word [eax + eax]
mov ecx, ebx
lea edi, [edi - 1]
sub ecx, edx
mov eax, edx
shr ecx, 0x1f
inc edx
shr eax, 0x1f
xor cl, al
xor al, byte [esp + 0x18]
or cl, al
movzx eax, byte [edi + 1]
xor cl, byte [esp + 0x18]
xor eax, ebx
dec cl
movzx ecx, cl
and ecx, eax
mov eax, dword [esp + 0x24]
not ecx
and eax, ecx
mov dword [esp + 0x24], eax
cmp edx, ebp
jb 0x55bed0
mov edi, dword [esp + 0x10]
jmp 0x55bf13
mov eax, dword [esp + 0x24]
not eax
movzx eax, al
lea ecx, [eax - 1]
not eax
shr eax, 0x1f
shr ecx, 0x1f
and ecx, eax
lea eax, [ebx + 1]
neg ecx
and eax, ecx
sub edi, eax
shl eax, 8
or dword [esi], eax
mov eax, ecx
pop ebx
mov dword [esi + 4], edi
and eax, 1
pop edi
not ecx
pop esi
or eax, ecx
pop ebp
pop ecx
ret
Function at 0x55c330
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x14
call fcn.00573a90
push esi
push edi
lea eax, [esp + 0xc]
xor edi, edi
push eax
lea eax, [esp + 0xc]
xor esi, esi
push eax
push edi
call fcn.00543680
add esp, 0xc
test eax, eax
je 0x55c54b
nop dword [eax + eax]
mov ecx, dword [esp + 8]
lea eax, [esi + 1]
shl ecx, 0xa
inc edi
and ecx, dword [esp + 0x20]
cmove eax, esi
mov esi, eax
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0xc]
push eax
push edi
call fcn.00543680
add esp, 0xc
test eax, eax
jne 0x55c360
test esi, esi
je 0x55c54b
mov eax, dword [esp + 0x50]
cdq
idiv esi
mov edi, dword [esp + 0x5c]
cmp esi, 1
push ebx
push ebp
mov ebp, dword [esp + 0x5c]
mov esi, 0
cmovne esi, dword [esp + 0x58]
push edi
push 0
push ebp
mov dword [esp + 0x28], eax
mov dword [esp + 0x24], esi
call fcn.0058b9c0
lea eax, [esp + 0x20]
mov dword [esp + 0x2c], 0
push eax
lea eax, [esp + 0x20]
push eax
push 0
call fcn.00543680
add esp, 0x18
test eax, eax
je 0x55c516
mov ebx, dword [esp + 0x60]
nop word [eax + eax]
mov eax, dword [esp + 0x10]
shl eax, 0xa
test dword [esp + 0x28], eax
je 0x55c4f2
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x55c523
push edi
push ebx
push dword [esp + 0x58]
and esi, 1
push dword [esp + 0x58]
add esi, dword [esp + 0x2c]
push dword [esp + 0x58]
push dword [esp + 0x58]
push dword [esp + 0x58]
push dword [esp + 0x58]
push dword [esp + 0x58]
push dword [esp + 0x58]
push dword [esp + 0x58]
push dword [esp + 0x58]
push esi
mov esi, dword [esp + 0x88]
push esi
push ecx
call fcn.0055c570
add esp, 0x3c
test eax, eax
je 0x55c541
add esi, dword [esp + 0x1c]
xor ecx, ecx
mov dword [esp + 0x54], esi
test edi, edi
jle 0x55c4ee
cmp edi, 0x20
jb 0x55c4cb
lea eax, [ebx - 1]
lea edx, [ebp - 1]
add eax, edi
add edx, edi
cmp ebp, eax
ja 0x55c481
cmp edx, ebx
jae 0x55c4cb
mov eax, edi
and eax, 0x8000001f
jns 0x55c48f
dec eax
or eax, 0xffffffe0
inc eax
mov edx, edi
mov esi, ebx
sub edx, eax
mov eax, ebp
sub esi, ebp
nop dword [eax]
movups xmm0, xmmword [eax]
lea eax, [eax + 0x20]
movups xmm1, xmmword [esi + eax - 0x20]
pxor xmm1, xmm0
movups xmmword [eax - 0x20], xmm1
movups xmm1, xmmword [ebx + ecx + 0x10]
add ecx, 0x20
movups xmm0, xmmword [eax - 0x10]
pxor xmm1, xmm0
movups xmmword [eax - 0x10], xmm1
cmp ecx, edx
jl 0x55c4a0
cmp ecx, edi
jge 0x55c4ee
mov esi, ebx
lea eax, [ecx + ebp]
mov edx, edi
sub esi, ebp
sub edx, ecx
nop word [eax + eax]
mov cl, byte [eax + esi]
lea eax, [eax + 1]
xor byte [eax - 1], cl
sub edx, 1
jne 0x55c4e0
mov esi, dword [esp + 0x18]
mov eax, dword [esp + 0x20]
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0x14]
inc eax
push ecx
push eax
mov dword [esp + 0x2c], eax
call fcn.00543680
add esp, 0xc
test eax, eax
jne 0x55c3f0
pop ebp
mov eax, 1
pop ebx
pop edi
pop esi
add esp, 0x14
ret
push 0x114
push str.._ssl_t1_enc.c
push 0x146
push 0x11c
push 0x14
call fcn.004d6170
add esp, 0x14
pop ebp
pop ebx
pop edi
xor eax, eax
pop esi
add esp, 0x14
ret
push 0x109
push str.._ssl_t1_enc.c
push 0x44
push 0x11c
push 0x14
call fcn.004d6170
add esp, 0x14
xor eax, eax
pop edi
pop esi
add esp, 0x14
ret
Function at 0x575de5
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret

Function at 0x5a869d
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.005a851c

Function at 0x5abd32
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.005ab9f2

Function at 0x5b3390
Capabilities:
Send data
Send data on socket

Disassembly:
push esi
push edi
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov edi, dword [esp + 0xc]
push 0
push dword [esp + 0x18]
push dword [esp + 0x18]
push dword [edi + 0x1c]
call dword [sym.imp.WS2_32.dll_send]
push 0xf
push edi
mov esi, eax
call fcn.004c9df0
add esp, 8
test esi, esi
jg 0x5b33e7
je 0x5b33c9
cmp esi, 0xffffffff
jne 0x5b33e7
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call fcn.005b35f0
add esp, 4
test eax, eax
je 0x5b33e7
push 0xa
push edi
call fcn.004ca4e0
add esp, 8
pop edi
mov eax, esi
pop esi
ret

Function at 0x5b3750
Capabilities:
Send data
Send data on socket

Disassembly:
push esi
mov esi, dword [esp + 8]
mov eax, dword [esi + 0x20]
cmp dword [eax], 6
je 0x5b376b
push eax
push esi
call fcn.005b3e00
add esp, 8
test eax, eax
jle 0x5b37b3
push edi
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push 0
push dword [esp + 0x18]
push dword [esp + 0x18]
push dword [esi + 0x1c]
call dword [sym.imp.WS2_32.dll_send]
push 0xf
push esi
mov edi, eax
call fcn.004c9df0
add esp, 8
test edi, edi
jg 0x5b37b0
push edi
call fcn.005b36b0
add esp, 4
test eax, eax
je 0x5b37b0
push 0xa
push esi
call fcn.004ca4e0
add esp, 8
mov eax, edi
pop edi
pop esi
ret
Function at 0x5b56c0
Capabilities:
Resolve dns

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
mov esi, dword [esp + 0x10]
mov ebp, 1
push edi
push ebx
push esi
call fcn.005b5b80
mov edi, eax
add esp, 8
test edi, edi
jns 0x5b56fb
push 0x7b
push str..crypto_bio_b_sock.c
push 0x6c
push 0x6a
push 0x20
call fcn.004d6170
add esp, 0x14
jmp 0x5b57bc
call fcn.005b5ab0
cmp eax, 1
jne 0x5b57cc
test edi, edi
jle 0x5b5714
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
ret
push 0x8e
push str..crypto_bio_b_sock.c
push 0x16
push 9
call fcn.004dca80
add esp, 0x10
push esi
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov ecx, eax
test ecx, ecx
jne 0x5b5751
push 0x92
push str..crypto_bio_b_sock.c
push 0x66
push 0x6a
push 0x20
call fcn.004d6170
add esp, 0x14
jmp 0x5b57a2
cmp word [ecx + 8], 2
je 0x5b5772
push 0x99
push str..crypto_bio_b_sock.c
push 0x6b
push 0x6a
push 0x20
call fcn.004d6170
add esp, 0x14
jmp 0x5b57a2
mov eax, dword [ecx + 0xc]
xor ebp, ebp
mov eax, dword [eax]
movzx eax, byte [eax]
mov byte [ebx], al
mov eax, dword [ecx + 0xc]
mov eax, dword [eax]
movzx eax, byte [eax + 1]
mov byte [ebx + 1], al
mov eax, dword [ecx + 0xc]
mov eax, dword [eax]
movzx eax, byte [eax + 2]
mov byte [ebx + 2], al
mov eax, dword [ecx + 0xc]
mov eax, dword [eax]
movzx eax, byte [eax + 3]
mov byte [ebx + 3], al
push 0xa2
push str..crypto_bio_b_sock.c
push 0x16
push 0xa
call fcn.004dca80
add esp, 0x10
test ebp, ebp
je 0x5b57d3
push esi
push str.host
push 2
call fcn.004d5790
add esp, 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret

Function at 0x5b5b30
Capabilities:
Set socket configuration

Disassembly:
mov eax, dword [esp + 8]
push esi
mov dword [esp + 0xc], eax
lea eax, [esp + 0xc]
push eax
push 0x8004667e
push dword [esp + 0x10]
call dword [sym.imp.WS2_32.dll_ioctlsocket]
mov esi, eax
test esi, esi
jns 0x5b5b70
push 0x233
push str..crypto_bio_b_sock.c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 5
push 2
call fcn.004d6170
add esp, 0x14
xor eax, eax
test esi, esi
pop esi
sete al
ret
Function at 0x404564
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.00406c60
test esi, esi
jne 0x40459c
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.00406d9c
jmp 0x4045ba
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00404448
mov edi, eax
test esi, esi
je 0x4045ba
cmp dword [ebx], 0
je 0x4045ba
dec esi
jmp 0x4045a3
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x4061cc
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x43d04c], 0
je 0x40622d
cmp word [0x43d328], 0xd7b2
jne 0x4061f5
cmp dword [0x43d330], 0
jbe 0x4061f5
mov eax, 0x43d324
call dword [0x43d340]
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 0x406258
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x43b02c], 0
jne 0x406249
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x407604
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebx
push esi
add esp, 0xfffffbe4
mov esi, edx
mov ebx, eax
test bl, bl
je 0x407646
movzx eax, bl
add ax, 0x41
dec eax
mov word [esp], ax
mov word [esp + 2], 0x3a
mov word [esp + 4], 0
lea eax, [esp + 0x212]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryW
push esp
call sub.kernel32.dll_SetCurrentDirectoryW
lea eax, [esp + 8]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryW
test bl, bl
je 0x407666
lea eax, [esp + 0x212]
push eax
call sub.kernel32.dll_SetCurrentDirectoryW
mov eax, esi
lea edx, [esp + 8]
mov ecx, 0x105
call fcn.00406e48
add esp, 0x41c
pop esi
pop ebx
ret
Function at 0x408a14
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 0x408b7b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
xor edx, edx
call fcn.00406c60
cmp si, word [0x43b7d0]
jb 0x408aae
cmp si, word [0x43b9d0]
ja 0x408aae
mov edi, 0x40
xor eax, eax
mov dword [ebp - 0xc], eax
cmp edi, dword [ebp - 0xc]
jb 0x408aae
mov ebx, dword [ebp - 0xc]
add ebx, edi
shr ebx, 1
cmp si, word [ebx*8 + 0x43b7d0]
jae 0x408a88
mov edi, ebx
dec edi
jmp 0x408aa9
cmp si, word [ebx*8 + 0x43b7d0]
jbe 0x408a98
inc ebx
mov dword [ebp - 0xc], ebx
jmp 0x408aa9
mov edx, dword [ebp - 8]
mov eax, dword [ebx*8 + 0x43b7d4]
call fcn.00408924
jmp 0x408aae
cmp edi, dword [ebp - 0xc]
jae 0x408a72
mov eax, dword [ebp - 8]
cmp dword [eax], 0
jne 0x408b5d
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x408b5d
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.00406e48
push dword [ebp - 0x164]
push 0x408b98
lea eax, [ebp - 0x168]
lea edx, [ebp - 0x160]
mov ecx, 0x55
call fcn.00406e48
push dword [ebp - 0x168]
push 0x408ba8
lea eax, [ebp - 0x16c]
lea edx, [ebp - 0xb6]
mov ecx, 0x55
call fcn.00406e48
push dword [ebp - 0x16c]
mov eax, dword [ebp - 8]
mov edx, 5
call fcn.004071f4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408b82
lea eax, [ebp - 0x16c]
mov edx, 3
call fcn.00406c58
ret
Function at 0x408d34
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 0x408e39
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x43fb54
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x43fb6c]
jne 0x408d80
mov eax, esi
mov edx, 0x43fb70
mov ecx, 0x55
call fcn.00406e48
push 0x43fb54
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x408e23
push 0x43fb54
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
xor edx, edx
call fcn.00406c60
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x408df1
cmp byte [0x43fb50], 0
je 0x408db6
mov edx, esi
mov eax, ebx
call fcn.00408c14
jmp 0x408df1
mov edx, esi
mov eax, ebx
call fcn.00408a14
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x408df1
cmp dword [esi], 0
je 0x408dda
mov eax, esi
mov edx, 0x408e54
call fcn.00407050
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.00408a14
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.00407050
push 0x43fb54
call sub.kernel32.dll_EnterCriticalSection
mov word [0x43fb6c], bx
push 0xaa
mov eax, dword [esi]
call fcn.00406cec
push eax
push 0x43fb70
call sub.kernel32.dll_lstrcpynW
push 0x43fb54
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408e40
lea eax, [ebp - 4]
call fcn.00406c50
ret
Function at 0x409078
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.00406c48
xor eax, eax
push ebp
push 0x40925d
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x4090b8
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x4090d2
push 0x105
mov eax, dword [ebp - 4]
call fcn.00406cec
push eax
lea eax, [ebp - 0x21a]
push eax
call sub.kernel32.dll_lstrcpynW
cmp word [ebp - 0x21a], 0
je 0x409247
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40926c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409161
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40926c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409161
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x4092a0
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409161
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x4092d4
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x409247
xor eax, eax
push ebp
push 0x409240
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.00408e7c
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 0x4091d0
mov eax, dword [ebp - 0x10]
call fcn.004041b0
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.00406e0c
jmp 0x40921b
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x409314
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x40921b
mov eax, dword [ebp - 0x10]
call fcn.004041b0
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x409314
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.00406e0c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409247
cmp dword [ebp - 8], 0
je 0x409236
mov eax, dword [ebp - 8]
call fcn.004041cc
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 0x409264
lea eax, [ebp - 4]
call fcn.00406c50
ret
Function at 0x409528
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.00406c48
mov eax, dword [ebp - 0x21c]
call fcn.00406c48
lea edi, [ebp - 0x210]
xor eax, eax
push ebp
push 0x4096c7
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
xor edx, edx
call fcn.00406c60
xor ebx, ebx
push 0x105
mov eax, dword [ebp - 0x21c]
call fcn.00406cec
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 0x4095c8
sub dword [edi], 2
mov eax, dword [edi]
cmp word [eax], 0x2e
je 0x4095da
lea eax, [ebp - 0x20a]
cmp eax, dword [edi]
jne 0x4095c5
lea eax, [ebp - 0x20a]
cmp eax, dword [edi]
je 0x409693
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 0x409603
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.00409078
cmp dword [ebp - 0x220], 0
je 0x40963b
push ebp
mov eax, dword [ebp - 0x220]
call fcn.0040941c
pop ecx
mov ebx, eax
jmp 0x409693
push ebp
call sub.kernel32.dll_GetUserDefaultUILanguage
lea edx, [ebp - 0x224]
call fcn.00408d34
mov eax, dword [ebp - 0x224]
call fcn.0040941c
pop ecx
mov ebx, eax
test bl, bl
jne 0x409686
cmp byte [0x43fb50], 0
jne 0x409686
push ebp
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 0x228]
call fcn.00408d34
mov eax, dword [ebp - 0x228]
call fcn.0040941c
pop ecx
mov ebx, eax
test bl, bl
jne 0x409693
push ebp
call fcn.004094cc
pop ecx
mov ebx, eax
test bl, bl
je 0x4096a9
mov eax, esi
lea edx, [ebp - 0x20a]
mov ecx, 0x105
call fcn.00406e48
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4096ce
lea eax, [ebp - 0x228]
mov edx, 5
call fcn.00406c58
ret

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