joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14003fb5c
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rcx
push rbx
push rsi
push rdi
sub rsp, 0x30
and dword [r9], 0
mov rsi, r9
cmp qword [rdx + 0x18], 8
mov rdi, r8
jb 0x14003fb7c
mov rdx, qword [rdx]
lea rax, [rsp + 0x50]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14003fc13
mov rbx, qword [rsp + 0x50]
lea ecx, [rax + 0x18]
call fcn.1400664b8
lea rcx, vtable.appv::utility::scope_guard_func_impl_class_std::_Binder_struct_std::_Unforced__long_int____cdecl___struct_HKEY______ptr64___struct_HKEY______ptr64____ptr64__.0
mov qword [rsp + 0x68], rax
mov qword [rax], rcx
mov rcx, qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rax + 8], rcx
mov qword [rax + 0x10], rbx
cmp qword [rdi + 0x18], 8
mov qword [rsp + 0x58], rax
mov dword [rsp + 0x70], 4
jb 0x14003fbe2
mov rdi, qword [rdi]
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x70]
mov qword [rsp + 0x28], rax
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rsi
mov rdx, rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea rcx, [rsp + 0x58]
mov ebx, eax
call fcn.140006624
mov eax, ebx
add rsp, 0x30
pop rdi
pop rsi
pop rbx
ret
Function at 0x1400406a8
Capabilities:
Get common file path

Disassembly:
mov rax, rsp
push rbp
push rdi
push r14
lea rbp, [rax - 0x1a8]
sub rsp, 0x290
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov rax, qword [0x1400bd288]
xor rax, rsp
mov qword [rbp + 0x180], rax
mov rdi, rcx
xor r14d, r14d
mov esi, r14d
mov dword [rsp + 0x20], r14d
call fcn.14003e9b4
and eax, 0xffff0000
cmp eax, 0x800000
jl 0x140040757
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x48], 7
mov word [rsp + 0x30], r14w
lea rdx, str.API_MS_WIN
lea rcx, [rsp + 0x30]
call fcn.140003cac
lea esi, [r14 + 1]
lea rdx, [rsp + 0x30]
cmp qword [rsp + 0x48], 8
cmovae rdx, qword [rsp + 0x30]
mov rcx, rdi
cmp qword [rdi + 0x18], 8
jb 0x140040745
mov rcx, qword [rdi]
mov r8, qword [rsp + 0x40]
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o__wcsnicmp]
test eax, eax
mov bl, sil
je 0x14004075a
mov bl, r14b
test sil, 1
je 0x14004076a
lea rcx, [rsp + 0x30]
call fcn.140003c44
test bl, bl
je 0x14004080c
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x40], r14
mov rcx, rdi
cmp qword [rdi + 0x18], 8
jb 0x14004078e
mov rcx, qword [rdi]
lea rdx, [rsp + 0x30]
call fcn.14004051c
mov rsi, rax
mov rbx, r14
test rax, rax
je 0x140040898
lea rdx, str.API_MS_WIN_CORE_PROCESSTHREADS_L1_1_0.DLL
mov rdx, qword [rbx + rdx]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o__stricmp]
test eax, eax
je 0x14004088c
add rbx, 8
cmp rbx, 0x30
jb 0x1400407a7
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x14004080c
mov rdx, qword [rsp + 0x40]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140040807
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140040807
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400667e4
mov edx, 0x104
lea rcx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
dec eax
cmp eax, 0x103
ja 0x1400408dc
movdqa xmm0, xmmword [0x140097d80]
movdqu xmmword [rsp + 0x40], xmm0
mov word [rsp + 0x30], r14w
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x30]
call fcn.140003cac
nop
mov r8, rdi
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x50]
call fcn.140040c78
cmp qword [rax + 0x18], 8
jb 0x140040869
mov rax, qword [rax]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rbx, rax
lea rcx, [rsp + 0x50]
call fcn.140003c44
nop
lea rcx, [rsp + 0x30]
call fcn.140003c44
jmp 0x1400408d7
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rbx, rax
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x1400408d7
mov rdx, qword [rsp + 0x40]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400408d2
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400408d2
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400667e4
mov rax, rbx
jmp 0x1400408de
xor eax, eax
mov rcx, qword [rbp + 0x180]
xor rcx, rsp
call fcn.140066490
lea r11, [rsp + 0x290]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
Function at 0x14004135c
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x40
mov qword [rax - 0x28], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
mov rsi, rdx
mov rdi, rcx
mov rcx, rdx
cmp qword [rdx + 0x18], 8
jb 0x14004138b
mov rcx, qword [rdx]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea ebx, [rax + 1]
xor ebp, ebp
mov word [rsp + 0x58], bp
mov edx, ebx
lea r8, [rsp + 0x58]
lea rcx, [rsp + 0x28]
call fcn.14003fd00
nop
cmp qword [rsi + 0x18], 8
jb 0x1400413bc
mov rsi, qword [rsi]
mov r8d, ebx
mov rbx, qword [rsp + 0x28]
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov qword [rdi + 0x10], rbp
mov qword [rdi + 0x18], 7
mov word [rdi], bp
test eax, eax
je 0x140041435
lea rdx, [0x14008a868]
test rbx, rbx
cmovne rdx, rbx
mov rcx, rdi
call fcn.140003cac
nop
test rbx, rbx
je 0x140041478
mov rdx, qword [rsp + 0x38]
sub rdx, rbx
sar rdx, 1
add rdx, rdx
mov rax, rbx
cmp rdx, 0x1000
jb 0x140041470
add rdx, 0x27
mov rbx, qword [rbx - 8]
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140041470
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o__invalid_parameter_noinfo_noreturn]
int3
test rbx, rbx
je 0x140041478
mov rdx, qword [rsp + 0x38]
sub rdx, rbx
sar rdx, 1
add rdx, rdx
mov rax, rbx
cmp rdx, 0x1000
jb 0x140041470
add rdx, 0x27
mov rbx, qword [rbx - 8]
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140041470
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rbx
call fcn.1400667e4
mov rax, rdi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret
Function at 0x140044a20
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x30
and dword [rsp + 0x58], 0
mov ebx, edx
lea rdx, [rcx + 0x40]
mov dword [rsp + 0x40], r9d
cmp qword [rdx + 0x18], 8
jb 0x140044a44
mov rdx, qword [rdx]
mov rcx, qword [rcx + 0x60]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x58]
mov qword [rsp + 0x20], r8
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
test eax, eax
je 0x140044ab3
mov edx, 0x5c
lea rcx, str.admin_appman_appv_sharedclientconfiguration_registryvalue.h
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll_strrchr]
test rax, rax
je 0x140044a87
inc rax
jmp 0x140044a8e
lea rax, str.admin_appman_appv_sharedclientconfiguration_registryvalue.h
mov rdx, rax
lea rcx, [0x1400be678]
call fcn.140012a04
shl rax, 0x34
movabs rcx, 0x342500000000
or rax, rdi
or rax, rcx
jmp 0x140044b05
cmp ebx, dword [rsp + 0x58]
je 0x140044afb
mov edx, 0x5c
lea rcx, str.admin_appman_appv_sharedclientconfiguration_registryvalue.h
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll_strrchr]
test rax, rax
je 0x140044ad5
inc rax
jmp 0x140044adc
lea rax, str.admin_appman_appv_sharedclientconfiguration_registryvalue.h
mov rdx, rax
lea rcx, [0x1400be678]
call fcn.140012a04
shl rax, 0x34
movabs rcx, 0x350500040002
jmp 0x140044aae
movabs rax, 0x8000000000
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
Function at 0x140044c9c
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
push rdi
sub rsp, 0x30
and dword [rax + 0x20], 0
mov esi, edx
and dword [rax + 8], 0
lea rdx, [rcx + 0x40]
cmp qword [rdx + 0x18], 8
mov rdi, r8
jb 0x140044cc7
mov rdx, qword [rdx]
mov rcx, qword [rcx + 0x60]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x40]
and qword [rsp + 0x20], 0
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, eax
cmp eax, 0xea
je 0x140044d41
test eax, eax
je 0x140044d41
mov edx, 0x5c
lea rcx, str.admin_appman_appv_sharedclientconfiguration_registryvalue.h
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll_strrchr]
test rax, rax
je 0x140044d12
inc rax
jmp 0x140044d19
lea rax, str.admin_appman_appv_sharedclientconfiguration_registryvalue.h
mov rdx, rax
lea rcx, [0x1400be678]
call fcn.140012a04
shl rax, 0x34
movabs rcx, 0x312500000000
or rax, rbx
or rax, rcx
jmp 0x140044de5
cmp esi, dword [rsp + 0x40]
je 0x140044d89
mov edx, 0x5c
lea rcx, str.admin_appman_appv_sharedclientconfiguration_registryvalue.h
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll_strrchr]
test rax, rax
je 0x140044d63
inc rax
jmp 0x140044d6a
lea rax, str.admin_appman_appv_sharedclientconfiguration_registryvalue.h
mov rdx, rax
lea rcx, [0x1400be678]
call fcn.140012a04
shl rax, 0x34
movabs rcx, 0x320500040002
jmp 0x140044d39
mov eax, dword [rsp + 0x58]
cmp eax, 0x4000
jb 0x140044dd9
mov edx, 0x5c
lea rcx, str.admin_appman_appv_sharedclientconfiguration_registryvalue.h
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll_strrchr]
test rax, rax
je 0x140044db0
inc rax
jmp 0x140044db7
lea rax, str.admin_appman_appv_sharedclientconfiguration_registryvalue.h
mov rdx, rax
lea rcx, [0x1400be678]
call fcn.140012a04
shl rax, 0x34
movabs rcx, 0x330500040003
jmp 0x140044d39
mov dword [rdi], eax
movabs rax, 0x8000000000
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x140064164
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x50
mov qword [rax - 0x28], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov rbp, rdx
mov rbx, rcx
mov rdx, rcx
mov rcx, rbp
call fcn.140035324
mov rcx, rbx
cmp qword [rbx + 0x18], 8
jb 0x14006419e
mov rcx, qword [rbx]
mov qword [rsp + 0x20], 1
lea r9, [0x14008cd6c]
xor r8d, r8d
mov rdx, qword [rbx + 0x10]
call fcn.1400416b8
cmp rax, 0xffffffffffffffff
jne 0x1400641c7
mov al, 1
jmp 0x14006426d
mov rcx, rbx
cmp qword [rbx + 0x18], 8
jb 0x1400641d4
mov rcx, qword [rbx]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov esi, eax
test eax, eax
je 0x14006426d
mov rdx, rsi
lea rcx, [rsp + 0x38]
call fcn.14001c180
nop
cmp qword [rbx + 0x18], 8
jb 0x140064201
mov rbx, qword [rbx]
mov r8d, esi
mov rdi, qword [rsp + 0x38]
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
cmp esi, eax
sete bl
jne 0x140064228
mov rdx, rdi
mov rcx, rbp
call fcn.140003cac
nop
test rdi, rdi
je 0x14006426b
mov rdx, qword [rsp + 0x48]
sub rdx, rdi
sar rdx, 1
add rdx, rdx
mov rax, rdi
cmp rdx, 0x1000
jb 0x140064263
add rdx, 0x27
mov rdi, qword [rdi - 8]
sub rax, rdi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140064263
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rdi
call fcn.1400667e4
mov al, bl
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret
Function at 0x140065ff0
Capabilities:
Get hostname

