Function at 0x140008ae8
Capabilities:
Access pe header

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov byte [rax + 0x20], r9b
mov qword [rax + 0x18], r8
mov byte [rax + 0x10], dl
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x4f]
sub rsp, 0xf0
xor r12d, r12d
mov bl, dl
and dword [rsp + 0x40], r12d
mov r14, rcx
call qword [sym.imp.ntoskrnl.exe_RtlImageNtHeader]
lea r8d, [r12 + 1]
mov rcx, r14
lea r9, [rsp + 0x40]
mov qword [rsp + 0x48], rax
mov dl, r8b
call qword [sym.imp.ntoskrnl.exe_RtlImageDirectoryEntryToData]
test rax, rax
je 0x140008eeb
lea rsi, [rax + 0xc]
cmp dword [rsi], r12d
je 0x140008ee8
mov r15, qword [rbp + 0x77]
test r12d, r12d
js 0x140008ee8
mov eax, dword [rsi - 0xc]
test eax, eax
jne 0x140008b6b
mov eax, dword [rsi + 4]
mov edx, dword [rsi]
lea rcx, [rbp - 0x59]
xorps xmm0, xmm0
mov edi, eax
xorps xmm1, xmm1
add rdx, r14
add rdi, r14
xor r13d, r13d
movups xmmword [rbp - 0x69], xmm0
movups xmmword [rsp + 0x50], xmm1
movups xmmword [rbp - 0x79], xmm0
movups xmmword [rbp - 0x59], xmm1
call qword [sym.imp.ntoskrnl.exe_RtlInitAnsiString]
mov r8b, 1
lea rdx, [rbp - 0x59]
lea rcx, [rbp - 0x69]
call qword [sym.imp.ntoskrnl.exe_RtlAnsiStringToUnicodeString]
test bl, bl
jne 0x140008c03
mov rbx, qword [rbp + 0x67]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x28], rax
lea r9, [rbp - 0x69]
and qword [rsp + 0x20], r13
mov rdx, rbx
xor r8d, r8d
mov rcx, r15
call fcn.14000887c
lea rdx, [rbp - 0x79]
mov r12d, eax
lea rcx, [rsp + 0x50]
call fcn.14000a014
cmp r12d, 0xc0000144
je 0x140008ecc
mov r8b, byte [rbp + 0x6f]
lea rdx, [rbp - 0x79]
mov rcx, rbx
call fcn.140006b80
jmp 0x140008c1c
lea rdx, [rbp - 0x69]
lea rcx, [rsp + 0x50]
call fcn.140009f28
xor edx, edx
lea rcx, [rbp - 0x69]
call fcn.140006af8
mov rbx, rax
test rax, rax
jne 0x140008d98
cmp byte [rbp + 0x5f], r13b
jne 0x140008ecc
test byte [rbp + 0x7f], 1
je 0x140008c8d
xor edx, edx
lea r8d, [rax + 0x58]
lea rcx, [rbp - 0x49]
call fcn.1400021c0
mov eax, dword [rbp + 0x7f]
lea rcx, [rbp - 0x49]
mov qword [rsp + 0x38], rcx
lea rdx, [rsp + 0x50]
mov rcx, qword [rbp + 0x67]
bts eax, 0xf
mov qword [rsp + 0x30], r15
xor r9d, r9d
mov dword [rsp + 0x28], eax
xor r8d, r8d
mov byte [rsp + 0x20], r13b
call fcn.140007834
mov r12d, eax
test eax, eax
js 0x140008ecc
mov rbx, qword [rbp - 0x39]
jmp 0x140008d8f
mov rax, qword [rsp + 0x48]
mov ecx, 0x20b
cmp word [rax + 0x18], cx
jne 0x140008cdc
mov rcx, qword [r15 + 0x30]
lea rdx, [rbp - 0x79]
xorps xmm0, xmm0
mov eax, 0x800
movups xmmword [rcx + 0x1000], xmm0
mov word [rcx + 0x1002], ax
lea rax, [rcx + 0x1010]
mov qword [rcx + 0x1008], rax
mov rcx, qword [r15 + 0x30]
add rcx, 0x1000
call qword [sym.imp.ntoskrnl.exe_RtlCopyUnicodeString]
jmp 0x140008d36
mov ecx, dword [r15 + 0x30]
mov edx, 0x800
mov rax, qword [r15 + 0x30]
mov ebx, 0x1010
add ecx, ebx
mov r8d, edx
mov dword [rax + 0x1004], ecx
mov rax, qword [r15 + 0x30]
mov word [rax + 0x1002], dx
xor edx, edx
mov rcx, qword [r15 + 0x30]
movzx eax, word [rbp - 0x79]
mov word [rcx + 0x1000], ax
mov rcx, qword [r15 + 0x30]
add rcx, rbx
call fcn.1400021c0
mov rcx, qword [r15 + 0x30]
movzx r8d, word [rbp - 0x79]
add rcx, rbx
mov rdx, qword [rbp - 0x71]
call fcn.1400022c0
mov rax, qword [r15 + 0x30]
mov r9d, 4
mov rdx, r15
and dword [rax + 0x1860], r13d
mov rax, qword [r15 + 0x30]
mov r8, qword [r15 + 0x50]
lea rcx, [rax + 0x1858]
add rax, 0x1000
cmp byte [r15 + 0x59], r13b
mov qword [rsp + 0x38], rcx
sete r10b
mov qword [rsp + 0x30], rax
and qword [rsp + 0x28], r13
and qword [rsp + 0x20], r13
movzx ecx, r10b
call fcn.1400073c8
mov rbx, qword [r15 + 0x30]
mov rbx, qword [rbx + 0x1858]
test rbx, rbx
je 0x140008ecc
mov r9, qword [rsp + 0x48]
mov r10d, 0x20b
movzx ecx, word [r9 + 0x18]
cmp cx, r10w
jne 0x140008db3
mov rax, qword [rdi]
jmp 0x140008db5
mov eax, dword [rdi]
test rax, rax
je 0x140008ea6
cmp cx, r10w
jne 0x140008dcd
mov r8, qword [rdi]
lea rdx, [r14 + r8]
jmp 0x140008dd5
mov edx, dword [rdi]
mov r8d, dword [rdi]
add rdx, r14
cmp cx, r10w
mov eax, 0x80000000
movabs r9, 0x8000000000000000
cmove rax, r9
cmp r8, rax
jae 0x140008dfa
add rdx, 2
cmp byte [rdx], 0
jne 0x140008e0a
cmp cx, r10w
jne 0x140008e05
mov rax, qword [rdi]
jmp 0x140008e07
mov eax, dword [rdi]
movzx edx, ax
cmp byte [rbp + 0x5f], 0
je 0x140008e19
mov rcx, qword [rbx + 0x30]
xor r8d, r8d
jmp 0x140008e1f
mov r8, qword [r15]
mov rcx, rbx
lea r9, [rsp + 0x50]
call fcn.140006844
mov r8, rax
test rax, rax
je 0x140008ea0
mov r9, qword [rsp + 0x48]
mov r10d, 0x20b
mov ecx, dword [rsi + 4]
cmp word [r9 + 0x18], r10w
jne 0x140008e5e
test ecx, ecx
je 0x140008e55
lea rax, [r14 + rcx]
mov qword [r13 + rax], r8
jmp 0x140008e73
mov rax, qword [rdi]
mov qword [rax + r14], r8
jmp 0x140008e73
test ecx, ecx
je 0x140008e6d
lea rax, [r14 + rcx]
mov dword [r13 + rax], r8d
jmp 0x140008e73
mov eax, dword [rdi]
mov dword [rax + r14], r8d
movzx ecx, word [r9 + 0x18]
mov edx, 4
cmp cx, r10w
mov eax, edx
lea r8d, [rdx + 4]
cmove eax, r8d
add rdi, rax
mov eax, edx
cmp cx, r10w
cmove eax, r8d
add r13d, eax
jmp 0x140008da8
mov r12d, 0xc0000225
lea rcx, [rbp - 0x69]
call qword [sym.imp.ntoskrnl.exe_RtlFreeUnicodeString]
lea rcx, [rsp + 0x50]
call qword [sym.imp.ntoskrnl.exe_RtlFreeUnicodeString]
add rsi, 0x14
cmp dword [rsi], 0
je 0x140008ee8
mov bl, byte [rbp + 0x5f]
jmp 0x140008b58
lea rcx, [rbp - 0x69]
call qword [sym.imp.ntoskrnl.exe_RtlFreeUnicodeString]
lea rcx, [rsp + 0x50]
call qword [sym.imp.ntoskrnl.exe_RtlFreeUnicodeString]
mov eax, 0xc0000225
jmp 0x140008eeb
mov eax, r12d
mov rbx, qword [rsp + 0x130]
add rsp, 0xf0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret