Function at 0x140003228
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 0x14000349c
lea r14, [rax + 0xc]
cmp dword [r14], r13d
je 0x140003499
test r13d, r13d
js 0x140003499
mov eax, dword [r14 - 0xc]
test eax, eax
jne 0x1400032a3
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.1400028d4
xor edx, edx
lea rcx, [rbp - 0x30]
call fcn.140002b30
mov rbx, rax
test rax, rax
je 0x1400034bd
movzx esi, word [rsi + 0x18]
mov r8d, 0x20b
cmp si, r8w
jne 0x140003318
mov rax, qword [rdi]
jmp 0x14000331a
mov eax, dword [rdi]
test rax, rax
je 0x140003473
cmp si, r8w
jne 0x140003332
mov rcx, qword [rdi]
lea r15, [r12 + rcx]
jmp 0x14000333a
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 0x140003363
lea rdx, [r15 + 2]
cmp byte [rdx], 0
jne 0x140003373
cmp si, r8w
jne 0x14000336e
mov rax, qword [rdi]
jmp 0x140003370
mov eax, dword [rdi]
movzx edx, ax
cmp byte [rbp + 0x38], 0
je 0x14000337f
mov rcx, qword [rbx + 0x30]
jmp 0x140003382
mov rcx, rbx
lea r9, [rbp - 0x20]
xor r8d, r8d
call fcn.140002a00
mov rdx, rax
test rax, rax
je 0x140003405
mov eax, dword [r14 + 4]
mov r8d, 0x20b
cmp si, r8w
jne 0x1400033bf
test eax, eax
je 0x1400033b6
mov ecx, dword [rbp - 0x50]
add rax, r12
mov qword [rcx + rax], rdx
jmp 0x1400033d4
mov rax, qword [rdi]
mov qword [rax + r12], rdx
jmp 0x1400033d4
test eax, eax
je 0x1400033ce
mov ecx, dword [rbp - 0x50]
add rax, r12
mov dword [rcx + rax], edx
jmp 0x1400033d4
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 0x14000330d
mov ecx, 0x20b
cmp si, cx
jne 0x140003414
mov rax, qword [rdi]
jmp 0x140003416
mov eax, dword [rdi]
cmp rax, qword [rbp - 0x40]
jae 0x14000342e
lea rax, [r15 + 2]
cmp byte [rax], 0
je 0x14000342e
lea r8, [0x140003fb0]
jmp 0x140003444
cmp si, cx
jne 0x140003438
mov rax, qword [rdi]
jmp 0x14000343a
mov eax, dword [rdi]
movzx eax, ax
lea r8, [0x140003ff0]
movaps xmm0, xmmword [rbp - 0x30]
lea r9, [0x140003f50]
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 0x14000328e
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, [0x140003f50]
mov qword [rsp + 0x20], rdx
lea r8, [0x140003f70]
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 0x14000349c