Disassembly:
mov rax, rsp
mov dword [rax + 8], ecx
push rbp
push rsi
push rdi
mov rbp, rsp
sub rsp, 0x60
mov qword [rbp - 0x40], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov rdi, rdx
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x20], xmm0
xor esi, esi
mov qword [rbp - 0x10], rsi
mov dword [rbp + 0x30], esi
lea r8, [rbp + 0x30]
xor edx, edx
lea ecx, [rsi + 3]
call qword [sym.imp.KERNEL32.dll_GetComputerNameExW]
test eax, eax
je 0x140066038
lea ebx, [rsi + 0xd]
jmp 0x1400660a3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp eax, 0xea
jne 0x1400660a3
mov word [rbp + 0x20], si
mov edx, dword [rbp + 0x30]
lea rax, [rbp - 0x20]
mov qword [rbp - 0x30], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x28], rax
movaps xmm0, xmmword [rbp - 0x30]
movdqa xmmword [rbp - 0x30], xmm0
lea r8, [rbp - 0x30]
lea rcx, [rbp - 0x20]
call fcn.14003ffcc
lea r8, [rbp + 0x30]
mov rdx, qword [rbp - 0x20]
mov ecx, 3
call qword [sym.imp.KERNEL32.dll_GetComputerNameExW]
test eax, eax
jne 0x140066095
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x1400660a3
mov rdx, qword [rbp - 0x20]
mov rcx, rdi
call fcn.140003cac
mov ebx, esi
mov rcx, qword [rbp - 0x20]
test rcx, rcx
je 0x1400660e6
mov rdx, qword [rbp - 0x10]
sub rdx, rcx
sar rdx, 1
add rdx, rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400660e1
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400660e1
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400667e4
mov eax, ebx
mov rbx, qword [rsp + 0x88]
add rsp, 0x60
pop rdi
pop rsi
pop rbp
ret

