Function at 0x140039aa0
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 - 0x48]
sub rsp, 0x110
xor esi, esi
mov bl, dl
and dword [rsp + 0x70], esi
mov r12, rcx
call qword [sym.imp.ntoskrnl.exe_RtlImageNtHeader]
lea r8d, [rsi + 1]
mov rcx, r12
lea r9, [rsp + 0x70]
mov qword [rsp + 0x78], rax
mov dl, r8b
mov r14, rax
call qword [sym.imp.ntoskrnl.exe_RtlImageDirectoryEntryToData]
test rax, rax
je 0x140039ff0
lea r15, [rax + 0xc]
cmp dword [r15], esi
je 0x140039fee
mov r13, qword [rbp + 0x70]
test esi, esi
js 0x140039fee
mov eax, dword ds:[r15 - 0xc]
test eax, eax
jne 0x140039b28
mov eax, dword [r15 + 4]
mov edx, dword [r15]
lea rcx, [rbp - 0x60]
and dword [rsp + 0x40], 0
xorps xmm0, xmm0
xorps xmm1, xmm1
mov edi, eax
add rdx, r12
add rdi, r12
movups xmmword [rsp + 0x50], xmm0
movups xmmword [rsp + 0x60], xmm1
movups xmmword [rbp - 0x80], xmm0
movups xmmword [rbp - 0x60], xmm1
call qword [sym.imp.ntoskrnl.exe_RtlInitAnsiString]
mov r8b, 1
lea rdx, [rbp - 0x60]
lea rcx, [rsp + 0x50]
call qword [sym.imp.ntoskrnl.exe_RtlAnsiStringToUnicodeString]
test bl, bl
jne 0x140039bc7
mov rbx, qword [rbp + 0x60]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x50]
and qword [rsp + 0x20], 0
mov rdx, rbx
xor r8d, r8d
mov rcx, r13
call fcn.1400397c0
lea rdx, [rbp - 0x80]
mov esi, eax
lea rcx, [rsp + 0x60]
call fcn.14003af00
cmp esi, 0xc0000144
je 0x140039fd1
mov r8b, byte ds:[rbp + 0x68]
lea rdx, [rbp - 0x80]
mov rcx, rbx
call fcn.1400373c0
jmp 0x140039be5
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x60]
call fcn.14003ad80
xor edx, edx
lea rcx, [rsp + 0x50]
call fcn.140037300
mov ecx, dword [r15]
mov rbx, rax
add rcx, r12
or rax, 0xffffffffffffffff
inc rax
cmp byte [rcx + rax], 0
jne 0x140039bf2
mov r8d, eax
xor edx, edx
call fcn.140009540
test rbx, rbx
jne 0x140039da9
cmp byte [rbp + 0x58], bl
jne 0x140039fa1
test byte [rbp + 0x78], 1
je 0x140039c7a
xor edx, edx
lea r8d, [rbx + 0x58]
lea rcx, [rbp - 0x50]
call fcn.140009540
mov eax, dword [rbp + 0x78]
lea rcx, [rbp - 0x50]
mov qword [rsp + 0x38], rcx
lea rdx, [rsp + 0x60]
mov rcx, qword [rbp + 0x60]
bts eax, 0xf
mov qword [rsp + 0x30], r13
xor r9d, r9d
mov dword [rsp + 0x28], eax
xor r8d, r8d
mov byte [rsp + 0x20], bl
call fcn.140038540
mov esi, eax
test eax, eax
js 0x140039fa1
mov rbx, qword [rbp - 0x40]
test rbx, rbx
je 0x140039fa1
jmp 0x140039da9
xor edx, edx
lea rax, [rsp + 0x60]
lea r9, [0x14003b840]
mov qword [rsp + 0x20], rax
lea r8, [0x14003b860]
lea ecx, [rdx + 0x4d]
call qword [sym.imp.ntoskrnl.exe_DbgPrintEx]
mov eax, 0x20b
cmp word [r14 + 0x18], ax
jne 0x140039ce8
mov rcx, qword [r13 + 0x30]
lea rdx, [rbp - 0x80]
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 [r13 + 0x30]
add rcx, 0x1000
call qword [sym.imp.ntoskrnl.exe_RtlCopyUnicodeString]
jmp 0x140039d45
mov ecx, dword [r13 + 0x30]
mov edx, 0x800
mov rax, qword [r13 + 0x30]
mov ebx, 0x1010
add ecx, ebx
mov r8d, edx
mov dword [rax + 0x1004], ecx
mov rax, qword [r13 + 0x30]
mov word [rax + 0x1002], dx
xor edx, edx
mov rcx, qword [r13 + 0x30]
movzx eax, word [rbp - 0x80]
mov word [rcx + 0x1000], ax
mov rcx, qword [r13 + 0x30]
add rcx, rbx
call fcn.140009540
mov rcx, qword ds:[r13 + 0x30]
movzx r8d, word [rbp - 0x80]
add rcx, rbx
mov rdx, qword [rbp - 0x78]
call fcn.140009280
mov rax, qword [r13 + 0x30]
xor edx, edx
mov dword [rax + 0x1860], edx
lea r9d, [rdx + 4]
mov rax, qword [r13 + 0x30]
mov r8, qword [r13 + 0x50]
lea rcx, [rax + 0x1858]
add rax, 0x1000
cmp byte [r13 + 0x59], dl
mov qword [rsp + 0x38], rcx
mov qword [rsp + 0x30], rax
sete r10b
mov qword [rsp + 0x28], rdx
mov qword [rsp + 0x20], rdx
mov rdx, r13
movzx ecx, r10b
call fcn.140038140
mov rax, qword ds:[r13 + 0x30]
mov rbx, qword [rax + 0x1858]
test rbx, rbx
je 0x140039f9b
movzx ecx, word [r14 + 0x18]
mov r8d, 0x20b
cmp cx, r8w
jne 0x140039dbf
mov rax, qword [rdi]
jmp 0x140039dc1
mov eax, dword [rdi]
test rax, rax
je 0x140039f73
cmp cx, r8w
jne 0x140039dd9
mov rdx, qword [rdi]
lea r14, [r12 + rdx]
jmp 0x140039de1
mov r14d, dword [rdi]
mov edx, dword [rdi]
add r14, r12
cmp cx, r8w
mov eax, 0x80000000
movabs r9, 0x8000000000000000
cmove rax, r9
cmp rdx, rax
jae 0x140039e06
lea rdx, [r14 + 2]
cmp byte [rdx], 0
jne 0x140039e16
cmp cx, r8w
jne 0x140039e11
mov rax, qword [rdi]
jmp 0x140039e13
mov eax, dword [rdi]
movzx edx, ax
cmp byte [rbp + 0x58], 0
je 0x140039e25
mov rcx, qword [rbx + 0x30]
xor r8d, r8d
jmp 0x140039e2c
mov r8, qword [r13]
mov rcx, rbx
lea r9, [rsp + 0x60]
call fcn.140037000
mov r8, rax
mov rax, qword [rsp + 0x78]
movzx edx, word [rax + 0x18]
test r8, r8
je 0x140039ee5
mov ecx, dword [r15 + 4]
mov eax, 0x20b
cmp dx, ax
jne 0x140039e74
test ecx, ecx
je 0x140039e6b
mov edx, dword [rsp + 0x40]
lea rax, [r12 + rcx]
mov qword [rdx + rax], r8
jmp 0x140039e8c
mov rax, qword [rdi]
mov qword [rax + r12], r8
jmp 0x140039e8c
test ecx, ecx
je 0x140039e86
lea rax, [r12 + rcx]
mov ecx, dword [rsp + 0x40]
mov dword [rcx + rax], r8d
jmp 0x140039e8c
mov eax, dword [rdi]
mov dword [rax + r12], r8d
lea rcx, [r14 + 2]
or rax, 0xffffffffffffffff
inc rax
cmp byte [rcx + rax], 0
jne 0x140039e94
mov r8d, eax
xor edx, edx
call fcn.140009540
mov r14, qword ds:[rsp + 0x78]
mov edx, 4
mov r8d, 0x20b
mov eax, edx
movzx ecx, word [r14 + 0x18]
lea r9d, [rdx + 4]
cmp cx, r8w
cmove eax, r9d
add rdi, rax
mov eax, edx
cmp cx, r8w
cmove eax, r9d
add dword [rsp + 0x40], eax
jmp 0x140039db4
mov r8d, 0x20b
cmp dx, r8w
jne 0x140039ef6
mov rcx, qword [rdi]
jmp 0x140039ef8
mov ecx, dword [rdi]
mov eax, 0x80000000
movabs r9, 0x8000000000000000
cmove rax, r9
cmp rcx, rax
jae 0x140039f28
add r14, 2
cmp byte [r14], 0
je 0x140039f28
mov qword [rsp + 0x28], r14
lea r8, [0x14003b8d0]
jmp 0x140039f44
cmp dx, r8w
jne 0x140039f33
mov rax, qword [rdi]
jmp 0x140039f35
mov eax, dword [rdi]
movzx eax, ax
lea r8, [0x14003b900]
mov qword [rsp + 0x28], rax
movaps xmm0, xmmword [rsp + 0x50]
lea rax, [rbp - 0x70]
xor edx, edx
mov qword [rsp + 0x20], rax
lea r9, [0x14003b840]
movdqa xmmword [rbp - 0x70], xmm0
lea ecx, [rdx + 0x4d]
call qword [sym.imp.ntoskrnl.exe_DbgPrintEx]
mov r14, qword [rsp + 0x78]
mov esi, 0xc0000225
lea rcx, [rsp + 0x50]
call qword [sym.imp.ntoskrnl.exe_RtlFreeUnicodeString]
lea rcx, [rsp + 0x60]
call qword [sym.imp.ntoskrnl.exe_RtlFreeUnicodeString]
add r15, 0x14
cmp dword [r15], 0
je 0x140039fee
mov bl, byte [rbp + 0x58]
jmp 0x140039b10
mov esi, dword [rax + 0x1860]
movaps xmm0, xmmword [rsp + 0x50]
lea rax, [rbp - 0x70]
xor edx, edx
mov dword [rsp + 0x28], esi
lea r9, [0x14003b840]
movdqa xmmword [rbp - 0x70], xmm0
lea r8, [0x14003b890]
mov qword [rsp + 0x20], rax
lea ecx, [rdx + 0x4d]
call qword [sym.imp.ntoskrnl.exe_DbgPrintEx]
lea rcx, [rsp + 0x50]
call qword [sym.imp.ntoskrnl.exe_RtlFreeUnicodeString]
lea rcx, [rsp + 0x60]
call qword [sym.imp.ntoskrnl.exe_RtlFreeUnicodeString]
mov eax, 0xc0000225
jmp 0x140039ff0
mov eax, esi
mov rbx, qword [rsp + 0x150]
add rsp, 0x110
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret