joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140012ad0
Capabilities:
Allocate thread local storage

Disassembly:
sub rsp, 0x28
xor r9d, r9d
xor edx, edx
xor ecx, ecx
mov dword [0x1409efbe0], 0xffffffff
mov r8d, 0xffff
call qword [sym.imp.KERNEL32.dll_CreateSemaphoreW]
mov qword [0x1409efbe8], rax
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
add dword [rbx + 0x1d74fff8], eax
lea rdx, [0x1400129e0]
mov ecx, eax
mov dword [0x1409efbd8], eax
call fcn.14001a3f0
test eax, eax
jne 0x140012b28
add rsp, 0x28
ret
call qword [0x1409f12cc]
jmp 0x140012b17
call sub.msvcrt.dll_abort
nop
nop
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
mov rsi, qword [0x1409e9400]
mov r11d, dword [rsi]
mov rbx, rcx
test r11d, r11d
jne 0x140012b68
mov rax, qword [rcx + 0x10]
test rax, rax
je 0x140012bd0
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
mov r12, qword [rcx + 0x10]
test r12, r12
je 0x140012be0
mov esi, dword [0x1409efbd8]
mov r13, qword [0x1409f12cc]
call r13
mov edi, eax
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, edi
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_SetLastError]
test rsi, rsi
je 0x140012c50
mov rbp, qword [rsi]
cmp rbp, r12
jb 0x140012c98
sub r12, 1
mov rax, qword [rsi + r12*8 + 8]
test rax, rax
jne 0x140012b57
mov rcx, rbx
call fcn.140012a30
mov qword [rsi + r12*8 + 8], rax
jmp 0x140012b57
call fcn.140012a30
mov qword [rbx + 0x10], rax
jmp 0x140012b57
mov r10d, dword [rsi]
test r10d, r10d
je 0x140012cfa
mov r9d, dword [0x1409e40e0]
test r9d, r9d
je 0x140012d28
lock add dword [0x1409efbe0], 1
jne 0x140012d5c
mov r12, qword [rbx + 0x10]
test r12, r12
je 0x140012d07
mov eax, dword [rsi]
test eax, eax
je 0x140012b71
lock sub dword [0x1409efbe0], 1
js 0x140012b71
mov rcx, qword [0x1409efbe8]
xor r8d, r8d
mov edx, 1
call qword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
jmp 0x140012b71
lea rcx, [r12 + 0x21]
mov edx, 8
call sub.msvcrt.dll_calloc
lea rdi, [r12 + 0x20]
test rax, rax
mov rsi, rax
je 0x140012d83
mov qword [rax], rdi
mov ecx, dword [0x1409efbd8]
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x140012bab
call r13
jmp 0x140012bab
lea rdi, [rbp + rbp]
mov rcx, rsi
lea rax, [r12 + 0x20]
cmp rdi, r12
cmovb rdi, rax
lea rdx, [rdi*8 + 8]
call sub.msvcrt.dll_realloc
test rax, rax
mov rsi, rax
je 0x140012d83
mov qword [rax], rdi
lea rcx, [rax + rbp*8 + 8]
sub rdi, rbp
xor edx, edx
lea r8, [rdi*8]
call sub.msvcrt.dll_memset
jmp 0x140012c73
call fcn.140012ad0
mov dword [0x1409e40e0], 1
mov edx, dword [rsi]
test edx, edx
jne 0x140012bfc
mov r12, qword [rbx + 0x10]
test r12, r12
jne 0x140012b71
mov rax, qword [0x1409efbd0]
lea r12, [rax + 1]
mov qword [0x1409efbd0], r12
mov qword [rbx + 0x10], r12
jmp 0x140012c17
lock add dword [0x1409e40e4], 1
je 0x140012ce1
mov r8d, dword [0x1409e40e0]
lea rdi, [0x1409e40e0]
mov rbp, qword [0x1409f133c]
test r8d, r8d
jne 0x140012cf0
nop dword [rax]
xor ecx, ecx
call rbp
mov ecx, dword [rdi]
test ecx, ecx
je 0x140012d50
jmp 0x140012cf0
mov rcx, qword [0x1409efbe8]
mov edx, 0xffffffff
invalid
invalid
invalid
pop rcx
invalid
Function at 0x140012b30
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
sub rsp, 0x28
xor r9d, r9d
xor edx, edx
xor ecx, ecx
mov dword [0x1409efbe0], 0xffffffff
mov r8d, 0xffff
call qword [sym.imp.KERNEL32.dll_CreateSemaphoreW]
mov qword [0x1409efbe8], rax
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
add dword [rbx + 0x1d74fff8], eax
lea rdx, [0x1400129e0]
mov ecx, eax
mov dword [0x1409efbd8], eax
call fcn.14001a3f0
test eax, eax
jne 0x140012b28
add rsp, 0x28
ret
call qword [0x1409f12cc]
jmp 0x140012b17
call sub.msvcrt.dll_abort
nop
nop
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
mov rsi, qword [0x1409e9400]
mov r11d, dword [rsi]
mov rbx, rcx
test r11d, r11d
jne 0x140012b68
mov rax, qword [rcx + 0x10]
test rax, rax
je 0x140012bd0
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
mov r12, qword [rcx + 0x10]
test r12, r12
je 0x140012be0
mov esi, dword [0x1409efbd8]
mov r13, qword [0x1409f12cc]
call r13
mov edi, eax
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, edi
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_SetLastError]
test rsi, rsi
je 0x140012c50
mov rbp, qword [rsi]
cmp rbp, r12
jb 0x140012c98
sub r12, 1
mov rax, qword [rsi + r12*8 + 8]
test rax, rax
jne 0x140012b57
mov rcx, rbx
call fcn.140012a30
mov qword [rsi + r12*8 + 8], rax
jmp 0x140012b57
call fcn.140012a30
mov qword [rbx + 0x10], rax
jmp 0x140012b57
mov r10d, dword [rsi]
test r10d, r10d
je 0x140012cfa
mov r9d, dword [0x1409e40e0]
test r9d, r9d
je 0x140012d28
lock add dword [0x1409efbe0], 1
jne 0x140012d5c
mov r12, qword [rbx + 0x10]
test r12, r12
je 0x140012d07
mov eax, dword [rsi]
test eax, eax
je 0x140012b71
lock sub dword [0x1409efbe0], 1
js 0x140012b71
mov rcx, qword [0x1409efbe8]
xor r8d, r8d
mov edx, 1
call qword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
jmp 0x140012b71
lea rcx, [r12 + 0x21]
mov edx, 8
call sub.msvcrt.dll_calloc
lea rdi, [r12 + 0x20]
test rax, rax
mov rsi, rax
je 0x140012d83
mov qword [rax], rdi
mov ecx, dword [0x1409efbd8]
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x140012bab
call r13
jmp 0x140012bab
lea rdi, [rbp + rbp]
mov rcx, rsi
lea rax, [r12 + 0x20]
cmp rdi, r12
cmovb rdi, rax
lea rdx, [rdi*8 + 8]
call sub.msvcrt.dll_realloc
test rax, rax
mov rsi, rax
je 0x140012d83
mov qword [rax], rdi
lea rcx, [rax + rbp*8 + 8]
sub rdi, rbp
xor edx, edx
lea r8, [rdi*8]
call sub.msvcrt.dll_memset
jmp 0x140012c73
call fcn.140012ad0
mov dword [0x1409e40e0], 1
mov edx, dword [rsi]
test edx, edx
jne 0x140012bfc
mov r12, qword [rbx + 0x10]
test r12, r12
jne 0x140012b71
mov rax, qword [0x1409efbd0]
lea r12, [rax + 1]
mov qword [0x1409efbd0], r12
mov qword [rbx + 0x10], r12
jmp 0x140012c17
lock add dword [0x1409e40e4], 1
je 0x140012ce1
mov r8d, dword [0x1409e40e0]
lea rdi, [0x1409e40e0]
mov rbp, qword [0x1409f133c]
test r8d, r8d
jne 0x140012cf0
nop dword [rax]
xor ecx, ecx
call rbp
mov ecx, dword [rdi]
test ecx, ecx
je 0x140012d50
jmp 0x140012cf0
mov rcx, qword [0x1409efbe8]
mov edx, 0xffffffff
invalid
invalid
invalid
pop rcx
invalid
Function at 0x14001c1f0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
lea rcx, [0x1409e4240]
jmp 0x140012b30

Function at 0x14001c200
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
lea rcx, [0x1409e4240]
jmp 0x140012b30
Function at 0x140003910
Capabilities:
Parse pe header

Disassembly:
push rbx
sub rsp, 0x40
mov qword [rsp + 0x58], rdx
mov rbx, r8
xor edx, edx
test rcx, rcx
je 0x140003944
cmp word [rcx], 0x5a4d
jne 0x140003944
movsxd rax, dword [rcx + 0x3c]
cmp eax, 0x400
jg 0x140003944
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140003944
mov edx, dword [rcx + 0x28]
add rdx, qword [rsp + 0x58]
mov rcx, rbx
call fcn.140003850
test eax, eax
jne 0x140003960
xor eax, eax
add rsp, 0x40
pop rbx
ret
mov rcx, rbx
call fcn.1400038c0
test rax, rax
je 0x140003955
lea rdx, [rax + 0x10]
lea rax, [rsp + 0x38]
mov rcx, qword [rbx]
mov r9d, 8
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x58]
mov qword [rsp + 0x38], 0
call fcn.14000410c
not eax
shr eax, 0x1f
add rsp, 0x40
pop rbx
ret

Function at 0x140004010
Capabilities:
Execute syscall

Disassembly:
pop rax
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
sub rsp, 0x28
mov rcx, r10
call fcn.140003fb0
add rsp, 0x28
mov rcx, qword [rsp + 8]
mov rdx, qword [rsp + 0x10]
mov r8, qword [rsp + 0x18]
mov r9, qword [rsp + 0x20]
mov r10, rcx
syscall
ret

Function at 0x140004464
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
mov rax, qword [0x14000d9b8]
xor ebx, ebx
add rax, 0x18
mov r12, rcx
mov ecx, dword [0x14000d9b4]
mov rsi, rdx
mov rdi, r8
cmp ebx, ecx
jge 0x1400044b2
mov rdx, qword [rax]
cmp r12, rdx
jb 0x1400044aa
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x140004599
inc ebx
add rax, 0x28
jmp 0x14000448a
mov rcx, r12
call fcn.140004c91
mov rbp, rax
test rax, rax
jne 0x1400044d1
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call fcn.140004400
movsxd rbx, ebx
mov rax, qword [0x14000d9b8]
xor edx, edx
imul rbx, rbx, 0x28
add rax, rbx
mov dword [rax], edx
mov qword [rax + 0x20], rbp
call fcn.140004d3f
mov edx, dword [rbp + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x14000d9b8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
jne 0x140004533
mov rax, qword [0x14000d9b8]
mov edx, dword [rbp + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140004400
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x140004593
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140004593
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x14000d9b8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140004593
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140004400
inc dword [0x14000d9b4]
mov ecx, edi
mov rdi, r12
rep movsb byte [rdi], byte [rsi]
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
Function at 0x1400049c0
Capabilities:
Get thread local storage value

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
lea rdi, [0x14000da20]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14000da00]
test rbx, rbx
je 0x140004a0c
mov ecx, dword [rbx]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
test rsi, rsi
je 0x140004a06
test eax, eax
jne 0x140004a06
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
jmp 0x1400049de
mov rcx, rdi
add rsp, 0x20
pop rbx
pop rsi
pop rdi
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x140004bc0
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x140004be3
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
jne 0x140004be3
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret

Function at 0x140004be4
Capabilities:
Enumerate pe sections

Disassembly:
xor r8d, r8d
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
movzx r9d, word [rcx + 6]
lea rax, [rcx + rax + 0x18]
cmp r8d, r9d
jae 0x140004c1e
mov r10d, dword [rax + 0xc]
mov rcx, r10
cmp rdx, r10
jb 0x140004c15
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x140004c20
inc r8d
add rax, 0x28
jmp 0x140004bfc
xor eax, eax
ret

Function at 0x140004c91
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r9, qword [0x140009b90]
mov r8, rcx
mov rcx, r9
call fcn.140004bc0
test eax, eax
je 0x140004cbd
mov rdx, r8
mov rcx, r9
sub rdx, r9
add rsp, 0x28
jmp fcn.140004be4
xor eax, eax
add rsp, 0x28
ret
Function at 0x408ae0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push rbp
push r14
push r13
push rdi
push rsi
push rbx
sub rsp, 0x48
mov rbp, rsp
mov qword [rbp + 0x28], rcx
mov ebx, edx
mov rax, qword [rbp + 0x28]
mov r13d, dword [rax + 0x18]
mov rcx, qword [rbp + 0x28]
call fcn.00408e30
mov esi, eax
test sil, sil
jne 0x408ca2
test ebx, ebx
je 0x408ca2
xor rdi, rdi
test r13d, r13d
jle 0x408bc7
call sub.kernel32.dll_GetTickCount
mov r14d, eax
mov dword [rbp + 0x3c], 0
test r13d, r13d
jle 0x408ba6
cmp ebx, 0xffffffff
je 0x408b53
call sub.kernel32.dll_GetTickCount
sub eax, r14d
cmp eax, ebx
jb 0x408b53
xor rsi, rsi
jmp 0x408ca2
mov rax, qword [rbp + 0x28]
cmp dword [rax], 1
jg 0x408ba6
mov rax, qword [rbp + 0x28]
cmp dword [rax], 0
jne 0x408b94
xor eax, eax
mov ecx, 1
mov rdx, qword [rbp + 0x28]
lock cmpxchg dword [rdx], ecx
test eax, eax
jne 0x408b94
call sub.kernel32.dll_GetCurrentThreadId
mov rcx, qword [rbp + 0x28]
mov dword [rcx + 8], eax
mov dword [rcx + 4], 1
mov sil, 1
jmp 0x408ca2
lea rcx, [rbp + 0x3c]
call fcn.004087b0
sub r13d, 1
test r13d, r13d
jg 0x408b3a
nop
cmp ebx, 0xffffffff
je 0x408bc7
call sub.kernel32.dll_GetTickCount
mov ecx, eax
sub ecx, r14d
cmp ecx, ebx
jb 0x408bc2
xor rsi, rsi
jmp 0x408ca2
sub eax, r14d
sub ebx, eax
mov rax, qword [rbp + 0x28]
mov ecx, dword [rax]
test ecx, ecx
je 0x408afd
mov edx, ecx
add edx, 2
mov eax, ecx
mov r8, qword [rbp + 0x28]
lock cmpxchg dword [r8], edx
cmp eax, ecx
jne 0x408bc7
nop
call sub.kernel32.dll_GetTickCount
mov r14d, eax
mov rcx, qword [rbp + 0x28]
call fcn.00408d50
xor rcx, rcx
mov rdx, rax
mov r8d, ebx
mov rax, qword [0x0048b990]
call qword [rax + 0x20]
test eax, eax
sete sil
cmp ebx, 0xffffffff
je 0x408c31
call sub.kernel32.dll_GetTickCount
mov ecx, eax
sub ecx, r14d
cmp ecx, ebx
jae 0x408c2e
sub eax, r14d
sub ebx, eax
jmp 0x408c31
xor rbx, rbx
test sil, sil
je 0x408c63
mov rax, qword [rbp + 0x28]
mov ecx, dword [rax]
mov eax, ecx
test eax, 1
jne 0x408c60
mov edx, ecx
sub edx, 2
or edx, 1
mov eax, ecx
mov r8, qword [rbp + 0x28]
lock cmpxchg dword [r8], edx
cmp eax, ecx
jne 0x408c36
mov dil, 1
nop
jmp 0x408c80
mov rax, qword [rbp + 0x28]
mov ecx, dword [rax]
mov edx, ecx
sub edx, 2
mov eax, ecx
mov r8, qword [rbp + 0x28]
lock cmpxchg dword [r8], edx
cmp eax, ecx
jne 0x408c63
mov dil, 1
test dil, dil
je 0x408bea
nop
test sil, sil
je 0x408ca2
call sub.kernel32.dll_GetCurrentThreadId
mov rcx, qword [rbp + 0x28]
mov dword [rcx + 8], eax
mov dword [rcx + 4], 1
mov eax, esi
lea rsp, [rbp + 0x48]
pop rbx
pop rsi
pop rdi
pop r13
pop r14
pop rbp
ret
Function at 0x40a630
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x40
cmp byte [0x0048b098], 0
je 0x40a6ce
cmp word [0x0048b3a8], 0xd7b2
jne 0x40a663
cmp dword [0x0048b3b0], 0
jbe 0x40a663
lea rcx, [0x0048b3a0]
call qword [0x0048b3c8]
mov ecx, 0xfffffff5
call sub.kernel32.dll_GetStdHandle
mov rcx, rax
lea rdx, [0x0047b884]
mov r8d, 0x25
lea r9, [rsp + 0x3c]
mov qword [rsp + 0x20], 0
call sub.kernel32.dll_WriteFile
mov ecx, 0xfffffff5
call sub.kernel32.dll_GetStdHandle
mov rbx, rax
lea rcx, [0x0040a704]
call fcn.0040b800
mov rcx, rbx
mov rdx, rax
mov r8d, 2
lea r9, [rsp + 0x3c]
mov qword [rsp + 0x20], 0
call sub.kernel32.dll_WriteFile
jmp 0x40a6f0
cmp byte [0x0047a052], 0
jne 0x40a6f0
xor rcx, rcx
lea rdx, [0x0047b884]
lea r8, [0x0047b794]
xor r9, r9
call sub.user32.dll_MessageBoxA
add rsp, 0x40
pop rbx
ret

Function at 0x40d8b0
Capabilities:
Check os version

Disassembly:
sub rsp, 0x28
lea rcx, [0x0048fc80]
call sub.kernel32.dll_InitializeCriticalSection
mov word [0x0048fca8], 0x7f
call sub.kernel32.dll_GetVersion
and eax, 0xff
cmp eax, 6
setae al
mov byte [0x0048fc78], al
cmp byte [0x0048fc78], 0
je 0x40d94f
lea rcx, [0x0040d954]
call sub.kernel32.dll_GetModuleHandleW
mov rcx, rax
lea rdx, [0x0040d96e]
call sub.kernel32.dll_GetProcAddress
mov qword [0x0048fc60], rax
lea rcx, [0x0040d954]
call sub.kernel32.dll_GetModuleHandleW
mov rcx, rax
lea rdx, [0x0040d98c]
call sub.kernel32.dll_GetProcAddress
mov qword [0x0048fc68], rax
lea rcx, [0x0040d954]
call sub.kernel32.dll_GetModuleHandleW
mov rcx, rax
lea rdx, [0x0040d9aa]
call sub.kernel32.dll_GetProcAddress
mov qword [0x0048fc70], rax
add rsp, 0x28
ret
Function at 0x40dc20
Capabilities:
Get geographical location

Disassembly:
push rbp
sub rsp, 0x1d0
mov rbp, rsp
mov qword [rbp + 0x50], rcx
mov qword [rbp + 0x40], rdx
mov word [rbp + 0x4e], r8w
mov qword [rbp + 0x68], 0
mov qword [rbp + 0x60], 0
mov qword [rbp + 0x58], 0
nop
mov rcx, qword [rbp + 0x40]
call fcn.0040aae0
movzx rax, word [rbp + 0x4e]
cmp word [0x0047be80], ax
ja 0x40dd08
movzx rax, word [rbp + 0x4e]
cmp ax, word [0x0047c280]
mov word [rbp + 0x4e], ax
ja 0x40dd08
mov ecx, 0x40
xor r8, r8
cmp ecx, r8d
jb 0x40dd07
mov eax, ecx
add eax, r8d
mov r9d, 2
xor edx, edx
div r9d
lea rdx, [0x0047be80]
mov r9d, eax
add r9, r9
movzx r10, word [rbp + 0x4e]
cmp word [rdx + r9*8], r10w
jbe 0x40dcc1
mov ecx, eax
sub ecx, 1
jmp 0x40dd02
lea rdx, [0x0047be80]
mov r8d, eax
add r8, r8
movzx r9, word [rbp + 0x4e]
cmp word [rdx + r8*8], r9w
jae 0x40dce3
mov r8d, eax
add r8d, 1
jmp 0x40dd02
mov rcx, qword [rbp + 0x50]
mov rdx, qword [rbp + 0x40]
lea r8, [0x0047be88]
mov eax, eax
add rax, rax
mov r8, qword [r8 + rax*8]
call fcn.0040dac0
jmp 0x40dd07
cmp ecx, r8d
jae 0x40dc90
nop
mov rax, qword [rbp + 0x40]
cmp qword [rax], 0
jne 0x40ddea
movzx rcx, word [rbp + 0x4e]
movzx ecx, cx
mov edx, 2
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40ddea
movzx rcx, word [rbp + 0x4e]
movzx ecx, cx
mov edx, 0x59
lea r8, [rbp + 0x126]
mov r9d, 0x55
call sub.kernel32.dll_GetLocaleInfoW
movzx rcx, word [rbp + 0x4e]
movzx ecx, cx
mov edx, 0x5a
lea r8, [rbp + 0x7c]
mov r9d, 0x55
call sub.kernel32.dll_GetLocaleInfoW
lea rcx, [rbp + 0x68]
lea rdx, [rbp + 0x126]
mov r8d, 0x55
call fcn.0040bea0
lea rcx, [rbp + 0x60]
lea rdx, [rbp + 0x7c]
mov r8d, 0x55
call fcn.0040bea0
lea rcx, [rbp + 0x58]
lea rdx, [rbp + 0x126]
mov r8d, 0x55
call fcn.0040bea0
mov rcx, qword [rbp + 0x40]
mov edx, 5
mov r8, qword [rbp + 0x68]
lea r9, [0x0040de44]
mov rax, qword [rbp + 0x60]
mov qword [rsp + 0x20], rax
lea rax, [0x0040de54]
mov qword [rsp + 0x28], rax
mov rax, qword [rbp + 0x58]
mov qword [rsp + 0x30], rax
call fcn.0040c290
nop
lea rcx, [rbp + 0x58]
mov edx, 3
call fcn.0040abc0
mov rax, qword [rbp + 0x40]
lea rsp, [rbp + 0x1d0]
pop rbp
ret
Function at 0x40e060
Capabilities:
Identify system language via api

Disassembly:
push rbp
sub rsp, 0x50
mov rbp, rsp
mov qword [rbp + 0x28], rcx
mov word [rbp + 0x36], dx
mov qword [rbp + 0x38], 0
mov qword [rbp + 0x40], 0
mov qword [rbp + 0x48], 0
nop
lea rcx, [0x0048fc80]
call sub.kernel32.dll_EnterCriticalSection
movzx rax, word [rbp + 0x36]
cmp word [0x0048fca8], ax
jne 0x40e0cb
mov rcx, qword [rbp + 0x28]
lea rdx, [0x0048fcaa]
mov r8d, 0x55
call fcn.0040bea0
lea rcx, [0x0048fc80]
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x40e1d6
lea rcx, [0x0048fc80]
call sub.kernel32.dll_LeaveCriticalSection
mov rcx, qword [rbp + 0x28]
call fcn.0040aae0
movzx rcx, word [rbp + 0x36]
movzx ecx, cx
mov edx, 2
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40e190
cmp byte [0x0048fc78], 0
je 0x40e124
mov rcx, rbp
lea rdx, [rbp + 0x48]
movzx r8, word [rbp + 0x36]
call fcn.0040def0
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x48]
call fcn.0040b0a0
jmp 0x40e190
mov rcx, rbp
lea rdx, [rbp + 0x40]
movzx r8, word [rbp + 0x36]
call fcn.0040dc20
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x40]
call fcn.0040b0a0
call sub.kernel32.dll_GetSystemDefaultUILanguage
movzx rcx, word [rbp + 0x36]
cmp cx, ax
mov word [rbp + 0x36], cx
je 0x40e190
mov rax, qword [rbp + 0x28]
cmp qword [rax], 0
je 0x40e16f
mov rcx, qword [rbp + 0x28]
lea rdx, [0x0040e224]
call fcn.0040c080
call sub.kernel32.dll_GetSystemDefaultUILanguage
mov rcx, rbp
lea rdx, [rbp + 0x38]
mov r8d, eax
call fcn.0040dc20
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x38]
call fcn.0040c080
lea rcx, [0x0048fc80]
call sub.kernel32.dll_EnterCriticalSection
movzx rax, word [rbp + 0x36]
mov word [0x0048fca8], ax
mov rax, qword [rbp + 0x28]
mov rcx, qword [rax]
call fcn.0040bdd0
lea rcx, [0x0048fcaa]
mov edx, 0xaa
mov r8, rax
call fcn.0040d9e0
lea rcx, [0x0048fc80]
call sub.kernel32.dll_LeaveCriticalSection
nop
lea rcx, [rbp + 0x38]
mov edx, 3
call fcn.0040abc0
mov rax, qword [rbp + 0x28]
lea rsp, [rbp + 0x50]
pop rbp
ret
Function at 0x40ec00
Capabilities:
Get geographical location
Identify system language via api

Disassembly:
push rbp
sub rsp, 0x50
mov rbp, rsp
mov qword [rbp + 0x28], rcx
mov qword [rbp + 0x20], rdx
mov qword [rbp + 0x30], 0
mov qword [rbp + 0x38], 0
mov qword [rbp + 0x70], r8
mov rcx, qword [rbp + 0x70]
call fcn.0040ac70
nop
call sub.kernel32.dll_GetUserDefaultUILanguage
movzx ecx, ax
mov edx, 3
lea r8, [rbp + 0x48]
mov r9d, 4
call sub.kernel32.dll_GetLocaleInfoW
lea rcx, [rbp + 0x38]
lea rdx, [rbp + 0x48]
mov r8d, 4
call fcn.0040bea0
mov rcx, qword [rbp + 0x20]
mov rdx, qword [rbp + 0x70]
mov r8, qword [rbp + 0x38]
call fcn.0040c170
mov rcx, qword [rbp + 0x28]
mov rax, qword [rbp + 0x20]
mov rdx, qword [rax]
call fcn.0040ea20
test al, al
jne 0x40ecce
mov word [rbp + 0x4c], 0
lea rcx, [rbp + 0x30]
lea rdx, [rbp + 0x48]
mov r8d, 4
call fcn.0040bea0
mov rcx, qword [rbp + 0x20]
mov rdx, qword [rbp + 0x70]
mov r8, qword [rbp + 0x30]
call fcn.0040c170
mov rcx, qword [rbp + 0x28]
mov rax, qword [rbp + 0x20]
mov rdx, qword [rax]
call fcn.0040ea20
test al, al
jne 0x40ecce
mov rcx, qword [rbp + 0x20]
call fcn.0040aae0
nop
lea rcx, [rbp + 0x30]
mov edx, 2
call fcn.0040abc0
lea rcx, [rbp + 0x70]
call fcn.0040aae0
mov rax, qword [rbp + 0x20]
lea rsp, [rbp + 0x50]
pop rbp
ret
Function at 0x40ed40
Capabilities:
Identify system language via api

Disassembly:
push rbp
sub rsp, 0x70
mov rbp, rsp
mov qword [rbp + 0x28], rcx
mov qword [rbp + 0x30], 0
mov qword [rbp + 0x40], 0
mov qword [rbp + 0x38], 0
mov qword [rbp + 0x50], 0
mov qword [rbp + 0x48], 0
mov qword [rbp + 0x58], 0
mov qword [rbp + 0x68], 0
mov qword [rbp + 0x60], 0
mov qword [rbp + 0x88], rdx
mov qword [rbp + 0x90], r8
mov rcx, qword [rbp + 0x88]
call fcn.0040ac70
mov rcx, qword [rbp + 0x90]
call fcn.0040ac70
nop
mov rcx, qword [rbp + 0x28]
call fcn.0040aae0
cmp qword [rbp + 0x90], 0
je 0x40ef06
lea rcx, [rbp + 0x60]
mov rdx, qword [rbp + 0x90]
call fcn.0040b120
xor rax, rax
cmp qword [rbp + 0x90], 0
je 0x40edf1
mov rax, qword [rbp + 0x90]
mov eax, dword [rax - 4]
cmp eax, 1
jl 0x40ee2b
mov rcx, qword [rbp + 0x90]
movsxd rdx, eax
cmp word [rcx + rdx*2 - 2], 0x2e
jne 0x40ee24
lea rcx, [rbp + 0x60]
mov rdx, qword [rbp + 0x90]
mov r8d, 1
mov r9d, eax
call fcn.0040c380
jmp 0x40ee2b
sub eax, 1
test eax, eax
jne 0x40edf6
nop
lea rcx, [rbp + 0x68]
mov rdx, qword [rbp + 0x88]
call fcn.0040e910
cmp qword [rbp + 0x68], 0
je 0x40ee69
mov rcx, rbp
lea rdx, [rbp + 0x58]
mov r8, qword [rbp + 0x60]
mov r9, qword [rbp + 0x68]
call fcn.0040eac0
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x58]
call fcn.0040b0a0
jmp 0x40ef05
call sub.kernel32.dll_GetUserDefaultUILanguage
lea rcx, [rbp + 0x48]
mov edx, eax
call fcn.0040e060
mov rcx, rbp
lea rdx, [rbp + 0x50]
mov r8, qword [rbp + 0x60]
mov r9, qword [rbp + 0x48]
call fcn.0040eac0
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x50]
call fcn.0040b0a0
mov rax, qword [rbp + 0x28]
cmp qword [rax], 0
jne 0x40eede
cmp byte [0x0048fc78], 0
jne 0x40eede
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea rcx, [rbp + 0x38]
mov edx, eax
call fcn.0040e060
mov rcx, rbp
lea rdx, [rbp + 0x40]
mov r8, qword [rbp + 0x60]
mov r9, qword [rbp + 0x38]
call fcn.0040eac0
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x40]
call fcn.0040b0a0
mov rax, qword [rbp + 0x28]
cmp qword [rax], 0
jne 0x40ef05
mov rcx, rbp
lea rdx, [rbp + 0x30]
mov r8, qword [rbp + 0x60]
call fcn.0040ec00
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x30]
call fcn.0040b0a0
nop
lea rcx, [rbp + 0x30]
mov edx, 8
call fcn.0040abc0
lea rcx, [rbp + 0x88]
mov edx, 2
call fcn.0040abc0
mov rax, qword [rbp + 0x28]
lea rsp, [rbp + 0x70]
pop rbp
ret

Function at 0x40f8a0
Capabilities:
Get system information on windows

Disassembly:
sub rsp, 0x58
lea rcx, [rsp + 0x20]
call sub.kernel32.dll_GetSystemInfo
mov eax, dword [rsp + 0x40]
add rsp, 0x58
ret

Function at 0x40f8c0
Capabilities:
Check os version

Disassembly:
sub rsp, 0x28
call sub.kernel32.dll_GetVersion
mov ecx, eax
and ecx, 0xff
and eax, 0xff00
shr eax, 8
cmp ecx, 5
jne 0x40f8e4
cmp eax, 1
jae 0x40f8e9
cmp ecx, 5
jbe 0x40f8f5
mov dword [0x0048b9a0], 0x7f
jmp 0x40f8ff
mov dword [0x0048b9a0], 0x409
add rsp, 0x28
ret