Function at 0x140066b50
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov ecx, 1
mov dword [0x1400be0c0], eax
call fcn.140066fd4
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x1400be0c0], 0
jne case.default.0x140066ba6
mov ecx, 1
call fcn.140066fd4
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xc0000409
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TerminateProcess]
idiv byte [rdi + rax]
invalid
Function at 0x140002900
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000294a
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000294a
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000294a
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000294a
cmp dword [rcx + 0x84], 0xe
jbe 0x14000294a
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14000294c
xor al, al
add rsp, 0x28
ret
Function at 0x4075e0
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x40
cmp byte [0x0042b090], 0
je 0x40767e
cmp word [0x0042b3a0], 0xd7b2
jne 0x407613
cmp dword [0x0042b3a8], 0
jbe 0x407613
lea rcx, [0x0042b398]
call qword [0x0042b3c0]
mov ecx, 0xfffffff5
call sub.kernel32.dll_GetStdHandle
mov rcx, rax
lea rdx, [0x0042837c]
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, [0x004076b4]
call fcn.004084a0
mov rcx, rbx
mov rdx, rax
mov r8d, 2
lea r9, [rsp + 0x3c]
mov qword [rsp + 0x20], 0
call sub.kernel32.dll_WriteFile
jmp 0x4076a0
cmp byte [0x0042703a], 0
jne 0x4076a0
xor rcx, rcx
lea rdx, [0x0042837c]
lea r8, str.Error
xor r9, r9
call sub.user32.dll_MessageBoxA
add rsp, 0x40
pop rbx
ret

Function at 0x409b50
Capabilities:
Check os version

