joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400c7bb8
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
mov rdx, rcx
mov ecx, 0x105
call fcn.1400c74b4
mov ebx, eax
test eax, eax
jne 0x1400c7be8
and dword [rsp + 0x38], eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x3c], eax
jmp 0x1400c7c4b
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1400c7c42
test al, 0x10
je 0x1400c7c42
bt eax, 0xa
jae 0x1400c7c3b
mov r9d, 0x2000000
lea rcx, [rsp + 0x38]
mov r8d, 0x80
mov rdx, rdi
call fcn.1400c7c5c
mov rcx, qword [rsp + 0x38]
mov edi, eax
cmp rcx, 0xffffffffffffffff
je 0x1400c7c37
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x1400c7c37
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_abort]
int3
test edi, edi
jne 0x1400c7c42
and dword [rsp + 0x3c], 0
jmp 0x1400c7c47
or dword [rsp + 0x3c], 0xffffffff
mov dword [rsp + 0x38], ebx
mov rax, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x1400c8f24
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400c8f6e
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400c8f6e
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400c8f6e
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400c8f6e
cmp dword [rcx + 0x84], 0xe
jbe 0x1400c8f6e
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400c8f70
xor al, al
add rsp, 0x28
ret
Function at 0x140001010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x1400097e0]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x1400097f0]
mov dword [rax], 1
mov rax, qword [0x140009800]
mov dword [rax], 1
mov rax, qword [0x140009780]
cmp word [rax], 0x5a4d
jne 0x14000105a
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010c0
mov rax, qword [0x1400097d0]
mov dword [0x14000c020], ecx
mov eax, dword [rax]
test eax, eax
je 0x1400010b0
mov ecx, 2
call sym.__set_app_type
call dbg.__p__fmode
mov rdx, qword [0x1400098b0]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg.__p__commode
mov rdx, qword [0x140009890]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x140009730]
cmp dword [rax], 1
je 0x1400010f8
xor eax, eax
add rsp, 0x28
ret
mov ecx, 1
call sym.__set_app_type
jmp 0x140001077
movzx edx, word [rax + 0x18]
cmp dx, 0x10b
je 0x140001110
cmp dx, 0x20b
jne 0x14000105a
cmp dword [rax + 0x84], 0xe
jbe 0x14000105a
mov edx, dword [rax + 0xf8]
xor ecx, ecx
test edx, edx
setne cl
jmp 0x14000105a
lea rcx, [dbg._matherr]
call dbg.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x14000105a
mov r8d, dword [rax + 0xe8]
xor ecx, ecx
test r8d, r8d
setne cl
jmp 0x14000105a

Function at 0x140001820
Capabilities:
Write file on windows

