joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404320
Capabilities:
Resolve dns

Disassembly:
push esi
mov esi, ecx
push str.pet.feedsvr.qq.com
call sub.WSOCK32.dll_gethostbyname
test eax, eax
je 0x40435f
mov eax, dword [eax + 0xc]
push 0x4128
mov ecx, dword [eax]
mov edx, dword [ecx]
mov word [esi + 0x5d4], 2
mov dword [esi + 0x5d8], edx
call sub.WSOCK32.dll_htons
mov word [esi + 0x5d6], ax
mov eax, 1
pop esi
ret
xor eax, eax
pop esi
ret

Function at 0x4046b0
Capabilities:
Encode data using xor
Encrypt data using tea

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x24]
mov eax, dword [edi]
push eax
call sub.WSOCK32.dll_ntohl
mov ecx, dword [edi + 4]
mov esi, eax
push ecx
call sub.WSOCK32.dll_ntohl
mov ebp, dword [esp + 0x28]
lea edx, [esp + 0x10]
mov edi, eax
lea ebx, [esp + 0x10]
sub ebp, edx
mov dword [esp + 0x24], 4
mov eax, dword [ebx + ebp]
push eax
call sub.WSOCK32.dll_ntohl
mov dword [ebx], eax
mov eax, dword [esp + 0x24]
add ebx, 4
dec eax
mov dword [esp + 0x24], eax
jne 0x4046e6
mov ecx, dword [esp + 0x1c]
xor eax, eax
mov dword [esp + 0x24], 0x10
mov ebx, dword [esp + 0x14]
mov ebp, dword [esp + 0x10]
mov edx, edi
sub eax, 0x61c88647
shr edx, 5
add edx, ebx
mov ebx, edi
shl ebx, 4
add ebx, ebp
mov ebp, dword [esp + 0x18]
xor edx, ebx
lea ebx, [eax + edi]
xor edx, ebx
add esi, edx
mov edx, esi
mov ebx, esi
shr edx, 5
shl ebx, 4
add edx, ecx
add ebx, ebp
xor edx, ebx
lea ebx, [eax + esi]
xor edx, ebx
add edi, edx
mov edx, dword [esp + 0x24]
dec edx
mov dword [esp + 0x24], edx
jne 0x40470d
push esi
call sub.WSOCK32.dll_htonl
mov esi, dword [esp + 0x2c]
push edi
mov dword [esi], eax
call sub.WSOCK32.dll_htonl
mov dword [esi + 4], eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret

Function at 0x404780
Capabilities:
Encode data using xor
Encrypt data using tea

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
mov esi, dword [esp + 0x20]
push edi
mov eax, dword [esi]
push eax
call sub.WSOCK32.dll_ntohl
mov ecx, dword [esi + 4]
mov edi, eax
push ecx
call sub.WSOCK32.dll_ntohl
mov ebp, dword [esp + 0x28]
lea edx, [esp + 0x10]
mov esi, eax
lea ebx, [esp + 0x10]
sub ebp, edx
mov dword [esp + 0x24], 4
mov eax, dword [ebx + ebp]
push eax
call sub.WSOCK32.dll_ntohl
mov dword [ebx], eax
mov eax, dword [esp + 0x24]
add ebx, 4
dec eax
mov dword [esp + 0x24], eax
jne 0x4047b6
mov ecx, dword [esp + 0x14]
mov eax, 0xe3779b90
mov dword [esp + 0x24], 0x10
mov ebx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x18]
mov edx, edi
shr edx, 5
add edx, ebx
mov ebx, edi
shl ebx, 4
add ebx, ebp
mov ebp, dword [esp + 0x10]
xor edx, ebx
lea ebx, [eax + edi]
xor edx, ebx
sub esi, edx
mov edx, esi
mov ebx, esi
shr edx, 5
shl ebx, 4
add edx, ecx
add ebx, ebp
xor edx, ebx
lea ebx, [eax + esi]
xor edx, ebx
add eax, 0x61c88647
sub edi, edx
mov edx, dword [esp + 0x24]
dec edx
mov dword [esp + 0x24], edx
jne 0x4047e0
push edi
call sub.WSOCK32.dll_htonl
mov edi, dword [esp + 0x2c]
push esi
mov dword [edi], eax
call sub.WSOCK32.dll_htonl
mov dword [edi + 4], eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
Function at 0x432000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43200c
pop eax
nop
nop
nop
nop
nop
nop
add eax, 0x40729f
nop
sub eax, 0x407245
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
jl 0x432030
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
jne 0x43201e
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x431219

Function at 0x432003
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
mov eax, section..text
nop
push 4
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
je 0x432072
nop
nop
nop
nop
nop
mov ebx, 0x40c7d0
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x477509f1
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x432060
mov eax, section..data
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x4320d2
mov ebx, 0x42f314
nop
nop
nop
nop
mov ecx, ebx
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
mov eax, ecx
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0xfa571e0
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
loop 0x4320c0
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x10001660
Capabilities:
Check for time delay via gettickcount
Link many functions at runtime

Disassembly:
sub esp, 0x28
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call edi
push 0x14f0
mov esi, eax
mov dword [esp + 0x10], 0
call dword [sym.imp.KERNEL32.dll_Sleep]
call edi
sub eax, esi
cmp eax, 0x14f0
jb 0x10001867
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push ebp
nop dword [eax]
push 0x1000f274
push dword [0x10016968]
call ebx
call eax
push str.GetModuleHandleA
push dword [0x10016968]
mov ebp, eax
mov dword [esp + 0x24], ebp
call ebx
push 0x1000f2c8
call eax
push 0xc
lea ecx, [esp + 0x30]
mov dword [esp + 0x2c], eax
push ecx
push eax
xorps xmm0, xmm0
mov dword [esp + 0x40], 0
push ebp
movq qword [esp + 0x3c], xmm0
call sub.KERNEL32.dll_K32GetModuleInformation
push str.CreateFileA
push dword [0x10016968]
call ebx
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push str.c:windows_system32_ntdll.dll
call eax
push 0
push 0
push 0
push 0x1000002
push 0
push eax
mov dword [esp + 0x38], eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
push str.MapViewOfFile
push dword [0x10016968]
mov ebp, eax
mov dword [esp + 0x2c], ebp
call ebx
push 0
push 0
push 0
push 4
push ebp
call eax
mov ebp, dword [esp + 0x2c]
xor edi, edi
mov dword [esp + 0x18], eax
xor eax, eax
mov ebx, dword [ebp + 0x3c]
add ebx, ebp
cmp ax, word [ebx + 6]
jae 0x100017f6
movzx eax, di
lea ecx, [eax + eax*4]
movzx eax, word [ebx + 0x14]
add eax, ebx
lea esi, [eax + ecx*8]
mov eax, str..text
lea ecx, [esi + 0x18]
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x10001797
test dl, dl
je 0x10001793
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x10001797
add ecx, 2
add eax, 2
test dl, dl
jne 0x10001777
xor eax, eax
jmp 0x1000179c
sbb eax, eax
or eax, 1
test eax, eax
jne 0x100017eb
mov dword [esp + 0x10], eax
lea eax, [esp + 0x10]
push eax
mov eax, dword [esi + 0x24]
push 0x40
push dword [esi + 0x20]
add eax, ebp
push eax
call dword [0x10016964]
mov ecx, dword [esi + 0x24]
push dword [esi + 0x20]
mov eax, dword [esp + 0x1c]
add eax, ecx
push eax
lea eax, [ecx + ebp]
push eax
call fcn.100035e0
add esp, 0xc
lea eax, [esp + 0x10]
push eax
push dword [esp + 0x14]
mov eax, dword [esi + 0x24]
push dword [esi + 0x20]
add eax, ebp
push eax
call dword [0x10016964]
inc edi
cmp di, word [ebx + 6]
jb 0x10001760
push 0x1000f2dc
push dword [0x10016968]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push dword [esp + 0x1c]
mov esi, eax
call esi
push dword [esp + 0x20]
call esi
push dword [esp + 0x24]
call esi
push dword [esp + 0x28]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebx
mov esi, eax
mov eax, dword [esp + 0x14]
inc eax
mov dword [esp + 0x14], eax
cmp eax, 3
jg 0x1000185d
push 0x14f0
call dword [sym.imp.KERNEL32.dll_Sleep]
call ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
sub eax, esi
cmp eax, 0x14f0
jae 0x100016a0
pop ebp
pop ebx
pop edi
xor eax, eax
pop esi
add esp, 0x28
ret
pop edi
xor eax, eax
pop esi
add esp, 0x28
ret
Function at 0x10005c87
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x10005cc6
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x10005cc6
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x10005cc6
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x10005cc6
cmp dword [ecx + 0x74], 0xe
jbe 0x10005cc6
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x10007164
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10010d28
push 0x10010d20
push str.FlsAlloc
push 0x1f
call fcn.10007080
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10007198
push dword [ebp + 8]
mov ecx, esi
call dword [0x1000f154]
call esi
jmp 0x1000719e
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x100071e2
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10010d38
push 0x10010d30
push str.FlsGetValue
push 0x21
call fcn.10007080
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10007219
push dword [ebp + 8]
mov ecx, esi
call dword [0x1000f154]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x10007221
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10010d40
push 0x10010d38
push str.FlsSetValue
push 0x22
call fcn.10007080
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1000725b
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x1000f154]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x10008a78
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x10008b15
push ebx
push esi
call fcn.10008a41
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.100089d5
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x10008ac2
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10008b14
push edi
push eax
call fcn.10007426
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x10008ae2
call fcn.10007474
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10008b13
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.100089d5
add esp, 0x20
test eax, eax
jne 0x10008b01
push edi
call fcn.10007474
jmp 0x10008b09
push ebx
call fcn.10007474
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret
Function at 0x407344
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.0040a038
test esi, esi
jne 0x40737a
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.0040a1d0
jmp 0x407398
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00407288
mov edi, eax
test esi, esi
je 0x407398
cmp dword [ebx], 0
je 0x407398
dec esi
jmp 0x407381
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x408c80
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.00409140
mov byte [esp], al
cmp byte [esp], 0
jne 0x408e09
test edi, edi
je 0x408e09
mov byte [esp + 1], 0
test ebp, ebp
jle 0x408d49
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
xor eax, eax
mov dword [esp + 0xc], eax
test ebp, ebp
jle 0x408d24
cmp edi, 0xffffffff
je 0x408ce5
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x408ce5
mov byte [esp], 0
jmp 0x408e09
cmp dword [esi], 1
jg 0x408d24
cmp dword [esi], 0
jne 0x408d16
xor eax, eax
mov edx, 1
lock cmpxchg dword [esi], edx
test eax, eax
jne 0x408d16
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x408e09
lea eax, [esp + 0xc]
call fcn.00408930
dec ebp
test ebp, ebp
jg 0x408cca
cmp edi, 0xffffffff
je 0x408d49
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x408d47
mov byte [esp], 0
jmp 0x408e09
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x408c8e
lea edx, [ebx + 2]
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x408d49
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.00408e84
mov edx, eax
mov ebx, dword [0x5fb8fc]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x408dad
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x408dab
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x408dad
xor edi, edi
cmp byte [esp], 0
je 0x408dd3
mov ebx, dword [esi]
test bl, 1
jne 0x408de9
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x408db3
mov byte [esp + 1], 1
jmp 0x408de9
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x408dd3
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x408d60
cmp byte [esp], 0
je 0x408e09
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 0x409cd0
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x5fb05c], 0
je 0x409d37
cmp word [0x5fb348], 0xd7b2
jne 0x409cf9
cmp dword [0x5fb350], 0
jbe 0x409cf9
mov eax, 0x5fb344
call dword [0x5fb360]
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, 0x409d64
call fcn.0040a850
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x5f5036], 0
jne 0x409d53
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x409ef8
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 [0x5f5038], 0
je 0x409f23
mov edx, edi
mov eax, esi
call dword [0x5f5038]
mov ebx, eax
jmp 0x409f34
mov eax, 8
call fcn.00406fc0
mov ebx, eax
mov dword [ebx], esi
mov dword [ebx + 4], edi
mov byte [0x5fb05d], 1
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
mov eax, 0x409ec0
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 0x409f64
mov eax, ebx
call fcn.00406fdc
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 0xc
Function at 0x40d7c0
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 0x40d927
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.0040a038
cmp si, word [0x5f5a10]
jb 0x40d858
cmp si, word [0x5f5c10]
ja 0x40d858
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x40d858
mov ebx, edi
add ebx, dword [ebp - 8]
shr ebx, 1
cmp si, word [ebx*8 + 0x5f5a10]
jae 0x40d832
mov edi, ebx
dec edi
jmp 0x40d853
cmp si, word [ebx*8 + 0x5f5a10]
jbe 0x40d842
inc ebx
mov dword [ebp - 8], ebx
jmp 0x40d853
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x5f5a14]
call fcn.0040d6dc
jmp 0x40d858
cmp edi, dword [ebp - 8]
jae 0x40d81c
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x40d907
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40d907
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.0040ab50
push dword [ebp - 0x160]
push 0x40d944
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.0040ab50
push dword [ebp - 0x164]
push 0x40d954
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.0040ab50
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.0040ad88
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d92e
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.0040a098
pop eax
jmp eax
Function at 0x40dadc
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 0x40dbe2
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x5fdc14
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x5fdc2c]
jne 0x40db28
mov eax, esi
mov edx, 0x5fdc2e
mov ecx, 0x55
call fcn.0040ab50
push 0x5fdc14
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x40dbca
push 0x5fdc14
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
call fcn.0040a038
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40db97
cmp byte [0x5fdc10], 0
je 0x40db5c
mov edx, esi
mov eax, ebx
call fcn.0040d9c0
jmp 0x40db97
mov edx, esi
mov eax, ebx
call fcn.0040d7c0
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x40db97
cmp dword [esi], 0
je 0x40db80
mov eax, esi
mov edx, 0x40dbfc
call fcn.0040aca8
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.0040d7c0
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.0040aca8
push 0x5fdc14
call sub.kernel32.dll_EnterCriticalSection
mov word [0x5fdc2c], bx
mov eax, dword [esi]
call fcn.0040aa9c
mov ecx, eax
mov eax, 0x5fdc2e
mov edx, 0xaa
call fcn.0040d63c
push 0x5fdc14
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40dbe9
lea eax, [ebp - 4]
call fcn.0040a038
pop eax
jmp eax
Function at 0x40de24
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.0040a12c
xor eax, eax
push ebp
push 0x40e04c
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x40de6a
push 0x105
lea eax, [ebp - 0x21e]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x40de84
mov eax, dword [ebp - 4]
call fcn.0040aa9c
mov ecx, eax
lea eax, [ebp - 0x21e]
mov edx, 0x105
call fcn.0040d63c
cmp word [ebp - 0x21e], 0
je 0x40e02f
xor eax, eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40e05c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40df53
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40e05c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40df53
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40e098
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40df53
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40e098
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40df53
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40e0cc
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40df53
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40e100
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x40e02f
xor eax, eax
push ebp
push 0x40e028
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 8]
lea eax, [ebp - 0x21e]
call fcn.0040dc24
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 0x40dfb6
mov eax, dword [ebp - 0x14]
call fcn.00406fc0
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.0040aafc
jmp 0x40e001
lea eax, [ebp - 0x14]
push eax
push 0
push 0
push 0
push 0x40e140
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x40e001
mov eax, dword [ebp - 0x14]
call fcn.00406fc0
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0xc]
push eax
push 0
push 0
push 0x40e140
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, esi
mov edx, dword [ebp - 0xc]
call fcn.0040aafc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40e02f
cmp dword [ebp - 0xc], 0
je 0x40e01c
mov eax, dword [ebp - 0xc]
call fcn.00406fdc
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 0x40e053
lea eax, [ebp - 8]
mov edx, 2
call fcn.0040a098
pop eax
jmp eax
Function at 0x40e360
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.0040a12c
xor eax, eax
push ebp
push 0x40e422
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.0040ab50
mov ecx, dword [ebp - 0x10]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.0040ad00
mov eax, dword [ebx]
call fcn.0040e208
test al, al
jne 0x40e3fd
mov word [ebp - 8], 0
lea eax, [ebp - 0x14]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.0040ab50
mov ecx, dword [ebp - 0x14]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.0040ad00
mov eax, dword [ebx]
call fcn.0040e208
test al, al
jne 0x40e3fd
mov eax, ebx
call fcn.0040a038
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40e429
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.0040a098
lea eax, [ebp - 4]
call fcn.0040a038
pop eax
jmp eax

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