Function at 0x14006fcf0
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0xd0]
sub rsp, 0x1d0
mov r12, r8
mov r15, qword [0x14011d510]
test r15, r15
je 0x14006ffff
xorps xmm0, xmm0
movups xmmword [rbp - 0x80], xmm0
movups xmmword [rbp - 0x50], xmm0
xor edx, edx
mov r8d, 0x108
lea rcx, [rbp - 0x40]
call fcn.14007a0e0
xor r14d, r14d
mov ebx, r14d
lea rax, [rbp - 0x80]
mov rsi, r15
sub rsi, rax
nop dword [rax + rax]
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x50], r14
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x5c], xmm0
mov dword [rsp + 0x6c], r14d
lea rdi, [rbp - 0x80]
add rdi, rbx
lea rax, [rdi + rsi]
mov qword [rsp + 0x48], rax
mov dword [rsp + 0x58], 1
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], 0x30
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov r9d, 0x30
lea r8, [rsp + 0x40]
mov edx, 0x80002048
mov rcx, qword [0x14011d5c0]
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x14006ffff
movzx eax, byte [rsp + 0x5c]
mov byte [rdi], al
inc rbx
cmp rbx, 0x40
jb 0x14006fd60
mov eax, 0x5a4d
cmp word [rbp - 0x80], ax
jne 0x14006ffff
movsxd rsi, dword [rbp - 0x44]
add rsi, r15
mov rbx, r14
lea rax, [rbp - 0x40]
sub rsi, rax
nop word [rax + rax]
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x50], r14
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x5c], xmm0
mov dword [rsp + 0x6c], r14d
lea rdi, [rbp - 0x40]
add rdi, rbx
lea rax, [rdi + rsi]
mov qword [rsp + 0x48], rax
mov dword [rsp + 0x58], 1
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], 0x30
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov r9d, 0x30
lea r8, [rsp + 0x40]
mov edx, 0x80002048
mov rcx, qword [0x14011d5c0]
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x14006ffff
movzx eax, byte [rsp + 0x5c]
mov byte [rdi], al
inc rbx
cmp rbx, 0x108
jb 0x14006fe10
cmp dword [rbp - 0x40], 0x4550
jne 0x14006ffff
mov ebx, dword [rbp + 0x48]
test ebx, ebx
je 0x14006ffff
mov eax, dword [rbp + 0x4c]
test eax, eax
je 0x14006ffff
mov esi, eax
mov qword [rsp + 0x78], rax
mov r9d, 4
mov r8d, 0x3000
mov edx, eax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rdi, rax
mov qword [rsp + 0x70], rbx
lea rax, [rbx + r15]
mov qword [rbp + 0x128], rax
mov r9d, esi
mov r8, rdi
mov rdx, rax
call fcn.14006f600
test al, al
je 0x14006ffee
mov r14, rdi
sub r14, rbx
mov r13d, dword [rdi + 0x20]
add r13, r14
mov eax, dword [rdi + 0x24]
add rax, r14
mov qword [rbp + 0x118], rax
mov eax, dword [rdi + 0x1c]
add rax, r14
mov qword [rbp + 0x110], rax
xor eax, eax
mov ebx, eax
cmp dword [rdi + 0x18], eax
jbe 0x14006ffee
nop word [rax + rax]
mov esi, ebx
mov edx, dword [r13 + rsi*4]
add rdx, r14
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], 0xf
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rdx + r8], 0
jne 0x14006ff64
lea rcx, [rsp + 0x40]
call fcn.14000b7a0
mov rdx, r12
cmp qword [r12 + 0x18], 0x10
jb 0x14006ff87
mov rdx, qword [r12]
lea rcx, [rsp + 0x40]
cmp qword [rsp + 0x58], 0x10
cmovae rcx, qword [rsp + 0x40]
call fcn.14008bb74
test eax, eax
je 0x14007001c
mov rdx, qword [rsp + 0x58]
cmp rdx, 0x10
jb 0x14006ffde
inc rdx
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14006ffd9
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400700bf
call fcn.1400775a8
inc ebx
cmp ebx, dword [rdi + 0x18]
mov eax, 0
jb 0x14006ff40
mov r8d, 0x8000
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualFree]
xor eax, eax
mov rbx, qword [rsp + 0x220]
add rsp, 0x1d0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov rax, qword [rbp + 0x118]
movzx eax, word [rax + rsi*2]
mov rcx, qword [rbp + 0x110]
mov ecx, dword [rcx + rax*4]
cmp ecx, 0x1000
jbe 0x140070069
lea rbx, [r15 + rcx]
cmp rbx, qword [rbp + 0x128]
jb 0x1400700ac
mov rax, qword [rsp + 0x70]
add rax, qword [rsp + 0x78]
add rax, r15
cmp rbx, rax
ja 0x1400700ac
xor edx, edx
mov r8d, 0x8000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualFree]
xor ebx, ebx
mov rdx, qword [rsp + 0x58]
cmp rdx, 0x10
jb 0x1400700a4
inc rdx
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14007009f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400700bf
call fcn.1400775a8
mov rax, rbx
jmp 0x140070001
xor edx, edx
mov r8d, 0x8000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x14007006b
call fcn.1400871d4
int3