Disassembly:
sub rsp, 0x28
lea rcx, [0x0042fc78]
call sub.kernel32.dll_InitializeCriticalSection
mov word [0x0042fca0], 0x7f
call sub.kernel32.dll_GetVersion
and eax, 0xff
cmp eax, 6
setae al
mov byte [0x0042fc70], al
cmp byte [0x0042fc70], 0
je 0x409bef
lea rcx, [0x00409bf4]
call sub.kernel32.dll_GetModuleHandleW
mov rcx, rax
lea rdx, [0x00409c0e]
call sub.kernel32.dll_GetProcAddress
mov qword [0x0042fc58], rax
lea rcx, [0x00409bf4]
call sub.kernel32.dll_GetModuleHandleW
mov rcx, rax
lea rdx, [0x00409c2c]
call sub.kernel32.dll_GetProcAddress
mov qword [0x0042fc60], rax
lea rcx, [0x00409bf4]
call sub.kernel32.dll_GetModuleHandleW
mov rcx, rax
lea rdx, [0x00409c4a]
call sub.kernel32.dll_GetProcAddress
mov qword [0x0042fc68], rax
add rsp, 0x28
ret
Function at 0x409e70
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.00407a10
movzx rax, word [rbp + 0x4e]
cmp word [0x00428828], ax
ja 0x409f58
movzx rax, word [rbp + 0x4e]
cmp ax, word [0x00428c28]
mov word [rbp + 0x4e], ax
ja 0x409f58
mov ecx, 0x40
xor r8, r8
cmp ecx, r8d
jb 0x409f57
mov eax, ecx
add eax, r8d
mov r9d, 2
xor edx, edx
div r9d
lea rdx, [0x00428828]
mov r9d, eax
add r9, r9
movzx r10, word [rbp + 0x4e]
cmp word [rdx + r9*8], r10w
jbe 0x409f11
mov ecx, eax
sub ecx, 1
jmp 0x409f52
lea rdx, [0x00428828]
mov r8d, eax
add r8, r8
movzx r9, word [rbp + 0x4e]
cmp word [rdx + r8*8], r9w
jae 0x409f33
mov r8d, eax
add r8d, 1
jmp 0x409f52
mov rcx, qword [rbp + 0x50]
mov rdx, qword [rbp + 0x40]
lea r8, [0x00428830]
mov eax, eax
add rax, rax
mov r8, qword [r8 + rax*8]
call fcn.00409d10
jmp 0x409f57
cmp ecx, r8d
jae 0x409ee0
nop
mov rax, qword [rbp + 0x40]
cmp qword [rax], 0
jne 0x40a03a
movzx rcx, word [rbp + 0x4e]
movzx ecx, cx
mov edx, 2
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40a03a
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.004087b0
lea rcx, [rbp + 0x60]
lea rdx, [rbp + 0x7c]
mov r8d, 0x55
call fcn.004087b0
lea rcx, [rbp + 0x58]
lea rdx, [rbp + 0x126]
mov r8d, 0x55
call fcn.004087b0
mov rcx, qword [rbp + 0x40]
mov edx, 5
mov r8, qword [rbp + 0x68]
lea r9, [0x0040a094]
mov rax, qword [rbp + 0x60]
mov qword [rsp + 0x20], rax
lea rax, [0x0040a0a4]
mov qword [rsp + 0x28], rax
mov rax, qword [rbp + 0x58]
mov qword [rsp + 0x30], rax
call fcn.00408b60
nop
lea rcx, [rbp + 0x58]
mov edx, 3
call fcn.00407af0
mov rax, qword [rbp + 0x40]
lea rsp, [rbp + 0x1d0]
pop rbp
ret
Function at 0x40a2b0
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, [0x0042fc78]
call sub.kernel32.dll_EnterCriticalSection
movzx rax, word [rbp + 0x36]
cmp word [0x0042fca0], ax
jne 0x40a31b
mov rcx, qword [rbp + 0x28]
lea rdx, [0x0042fca2]
mov r8d, 0x55
call fcn.004087b0
lea rcx, [0x0042fc78]
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x40a427
lea rcx, [0x0042fc78]
call sub.kernel32.dll_LeaveCriticalSection
mov rcx, qword [rbp + 0x28]
call fcn.00407a10
movzx rcx, word [rbp + 0x36]
movzx ecx, cx
mov edx, 2
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40a3e0
cmp byte [0x0042fc70], 0
je 0x40a374
mov rcx, rbp
lea rdx, [rbp + 0x48]
movzx r8, word [rbp + 0x36]
call fcn.0040a140
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x48]
call fcn.00407f20
jmp 0x40a3e0
mov rcx, rbp
lea rdx, [rbp + 0x40]
movzx r8, word [rbp + 0x36]
call fcn.00409e70
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x40]
call fcn.00407f20
call sub.kernel32.dll_GetSystemDefaultUILanguage
movzx rcx, word [rbp + 0x36]
cmp cx, ax
mov word [rbp + 0x36], cx
je 0x40a3e0
mov rax, qword [rbp + 0x28]
cmp qword [rax], 0
je 0x40a3bf
mov rcx, qword [rbp + 0x28]
lea rdx, [0x0040a474]
call fcn.00408960
call sub.kernel32.dll_GetSystemDefaultUILanguage
mov rcx, rbp
lea rdx, [rbp + 0x38]
mov r8d, eax
call fcn.00409e70
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x38]
call fcn.00408960
lea rcx, [0x0042fc78]
call sub.kernel32.dll_EnterCriticalSection
movzx rax, word [rbp + 0x36]
mov word [0x0042fca0], ax
mov rax, qword [rbp + 0x28]
mov rcx, qword [rax]
call fcn.00408700
lea rcx, [0x0042fca2]
mov rdx, rax
mov r8d, 0xaa
call sub.kernel32.dll_lstrcpynW
lea rcx, [0x0042fc78]
call sub.kernel32.dll_LeaveCriticalSection
nop
lea rcx, [rbp + 0x38]
mov edx, 3
call fcn.00407af0
mov rax, qword [rbp + 0x28]
lea rsp, [rbp + 0x50]
pop rbp
ret
Function at 0x40ae00
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.00407ba0
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.004087b0
mov rcx, qword [rbp + 0x20]
mov rdx, qword [rbp + 0x70]
mov r8, qword [rbp + 0x38]
call fcn.00408a30
mov rcx, qword [rbp + 0x28]
mov rax, qword [rbp + 0x20]
mov rdx, qword [rax]
call fcn.0040ac30
test al, al
jne 0x40aece
mov word [rbp + 0x4c], 0
lea rcx, [rbp + 0x30]
lea rdx, [rbp + 0x48]
mov r8d, 4
call fcn.004087b0
mov rcx, qword [rbp + 0x20]
mov rdx, qword [rbp + 0x70]
mov r8, qword [rbp + 0x30]
call fcn.00408a30
mov rcx, qword [rbp + 0x28]
mov rax, qword [rbp + 0x20]
mov rdx, qword [rax]
call fcn.0040ac30
test al, al
jne 0x40aece
mov rcx, qword [rbp + 0x20]
call fcn.00407a10
nop
lea rcx, [rbp + 0x30]
mov edx, 2
call fcn.00407af0
lea rcx, [rbp + 0x70]
call fcn.00407a10
mov rax, qword [rbp + 0x20]
lea rsp, [rbp + 0x50]
pop rbp
ret
Function at 0x40af30
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.00407ba0
mov rcx, qword [rbp + 0x90]
call fcn.00407ba0
nop
mov rcx, qword [rbp + 0x28]
call fcn.00407a10
lea rcx, [rbp + 0x60]
mov rdx, qword [rbp + 0x90]
call fcn.00407fa0
xor rax, rax
cmp qword [rbp + 0x90], 0
je 0x40afd3
mov rax, qword [rbp + 0x90]
mov eax, dword [rax - 4]
cmp eax, 1
jl 0x40b00d
mov rcx, qword [rbp + 0x90]
movsxd rdx, eax
cmp word [rcx + rdx*2 - 2], 0x2e
jne 0x40b006
lea rcx, [rbp + 0x60]
mov rdx, qword [rbp + 0x90]
mov r8d, 1
mov r9d, eax
call fcn.00408c40
jmp 0x40b00d
sub eax, 1
test eax, eax
jne 0x40afd8
nop
lea rcx, [rbp + 0x68]
mov rdx, qword [rbp + 0x88]
call fcn.0040ab40
cmp qword [rbp + 0x68], 0
je 0x40b04b
mov rcx, rbp
lea rdx, [rbp + 0x58]
mov r8, qword [rbp + 0x60]
mov r9, qword [rbp + 0x68]
call fcn.0040acd0
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x58]
call fcn.00407f20
jmp 0x40b0e7
call sub.kernel32.dll_GetUserDefaultUILanguage
lea rcx, [rbp + 0x48]
mov edx, eax
call fcn.0040a2b0
mov rcx, rbp
lea rdx, [rbp + 0x50]
mov r8, qword [rbp + 0x60]
mov r9, qword [rbp + 0x48]
call fcn.0040acd0
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x50]
call fcn.00407f20
mov rax, qword [rbp + 0x28]
cmp qword [rax], 0
jne 0x40b0c0
cmp byte [0x0042fc70], 0
jne 0x40b0c0
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea rcx, [rbp + 0x38]
mov edx, eax
call fcn.0040a2b0
mov rcx, rbp
lea rdx, [rbp + 0x40]
mov r8, qword [rbp + 0x60]
mov r9, qword [rbp + 0x38]
call fcn.0040acd0
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x40]
call fcn.00407f20
mov rax, qword [rbp + 0x28]
cmp qword [rax], 0
jne 0x40b0e7
mov rcx, rbp
lea rdx, [rbp + 0x30]
mov r8, qword [rbp + 0x60]
call fcn.0040ae00
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x30]
call fcn.00407f20
nop
lea rcx, [rbp + 0x30]
mov edx, 8
call fcn.00407af0
lea rcx, [rbp + 0x88]
mov edx, 2
call fcn.00407af0
mov rax, qword [rbp + 0x28]
lea rsp, [rbp + 0x70]
pop rbp
ret

Function at 0x40b860
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 0x40b880
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 0x40b8a4
cmp eax, 1
jae 0x40b8a9
cmp ecx, 5
jbe 0x40b8b5
mov dword [0x0042b998], 0x7f
jmp 0x40b8bf
mov dword [0x0042b998], 0x409
add rsp, 0x28
ret