Function at 0x140008aac
Capabilities:
Check os version
Get geographical location
Write file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x8b8]
sub rsp, 0x9a0
mov rax, qword [0x140017100]
xor rax, rsp
mov qword [rbp + 0x890], rax
mov esi, ecx
lea rcx, [rbp + 0x82]
xor r15d, r15d
xor edx, edx
mov r8d, 0x800
mov word [rbp + 0x80], r15w
call sub.msvcrt.dll_memset
movzx r14d, r15w
cmp esi, 0x641
jb 0x140008b35
lea r8, [rbp + 0x80]
mov r9d, 0x401
mov edx, esi
or rcx, 0xffffffffffffffff
mov word [rsp + 0x20], r15w
call qword [sym.imp.msi.dll_MsiDecomposeDescriptorW]
mov edi, eax
test eax, eax
jne 0x140008c0d
call qword [sym.imp.KERNEL32.dll_GetACP]
lea rcx, [0x1400016b0]
mov edi, eax
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rbx, rax
test rax, rax
je 0x140008b95
lea rdx, [0x1400016c8]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140008b8c
call rax
lea r8, [rsp + 0x48]
mov r9d, 0xa
movzx ecx, ax
mov edx, 0x20001004
mov r14, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
cmovne edi, dword [rsp + 0x48]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
lea rax, [rbp + 0x80]
mov qword [rsp + 0x30], r15
movzx r9d, r14w
mov r8d, esi
xor edx, edx
mov ecx, 0x1000
mov dword [rsp + 0x28], reloc.ADVAPI32.dll_TraceMessage
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_FormatMessageW]
test eax, eax
je 0x140008bea
add eax, 0xfffffffe
mov ecx, eax
add rcx, rcx
cmp rcx, 0x802
jae 0x140008be2
mov word [rbp + rcx + 0x80], r15w
jmp 0x140008c0d
xor ecx, ecx
call fcn.140015358
int3
lea r8, [0x1400016e8]
lea rcx, [rbp + 0x80]
mov r9d, esi
mov edx, 0x401
call fcn.1400050f4
test eax, eax
js 0x140008d94
cmp dword [0x14001a880], r15d
mov rax, qword [0x14001a7e0]
jne 0x140008d36
test rax, rax
je 0x140008c30
cmp rax, 0xffffffffffffffff
jne 0x140008d36
lea rax, [rsp + 0x58]
mov ebx, 0x11c
lea rcx, [rsp + 0x60]
mov esi, 1
xor edx, edx
mov r8d, ebx
mov qword [rsp + 0x48], rax
mov dword [rsp + 0x50], esi
call sub.msvcrt.dll_memset
lea rcx, [rsp + 0x60]
mov dword [rsp + 0x60], ebx
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x140008d01
cmp dword [rsp + 0x64], 6
jb 0x140008d01
lea ecx, [rsi + 0x3f]
mov edx, 0x200
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov rbx, rax
test rax, rax
je 0x140008d01
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x58]
cmp rcx, rax
je 0x140008ca4
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov r9d, 0x100
mov r8, rbx
mov edx, 0x1c
or rcx, 0xffffffffffffffff
mov qword [rsp + 0x48], rbx
mov word [rsp + 0x20], r15w
mov dword [rsp + 0x50], r9d
call qword [sym.imp.msi.dll_MsiDecomposeDescriptorW]
test eax, eax
je 0x140008d01
mov r8, qword [rsp + 0x48]
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x30], 0xfffe
lea r9, [rbp + 0x80]
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x20], r15
call qword [0x1400177a8]
test eax, eax
jns 0x140008d23
lea rdx, [rbp + 0x80]
mov r9d, 0x10
xor r8d, r8d
xor ecx, ecx
mov word [rsp + 0x28], r15w
mov dword [rsp + 0x20], edi
call qword [sym.imp.msi.dll_MsiProvideQualifiedComponentExW]
cmp dword [rsp + 0x50], esi
jle 0x140008d94
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x140008d94
test rax, rax
je 0x140008d94
cmp rax, 0xffffffffffffffff
je 0x140008d94
lea rcx, [rbp + 0x80]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov rcx, qword [0x14001a7e0]
lea r9, [rsp + 0x40]
lea rdx, [rbp + 0x80]
lea r8d, [rax + rax]
mov qword [rsp + 0x20], r15
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, qword [0x14001a7e0]
lea r9, [rsp + 0x40]
lea rdx, [0x1400021ac]
mov r8d, 4
mov qword [rsp + 0x20], r15
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, qword [rbp + 0x890]
xor rcx, rsp
call fcn.140015330
lea r11, [rsp + 0x9a0]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret