joyce8/EMBER2024-capa huggingface dataset:
Function at 0x89135a
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp 0x89e5b3
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff0
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
sub esp, 0x40
cmp dword [0x10085d74], 1
jge 0x89e622
mov eax, dword [ebx + 8]
movzx ecx, word [eax]
test ecx, ecx
je 0x89e5f8
mov edx, dword [ebx + 8]
movzx eax, word [edx]
movzx ecx, word [ebx + 0xc]
cmp eax, ecx
je 0x89e5f8
mov edx, dword [ebx + 8]
add edx, 2
mov dword [ebx + 8], edx
jmp 0x89e5d5
mov eax, dword [ebx + 8]
movzx ecx, word [eax]
movzx edx, word [ebx + 0xc]
cmp ecx, edx
jne 0x89e60e
mov eax, dword [ebx + 8]
mov dword [ebp - 4], eax
jmp 0x89e615
mov dword [ebp - 4], 0
mov eax, dword [ebp - 4]
jmp 0x89e712
movzx ecx, word [ebx + 0xc]
movd xmm0, ecx
movaps xmmword [ebp - 0x30], xmm0
pshuflw xmm0, xmmword [ebp - 0x30], 0
movaps xmmword [ebp - 0x30], xmm0
pshufd xmm0, xmmword [ebp - 0x30], 0
movaps xmmword [ebp - 0x30], xmm0
mov edx, dword [ebx + 8]
and edx, 0xfff
cmp edx, 0xff0
ja 0x89e6e3
mov eax, dword [ebx + 8]
movups xmm0, xmmword [eax]
movaps xmmword [ebp - 0x40], xmm0
movaps xmm0, xmmword [ebp - 0x20]
pxor xmm0, xmmword [ebp - 0x20]
movaps xmmword [ebp - 0x20], xmm0
movaps xmm0, xmmword [ebp - 0x20]
pcmpeqw xmm0, xmmword [ebp - 0x40]
movaps xmmword [ebp - 0x20], xmm0
movaps xmm0, xmmword [ebp - 0x40]
pcmpeqw xmm0, xmmword [ebp - 0x30]
movaps xmmword [ebp - 0x40], xmm0
movaps xmm0, xmmword [ebp - 0x20]
por xmm0, xmmword [ebp - 0x40]
movaps xmmword [ebp - 0x20], xmm0
movaps xmm0, xmmword [ebp - 0x20]
pmovmskb ecx, xmm0
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 0
je 0x89e6d8
bsf edx, dword [ebp - 8]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x10]
add eax, dword [ebx + 8]
mov dword [ebx + 8], eax
mov ecx, dword [ebx + 8]
movzx edx, word [ecx]
movzx eax, word [ebx + 0xc]
cmp edx, eax
jne 0x89e6cc
mov ecx, dword [ebx + 8]
mov dword [ebp - 0xc], ecx
jmp 0x89e6d3
mov dword [ebp - 0xc], 0
mov eax, dword [ebp - 0xc]
jmp 0x89e712
mov edx, dword [ebx + 8]
add edx, 0x10
mov dword [ebx + 8], edx
jmp 0x89e70d
mov eax, dword [ebx + 8]
movzx ecx, word [eax]
movzx edx, word [ebx + 0xc]
cmp ecx, edx
jne 0x89e6f6
mov eax, dword [ebx + 8]
jmp 0x89e712
mov eax, dword [ebx + 8]
movzx ecx, word [eax]
test ecx, ecx
jne 0x89e704
xor eax, eax
jmp 0x89e712
mov edx, dword [ebx + 8]
add edx, 2
mov dword [ebx + 8], edx
jmp 0x89e642
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
Function at 0x8ce5e9
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x50
push ebp
lea eax, [esp + 0x28]
push edi
push eax
call fcn.008ce799
mov ecx, dword [esp + 0x5c]
xor edx, edx
xor ebp, ebp
mov dword [esp + 0xc], 1
mov edi, dword [ecx]
mov dword [esp + 0x10], 8
mov dword [esp + 0x14], 2
mov dword [esp + 0x18], 4
mov dx, word [edi + 0x14]
cmp word [edi + 6], bp
mov dword [esp + 0x1c], 0x10
mov dword [esp + 0x20], 0x80
mov dword [esp + 0x24], 0x20
mov dword [esp + 0x28], 0x40
lea eax, [edx + edi + 0x18]
jbe 0x8ce6e7
push ebx
push esi
lea ebx, [eax + 0x24]
mov eax, dword [ebx]
mov ecx, eax
mov edx, eax
shr ecx, 0x1d
shr edx, 0x1e
mov esi, eax
and ecx, 1
and edx, 1
shr esi, 0x1f
test eax, 0x2000000
je 0x8ce68a
mov eax, dword [ebx - 0x14]
mov ecx, dword [ebx - 0x1c]
push 0x4000
push eax
push ecx
call dword [esp + 0x4c]
jmp 0x8ce6cd
lea edx, [edx + ecx*2]
test eax, 0x4000000
lea ecx, [esi + edx*2]
mov esi, dword [esp + ecx*4 + 0x14]
je 0x8ce6a1
or esi, 0x200
mov edx, dword [ebx - 0x14]
mov ecx, edx
test ecx, ecx
jne 0x8ce6bc
test al, 0x40
je 0x8ce6b3
mov ecx, dword [edi + 0x20]
jmp 0x8ce6ba
test al, 0x80
je 0x8ce6cd
mov ecx, dword [edi + 0x24]
test ecx, ecx
jbe 0x8ce6cd
mov ecx, dword [ebx - 0x1c]
lea eax, [esp + 0x10]
push eax
push esi
push edx
push ecx
call dword [esp + 0x44]
mov edx, dword [esp + 0x64]
xor eax, eax
inc ebp
add ebx, 0x28
mov edi, dword [edx]
mov ax, word [edi + 6]
cmp ebp, eax
jl 0x8ce659
pop esi
pop ebx
pop edi
pop ebp
add esp, 0x50
ret
Function at 0xb16784
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x68
mov eax, dword [0x100d6004]
xor eax, esp
mov dword [esp + 0x64], eax
push esi
mov esi, dword [ebp + 8]
push edi
test edx, edx
jne 0xb167a7
xorps xmm0, xmm0
movups xmmword [esi], xmm0
push edx
mov edx, ecx
mov dword [esp + 0xc], 0
lea ecx, [esp + 0xc]
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0x67452301
mov dword [esp + 0x18], 0xefcdab89
mov dword [esp + 0x1c], 0x98badcfe
mov dword [esp + 0x20], 0x10325476
call fcn.00b15e94
mov ecx, dword [esp + 8]
mov eax, 0x78
shr ecx, 3
mov edi, 0x38
and ecx, 0x3f
sub eax, ecx
sub edi, ecx
cmp ecx, 0x38
lea ecx, [esp + 9]
cmovae edi, eax
xor edx, edx
movzx eax, byte [ecx - 1]
lea ecx, [ecx + 4]
mov byte [esp + edx + 0x64], al
movzx eax, byte [ecx - 4]
mov byte [esp + edx + 0x65], al
movzx eax, byte [ecx - 3]
mov byte [esp + edx + 0x66], al
movzx eax, byte [ecx - 2]
mov byte [esp + edx + 0x67], al
add edx, 4
cmp edx, 8
jb 0xb16807
push edi
mov edx, 0x100d68c0
lea ecx, [esp + 0xc]
call fcn.00b15e94
push 8
lea edx, [esp + 0x68]
lea ecx, [esp + 0xc]
call fcn.00b15e94
lea edx, [esi + 1]
mov esi, 4
lea eax, [esp + 0x11]
nop dword [eax + eax]
movzx ecx, byte [eax - 1]
lea eax, [eax + 4]
mov byte [edx - 1], cl
lea edx, [edx + 4]
movzx ecx, byte [eax - 4]
mov byte [edx - 4], cl
movzx ecx, byte [eax - 3]
mov byte [edx - 3], cl
movzx ecx, byte [eax - 2]
mov byte [edx - 2], cl
sub esi, 1
jne 0xb16864
mov ecx, dword [esp + 0x6c]
pop edi
pop esi
xor ecx, esp
call fcn.00b60b5c
mov esp, ebp
pop ebp
ret 4
Function at 0xc95580
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x47b000]
push edi
or ebp, 0xffffffff
jmp 0xc955a2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0xc955a9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xc95598
mov eax, 1
add ebx, ebx
jne 0xc955bb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0xc955cc
jne 0xc955eb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xc955eb
dec eax
add ebx, ebx
jne 0xc955d8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0xc955b0
add ebx, ebx
jne 0xc955e7
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0xc9563d
xor ecx, ecx
sub eax, 3
jb 0xc95603
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0xc95672
sar eax, 1
mov ebp, eax
jmp 0xc9560e
add ebx, ebx
jne 0xc9560e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xc955dc
inc ecx
add ebx, ebx
jne 0xc9561c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xc955dc
add ebx, ebx
jne 0xc95629
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0xc9561e
jne 0xc9563a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0xc9561e
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0xc9565c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0xc9564e
jmp 0xc9559e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0xc9565c
add edi, ecx
jmp 0xc9559e
pop esi
mov edi, esi
mov ecx, 0x629e
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0xc9567a
cmp byte [edi], 0x22
jne 0xc9567a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0xc9567f
lea edi, [esi + 0x892000]
mov eax, dword [edi]
or eax, eax
je 0xc956f7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x8ff9f8]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x8ffb1c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0xc956ac
mov ecx, edi
jns 0xc956db
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x8ffb24]
or eax, eax
je 0xc956f1
mov dword [ebx], eax
add ebx, 4
jmp 0xc956c9
call dword [esi + 0x8ffb20]
mov ebp, dword [esi + 0x8ffb28]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x237]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0xc9572b
sub esp, 0xffffff80
jmp 0x4d92b9
Function at 0x4076d4
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffdf4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.0040a43c
test esi, esi
jne 0x40770a
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.0040a5d4
jmp 0x407728
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00407618
mov edi, eax
test esi, esi
je 0x407728
cmp dword [ebx], 0
je 0x407728
dec esi
jmp 0x407711
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x409004
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff0
mov edi, edx
mov esi, eax
mov ebp, dword [esi + 0x10]
mov eax, esi
call fcn.004094c4
mov byte [esp], al
cmp byte [esp], 0
jne 0x40918d
test edi, edi
je 0x40918d
mov byte [esp + 1], 0
test ebp, ebp
jle 0x4090cd
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
xor eax, eax
mov dword [esp + 0xc], eax
test ebp, ebp
jle 0x4090a8
cmp edi, 0xffffffff
je 0x409069
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x409069
mov byte [esp], 0
jmp 0x40918d
cmp dword [esi], 1
jg 0x4090a8
cmp dword [esi], 0
jne 0x40909a
xor eax, eax
mov edx, 1
lock cmpxchg dword [esi], edx
test eax, eax
jne 0x40909a
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x40918d
lea eax, [esp + 0xc]
call fcn.00408cb8
dec ebp
test ebp, ebp
jg 0x40904e
cmp edi, 0xffffffff
je 0x4090cd
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x4090cb
mov byte [esp], 0
jmp 0x40918d
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x409012
lea edx, [ebx + 2]
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x4090cd
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.00409208
mov edx, eax
mov ebx, dword [0x5f28fc]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x409131
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x40912f
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x409131
xor edi, edi
cmp byte [esp], 0
je 0x409157
mov ebx, dword [esi]
test bl, 1
jne 0x40916d
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x409137
mov byte [esp + 1], 1
jmp 0x40916d
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x409157
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x4090e4
cmp byte [esp], 0
je 0x40918d
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
movzx eax, byte [esp]
add esp, 0x10
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x409e1c
Capabilities:
Terminate process

Disassembly:
push ecx
push ebx
push esi
push edi
mov ebx, 0x5f4ba0
cmp dword [ebp + 0xc], 2
jl 0x409e30
mov ebx, 0x5f4bd0
mov esi, ebx
lea edi, [ebp - 0x40]
mov ecx, 0xc
rep movsd dword es:[edi], dword [esi]
pop dword [ebx + 0x20]
pop dword [ebx + 0x1c]
pop dword [ebx + 0x18]
mov dword [ebx + 0x14], ebp
mov dword [ebx + 8], eax
mov dword [ebx + 0x10], edx
lea ecx, [ebp - 0x40]
mov dword [ebx], ecx
call sub.kernel32.dll_GetCurrentThreadId
mov dword [ebx + 0x2c], eax
mov eax, dword [ebx + 8]
xor ecx, ecx
cmp dword [ebp + 0xc], 0
jne 0x409e68
mov ecx, dword [eax]
mov dword [ebx + 0xc], ecx
mov eax, 0x405264
mov dword [0x5f201c], eax
mov eax, 0x40526c
mov dword [0x5f2020], eax
mov eax, ebx
call fcn.00409d00
mov eax, dword [ebp + 0xc]
inc eax
mov byte [ebx + 0x28], al
dec eax
pop ecx
mov edx, dword [ecx]
mov dword [ebx + 0x24], edx
je 0x409e9d
cmp al, 3
jge 0x409e9d
call dword [ecx + eax*4]
push ecx
mov ecx, dword [esp + 8]
test ecx, ecx
je 0x409eae
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
call ecx
pop ecx
mov eax, dword [ebp + 0xc]
cmp al, 3
jl 0x409eb9
call dword [ecx + eax*4]
cmp dword [0x5f2040], 0
jne 0x409ecf
mov byte [0x5f2048], 1
fnstcw word [0x5e902c]
mov eax, dword [ebp + 0xc]
dec eax
jne fcn.0040a16c
call fcn.00409db0
ret 4

