Function at 0x140003630
Capabilities:
Parse pe header

Disassembly:
push rbp
push rbx
push rdi
push r12
push r13
push r14
lea rbp, [rsp - 0xd8]
sub rsp, 0x1d8
mov r12, r8
mov r13, rdx
mov r14, rcx
test rdx, rdx
je 0x1400039f4
xorps xmm0, xmm0
lea rcx, [rbp - 0x40]
xor edx, edx
mov r8d, 0x108
movups xmmword [rbp - 0x80], xmm0
movups xmmword [rbp - 0x70], xmm0
movups xmmword [rbp - 0x60], xmm0
movups xmmword [rbp - 0x50], xmm0
call fcn.140017380
xor edi, edi
mov qword [rsp + 0x40], 0x33
mov qword [rsp + 0x38], rdi
lea rax, [rbp - 0x80]
mov qword [rsp + 0x58], rax
lea r8, [rsp + 0x40]
lea rax, [rbp + 0x118]
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x30], rax
lea r9d, [rdi + 0x28]
mov dword [rsp + 0x28], edi
mov edx, 0x80862007
mov rcx, r14
mov qword [rsp + 0x20], rdi
mov qword [rsp + 0x50], r13
mov qword [rsp + 0x60], 0x40
mov dword [rbp + 0x118], edi
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x1400039f4
mov eax, 0x5a4d
cmp word [rbp - 0x80], ax
jne 0x1400039f4
movsxd rax, dword [rbp - 0x44]
add rax, r13
je 0x1400039f4
mov qword [rsp + 0x50], rax
lea r9d, [rdi + 0x28]
mov qword [rsp + 0x38], rdi
lea rax, [rbp - 0x40]
mov qword [rsp + 0x58], rax
lea r8, [rsp + 0x40]
lea rax, [rbp + 0x118]
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x30], rax
mov edx, 0x80862007
mov dword [rsp + 0x28], edi
mov rcx, r14
mov qword [rsp + 0x20], rdi
mov qword [rsp + 0x40], 0x33
mov qword [rsp + 0x60], 0x108
mov dword [rbp + 0x118], edi
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x1400039f4
cmp dword [rbp - 0x40], 0x4550
jne 0x1400039f4
mov ebx, dword [rbp + 0x48]
test ebx, ebx
je 0x1400039f4
mov eax, dword [rbp + 0x4c]
test eax, eax
je 0x1400039f4
mov qword [rsp + 0x210], rsi
lea r9d, [rdi + 4]
mov qword [rsp + 0x1d0], r15
mov r8d, 0x3000
mov edx, eax
mov qword [rsp + 0x78], rax
xor ecx, ecx
mov r15d, eax
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rsi, rax
mov qword [rsp + 0x70], rbx
lea rax, [rbx + r13]
test rsi, rsi
je 0x140003923
test rax, rax
je 0x140003923
test r15, r15
je 0x140003923
mov qword [rsp + 0x38], rdi
lea r9d, [rdi + 0x28]
mov qword [rsp + 0x50], rax
lea r8, [rsp + 0x40]
lea rax, [rbp + 0x118]
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x30], rax
mov edx, 0x80862007
mov dword [rsp + 0x28], edi
mov rcx, r14
mov qword [rsp + 0x20], rdi
mov qword [rsp + 0x40], 0x33
mov qword [rsp + 0x58], rsi
mov qword [rsp + 0x60], r15
mov dword [rbp + 0x118], edi
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x140003923
mov ecx, dword [rsi + 0x24]
mov r15, rsi
mov eax, dword [rsi + 0x20]
sub r15, rbx
add rcx, r15
add rax, r15
mov qword [rbp + 0x128], rcx
mov ebx, edi
mov ecx, dword [rsi + 0x1c]
add rcx, r15
mov qword [rbp + 0x118], rax
mov qword [rsp + 0x68], rcx
cmp dword [rsi + 0x18], ebx
jbe 0x140003923
nop dword [rax]
mov r14d, ebx
mov r8, 0xffffffffffffffff
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x58], 0xf
mov byte [rsp + 0x40], dil
mov edx, dword [rax + r14*4]
add rdx, r15
inc r8
cmp byte [rdx + r8], dil
jne 0x140003894
lea rcx, [rsp + 0x40]
call fcn.140007830
cmp qword [r12 + 0x18], 0x10
mov rdx, r12
jb 0x1400038b6
mov rdx, qword [r12]
cmp qword [rsp + 0x58], 0x10
lea rcx, [rsp + 0x40]
cmovae rcx, qword [rsp + 0x40]
call fcn.14001e144
test eax, eax
je 0x140003957
mov rdx, qword [rsp + 0x58]
cmp rdx, 0x10
jb 0x140003911
mov rcx, qword [rsp + 0x40]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000390c
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140003a07
call fcn.140014b18
mov rax, qword [rbp + 0x118]
inc ebx
cmp ebx, dword [rsi + 0x18]
jb 0x140003870
xor edx, edx
mov r8d, 0x8000
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualFree]
xor eax, eax
mov rsi, qword [rsp + 0x210]
mov r15, qword [rsp + 0x1d0]
add rsp, 0x1d8
pop r14
pop r13
pop r12
pop rdi
pop rbx
pop rbp
ret
mov rcx, qword [rsp + 0x68]
mov rax, qword [rbp + 0x128]
movzx eax, word [rax + r14*2]
mov ebx, dword [rcx + rax*4]
mov rcx, qword [rsp + 0x70]
add rbx, r13
lea rax, [rcx + r13]
cmp rbx, rax
jb 0x14000399f
mov rax, qword [rsp + 0x78]
add rax, rcx
add rax, r13
cmp rbx, rax
ja 0x14000399f
xor edx, edx
mov r8d, 0x8000
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x1400039b3
xor edx, edx
mov r8d, 0x8000
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rdi, rbx
mov rdx, qword [rsp + 0x58]
cmp rdx, 0x10
jb 0x1400039ec
mov rcx, qword [rsp + 0x40]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400039e7
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140003a07
call fcn.140014b18
mov rax, rdi
jmp 0x140003936
xor eax, eax
add rsp, 0x1d8
pop r14
pop r13
pop r12
pop rdi
pop rbx
pop rbp
ret
call fcn.14001eb84
int3