Function at 0x140008520
Capabilities:
Access peb ldr_data
Check os version
Get ntdll base address

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x80]
sub rsp, 0x180
mov rax, qword [0x140035040]
xor rax, rsp
mov qword [rbp + 0x70], rax
mov r13, rdx
mov r12, rcx
mov r14, qword [rbp + 0xe0]
mov r15, qword [rbp + 0xe8]
mov edi, 0xc0000001
xor r8d, r8d
mov qword [rbp - 0x28], r8
mov qword [rbp - 0x30], r8
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp + 0x10], xmm0
movups xmmword [rbp + 0x20], xmm0
movups xmmword [rbp + 0x30], xmm0
movups xmmword [rbp + 0x40], xmm0
movups xmmword [rbp + 0x50], xmm0
mov qword [rbp + 0x60], rax
mov qword [rbp - 0x48], r8
mov ebx, r8d
movups xmmword [rbp - 0x40], xmm0
xorps xmm1, xmm1
movups xmmword [rbp - 8], xmm1
movups xmmword [rbp - 0x18], xmm0
mov rax, qword gs:[0x30]
mov rcx, qword [rax + 0x30]
mov rdx, qword [rcx + 0x60]
test rdx, rdx
jne 0x1400085bc
mov eax, r8d
jmp 0x1400085d1
movabs rax, 0x100000000000
cmp dword [rdx + 0x118], 0xa
cmovne rax, r8
movabs rcx, 0x20000000000
or rax, rcx
mov qword [rbp - 0x20], rax
mov dword [rsp + 0x60], 0x510c4d1b
mov dword [rsp + 0x64], 0x2f6bae71
mov dword [rsp + 0x68], 0x414205fe
mov dword [rsp + 0x6c], 0x22ae4117
mov dword [rsp + 0x70], 0x66f535ad
mov dword [rsp + 0x74], 0x59bf91db
mov dword [rsp + 0x78], 0x6302423c
mov dword [rsp + 0x7c], 0x68a85f5d
mov dword [rbp - 0x80], 0x61107aca
mov dword [rbp - 0x7c], 0x15ce48f6
mov r9d, 9
lea r8d, [r9 + 0x2e]
mov word [rsp + 0x20], 0x35
lea rdx, [rsp + 0x60]
lea rcx, [rbp - 0x70]
call fcn.140004b60
lea rax, [rbp - 0x70]
mov qword [rbp - 0x78], rax
mov esi, 4
mov rax, qword gs:[0x58]
add rsi, qword [rax]
mov eax, dword [rsi]
cmp dword [0x140091100], eax
jle 0x1400086b3
lea rcx, [0x140091100]
call fcn.14000b098
cmp dword [0x140091100], 0xffffffff
jne 0x1400086b3
xor edx, edx
mov ecx, 0x84c05e40
call fcn.140009970
mov edx, 0xfa2a9aa9
mov rcx, rax
call fcn.140009cb0
mov qword [0x140091108], rax
lea rcx, [0x140091100]
call fcn.14000b02c
cmp qword [0x140091108], 0
je 0x140008a75
mov eax, dword [rsi]
cmp dword [0x1400910f0], eax
jle 0x14000870c
lea rcx, [0x1400910f0]
call fcn.14000b098
cmp dword [0x1400910f0], 0xffffffff
jne 0x14000870c
xor edx, edx
mov ecx, 0x84c05e40
call fcn.140009970
mov edx, 0x38adff8b
mov rcx, rax
call fcn.140009cb0
mov qword [0x1400910e8], rax
lea rcx, [0x1400910f0]
call fcn.14000b02c
cmp qword [0x1400910e8], 0
je 0x140008a75
mov eax, dword [rsi]
cmp dword [0x1400910e0], eax
jle 0x140008765
lea rcx, [0x1400910e0]
call fcn.14000b098
cmp dword [0x1400910e0], 0xffffffff
jne 0x140008765
xor edx, edx
mov ecx, 0x84c05e40
call fcn.140009970
mov edx, 0x1ecb27f1
mov rcx, rax
call fcn.140009cb0
mov qword [0x1400910f8], rax
lea rcx, [0x1400910e0]
call fcn.14000b02c
cmp qword [0x1400910f8], 0
je 0x140008a75
mov eax, dword [rsi]
cmp dword [0x140091110], eax
jle 0x1400087be
lea rcx, [0x140091110]
call fcn.14000b098
cmp dword [0x140091110], 0xffffffff
jne 0x1400087be
xor edx, edx
mov ecx, 0x84c05e40
call fcn.140009970
mov edx, 0x519b3fd7
mov rcx, rax
call fcn.140009cb0
mov qword [0x1400910d8], rax
lea rcx, [0x140091110]
call fcn.14000b02c
cmp qword [0x1400910d8], 0
je 0x140008a75
mov esi, 0x208
mov word [rbp - 0x3e], si
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
mov r8d, esi
mov edx, 8
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rbp - 0x38], rax
test rax, rax
je 0x140008a15
lea rdx, str.___
lea rcx, [rbp - 0x40]
call qword [0x1400910e8]
mov rdx, r12
lea rcx, [rbp - 0x40]
call qword [0x1400910e8]
mov rax, qword [0x140091108]
mov rdx, qword [rbp - 0x78]
lea rcx, [rbp - 8]
call rax
mov rdx, r13
lea rcx, [rbp - 0x18]
call qword [0x140091108]
mov qword [rbp + 0x10], 0x58
xor esi, esi
mov dword [rbp + 0x18], esi
mov dword [rsp + 0x50], 1
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x28], rsi
lea rax, [rbp - 0x18]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 8]
xor r8d, r8d
lea rdx, [rbp - 0x40]
lea rcx, [rbp - 0x48]
call qword [0x1400910f8]
mov edi, eax
test eax, eax
jne 0x140008a15
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
lea edx, [rsi + 8]
mov r8d, 0x88
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbx, rax
test rax, rax
je 0x140008a15
mov qword [rax + 8], 0x20005
movzx eax, word [rbp - 0x40]
mov qword [rbx + 0x10], rax
mov rax, qword [rbp - 0x38]
mov qword [rbx + 0x18], rax
lea edi, [rsi + 1]
cmp qword [rbp - 0x20], rsi
je 0x1400088eb
mov qword [rbx + 0x28], 0x20010
mov qword [rbx + 0x30], 8
lea rax, [rbp - 0x20]
mov qword [rbx + 0x38], rax
lea edi, [rsi + 2]
lea r8, [rbp - 0x30]
mov edx, 0xa
mov rcx, 0xffffffffffffffff
call fcn.14000af74
test eax, eax
jne 0x140008950
lea rax, [rbp - 0x28]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 1
xor r9d, r9d
xor r8d, r8d
mov edx, 0xf01ff
mov rcx, qword [rbp - 0x30]
call fcn.14000ad63
test eax, eax
jne 0x140008950
mov ecx, edi
shl rcx, 5
mov qword [rcx + rbx + 8], 0x60002
mov qword [rcx + rbx + 0x10], 8
mov rax, qword [rbp - 0x28]
mov qword [rcx + rbx + 0x18], rax
inc edi
mov eax, edi
shl rax, 5
add rax, 8
mov qword [rbx], rax
mov qword [rsp + 0x50], rbx
lea rax, [rbp + 0x10]
mov qword [rsp + 0x48], rax
mov rax, qword [rbp - 0x48]
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x38], 1
mov dword [rsp + 0x30], esi
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rsi
mov r9d, 0x1fffff
mov r8d, r9d
mov rdx, r15
mov rcx, r14
call fcn.14000af5c
mov edi, eax
test eax, eax
je 0x140008a15
mov rax, qword [0x140090f48]
test rax, rax
jne 0x1400089d5
xor edx, edx
mov ecx, 0x84c05e40
call fcn.140009970
mov edx, 0x44ac5182
mov rcx, rax
call fcn.140009cb0
mov qword [0x140090f48], rax
test rax, rax
je 0x140008a15
mov qword [rsp + 0x50], rbx
lea rdx, [rbp + 0x10]
mov qword [rsp + 0x48], rdx
mov r8, qword [rbp - 0x48]
mov qword [rsp + 0x40], r8
mov dword [rsp + 0x38], 1
mov dword [rsp + 0x30], esi
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rsi
mov r9d, 0x1fffff
mov r8d, r9d
mov rdx, r15
mov rcx, r14
call rax
mov edi, eax
cmp qword [rbp - 0x38], 0
je 0x140008a31
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
mov r8, qword [rbp - 0x38]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
test rbx, rbx
je 0x140008a4a
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, qword [rbp - 0x48]
test rcx, rcx
je 0x140008a59
call qword [0x1400910d8]
mov rcx, qword [rbp - 0x30]
test rcx, rcx
je 0x140008a67
call fcn.14000ad8a
mov rcx, qword [rbp - 0x28]
test rcx, rcx
je 0x140008a75
call fcn.14000ad8a
mov eax, edi
mov rcx, qword [rbp + 0x70]
xor rcx, rsp
call fcn.14000afd0
mov rbx, qword [rsp + 0x1d0]
add rsp, 0x180
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret