Function at 0x140017520
Capabilities:
Acquire debug privileges
Get system information on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x90
mov rax, qword [0x14008e030]
xor rax, rsp
mov qword [rsp + 0x88], rax
mov rdi, rcx
mov qword [rsp + 0x40], rcx
xor r14d, r14d
mov qword [rcx], r14
mov qword [rcx + 8], r14
mov ecx, 0x108
call fcn.140047f98
mov qword [rax], rax
mov qword [rax + 8], rax
mov qword [rax + 0x10], rax
mov word [rax + 0x18], 0x101
mov qword [rdi], rax
lea rsi, [rdi + 0x10]
mov qword [rsp + 0x38], rsi
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
mov qword [rsi + 0x10], r14
mov qword [rsi + 0x18], 7
mov word [rsi], r14w
movups xmmword [rsi + 0x20], xmm0
mov qword [rsi + 0x30], r14
mov qword [rsi + 0x38], 7
mov word [rsi + 0x20], r14w
lea rax, [rsi + 0x48]
mov qword [rsp + 0x30], rax
mov qword [rax], r14
mov qword [rax + 8], r14
mov qword [rax + 0x10], r14
lea rcx, [rax + 0x18]
movups xmmword [rcx], xmm0
mov qword [rcx + 0x10], r14
mov qword [rcx + 0x18], r14
xor r8d, r8d
lea rdx, [0x14007e430]
call fcn.140002880
nop
lea rax, [rsi + 0x20]
cmp qword [rsi + 0x38], 8
jb 0x1400175f7
mov rax, qword [rsi + 0x20]
mov qword [rsi + 0x30], r14
mov word [rax], r14w
lea rdx, [rsi + 0x20]
mov rcx, rsi
call fcn.140013390
mov dword [rsi + 0x40], r14d
mov byte [rsi + 0x88], 0
mov qword [rsi + 0x80], r14
lea r15, [rdi + 0xa0]
mov qword [rsp + 0x38], r15
mov qword [r15], r14
lea rcx, [r15 + 8]
mov edx, 0x102
call fcn.140028ec0
nop
lea rbx, [r15 + 0x58]
mov qword [rsp + 0x30], rbx
mov qword [rbx], r14
mov qword [rbx + 8], r14
mov ecx, 0x90
call fcn.140047f98
mov qword [rax], rax
mov qword [rax + 8], rax
mov qword [rax + 0x10], rax
mov word [rax + 0x18], 0x101
mov qword [rbx], rax
mov qword [r15 + 0x70], r14
mov qword [rdi + 0x180], r14
mov dword [rdi + 0x13c], 0x4cbebc20
mov dword [rdi + 0x12c], 0x4cbebc20
mov dword [rdi + 0x128], 0x4cbebc20
mov dword [rdi + 0x124], 0x4cbebc20
mov dword [rdi + 0x120], 0x4cbebc20
mov dword [rdi + 0x11c], 0x4cbebc20
mov dword [rdi + 0x118], 0x4cbebc20
mov dword [rdi + 0x138], 0x4cbebc20
mov dword [rdi + 0x134], 0x4cbebc20
mov dword [rdi + 0x130], 0x4cbebc20
mov qword [rdi + 0x158], r14
mov qword [rdi + 0x150], r14
mov qword [rdi + 0x148], r14
mov qword [rdi + 0x140], r14
mov qword [rdi + 0x178], r14
mov qword [rdi + 0x170], r14
mov qword [rdi + 0x168], r14
mov qword [rdi + 0x160], r14
mov dword [rdi + 0x188], 0x60
mov dword [rdi + 0x18c], 0x61
mov dword [rdi + 0x190], 0x62
mov dword [rdi + 0x194], 0x63
mov dword [rdi + 0x198], 0x64
mov dword [rdi + 0x19c], 0x65
mov dword [rdi + 0x1a0], 0x66
mov dword [rdi + 0x1a4], 0x67
mov dword [rdi + 0x1a8], 0x68
mov dword [rdi + 0x1ac], 0x69
mov dword [rdi + 0x1b0], 0x6e
mov dword [rdi + 0x1b4], 0x6b
mov dword [rdi + 0x1b8], 0x6d
lea rcx, [rdi + 0x1c0]
call fcn.140020790
nop
mov dword [rdi + 0x268], 0xffffffff
lea rbp, [rdi + 0x270]
xorps xmm0, xmm0
movups xmmword [rbp], xmm0
mov qword [rbp + 0x10], r14
mov qword [rbp + 0x18], 7
mov word [rbp], r14w
lea r12, [rdi + 0x290]
movups xmmword [r12], xmm0
mov qword [r12 + 0x10], r14
mov qword [r12 + 0x18], 7
mov word [r12], r14w
movups xmmword [rdi + 0x2b0], xmm0
mov qword [rdi + 0x2c0], r14
mov qword [rdi + 0x2c8], 7
mov word [rdi + 0x2b0], r14w
lea r14, [rdi + 0x2d0]
movups xmmword [r14], xmm0
lea r13, [r14 + 0x10]
xor ebx, ebx
mov qword [r13], rbx
mov qword [r14 + 0x18], 7
mov word [r14], bx
cmp qword [rbp + 0x18], 0x20
jb 0x14001785b
mov rbx, qword [rbp]
mov qword [rbp + 0x10], 0x20
mov r8d, 0x40
lea rdx, str.ffxv_s.exe_ffxv_o.exe_ffxv_u.exe
mov rcx, rbx
call fcn.140049eb0
xor eax, eax
mov word [rbx + 0x40], ax
xor ebx, ebx
jmp 0x14001786f
lea r9, str.ffxv_s.exe_ffxv_o.exe_ffxv_u.exe
mov edx, 0x20
mov rcx, rbp
call fcn.1400065a0
mov rdx, rbp
mov rcx, r12
call fcn.140013390
mov qword [rsp + 0x30], rbx
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea r8, [rsp + 0x30]
mov edx, 0x28
call qword [0x140091d28]
test eax, eax
je 0x140017904
lea r8, [rsp + 0x38]
lea rdx, str.SeDebugPrivilege
xor ecx, ecx
call qword [0x140091d30]
test eax, eax
je 0x1400178f9
mov dword [rsp + 0x78], 1
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x7c], rax
mov dword [rsp + 0x84], 2
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rbx
mov r9d, 0x10
lea r8, [rsp + 0x78]
xor edx, edx
mov rcx, qword [rsp + 0x30]
call qword [0x140091d38]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [r14 + 0x18]
cmp rax, 7
jb 0x14001793b
cmp rax, 8
jb 0x140017917
mov r14, qword [r14]
mov qword [r13], 7
mov r8d, 0xe
lea rdx, str.NOT_SET
mov rcx, r14
call fcn.140049eb0
mov word [r14 + 0xe], bx
jmp 0x14001794f
lea r9, str.NOT_SET
mov edx, 7
mov rcx, r14
call fcn.1400065a0
mov r8, r12
mov rdx, rbp
mov rcx, rsi
call fcn.14001f650
mov qword [r15 + 0x70], rsi
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
movups xmmword [rsp + 0x58], xmm0
movups xmmword [rsp + 0x68], xmm0
mov dword [rsp + 0x30], ebx
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea rdx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_IsWow64Process]
lea rcx, [rsp + 0x48]
cmp dword [rsp + 0x30], 0
je 0x14001799f
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
jmp 0x1400179a5
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov qword [r15], 0x1000
mov qword [rdi + 0x180], r15
mov qword [rdi + 0x1c8], r15
mov rax, rdi
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.140047f70
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret