Function at 0x140003688
Capabilities:
Access pe header

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov byte [rax + 0x10], dl
push rbp
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x80
xor r13d, r13d
mov r12, rcx
and dword [rbp - 0x4c], r13d
call qword [sym.imp.ntoskrnl.exe_RtlImageNtHeader]
lea r8d, [r13 + 1]
mov rcx, r12
lea r9, [rbp - 0x4c]
mov qword [rbp - 0x48], rax
mov dl, r8b
mov rsi, rax
call qword [sym.imp.ntoskrnl.exe_RtlImageDirectoryEntryToData]
test rax, rax
je 0x1400038fc
lea r14, [rax + 0xc]
cmp dword [r14], r13d
je 0x1400038f9
test r13d, r13d
js 0x1400038f9
mov eax, dword [r14 - 0xc]
test eax, eax
jne 0x140003703
mov eax, dword [r14 + 4]
mov edx, dword [r14]
lea rcx, [rbp - 0x10]
and dword [rbp - 0x50], 0
xorps xmm0, xmm0
mov edi, eax
xorps xmm1, xmm1
add rdx, r12
add rdi, r12
movups xmmword [rbp - 0x30], xmm0
movups xmmword [rbp - 0x20], xmm1
movups xmmword [rbp - 0x10], xmm0
call qword [sym.imp.ntoskrnl.exe_RtlInitAnsiString]
mov r8b, 1
lea rdx, [rbp - 0x10]
lea rcx, [rbp - 0x30]
call qword [sym.imp.ntoskrnl.exe_RtlAnsiStringToUnicodeString]
lea rdx, [rbp - 0x30]
lea rcx, [rbp - 0x20]
call fcn.140002d34
xor edx, edx
lea rcx, [rbp - 0x30]
call fcn.140002f90
mov rbx, rax
test rax, rax
je 0x14000391d
movzx esi, word [rsi + 0x18]
mov r8d, 0x20b
cmp si, r8w
jne 0x140003778
mov rax, qword [rdi]
jmp 0x14000377a
mov eax, dword [rdi]
test rax, rax
je 0x1400038d3
cmp si, r8w
jne 0x140003792
mov rcx, qword [rdi]
lea r15, [r12 + rcx]
jmp 0x14000379a
mov r15d, dword [rdi]
mov ecx, dword [rdi]
add r15, r12
cmp si, r8w
mov eax, 0x80000000
movabs rdx, 0x8000000000000000
cmove rax, rdx
mov qword [rbp - 0x40], rax
cmp rcx, rax
jae 0x1400037c3
lea rdx, [r15 + 2]
cmp byte [rdx], 0
jne 0x1400037d3
cmp si, r8w
jne 0x1400037ce
mov rax, qword [rdi]
jmp 0x1400037d0
mov eax, dword [rdi]
movzx edx, ax
cmp byte [rbp + 0x38], 0
je 0x1400037df
mov rcx, qword [rbx + 0x30]
jmp 0x1400037e2
mov rcx, rbx
lea r9, [rbp - 0x20]
xor r8d, r8d
call fcn.140002e60
mov rdx, rax
test rax, rax
je 0x140003865
mov eax, dword [r14 + 4]
mov r8d, 0x20b
cmp si, r8w
jne 0x14000381f
test eax, eax
je 0x140003816
mov ecx, dword [rbp - 0x50]
add rax, r12
mov qword [rcx + rax], rdx
jmp 0x140003834
mov rax, qword [rdi]
mov qword [rax + r12], rdx
jmp 0x140003834
test eax, eax
je 0x14000382e
mov ecx, dword [rbp - 0x50]
add rax, r12
mov dword [rcx + rax], edx
jmp 0x140003834
mov eax, dword [rdi]
mov dword [rax + r12], edx
mov rax, qword [rbp - 0x48]
mov r15d, 4
movzx esi, word [rax + 0x18]
lea ecx, [r15 + 4]
cmp si, r8w
mov eax, r15d
cmove eax, ecx
add rdi, rax
mov eax, r15d
cmp si, r8w
cmove eax, ecx
add dword [rbp - 0x50], eax
jmp 0x14000376d
mov ecx, 0x20b
cmp si, cx
jne 0x140003874
mov rax, qword [rdi]
jmp 0x140003876
mov eax, dword [rdi]
cmp rax, qword [rbp - 0x40]
jae 0x14000388e
lea rax, [r15 + 2]
cmp byte [rax], 0
je 0x14000388e
lea r8, [0x140004570]
jmp 0x1400038a4
cmp si, cx
jne 0x140003898
mov rax, qword [rdi]
jmp 0x14000389a
mov eax, dword [rdi]
movzx eax, ax
lea r8, [0x1400045b0]
movaps xmm0, xmmword [rbp - 0x30]
lea r9, [0x140004510]
mov qword [rsp + 0x28], rax
xor edx, edx
lea rax, [rbp - 0x40]
movdqa xmmword [rbp - 0x40], xmm0
mov qword [rsp + 0x20], rax
lea ecx, [rdx + 0x4d]
call qword [sym.imp.ntoskrnl.exe_DbgPrintEx]
mov r13d, 0xc0000225
lea rcx, [rbp - 0x30]
call qword [sym.imp.ntoskrnl.exe_RtlFreeUnicodeString]
lea rcx, [rbp - 0x20]
call qword [sym.imp.ntoskrnl.exe_RtlFreeUnicodeString]
mov rsi, qword [rbp - 0x48]
add r14, 0x14
cmp dword [r14], 0
jne 0x1400036ee
mov eax, r13d
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
movaps xmm0, xmmword [rbp - 0x30]
lea rdx, [rbp - 0x40]
mov dword [rsp + 0x28], r13d
lea r9, [0x140004510]
mov qword [rsp + 0x20], rdx
lea r8, [0x140004530]
xor edx, edx
movdqa xmmword [rbp - 0x40], xmm0
lea ecx, [rdx + 0x4d]
call qword [sym.imp.ntoskrnl.exe_DbgPrintEx]
lea rcx, [rbp - 0x30]
call qword [sym.imp.ntoskrnl.exe_RtlFreeUnicodeString]
lea rcx, [rbp - 0x20]
call qword [sym.imp.ntoskrnl.exe_RtlFreeUnicodeString]
mov eax, 0xc0000225
jmp 0x1400038fc