Disassembly:
push r12
push rbx
sub rsp, 0x38
mov r12, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call dbg.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rbx, qword [rsp + 0x28]
mov ecx, 2
call dbg.__acrt_iob_func
mov rdx, r12
mov rcx, rax
mov r8, rbx
call sym.vfprintf
call sym.abort
nop
nop word [rax + rax]
Function at 0x140001890
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x50
movsxd rbx, dword [0x14000c0b4]
mov r12, rcx
test ebx, ebx
jle 0x1400019c0
mov rax, qword [0x14000c0b8]
xor ecx, ecx
add rax, 0x18
nop word [rax + rax]
mov rdx, qword [rax]
cmp rdx, r12
ja 0x1400018dc
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x140001963
add ecx, 1
add rax, 0x28
cmp ecx, ebx
jne 0x1400018c0
mov rcx, r12
call dbg.__mingw_GetSectionForAddress
mov rsi, rax
test rax, rax
je 0x1400019e2
mov rax, qword [0x14000c0b8]
lea rbx, [rbx + rbx*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rsi
mov dword [rax], 0
call dbg._GetPEImageBase
mov ecx, dword [rsi + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x14000c0b8]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1400019c7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x14000195c
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140001970
add dword [0x14000c0b4], 1
add rsp, 0x50
pop rbx
pop rsi
pop r12
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 4
mov eax, 0x40
cmovne r8d, eax
add rbx, qword [0x14000c0b8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14000195c
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call dbg.__report_error
nop dword [rax]
xor ebx, ebx
jmp 0x1400018e7
mov rax, qword [0x14000c0b8]
mov edx, dword [rsi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call dbg.__report_error
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call dbg.__report_error
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140001f60
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x14000c120]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14000c100]
test rbx, rbx
je 0x140001fb4
mov rdi, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [rbx]
call rdi
mov r12, rax
call rsi
test eax, eax
jne 0x140001fab
test r12, r12
je 0x140001fab
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140001f90
lea rcx, [0x14000c120]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x1400021d0
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x1400021e8
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x1400021f0
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret
Function at 0x140002200
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
mov r8, rdx
lea rdx, [rax + rcx]
movzx eax, word [rdx + 0x14]
lea rax, [rdx + rax + 0x18]
movzx edx, word [rdx + 6]
test edx, edx
je 0x14000224c
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov ecx, dword [rax + 0xc]
mov rdx, rcx
cmp rcx, r8
ja 0x140002243
add edx, dword [rax + 8]
cmp rdx, r8
ja 0x14000224e
add rax, 0x28
cmp rax, r9
jne 0x140002230
xor eax, eax
ret

Function at 0x140002250
Capabilities:
Parse pe header

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x20
mov rbx, rcx
call sym.strlen
cmp rax, 8
ja 0x1400022e0
mov rdx, qword [0x140009780]
xor r12d, r12d
cmp word [rdx], 0x5a4d
jne 0x1400022ce
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x1400022ce
cmp word [rax + 0x18], 0x20b
jne 0x1400022ce
movzx edx, word [rax + 0x14]
lea r12, [rax + rdx + 0x18]
movzx eax, word [rax + 6]
test eax, eax
je 0x1400022e0
sub eax, 1
lea rax, [rax + rax*4]
lea rsi, [r12 + rax*8 + 0x28]
jmp 0x1400022b9
add r12, 0x28
cmp r12, rsi
je 0x1400022e0
mov r8d, 8
mov rdx, rbx
mov rcx, r12
call sym.strncmp
test eax, eax
jne 0x1400022b0
mov rax, r12
add rsp, 0x20
pop rbx
pop rsi
pop r12
ret
xor r12d, r12d
mov rax, r12
add rsp, 0x20
pop rbx
pop rsi
pop r12
ret

Function at 0x1400022f0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x140009780]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140002310
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140002318
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002310
movzx eax, word [r8 + 0x14]
sub rcx, rdx
movzx edx, word [r8 + 6]
lea rax, [r8 + rax + 0x18]
test edx, edx
je 0x140002365
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x14000235c
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140002310
add rax, 0x28
cmp rax, r9
jne 0x140002348
xor eax, eax
ret

Function at 0x140002370
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140009780]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x140002390
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x140002398
mov eax, r8d
ret
cmp word [rax + 0x18], 0x20b
jne 0x140002390
movzx r8d, word [rax + 6]
mov eax, r8d
ret

Function at 0x1400023b0
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x140009780]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x1400023d0
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x1400023d8
ret
cmp word [rdx + 0x18], 0x20b
jne 0x1400023d0
movzx eax, word [rdx + 0x14]
lea rax, [rdx + rax + 0x18]
movzx edx, word [rdx + 6]
test edx, edx
je 0x140002418
sub edx, 1
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x14000240f
test rcx, rcx
je 0x1400023d0
sub rcx, 1
add rax, 0x28
cmp rax, rdx
jne 0x140002400
xor eax, eax
ret
Function at 0x140002420
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140009780]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x140002440
movsxd rdx, dword [rax + 0x3c]
add rdx, rax
cmp dword [rdx], 0x4550
je 0x140002448
mov rax, r8
ret
cmp word [rdx + 0x18], 0x20b
cmove r8, rax
mov rax, r8
ret

Function at 0x140002460
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rax, qword [0x140009780]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x140002480
movsxd rdx, dword [rax + 0x3c]
add rdx, rax
cmp dword [rdx], 0x4550
je 0x140002488
mov eax, r8d
ret
cmp word [rdx + 0x18], 0x20b
jne 0x140002480
sub rcx, rax
movzx eax, word [rdx + 0x14]
lea rax, [rdx + rax + 0x18]
movzx edx, word [rdx + 6]
test edx, edx
je 0x140002480
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x1400024c4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x1400024d8
add rax, 0x28
cmp r9, rax
jne 0x1400024b0
xor r8d, r8d
mov eax, r8d
ret
mov r8d, dword [rax + 0x24]
not r8d
shr r8d, 0x1f
mov eax, r8d
ret

Function at 0x1400024f0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov r11, qword [0x140009780]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x140002512
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x140002520
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002512
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x140002512
movzx edx, word [r8 + 0x14]
lea rdx, [r8 + rdx + 0x18]
movzx r8d, word [r8 + 6]
test r8d, r8d
je 0x140002512
sub r8d, 1
lea r8, [r8 + r8*4]
lea r10, [rdx + r8*8 + 0x28]
nop dword [rax]
mov r9d, dword [rdx + 0xc]
mov r8, r9
cmp rax, r9
jb 0x14000256d
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x140002580
add rdx, 0x28
cmp r10, rdx
jne 0x140002558
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x14000258f
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x14000259f
mov edx, dword [rax + 0xc]
test edx, edx
je 0x140002576
test ecx, ecx
jg 0x140002588
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret
Function at 0x407ff0
Capabilities:
Write file on windows

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
mov rbp, rsp
mov rbx, rcx
mov rsi, rdx
cmp byte [0x008b40a0], 0
je 0x4080ab
mov ecx, 0xfffffff4
call sub.kernel32.dll_GetStdHandle
mov rdi, rax
mov rcx, rsi
call fcn.0040ee90
mov rcx, rdi
mov rdx, rsi
mov r8d, eax
lea r9, [rbp + 0x3c]
mov qword [rsp + 0x20], 0
call sub.kernel32.dll_WriteFile
mov ecx, 0xfffffff4
call sub.kernel32.dll_GetStdHandle
mov rsi, rax
mov rcx, qword [0x008880c0]
call fcn.0040ee90
mov rcx, rsi
mov rdx, qword [0x008880c0]
mov r8d, eax
lea r9, [rbp + 0x3c]
mov qword [rsp + 0x20], 0
call sub.kernel32.dll_WriteFile
mov ecx, 0xfffffff4
call sub.kernel32.dll_GetStdHandle
mov rsi, rax
mov rcx, rbx
call fcn.0040ee90
mov rcx, rsi
mov rdx, rbx
mov r8d, eax
lea r9, [rbp + 0x3c]
mov qword [rsp + 0x20], 0
call sub.kernel32.dll_WriteFile
jmp 0x4080bf
xor ecx, ecx
mov rdx, rbx
mov r8, rsi
mov r9d, 0x2010
call sub.user32.dll_MessageBoxA
lea rsp, [rbp + 0x48]
pop rbx
pop rsi
pop rdi
pop rbp
ret
Function at 0x40e110
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x40
cmp byte [0x008b40a0], 0
je 0x40e1ae
cmp word [0x008b43b0], 0xd7b2
jne 0x40e143
cmp dword [0x008b43b8], 0
jbe 0x40e143
lea rcx, [0x008b43a8]
call qword [0x008b43d0]
mov ecx, 0xfffffff5
call sub.kernel32.dll_GetStdHandle
mov rcx, rax
lea rdx, [0x00889964]
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, [0x0040e1e4]
call fcn.0040f610
mov rcx, rbx
mov rdx, rax
mov r8d, 2
lea r9, [rsp + 0x3c]
mov qword [rsp + 0x20], 0
call sub.kernel32.dll_WriteFile
jmp 0x40e1cf
cmp byte [0x00888052], 0
jne 0x40e1cf
xor ecx, ecx
lea rdx, [0x00889964]
lea r8, str.Error
xor r9, r9
call sub.user32.dll_MessageBoxA
add rsp, 0x40
pop rbx
ret

Function at 0x40e4c0
Capabilities:
Create thread

Disassembly:
push r13
push rdi
push rsi
push rbx
sub rsp, 0x48
mov qword [rsp + 0x38], rcx
mov ebx, edx
mov rsi, r8
mov rdi, r9
cmp qword [0x00888058], 0
je 0x40e4f1
mov rcx, rsi
mov rdx, rdi
call qword [0x00888058]
mov r13, rax
jmp 0x40e507
mov ecx, 0x10
call fcn.00409030
mov r13, rax
mov qword [r13], rsi
mov qword [r13 + 8], rdi
mov byte [0x008b40a1], 1
mov rcx, qword [rsp + 0x38]
mov edx, ebx
lea r8, [0x0040e450]
mov r9, r13
mov eax, dword [rsp + 0x90]
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x98]
mov qword [rsp + 0x28], rax
call sub.kernel32.dll_CreateThread
mov rbx, rax
test rbx, rbx
jne 0x40e54c
mov rcx, r13
call fcn.00409060
mov rax, rbx
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop r13
ret

Function at 0x412610
Capabilities:
Check os version

Disassembly:
sub rsp, 0x28
lea rcx, [0x008b8ef8]
call sub.kernel32.dll_InitializeCriticalSection
mov word [0x008b8f20], 0x7f
call sub.kernel32.dll_GetVersion
and eax, 0xff
cmp eax, 6
setae al
mov byte [0x008b8ef0], al
cmp byte [0x008b8ef0], 0
je 0x4126af
lea rcx, [0x004126b4]
call sub.kernel32.dll_GetModuleHandleW
mov rcx, rax
lea rdx, [0x004126ce]
call sub.kernel32.dll_GetProcAddress
mov qword [0x008b8ed8], rax
lea rcx, [0x004126b4]
call sub.kernel32.dll_GetModuleHandleW
mov rcx, rax
lea rdx, [0x004126ec]
call sub.kernel32.dll_GetProcAddress
mov qword [0x008b8ee0], rax
lea rcx, [0x004126b4]
call sub.kernel32.dll_GetModuleHandleW
mov rcx, rax
lea rdx, [0x0041270a]
call sub.kernel32.dll_GetProcAddress
mov qword [0x008b8ee8], rax
add rsp, 0x28
ret
Function at 0x412950
Capabilities:
Get geographical location

Disassembly:
push rbp
push rbx
sub rsp, 0x1d8
mov rbp, rsp
mov qword [rbp + 0x40], rcx
mov qword [rbp + 0x48], rdx
mov word [rbp + 0x56], r8w
mov qword [rbp + 0x68], 0
mov qword [rbp + 0x60], 0
mov qword [rbp + 0x58], 0
nop
mov rcx, qword [rbp + 0x48]
call fcn.0040e6c0
movzx rax, word [rbp + 0x56]
cmp word [0x0088a038], ax
ja 0x412a3c
movzx rax, word [rbp + 0x56]
cmp ax, word [0x0088a438]
mov word [rbp + 0x56], ax
ja 0x412a3c
mov ecx, 0x40
xor r8, r8
cmp ecx, r8d
jb 0x412a3b
mov eax, ecx
add eax, r8d
mov r9d, 2
xor edx, edx
div r9d
mov edx, eax
lea r9, [0x0088a038]
mov r10, rdx
add r10, r10
movzx r11, word [rbp + 0x56]
cmp word [r9 + r10*8], r11w
jbe 0x4129f4
mov ecx, eax
sub ecx, 1
jmp 0x412a36
lea r8, [0x0088a038]
mov r9, rdx
add r9, r9
movzx r10, word [rbp + 0x56]
cmp word [r8 + r9*8], r10w
jae 0x412a16
mov r8d, eax
add r8d, 1
jmp 0x412a36
mov rcx, qword [rbp + 0x40]
mov rax, qword [rbp + 0x48]
lea r8, [0x0088a040]
add rdx, rdx
mov r8, qword [r8 + rdx*8]
mov rdx, rax
call fcn.00412800
jmp 0x412a3b
cmp ecx, r8d
jae 0x4129c1
nop
mov rax, qword [rbp + 0x48]
cmp qword [rax], 0
jne 0x412b1a
movzx rcx, word [rbp + 0x56]
movzx ecx, cx
mov edx, 2
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x412b1a
movzx rbx, word [rbp + 0x56]
movzx ebx, bx
mov ecx, ebx
mov edx, 0x59
lea r8, [rbp + 0x126]
mov r9d, 0x55
call sub.kernel32.dll_GetLocaleInfoW
mov ecx, ebx
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.0040fcc0
lea rcx, [rbp + 0x60]
lea rdx, [rbp + 0x7c]
mov r8d, 0x55
call fcn.0040fcc0
lea rcx, [rbp + 0x58]
lea rdx, [rbp + 0x126]
mov r8d, 0x55
call fcn.0040fcc0
mov rcx, qword [rbp + 0x48]
mov edx, 5
mov r8, qword [rbp + 0x68]
lea r9, [0x00412b6c]
mov rax, qword [rbp + 0x60]
mov qword [rsp + 0x20], rax
lea rax, [0x00412b7c]
mov qword [rsp + 0x28], rax
mov rax, qword [rbp + 0x58]
mov qword [rsp + 0x30], rax
call fcn.00410130
nop
lea rcx, [rbp + 0x58]
mov edx, 3
call fcn.0040e7a0
mov rax, qword [rbp + 0x48]
lea rsp, [rbp + 0x1d8]
pop rbx
pop rbp
ret
Function at 0x412d80
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, [0x008b8ef8]
call sub.kernel32.dll_EnterCriticalSection
movzx rax, word [rbp + 0x36]
cmp word [0x008b8f20], ax
jne 0x412deb
mov rcx, qword [rbp + 0x28]
lea rdx, [0x008b8f22]
mov r8d, 0x55
call fcn.0040fcc0
lea rcx, [0x008b8ef8]
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x412ef6
lea rcx, [0x008b8ef8]
call sub.kernel32.dll_LeaveCriticalSection
mov rcx, qword [rbp + 0x28]
call fcn.0040e6c0
movzx rcx, word [rbp + 0x36]
movzx ecx, cx
mov edx, 2
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x412eb0
cmp byte [0x008b8ef0], 0
je 0x412e44
mov rcx, rbp
lea rdx, [rbp + 0x48]
movzx r8, word [rbp + 0x36]
call fcn.00412c10
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x48]
call fcn.0040ecf0
jmp 0x412eb0
mov rcx, rbp
lea rdx, [rbp + 0x40]
movzx r8, word [rbp + 0x36]
call fcn.00412950
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x40]
call fcn.0040ecf0
call sub.kernel32.dll_GetSystemDefaultUILanguage
movzx rcx, word [rbp + 0x36]
cmp cx, ax
mov word [rbp + 0x36], cx
je 0x412eb0
mov rax, qword [rbp + 0x28]
cmp qword [rax], 0
je 0x412e8f
mov rcx, qword [rbp + 0x28]
lea rdx, [0x00412f3c]
call fcn.0040ff30
call sub.kernel32.dll_GetSystemDefaultUILanguage
mov rcx, rbp
lea rdx, [rbp + 0x38]
mov r8d, eax
call fcn.00412950
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x38]
call fcn.0040ff30
lea rcx, [0x008b8ef8]
call sub.kernel32.dll_EnterCriticalSection
movzx rax, word [rbp + 0x36]
mov word [0x008b8f20], ax
mov rax, qword [rbp + 0x28]
mov rcx, qword [rax]
call fcn.0040fbf0
lea rcx, [0x008b8f22]
mov edx, 0xaa
mov r8, rax
call fcn.00412740
lea rcx, [0x008b8ef8]
call sub.kernel32.dll_LeaveCriticalSection
nop
lea rcx, [rbp + 0x38]
mov edx, 3
call fcn.0040e7a0
mov rax, qword [rbp + 0x28]
lea rsp, [rbp + 0x50]
pop rbp
ret
Function at 0x4138a0
Capabilities:
Get geographical location
Identify system language via api

Disassembly:
push rbp
sub rsp, 0x50
mov rbp, rsp
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], 0
mov qword [rbp + 0x38], 0
mov qword [rbp + 0x70], r8
mov rcx, qword [rbp + 0x70]
call fcn.0040e850
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.0040fcc0
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x70]
mov r8, qword [rbp + 0x38]
call fcn.00410000
mov rcx, qword [rbp + 0x20]
mov rax, qword [rbp + 0x28]
mov rdx, qword [rax]
call fcn.004136f0
test al, al
jne 0x41396e
mov word [rbp + 0x4c], 0
lea rcx, [rbp + 0x30]
lea rdx, [rbp + 0x48]
mov r8d, 4
call fcn.0040fcc0
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x70]
mov r8, qword [rbp + 0x30]
call fcn.00410000
mov rcx, qword [rbp + 0x20]
mov rax, qword [rbp + 0x28]
mov rdx, qword [rax]
call fcn.004136f0
test al, al
jne 0x41396e
mov rcx, qword [rbp + 0x28]
call fcn.0040e6c0
nop
lea rcx, [rbp + 0x30]
mov edx, 2
call fcn.0040e7a0
lea rcx, [rbp + 0x70]
call fcn.0040e6c0
mov rax, qword [rbp + 0x28]
lea rsp, [rbp + 0x50]
pop rbp
ret
Function at 0x4139c0
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.0040e850
mov rcx, qword [rbp + 0x90]
call fcn.0040e850
nop
mov rcx, qword [rbp + 0x28]
call fcn.0040e6c0
cmp qword [rbp + 0x90], 0
je 0x413b80
lea rcx, [rbp + 0x60]
mov rdx, qword [rbp + 0x90]
call fcn.0040ed70
xor eax, eax
mov rcx, qword [rbp + 0x90]
test rcx, rcx
je 0x413a6b
mov eax, dword [rcx - 4]
cmp eax, 1
jl 0x413aa5
mov rcx, qword [rbp + 0x90]
movsxd rdx, eax
cmp word [rcx + rdx*2 - 2], 0x2e
jne 0x413a9e
lea rcx, [rbp + 0x60]
mov rdx, qword [rbp + 0x90]
mov r8d, 1
mov r9d, eax
call fcn.00410220
jmp 0x413aa5
sub eax, 1
test eax, eax
jne 0x413a70
nop
lea rcx, [rbp + 0x68]
mov rdx, qword [rbp + 0x88]
call fcn.004135f0
cmp qword [rbp + 0x68], 0
je 0x413ae3
mov rcx, rbp
lea rdx, [rbp + 0x58]
mov r8, qword [rbp + 0x60]
mov r9, qword [rbp + 0x68]
call fcn.00413780
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x58]
call fcn.0040ecf0
jmp 0x413b7f
call sub.kernel32.dll_GetUserDefaultUILanguage
lea rcx, [rbp + 0x48]
mov edx, eax
call fcn.00412d80
mov rcx, rbp
lea rdx, [rbp + 0x50]
mov r8, qword [rbp + 0x60]
mov r9, qword [rbp + 0x48]
call fcn.00413780
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x50]
call fcn.0040ecf0
mov rax, qword [rbp + 0x28]
cmp qword [rax], 0
jne 0x413b58
cmp byte [0x008b8ef0], 0
jne 0x413b58
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea rcx, [rbp + 0x38]
mov edx, eax
call fcn.00412d80
mov rcx, rbp
lea rdx, [rbp + 0x40]
mov r8, qword [rbp + 0x60]
mov r9, qword [rbp + 0x38]
call fcn.00413780
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x40]
call fcn.0040ecf0
mov rax, qword [rbp + 0x28]
cmp qword [rax], 0
jne 0x413b7f
mov rcx, rbp
lea rdx, [rbp + 0x30]
mov r8, qword [rbp + 0x60]
call fcn.004138a0
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x30]
call fcn.0040ecf0
nop
lea rcx, [rbp + 0x30]
mov edx, 8
call fcn.0040e7a0
lea rcx, [rbp + 0x88]
mov edx, 2
call fcn.0040e7a0
mov rax, qword [rbp + 0x28]
lea rsp, [rbp + 0x70]
pop rbp
ret

Function at 0x416130
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 0x416150
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 0x416174
cmp eax, 1
jae 0x416179
cmp ecx, 5
jbe 0x416185
mov dword [0x008b4a28], 0x7f
jmp 0x41618f
mov dword [0x008b4a28], 0x409
add rsp, 0x28
ret