Function at 0x140013fbc
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 rsi, rcx
call qword [sym.imp.ntoskrnl.exe_RtlImageNtHeader]
lea r8d, [r12 + 1]
mov rcx, rsi
lea r9, [rsp + 0x40]
mov qword [rsp + 0x48], rax
mov dl, r8b
call qword [sym.imp.ntoskrnl.exe_RtlImageDirectoryEntryToData]
test rax, rax
je 0x1400143c5
cmp dword [rax + 0xc], r12d
je 0x1400143c2
mov r14, qword [rbp + 0x77]
lea r15, [rax + 0x10]
test r12d, r12d
js 0x1400143c2
mov eax, dword [r15 - 0x10]
test eax, eax
jne 0x140014041
mov eax, dword [r15]
mov edx, dword [r15 - 4]
lea rcx, [rbp - 0x59]
xorps xmm0, xmm0
mov edi, eax
xorps xmm1, xmm1
add rdx, rsi
add rdi, rsi
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 0x1400140db
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, r14
call fcn.140013d50
lea rdx, [rbp - 0x79]
mov r12d, eax
lea rcx, [rsp + 0x50]
call fcn.14001532c
cmp r12d, 0xc0000144
je 0x1400143a6
mov r8b, byte [rbp + 0x6f]
lea rdx, [rbp - 0x79]
mov rcx, rbx
call fcn.140012358
jmp 0x1400140f4
lea rdx, [rbp - 0x69]
lea rcx, [rsp + 0x50]
call fcn.140015244
xor edx, edx
lea rcx, [rbp - 0x69]
call fcn.1400122d0
mov rbx, rax
test rax, rax
jne 0x14001426d
cmp byte [rbp + 0x5f], r13b
jne 0x1400143a6
test byte [rbp + 0x7f], 1
je 0x140014165
xor edx, edx
lea r8d, [rax + 0x58]
lea rcx, [rbp - 0x49]
call fcn.140007ec0
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], r14
xor r9d, r9d
mov dword [rsp + 0x28], eax
xor r8d, r8d
mov byte [rsp + 0x20], r13b
call fcn.140012e14
mov r12d, eax
test eax, eax
js 0x1400143a6
mov rbx, qword [rbp - 0x39]
jmp 0x140014264
mov rax, qword [rsp + 0x48]
mov ecx, 0x20b
cmp word [rax + 0x18], cx
jne 0x1400141b1
mov rcx, qword [r14 + 0x30]
lea rdx, [rbp - 0x79]
xorps xmm0, xmm0
movups xmmword [rcx + 0x1000], xmm0
lea rax, [rcx + 0x1010]
mov word [rcx + 0x1002], 0x800
mov qword [rcx + 0x1008], rax
mov rcx, qword [r14 + 0x30]
add rcx, 0x1000
call qword [sym.imp.ntoskrnl.exe_RtlCopyUnicodeString]
jmp 0x14001420b
mov ecx, dword [r14 + 0x30]
mov edx, 0x800
mov rax, qword [r14 + 0x30]
mov ebx, 0x1010
add ecx, ebx
mov r8d, edx
mov dword [rax + 0x1004], ecx
mov rax, qword [r14 + 0x30]
mov word [rax + 0x1002], dx
xor edx, edx
mov rcx, qword [r14 + 0x30]
movzx eax, word [rbp - 0x79]
mov word [rcx + 0x1000], ax
mov rcx, qword [r14 + 0x30]
add rcx, rbx
call fcn.140007ec0
mov rcx, qword [r14 + 0x30]
movzx r8d, word [rbp - 0x79]
add rcx, rbx
mov rdx, qword [rbp - 0x71]
call fcn.1400080c0
mov rax, qword [r14 + 0x30]
mov r9d, 4
mov rdx, r14
and dword [rax + 0x1860], r13d
mov rax, qword [r14 + 0x30]
mov r8, qword [r14 + 0x50]
lea rcx, [rax + 0x1858]
add rax, 0x1000
cmp byte [r14 + 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.140012900
mov rbx, qword [r14 + 0x30]
mov rbx, qword [rbx + 0x1858]
test rbx, rbx
je 0x1400143a6
mov r9, qword [rsp + 0x48]
mov r10d, 0x20b
movzx ecx, word [r9 + 0x18]
cmp cx, r10w
jne 0x140014288
mov rax, qword [rdi]
jmp 0x14001428a
mov eax, dword [rdi]
test rax, rax
je 0x14001437e
cmp cx, r10w
jne 0x1400142a5
mov rax, qword [rdi]
mov rdx, rax
lea r8, [rax + rsi]
jmp 0x1400142ad
mov r8d, dword [rdi]
mov edx, dword [rdi]
add r8, rsi
cmp cx, r10w
mov eax, 0x80000000
movabs r9, 0x8000000000000000
cmove rax, r9
cmp rdx, rax
jae 0x1400142d2
lea rdx, [r8 + 2]
cmp byte [rdx], 0
jne 0x1400142e2
cmp cx, r10w
jne 0x1400142dd
mov rax, qword [rdi]
jmp 0x1400142df
mov eax, dword [rdi]
movzx edx, ax
cmp byte [rbp + 0x5f], 0
je 0x1400142f1
mov rcx, qword [rbx + 0x30]
xor r8d, r8d
jmp 0x1400142f7
mov r8, qword [r14]
mov rcx, rbx
lea r9, [rsp + 0x50]
call section.PAGE
mov r8, rax
test rax, rax
je 0x140014378
mov r9, qword [rsp + 0x48]
mov r10d, 0x20b
mov ecx, dword [r15]
cmp word [r9 + 0x18], r10w
jne 0x140014336
test ecx, ecx
je 0x14001432d
lea rax, [rsi + rcx]
mov qword [r13 + rax], r8
jmp 0x14001434b
mov rax, qword [rdi]
mov qword [rax + rsi], r8
jmp 0x14001434b
test ecx, ecx
je 0x140014345
lea rax, [rsi + rcx]
mov dword [r13 + rax], r8d
jmp 0x14001434b
mov eax, dword [rdi]
mov dword [rax + rsi], 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 0x140014278
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 r15, 0x14
cmp dword [r15 - 4], 0
je 0x1400143c2
mov bl, byte [rbp + 0x5f]
jmp 0x14001402d
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 0x1400143c5
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