joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401000
Capabilities:
Create thread
Inject thread

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 8], 3
jge 0x401010
mov eax, 1
pop ebp
ret
push esi
mov esi, dword [ebp + 0xc]
push edi
push dword [esi + 4]
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
mov esi, dword [esi + 8]
add esp, 4
push eax
push 0
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
cmp edi, 0xffffffff
jne 0x40103f
pop edi
or eax, eax
pop esi
pop ebp
ret
push ebx
push 4
push 0x3000
push 0x104
push 0
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov ebx, eax
mov eax, esi
mov dword [ebp + 8], ebx
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401060
push 0
sub eax, edx
inc eax
push eax
push esi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x4010bb
push 0
push 0
push ebx
push dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov ebx, eax
test ebx, ebx
jne 0x4010ca
lea ecx, [esi + 1]
nop dword [eax]
mov al, byte [esi]
inc esi
test al, al
jne 0x4010a0
sub esi, ecx
push 0x8000
lea eax, [esi + 1]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_VirtualFree]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
pop edi
or eax, 0xffffffff
pop esi
pop ebp
ret
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x4010d6
sub esi, ecx
push 0x8000
lea eax, [esi + 1]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_VirtualFree]
push ebx
call edi
pop ebx
pop edi
xor eax, eax
pop esi
pop ebp
ret
Function at 0x1000b197
Capabilities:
Parse pe header

Disassembly:
push esi
mov esi, ecx
test si, si
jne 0x1000b24c
mov eax, 0x5a4d
cmp word [esi], ax
jne 0x1000b24c
mov edx, dword [esi + 0x3c]
test dl, 3
jne 0x1000b24c
cmp dword [edx + esi], 0x4550
jne 0x1000b24c
cmp dword [edx + esi + 0x74], 6
jb 0x1000b24c
push ebx
mov ebx, dword [edx + esi + 0x50]
push edi
mov edi, dword [edx + esi + 0xa8]
lea eax, [ebx - 1]
lea ecx, [edi - 1]
cmp ecx, eax
jae 0x1000b24a
mov eax, dword [edx + esi + 0xac]
mov ecx, ebx
sub ecx, edi
cmp eax, ecx
ja 0x1000b24a
xor edx, edx
add edi, esi
push 0x1c
pop ecx
div ecx
mov edx, eax
test edx, edx
je 0x1000b24a
imul ecx, edx, 0x1c
add ecx, 0x14
add ecx, edi
lea ecx, [ecx - 0x1c]
dec edx
cmp dword [ecx - 8], 2
lea edi, [ecx - 0x14]
jne 0x1000b228
cmp dword [ecx], ebx
jae 0x1000b228
mov eax, ebx
sub eax, dword [ecx]
cmp dword [ecx - 4], eax
jbe 0x1000b22e
test edx, edx
jne 0x1000b20e
jmp 0x1000b24a
push 0x1c
push edi
call dword [sym.imp.kernel32.dll_VirtualLock]
test eax, eax
je 0x1000b24a
mov eax, dword [edi + 0x14]
push dword [edi + 0x10]
add eax, esi
push eax
call dword [sym.imp.kernel32.dll_VirtualLock]
pop edi
pop ebx
pop esi
ret

Function at 0x1000c446
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
pushal
call 0x1000c455
pop dword [ebp - 0xc]
mov eax, 0xff0b80ea
sub eax, 0xef0abc95
sub dword [ebp - 0xc], eax
push 0x40
push 0x1000
push 0x39be1
push 0
mov eax, 0x97361341
sub eax, 0x8734d2dd
add eax, dword [ebp - 0xc]
call dword [eax]
mov ecx, 0x4b11
mov edi, eax
mov ebx, 0x10018600
add ebx, dword [ebp - 0xc]
mov edx, 0xb0feffd2
sub edx, 0xcd955aa3
add dword [ebp - 8], ecx
mov esi, dword [ebx]
xor dword [ebp - 8], 0x25f09775
xor esi, edx
sub dword [ebp - 4], 0xa4c88376
mov dword [edi], esi
sub dword [ebp - 4], ebx
add edi, 4
add ebx, 0x5d3cb7a5
add ebx, 0xa2c3485f
loop 0x1000c4a8
add eax, 0x6ea34317
add eax, 0x915ddc00
mov ebx, eax
add eax, 5
mov ecx, 0x4235d606
sub ecx, 0x3235d606
add ecx, dword [ebp - 0xc]
call ebx
leave
ret
Function at 0x401190
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
mov eax, dword [0x43d4e0]
test eax, eax
push esi
push edi
je 0x4011eb
mov eax, dword [esp + 0x10]
mov edx, dword [0x43c054]
mov ecx, dword [0x43c058]
lea esi, [edx + eax]
cmp esi, ecx
jl 0x4011b6
sub ecx, edx
mov eax, ecx
test eax, eax
jle 0x40125f
mov esi, dword [0x43c050]
mov edi, dword [esp + 0xc]
add esi, edx
mov ecx, eax
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [0x43c054]
add ecx, eax
pop edi
mov dword [0x43c054], ecx
pop esi
ret
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov esi, dword [esp + 0xc]
push eax
push ecx
push 1
push esi
call fcn.004235b8
mov edi, eax
mov eax, dword [0x43d4d0]
add esp, 0x10
test eax, eax
je 0x40125d
test edi, edi
jle 0x40125d
mov edx, dword [0x43d33c]
mov eax, dword [0x43d320]
lea ecx, [eax + edx]
mov edx, dword [0x43d32c]
mov eax, dword [0x43d328]
add eax, edx
and ecx, 0xff
and eax, 0xff
test edi, edi
jle 0x40125d
mov dl, byte [0x43d334]
push ebx
push ebp
mov ebp, edi
mov bl, byte [esi]
xor bl, cl
sub bl, al
add dl, bl
mov byte [esi], dl
inc esi
dec ebp
jne 0x401247
pop ebp
mov byte [0x43d334], dl
pop ebx
mov eax, edi
pop edi
pop esi
ret
Function at 0x425e78
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x434278
call fcn.0042e2e0
mov edi, 0x94
mov eax, edi
call fcn.00424ea0
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [0x43310c]
mov ecx, dword [esi + 0x10]
mov dword [0x43e478], ecx
mov eax, dword [esi + 4]
mov dword [0x43e484], eax
mov edx, dword [esi + 8]
mov dword [0x43e488], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x43e47c], esi
cmp ecx, 2
je 0x425ed8
or esi, 0x8000
mov dword [0x43e47c], esi
shl eax, 8
add eax, edx
mov dword [0x43e480], eax
xor esi, esi
push esi
mov edi, dword [0x433114]
call edi
cmp word [eax], 0x5a4d
jne 0x425f13
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x425f13
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x425f2b
cmp eax, 0x20b
je 0x425f18
mov dword [ebp - 0x1c], esi
jmp 0x425f3f
cmp dword [ecx + 0x84], 0xe
jbe 0x425f13
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x425f39
cmp dword [ecx + 0x74], 0xe
jbe 0x425f13
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push esi
call fcn.004270a7
pop ecx
test eax, eax
jne 0x425f6b
cmp dword [0x43e468], 1
jne 0x425f58
call fcn.0042e5ac
push 0x1c
call fcn.0042e435
push 0xff
call fcn.00426054
pop ecx
pop ecx
call fcn.0042ebaa
mov dword [ebp - 4], esi
call fcn.004285d4
test eax, eax
jge 0x425f84
push 0x1b
call fcn.00425e53
pop ecx
call dword [0x4331c4]
mov dword [0x43fbd4], eax
call fcn.0042ea88
mov dword [0x43e460], eax
call fcn.0042e9e6
test eax, eax
jge 0x425faa
push 8
call fcn.00425e53
pop ecx
call fcn.0042e7b3
test eax, eax
jge 0x425fbb
push 9
call fcn.00425e53
pop ecx
push 1
call fcn.00426084
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x425fd1
push eax
call fcn.00425e53
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [0x433110]
call fcn.0042e756
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x425ff2
movzx eax, word [ebp - 0x40]
jmp 0x425ff5
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.0041d050
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x426013
push edi
call fcn.004261af
call fcn.004261d1
jmp 0x426045
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.0042e31b
ret
Function at 0x430f31
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x430f5f
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x430f66
cmp ebx, dword [eax + 4]
jae 0x430f66
xor eax, eax
jmp 0x431156
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x430f77
xor eax, eax
inc eax
jmp 0x431155
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x430f8d
cmp ecx, edx
jae 0x4310d2
cmp dword [eax + 4], 0
je 0x430f96
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x430f7e
cmp dword [ebp + 8], 0
je 0x430fb8
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x4310d2
cmp eax, esi
jae 0x4310d2
mov eax, dword [0x43e6f0]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x430fdd
cmp dword [esi*4 + 0x43e6f8], edi
je 0x4310d6
inc esi
cmp esi, eax
jl 0x430fcb
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [0x433090]
test eax, eax
je 0x431152
cmp dword [ebp - 8], 0x1000000
jne 0x431152
test byte [ebp - 0xc], 0xcc
je 0x43105b
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x431152
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x431152
cmp word [eax + 0x18], 0x10b
jne 0x431152
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x431152
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x43105b
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x43105b
test byte [ecx + 0x27], 0x80
jne 0x4310d2
push 1
push 0x43e738
call dword [0x4331e4]
test eax, eax
jne 0x430f6f
mov ecx, dword [0x43e6f0]
test ecx, ecx
mov edx, ecx
jle 0x43108f
lea eax, [ecx*4 + 0x43e6f4]
cmp dword [eax], edi
je 0x43108f
dec edx
sub eax, 4
test edx, edx
jg 0x431083
test edx, edx
jne 0x4310c0
push 0xf
pop ebx
cmp ecx, ebx
jg 0x43109c
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x4310b4
lea eax, [edx*4 + 0x43e6f8]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x4310a2
cmp ecx, 0x10
jge 0x4310c0
inc ecx
mov dword [0x43e6f0], ecx
push 0
push 0x43e738
call dword [0x4331e4]
jmp 0x430f6f
xor eax, eax
jmp 0x431155
test esi, esi
jle 0x430f6f
mov ebx, dword [0x4331e4]
push 1
push 0x43e738
call ebx
test eax, eax
jne 0x430f6f
cmp dword [esi*4 + 0x43e6f8], edi
je 0x43112c
mov eax, dword [0x43e6f0]
lea esi, [eax - 1]
test esi, esi
jl 0x43111a
cmp dword [esi*4 + 0x43e6f8], edi
je 0x431116
dec esi
jns 0x43110a
test esi, esi
jge 0x43112a
cmp eax, 0x10
jge 0x431125
inc eax
mov dword [0x43e6f0], eax
lea esi, [eax - 1]
jmp 0x43112c
je 0x431144
xor ecx, ecx
test esi, esi
jl 0x431144
lea eax, [ecx*4 + 0x43e6f8]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x431132
push 0
push 0x43e738
call ebx
jmp 0x430f6f
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x407514
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.0040aa94
test esi, esi
jne 0x40754a
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.0040ac1c
jmp 0x407568
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004073f4
mov edi, eax
test esi, esi
je 0x407568
cmp dword [ebx], 0
je 0x407568
dec esi
jmp 0x407551
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x4096a0
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.00409b60
mov byte [esp], al
cmp byte [esp], 0
jne 0x409829
test edi, edi
je 0x409829
mov byte [esp + 1], 0
test ebp, ebp
jle 0x409769
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
xor eax, eax
mov dword [esp + 0xc], eax
test ebp, ebp
jle 0x409744
cmp edi, 0xffffffff
je 0x409705
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x409705
mov byte [esp], 0
jmp 0x409829
cmp dword [esi], 1
jg 0x409744
cmp dword [esi], 0
jne 0x409736
xor eax, eax
mov edx, 1
lock cmpxchg dword [esi], edx
test eax, eax
jne 0x409736
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x409829
lea eax, [esp + 0xc]
call fcn.00409350
dec ebp
test ebp, ebp
jg 0x4096ea
cmp edi, 0xffffffff
je 0x409769
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x409767
mov byte [esp], 0
jmp 0x409829
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x4096ae
lea edx, [ebx + 2]
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x409769
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.004098a4
mov edx, eax
mov ebx, dword [0x7c68f8]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x4097cd
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x4097cb
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x4097cd
xor edi, edi
cmp byte [esp], 0
je 0x4097f3
mov ebx, dword [esi]
test bl, 1
jne 0x409809
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x4097d3
mov byte [esp + 1], 1
jmp 0x409809
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x4097f3
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x409780
cmp byte [esp], 0
je 0x409829
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 0x40a6f0
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x7c6058], 0
je 0x40a757
cmp word [0x7c6344], 0xd7b2
jne 0x40a719
cmp dword [0x7c634c], 0
jbe 0x40a719
mov eax, 0x7c6340
call dword [0x7c635c]
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, 0x40a784
call fcn.0040b4a8
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x79e032], 0
jne 0x40a773
push 0
push 0x79e9d3
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA_1
pop edx
ret

Function at 0x40a954
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 [0x79e034], 0
je 0x40a97f
mov edx, edi
mov eax, esi
call dword [0x79e034]
mov ebx, eax
jmp 0x40a990
mov eax, 8
call fcn.004070bc
mov ebx, eax
mov dword [ebx], esi
mov dword [ebx + 4], edi
mov byte [0x7c6059], 1
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
mov eax, 0x40a91c
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 0x40a9c0
mov eax, ebx
call fcn.004070d8
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 0xc
Function at 0x40e27c
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 0x40e3e3
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.0040aa94
cmp si, word [0x79ea10]
jb 0x40e314
cmp si, word [0x79ec10]
ja 0x40e314
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x40e314
mov ebx, edi
add ebx, dword [ebp - 8]
shr ebx, 1
cmp si, word [ebx*8 + 0x79ea10]
jae 0x40e2ee
mov edi, ebx
dec edi
jmp 0x40e30f
cmp si, word [ebx*8 + 0x79ea10]
jbe 0x40e2fe
inc ebx
mov dword [ebp - 8], ebx
jmp 0x40e30f
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x79ea14]
call fcn.0040e198
jmp 0x40e314
cmp edi, dword [ebp - 8]
jae 0x40e2d8
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x40e3c3
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40e3c3
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.0040b918
push dword [ebp - 0x160]
push 0x40e400
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.0040b918
push dword [ebp - 0x164]
push 0x40e410
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.0040b918
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.0040bb50
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40e3ea
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.0040aaf4
pop eax
jmp eax
Function at 0x40e598
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 0x40e69e
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x7c8c10
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x7c8c28]
jne 0x40e5e4
mov eax, esi
mov edx, 0x7c8c2a
mov ecx, 0x55
call fcn.0040b918
push 0x7c8c10
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x40e686
push 0x7c8c10
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
call fcn.0040aa94
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40e653
cmp byte [0x7c8c0c], 0
je 0x40e618
mov edx, esi
mov eax, ebx
call fcn.0040e47c
jmp 0x40e653
mov edx, esi
mov eax, ebx
call fcn.0040e27c
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x40e653
cmp dword [esi], 0
je 0x40e63c
mov eax, esi
mov edx, 0x40e6b8
call fcn.0040ba70
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.0040e27c
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.0040ba70
push 0x7c8c10
call sub.kernel32.dll_EnterCriticalSection
mov word [0x7c8c28], bx
mov eax, dword [esi]
call fcn.0040b860
mov ecx, eax
mov eax, 0x7c8c2a
mov edx, 0xaa
call fcn.0040e0f8
push 0x7c8c10
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40e6a5
lea eax, [ebp - 4]
call fcn.0040aa94
pop eax
jmp eax
Function at 0x40e8d0
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.0040ab78
xor eax, eax
push ebp
push 0x40eaf9
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x40e910
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x40e92a
mov eax, dword [ebp - 4]
call fcn.0040b860
mov ecx, eax
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.0040e0f8
cmp word [ebp - 0x21a], 0
je 0x40eae1
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40eb08
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40e9f9
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40eb08
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40e9f9
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40eb44
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40e9f9
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40eb44
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40e9f9
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40eb78
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40e9f9
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40ebac
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x40eae1
xor eax, eax
push ebp
push 0x40eada
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.0040e6e0
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 0x40ea68
mov eax, dword [ebp - 0x10]
call fcn.004070bc
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.0040b8c4
jmp 0x40eab3
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x40ebec
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x40eab3
mov eax, dword [ebp - 0x10]
call fcn.004070bc
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x40ebec
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.0040b8c4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40eae1
cmp dword [ebp - 8], 0
je 0x40eace
mov eax, dword [ebp - 8]
call fcn.004070d8
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 0x40eb00
lea eax, [ebp - 4]
call fcn.0040aa94
pop eax
jmp eax
Function at 0x40ee0c
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.0040ab78
xor eax, eax
push ebp
push 0x40eece
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.0040b918
mov ecx, dword [ebp - 0x10]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.0040bac8
mov eax, dword [ebx]
call fcn.0040ecb4
test al, al
jne 0x40eea9
mov word [ebp - 8], 0
lea eax, [ebp - 0x14]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.0040b918
mov ecx, dword [ebp - 0x14]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.0040bac8
mov eax, dword [ebx]
call fcn.0040ecb4
test al, al
jne 0x40eea9
mov eax, ebx
call fcn.0040aa94
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40eed5
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.0040aaf4
lea eax, [ebp - 4]
call fcn.0040aa94
pop eax
jmp eax

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