Function at 0x12634
Capabilities:
Create thread

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r13
push r14
sub rsp, 0x180
mov rax, qword [0x0001c100]
xor rax, rsp
mov qword [rsp + 0x170], rax
lea rcx, [rsp + 0x50]
or r14, 0xffffffffffffffff
xor ebx, ebx
mov qword [rsp + 0x48], r14
call qword [sym.imp.ntoskrnl.exe_RtlGetVersion]
mov edx, dword [rsp + 0x54]
mov eax, dword [rsp + 0x58]
lea ecx, [rdx + rdx*4]
lea r12d, [r14 + 2]
lea edx, [rax + rcx*2]
movzx eax, byte [0x000dc2e1]
lea rdi, [0x000fec80]
cmp edx, 0x64
mov dword [0x000dc708], edx
lea r8, [0x000fe7d0]
cmove eax, r12d
lea rdx, [0x00019da0]
mov rcx, rdi
mov byte [0x000dc2e1], al
mov dword [rsp + 0x40], r12d
call fcn.0001194c
cmp eax, ebx
jge 0x126e4
lea r8, [0x000fe7d0]
lea rdx, [0x00019db0]
mov rcx, rdi
call fcn.0001194c
lea r8, [0x000fe7b8]
lea rdx, [0x00019dc0]
mov rcx, rdi
call fcn.0001194c
cmp eax, ebx
jge 0x12714
lea r8, [0x000fe7b8]
lea rdx, [0x00019dd0]
mov rcx, rdi
call fcn.0001194c
lea r8, [0x000fe810]
lea rdx, [0x00019de0]
mov rcx, rdi
call fcn.0001194c
cmp eax, ebx
jge 0x12744
lea r8, [0x000fe810]
lea rdx, [0x00019df0]
mov rcx, rdi
call fcn.0001194c
lea r8, [0x000fe820]
lea rdx, [0x00019e00]
mov rcx, rdi
call fcn.0001194c
mov r13d, 4
cmp eax, 0xc0000034
jne 0x1278e
mov rcx, qword [0x000fec88]
lea r9, [rsp + 0x40]
lea rdx, [0x00019e00]
mov r8d, r13d
mov dword [rsp + 0x20], r13d
call fcn.00011b34
mov byte [0x000fe820], 0x30
lea rbp, [0x000dcb30]
mov rcx, rdi
mov rdx, rbp
call fcn.00011f7c
cmp eax, ebx
jl 0x12a58
mov edx, 0x5c
mov rcx, rbp
call qword [sym.imp.ntoskrnl.exe_wcsrchr]
lea rdx, [0x00019cf0]
mov rcx, rbp
mov rsi, rax
call fcn.00011ccc
cmp eax, ebx
je 0x12a58
sub rsi, rbp
sar rsi, 1
cmp esi, ebx
jle 0x12805
xor eax, eax
mov rcx, r14
mov rdi, rbp
repne scasw ax, word [rdi]
not rcx
sub rcx, r12
cmp esi, ecx
jg 0x12805
lea r9d, [rsi - 4]
lea rcx, [0x000fe190]
mov r8d, r13d
mov rdx, rbp
call fcn.00011c64
mov edx, 0x5c
mov rcx, rbp
call qword [sym.imp.ntoskrnl.exe_wcsrchr]
mov rcx, r14
mov rdi, rbp
mov rsi, rax
xor eax, eax
repne scasw ax, word [rdi]
not rcx
sub rcx, r12
mov rdi, rcx
mov rcx, rsi
add edi, edi
call qword [sym.imp.ntoskrnl.exe_MmIsAddressValid]
lea r13, [0x000fe3a0]
cmp al, bl
je 0x12865
movsxd rax, edi
lea rdx, [rsi + 2]
lea r8, [rax + rax]
lea rax, [r8 + rbp]
cmp rdx, rax
jae 0x12865
sub r8, rsi
mov rcx, r13
add r8, rbp
sar r8, 1
call fcn.00019750
mov edx, 0x2e
mov rcx, r13
call qword [sym.imp.ntoskrnl.exe_wcsrchr]
mov r11, rax
sub r11, r13
sar r11, 1
cmp r11d, ebx
jle 0x128ae
xor eax, eax
mov rcx, r14
mov rdi, r13
repne scasw ax, word [rdi]
not rcx
sub rcx, r12
cmp r11d, ecx
jg 0x128ae
lea rcx, [0x000fe5b0]
mov r9d, r11d
xor r8d, r8d
mov rdx, r13
call fcn.00011c64
jmp 0x128c2
lea rcx, [0x000fe5b0]
mov r8, r13
mov edx, 0x208
call fcn.00011e34
lea rbp, [0x000dc920]
mov r12d, 0x104
lea r8, [0x000fe5b0]
mov rcx, rbp
mov rdx, r12
call fcn.00011e34
lea r8, [0x0001a030]
mov rdx, r12
mov rcx, rbp
call fcn.00011eac
lea rdi, [0x000dc500]
lea r8, [0x000fe190]
mov rcx, rdi
mov rdx, r12
call fcn.00011e34
lea r8, [0x00019d00]
mov rdx, r12
mov rcx, rdi
call fcn.00011eac
mov r8, rbp
mov rdx, r12
mov rcx, rdi
call fcn.00011eac
lea r8, [0x00019cf0]
lea rcx, [0x000dc710]
mov rdx, r12
call fcn.00011e34
lea rcx, [0x000dc710]
mov r8, rdi
mov rdx, r12
call fcn.00011eac
lea rsi, [0x000dcd40]
lea r8, [0x000fe5b0]
mov rcx, rsi
mov rdx, r12
call fcn.00011e34
lea r8, [0x0001a040]
mov rdx, r12
mov rcx, rsi
call fcn.00011eac
lea rdi, [0x000dcf50]
lea r8, [0x00019cf0]
mov rcx, rdi
mov rdx, r12
call fcn.00011e34
lea r8, [0x000fe190]
mov rdx, r12
mov rcx, rdi
call fcn.00011eac
lea r8, [0x00019d00]
mov rdx, r12
mov rcx, rdi
call fcn.00011eac
mov r8, rsi
mov rdx, r12
mov rcx, rdi
call fcn.00011eac
lea rcx, [0x000dd160]
xor edx, edx
mov r8d, 0x21020
call fcn.00019aa0
lea rcx, [0x000dd160]
mov r8, r13
mov rdx, r12
call fcn.00011eac
lea rcx, [0x000dd368]
mov r8, rbp
mov rdx, r12
call fcn.00011eac
lea rcx, [0x000dd570]
mov r8, rsi
mov rdx, r12
call fcn.00011eac
mov qword [rsp + 0x30], rbx
lea rax, [0x00012548]
mov qword [rsp + 0x28], rax
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rbx
mov dword [0x000dc2ec], 3
xor edx, edx
lea rcx, [rsp + 0x48]
call qword [sym.imp.ntoskrnl.exe_PsCreateSystemThread]
cmp eax, ebx
jl 0x12a5d
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
jmp 0x12a5d
mov ebx, 0xc0000001
mov eax, ebx
mov rcx, qword [rsp + 0x170]
xor rcx, rsp
call fcn.000196e0
lea r11, [rsp + 0x180]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop r13
pop r12
ret