joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42c840
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x174
mov eax, dword [0x4be004]
xor eax, esp
mov dword [esp + 0x170], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x14]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 0x18]
push 0x118
mov dword [esp + 0x18], eax
lea eax, [esp + 0x60]
push 0
push eax
mov dword [esp + 0x64], 0x11c
call fcn.00468890
add esp, 0xc
lea ecx, [esp + 0x58]
call fcn.00405cc0
test al, al
je 0x42c8fe
push dword [esp + 0x60]
push dword [esp + 0x60]
push str._u._u
push esi
call fcn.004065e0
call fcn.00405c30
test al, al
mov edx, 0x40
mov ecx, 0x20
cmovne ecx, edx
push ecx
push 0x4aba3c
push edi
call fcn.004065e0
lea edx, [esp + 0x88]
add esp, 0x1c
lea ecx, [edx + 2]
nop dword [eax]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x42c8e0
sub edx, ecx
lea eax, [esp + 0x6c]
mov ecx, dword [esp + 0x10]
sar edx, 1
push edx
push eax
call fcn.004042d0
push 0x40
lea eax, [esp + 0x1c]
push 0
push eax
call fcn.00468890
add esp, 0xc
mov dword [esp + 0x18], 0x40
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x24]
shrd ecx, eax, 0x14
shr eax, 0x14
push eax
push ecx
push 0x4aba3c
push dword [esp + 0x20]
call fcn.004065e0
add esp, 0x10
call dword [sym.imp.KERNEL32.dll_GetACP]
push eax
push 0x4aba3c
push ebx
call fcn.004065e0
mov ecx, dword [esp + 0x188]
add esp, 0xc
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00466a97
mov esp, ebp
pop ebp
ret 0x14
Function at 0x43d6f0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48df88
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x4be004]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
push ecx
lea ecx, [ebp - 0x28]
call fcn.004081d0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.00406360
cmp dword [ebp - 0x18], 2
jbe 0x43d7f9
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x28]
mov edx, dword [ebp - 0x28]
cmp ecx, 8
cmovae eax, edx
cmp word [eax], 0x5c
jne 0x43d76a
cmp ecx, 8
lea eax, [ebp - 0x28]
cmovae eax, edx
cmp word [eax + 2], 0x5c
jne 0x43d76a
mov bl, 1
jmp 0x43d862
cmp ecx, 8
lea eax, [ebp - 0x28]
cmovae eax, edx
cmp word [eax], 0x2f
jne 0x43d78d
cmp ecx, 8
lea eax, [ebp - 0x28]
cmovae eax, edx
cmp word [eax + 2], 0x2f
je 0x43d860
push 0x5c
mov edx, 0x2f
lea ecx, [ebp - 0x28]
call fcn.004061d0
mov edx, dword [ebp - 0x28]
mov eax, ecx
mov ecx, dword [ebp - 0x14]
add esp, 4
cmp ecx, 8
cmovae eax, edx
cmp word [eax + 2], 0x3a
jne 0x43d860
cmp ecx, 8
lea eax, [ebp - 0x28]
cmovae eax, edx
cmp word [eax + 4], 0x5c
jne 0x43d860
cmp ecx, 8
lea eax, [ebp - 0x28]
cmovae eax, edx
cmp word [eax], 0x61
jb 0x43d860
cmp ecx, 8
lea eax, [ebp - 0x28]
cmovae eax, edx
cmp word [eax], 0x7a
ja 0x43d860
cmp ecx, 8
lea eax, [ebp - 0x28]
cmovae eax, edx
jmp 0x43d849
jne 0x43d860
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x28]
mov edx, dword [ebp - 0x28]
cmp ecx, 8
cmovae eax, edx
cmp word [eax + 2], 0x3a
jne 0x43d860
cmp ecx, 8
lea eax, [ebp - 0x28]
cmovae eax, edx
cmp word [eax], 0x61
jb 0x43d860
cmp ecx, 8
lea eax, [ebp - 0x28]
cmovae eax, edx
cmp word [eax], 0x7a
ja 0x43d860
push 1
push 0x4ab008
lea ecx, [ebp - 0x28]
call fcn.004083a0
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x43d860
shr eax, 4
mov bl, 1
and al, 1
mov byte [esi], al
jmp 0x43d862
xor bl, bl
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x43d89f
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x43d895
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x43d8d0
push edx
push ecx
call fcn.00466a89
add esp, 8
xor eax, eax
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
mov al, bl
mov dword [ebp - 0x14], 7
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00466a97
mov esp, ebp
pop ebp
ret
call fcn.0046a8ca
int3
Function at 0x440460
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
test edx, edx
jne 0x44046b
xor eax, eax
pop ebp
ret
pop ebp
jmp fcn.00440480
Function at 0x446920
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x120]
sub esp, 0x120
push 0xffffffffffffffff
push 0x494782
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x4be004]
xor eax, ebp
mov dword [ebp + 0x11c], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esi], 0
je 0x446964
call fcn.00446b30
cmp byte [0x4c05d0], 0
jne 0x446977
mov eax, 0x80000001
jmp 0x446af9
mov eax, dword [esi]
test eax, eax
jne 0x4469e2
push 8
call fcn.00466a59
mov edi, eax
mov dword [ebp - 0x28], edi
mov dword [ebp - 4], 0
push 1
call fcn.00466a59
mov dword [edi + 4], eax
push 0x118
push 0
mov byte [eax], 0
lea eax, [ebp + 4]
push eax
call fcn.00468890
add esp, 0x14
mov dword [ebp], 0x11c
lea eax, [ebp]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x4469d1
cmp dword [ebp + 4], 6
mov eax, dword [edi + 4]
setae cl
mov byte [eax], cl
mov dword [ebp - 4], 0xffffffff
mov dword [esi], edi
mov dword [edi], 0
mov eax, dword [esi]
cmp dword [eax], 0
jne 0x446ae8
call fcn.00402ad0
test al, al
jne 0x446a24
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, dword [esi]
push eax
add ecx, 4
call fcn.004031e0
test al, al
je 0x446ae8
mov ecx, dword [esi]
add ecx, 4
call fcn.00402510
call fcn.00402ad0
test al, al
je 0x446ae8
push 0xc
xor eax, eax
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
lea ecx, [ebp - 0x24]
push str.Advapi32.dll
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 7
mov word [ebp - 0x24], ax
call fcn.004042d0
mov dword [ebp - 4], 2
lea eax, [ebp - 0x24]
push eax
call fcn.00409300
mov ecx, eax
call fcn.004093c0
mov edi, eax
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x10]
cmp edx, 8
jb 0x446aab
mov ecx, dword [ebp - 0x24]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x446aa1
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x446b1d
push edx
push ecx
call fcn.00466a89
add esp, 8
xor eax, eax
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 7
mov word [ebp - 0x24], ax
test edi, edi
je 0x446ae8
push str.RegOpenCurrentUser
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x446ae8
push dword [esi]
push 0x20019
call eax
test eax, eax
je 0x446ae8
mov eax, dword [esi]
mov dword [eax], 0
mov eax, dword [esi]
cmp dword [eax], 0
jne 0x446af7
mov dword [eax], 0x80000001
mov eax, dword [esi]
mov eax, dword [eax]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp + 0x11c]
xor ecx, ebp
call fcn.00466a97
lea esp, [ebp + 0x120]
pop ebp
ret 4
call fcn.0046a8ca
int3
Function at 0x44ded0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4957d8
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x4be004]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [ebp + 0xc]
xorps xmm0, xmm0
mov esi, dword [ebp + 8]
mov ecx, esi
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x3c]
push eax
push 2
push 0xffffffffffffffff
push 0xffff8000
movlpd qword [ebp - 0x3c], xmm0
call fcn.0040aae0
test al, al
jne 0x44df30
mov eax, 1
jmp 0x44e0ad
push 0x10000
call fcn.0046718d
mov ebx, eax
mov dword [ebp - 0x18], 0
add esp, 4
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 4], 0
push 0x10000
push 0
push ebx
call fcn.00468890
mov eax, dword [esi]
add esp, 0xc
mov dword [ebp - 0x1c], 0
test eax, eax
je 0x44e086
test ebx, ebx
je 0x44e086
cmp dword [eax], 0xffffffff
je 0x44e086
push 0
lea ecx, [ebp - 0x1c]
push ecx
push 0x8000
push ebx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x44e086
mov esi, dword [ebp - 0x20]
mov ecx, 0x8000
xor ebx, ebx
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x2c], ecx
add esi, ecx
nop word [eax + eax]
cmp byte [edi + 0x9c], 0
jne 0x44e07c
lea edx, [ebp - 0x30]
mov dword [ebp - 0x30], 0
push edx
lea edx, [ebp - 0x24]
mov dword [ebp - 0x24], 0
push edx
push ecx
mov ecx, dword [ebp - 0x34]
lea eax, [esi + ebx]
push eax
call fcn.00465fc0
test al, al
je 0x44e06f
mov eax, dword [ebp - 0x24]
test eax, eax
jne 0x44e022
mov eax, dword [edi + 0xc0]
test eax, eax
je 0x44e011
push 0x3e8
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp byte [edi + 0x9c], 0
jne 0x44e07c
inc dword [ebp - 0x28]
mov eax, dword [ebp - 0x24]
jmp 0x44e02c
add ebx, eax
cmp ebx, 0x8000
je 0x44e03c
cmp dword [ebp - 0x28], 0xf
ja 0x44e065
mov ecx, dword [ebp - 0x2c]
sub ecx, eax
mov dword [ebp - 0x2c], ecx
jne 0x44dfc0
mov ebx, dword [ebp - 0x20]
mov edx, 0x7ffc
mov ecx, ebx
mov eax, dword [ecx]
cmp eax, dword [esi]
jne 0x44e05e
add ecx, 4
add esi, 4
sub edx, 4
jae 0x44e046
mov esi, 4
jmp 0x44e097
mov esi, 5
jmp 0x44e097
mov ebx, dword [ebp - 0x20]
mov esi, 3
jmp 0x44e097
mov eax, dword [ebp - 0x30]
mov esi, 3
mov ebx, dword [ebp - 0x20]
jmp 0x44e091
mov ebx, dword [ebp - 0x20]
mov esi, 2
jmp 0x44e097
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, 1
mov dword [edi + 0xb0], eax
mov dword [ebp - 4], 0xffffffff
test ebx, ebx
je 0x44e0ab
push ebx
call fcn.00466cf3
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00466a97
mov esp, ebp
pop ebp
ret 0xc
Function at 0x47471f
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004743df
Function at 0x4072a0
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.0040a7b4
test esi, esi
jne 0x4072d6
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.0040a93c
jmp 0x4072f4
call sub.KERNEL32.DLL_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00407180
mov edi, eax
test esi, esi
je 0x4072f4
cmp dword [ebx], 0
je 0x4072f4
dec esi
jmp 0x4072dd
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x4093fc
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.004098bc
mov byte [esp], al
cmp byte [esp], 0
jne 0x409585
test edi, edi
je 0x409585
mov byte [esp + 1], 0
test ebp, ebp
jle 0x4094c5
call sub.KERNEL32.DLL_GetTickCount
mov dword [esp + 4], eax
xor eax, eax
mov dword [esp + 0xc], eax
test ebp, ebp
jle 0x4094a0
cmp edi, 0xffffffff
je 0x409461
call sub.KERNEL32.DLL_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x409461
mov byte [esp], 0
jmp 0x409585
cmp dword [esi], 1
jg 0x4094a0
cmp dword [esi], 0
jne 0x409492
xor eax, eax
mov edx, 1
lock cmpxchg dword [esi], edx
test eax, eax
jne 0x409492
call sub.KERNEL32.DLL_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x409585
lea eax, [esp + 0xc]
call fcn.004090ac
dec ebp
test ebp, ebp
jg 0x409446
cmp edi, 0xffffffff
je 0x4094c5
call sub.KERNEL32.DLL_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x4094c3
mov byte [esp], 0
jmp 0x409585
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x40940a
lea edx, [ebx + 2]
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x4094c5
call sub.KERNEL32.DLL_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.00409600
mov edx, eax
mov ebx, dword [0x5118fc]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x409529
call sub.KERNEL32.DLL_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x409527
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x409529
xor edi, edi
cmp byte [esp], 0
je 0x40954f
mov ebx, dword [esi]
test bl, 1
jne 0x409565
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x40952f
mov byte [esp + 1], 1
jmp 0x409565
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x40954f
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x4094dc
cmp byte [esp], 0
je 0x409585
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 0x40a44c
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x51105c], 0
je 0x40a4b3
cmp word [0x511348], 0xd7b2
jne 0x40a475
cmp dword [0x511350], 0
jbe 0x40a475
mov eax, 0x511344
call dword [0x511360]
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, 0x40a4e0
call fcn.0040afb8
push eax
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle
push eax
call sub.KERNEL32.DLL_WriteFile
pop edx
ret
cmp byte [0x50d02e], 0
jne 0x40a4cf
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x40a674
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 [0x50d030], 0
je 0x40a69f
mov edx, edi
mov eax, esi
call dword [0x50d030]
mov ebx, eax
jmp 0x40a6b0
mov eax, 8
call fcn.00406eb8
mov ebx, eax
mov dword [ebx], esi
mov dword [ebx + 4], edi
mov byte [0x51105d], 1
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
mov eax, 0x40a63c
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 0x40a6e0
mov eax, ebx
call fcn.00406ed4
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 0xc
Function at 0x40da14
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 0x40db7b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.0040a7b4
cmp si, word [0x50da08]
jb 0x40daac
cmp si, word [0x50dc08]
ja 0x40daac
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x40daac
mov ebx, edi
add ebx, dword [ebp - 8]
shr ebx, 1
cmp si, word [ebx*8 + 0x50da08]
jae 0x40da86
mov edi, ebx
dec edi
jmp 0x40daa7
cmp si, word [ebx*8 + 0x50da08]
jbe 0x40da96
inc ebx
mov dword [ebp - 8], ebx
jmp 0x40daa7
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x50da0c]
call fcn.0040d930
jmp 0x40daac
cmp edi, dword [ebp - 8]
jae 0x40da70
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x40db5b
push 2
movzx eax, si
push eax
call sub.KERNEL32.DLL_IsValidLocale
test eax, eax
je 0x40db5b
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.0040b2a8
push dword [ebp - 0x160]
push 0x40db98
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.0040b2a8
push dword [ebp - 0x164]
push 0x40dba8
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.0040b2a8
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.0040b4e0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40db82
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.0040a814
pop eax
jmp eax
Function at 0x40dd30
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 0x40de36
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x513c14
call sub.KERNEL32.DLL_EnterCriticalSection
cmp bx, word [0x513c2c]
jne 0x40dd7c
mov eax, esi
mov edx, 0x513c2e
mov ecx, 0x55
call fcn.0040b2a8
push 0x513c14
call sub.KERNEL32.DLL_LeaveCriticalSection
jmp 0x40de1e
push 0x513c14
call sub.KERNEL32.DLL_LeaveCriticalSection
mov eax, esi
call fcn.0040a7b4
push 2
movzx eax, bx
push eax
call sub.KERNEL32.DLL_IsValidLocale
test eax, eax
je 0x40ddeb
cmp byte [0x513c10], 0
je 0x40ddb0
mov edx, esi
mov eax, ebx
call fcn.0040dc14
jmp 0x40ddeb
mov edx, esi
mov eax, ebx
call fcn.0040da14
call sub.KERNEL32.DLL_GetSystemDefaultUILanguage
cmp bx, ax
je 0x40ddeb
cmp dword [esi], 0
je 0x40ddd4
mov eax, esi
mov edx, 0x40de50
call fcn.0040b400
call sub.KERNEL32.DLL_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.0040da14
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.0040b400
push 0x513c14
call sub.KERNEL32.DLL_EnterCriticalSection
mov word [0x513c2c], bx
mov eax, dword [esi]
call fcn.0040b208
mov ecx, eax
mov eax, 0x513c2e
mov edx, 0xaa
call fcn.0040d890
push 0x513c14
call sub.KERNEL32.DLL_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40de3d
lea eax, [ebp - 4]
call fcn.0040a7b4
pop eax
jmp eax
Function at 0x40e068
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.0040a898
xor eax, eax
push ebp
push 0x40e291
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x40e0a8
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameW
jmp 0x40e0c2
mov eax, dword [ebp - 4]
call fcn.0040b208
mov ecx, eax
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.0040d890
cmp word [ebp - 0x21a], 0
je 0x40e279
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40e2a0
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40e191
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40e2a0
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40e191
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40e2dc
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40e191
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40e2dc
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40e191
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40e310
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40e191
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40e344
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x40e279
xor eax, eax
push ebp
push 0x40e272
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.0040de78
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 0x40e200
mov eax, dword [ebp - 0x10]
call fcn.00406eb8
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.0040b26c
jmp 0x40e24b
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x40e384
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x40e24b
mov eax, dword [ebp - 0x10]
call fcn.00406eb8
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x40e384
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.0040b26c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40e279
cmp dword [ebp - 8], 0
je 0x40e266
mov eax, dword [ebp - 8]
call fcn.00406ed4
mov eax, dword [ebp - 0xc]
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 0x40e298
lea eax, [ebp - 4]
call fcn.0040a7b4
pop eax
jmp eax
Function at 0x40e5a4
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.0040a898
xor eax, eax
push ebp
push 0x40e666
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.0040b2a8
mov ecx, dword [ebp - 0x10]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.0040b458
mov eax, dword [ebx]
call fcn.0040e44c
test al, al
jne 0x40e641
mov word [ebp - 8], 0
lea eax, [ebp - 0x14]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.0040b2a8
mov ecx, dword [ebp - 0x14]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.0040b458
mov eax, dword [ebx]
call fcn.0040e44c
test al, al
jne 0x40e641
mov eax, ebx
call fcn.0040a7b4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40e66d
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.0040a814
lea eax, [ebp - 4]
call fcn.0040a7b4
pop eax
jmp eax

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