Function at 0x40a0d4
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x5f205c], 0
je 0x40a13b
cmp word [0x5f2348], 0xd7b2
jne 0x40a0fd
cmp dword [0x5f2350], 0
jbe 0x40a0fd
mov eax, 0x5f2344
call dword [0x5f2360]
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
mov eax, 0x40a168
call fcn.0040ac98
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x5e9036], 0
jne 0x40a157
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x40a2fc
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov edi, dword [ebp + 0x10]
cmp dword [0x5e9038], 0
je 0x40a327
mov edx, edi
mov eax, esi
call dword [0x5e9038]
mov ebx, eax
jmp 0x40a338
mov eax, 8
call fcn.00406fcc
mov ebx, eax
mov dword [ebx], esi
mov dword [ebx + 4], edi
mov byte [0x5f205d], 1
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
mov eax, 0x40a2c4
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_CreateThread
mov esi, eax
test esi, esi
jne 0x40a368
mov eax, ebx
call fcn.00406fe8
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 0xc
Function at 0x40dc48
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe98
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x160], ecx
mov dword [ebp - 0x164], ecx
mov dword [ebp - 0x168], ecx
mov dword [ebp - 4], edx
mov esi, eax
xor eax, eax
push ebp
push 0x40ddaf
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.0040a43c
cmp si, word [0x5e9a18]
jb 0x40dce0
cmp si, word [0x5e9c18]
ja 0x40dce0
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x40dce0
mov ebx, edi
add ebx, dword [ebp - 8]
shr ebx, 1
cmp si, word [ebx*8 + 0x5e9a18]
jae 0x40dcba
mov edi, ebx
dec edi
jmp 0x40dcdb
cmp si, word [ebx*8 + 0x5e9a18]
jbe 0x40dcca
inc ebx
mov dword [ebp - 8], ebx
jmp 0x40dcdb
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x5e9a1c]
call fcn.0040db64
jmp 0x40dce0
cmp edi, dword [ebp - 8]
jae 0x40dca4
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x40dd8f
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40dd8f
push 0x55
lea eax, [ebp - 0xb2]
push eax
push 0x59
movzx ebx, si
push ebx
call sub.kernel32.dll_GetLocaleInfoW
push 0x55
lea eax, [ebp - 0x15c]
push eax
push 0x5a
push ebx
call sub.kernel32.dll_GetLocaleInfoW
lea eax, [ebp - 0x160]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.0040afcc
push dword [ebp - 0x160]
push 0x40ddcc
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.0040afcc
push dword [ebp - 0x164]
push 0x40dddc
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.0040afcc
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.0040b204
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40ddb6
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.0040a49c
pop eax
jmp eax
Function at 0x40df64
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 0x40e06a
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x5f4c18
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x5f4c30]
jne 0x40dfb0
mov eax, esi
mov edx, 0x5f4c32
mov ecx, 0x55
call fcn.0040afcc
push 0x5f4c18
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x40e052
push 0x5f4c18
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
call fcn.0040a43c
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40e01f
cmp byte [0x5f4c14], 0
je 0x40dfe4
mov edx, esi
mov eax, ebx
call fcn.0040de48
jmp 0x40e01f
mov edx, esi
mov eax, ebx
call fcn.0040dc48
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x40e01f
cmp dword [esi], 0
je 0x40e008
mov eax, esi
mov edx, 0x40e084
call fcn.0040b124
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.0040dc48
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.0040b124
push 0x5f4c18
call sub.kernel32.dll_EnterCriticalSection
mov word [0x5f4c30], bx
mov eax, dword [esi]
call fcn.0040af30
mov ecx, eax
mov eax, 0x5f4c32
mov edx, 0xaa
call fcn.0040dac4
push 0x5f4c18
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40e071
lea eax, [ebp - 4]
call fcn.0040a43c
pop eax
jmp eax
Function at 0x40e2ac
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffde0
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 8], ecx
mov esi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0040a530
xor eax, eax
push ebp
push 0x40e4d4
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x40e2f2
push 0x105
lea eax, [ebp - 0x21e]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x40e30c
mov eax, dword [ebp - 4]
call fcn.0040af30
mov ecx, eax
lea eax, [ebp - 0x21e]
mov edx, 0x105
call fcn.0040dac4
cmp word [ebp - 0x21e], 0
je 0x40e4b7
xor eax, eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40e4e4
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40e3db
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40e4e4
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40e3db
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40e520
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40e3db
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40e520
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40e3db
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40e554
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40e3db
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40e588
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x40e4b7
xor eax, eax
push ebp
push 0x40e4b0
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 8]
lea eax, [ebp - 0x21e]
call fcn.0040e0ac
mov ebx, eax
lea eax, [ebp - 0x14]
push eax
push 0
push 0
push 0
push ebx
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x40e43e
mov eax, dword [ebp - 0x14]
call fcn.00406fcc
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0xc]
push eax
push 0
push 0
push ebx
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, esi
mov edx, dword [ebp - 0xc]
call fcn.0040af90
jmp 0x40e489
lea eax, [ebp - 0x14]
push eax
push 0
push 0
push 0
push 0x40e5c8
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x40e489
mov eax, dword [ebp - 0x14]
call fcn.00406fcc
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0xc]
push eax
push 0
push 0
push 0x40e5c8
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, esi
mov edx, dword [ebp - 0xc]
call fcn.0040af90
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40e4b7
cmp dword [ebp - 0xc], 0
je 0x40e4a4
mov eax, dword [ebp - 0xc]
call fcn.00406fe8
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegCloseKey
pop eax
jmp eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40e4db
lea eax, [ebp - 8]
mov edx, 2
call fcn.0040a49c
pop eax
jmp eax
Function at 0x40e7e8
Capabilities:
Get geographical location
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
xor ecx, ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], ecx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0040a530
xor eax, eax
push ebp
push 0x40e8aa
push dword fs:[eax]
mov dword fs:[eax], esp
push 4
lea eax, [ebp - 0xc]
push eax
push 3
call sub.kernel32.dll_GetUserDefaultUILanguage
movzx eax, ax
push eax
call sub.kernel32.dll_GetLocaleInfoW
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.0040afcc
mov ecx, dword [ebp - 0x10]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.0040b17c
mov eax, dword [ebx]
call fcn.0040e690
test al, al
jne 0x40e885
mov word [ebp - 8], 0
lea eax, [ebp - 0x14]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.0040afcc
mov ecx, dword [ebp - 0x14]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.0040b17c
mov eax, dword [ebx]
call fcn.0040e690
test al, al
jne 0x40e885
mov eax, ebx
call fcn.0040a43c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40e8b1
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.0040a49c
lea eax, [ebp - 4]
call fcn.0040a43c
pop eax
jmp eax

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