Function at 0x1400024c0
Capabilities:
Parse pe header

Disassembly:
push rbp
push rbx
push rdi
push r12
push r13
push r14
lea rbp, [rsp - 0xf8]
sub rsp, 0x1f8
mov rax, qword [0x14001e010]
xor rax, rsp
mov qword [rbp + 0xe0], rax
mov r12, r8
mov r13, rdx
mov r14, rcx
test rdx, rdx
je 0x140002893
xorps xmm0, xmm0
lea rcx, [rbp - 0x30]
xor edx, edx
mov r8d, 0x108
movups xmmword [rbp - 0x70], xmm0
movups xmmword [rbp - 0x60], xmm0
movups xmmword [rbp - 0x50], xmm0
movups xmmword [rbp - 0x40], xmm0
call sub.VCRUNTIME140.dll_memset
xor edi, edi
mov qword [rsp + 0x68], 0x33
mov qword [rsp + 0x38], rdi
lea rax, [rbp - 0x70]
mov qword [rbp - 0x80], rax
lea r8, [rsp + 0x68]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x70], 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 + 0x78], r13
mov qword [rbp - 0x78], 0x40
mov dword [rsp + 0x60], edi
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x140002893
mov eax, 0x5a4d
cmp word [rbp - 0x70], ax
jne 0x140002893
movsxd rax, dword [rbp - 0x34]
add rax, r13
je 0x140002893
mov qword [rsp + 0x78], rax
lea r9d, [rdi + 0x28]
mov qword [rsp + 0x38], rdi
lea rax, [rbp - 0x30]
mov qword [rbp - 0x80], rax
lea r8, [rsp + 0x68]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x70], 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 + 0x68], 0x33
mov qword [rbp - 0x78], 0x108
mov dword [rsp + 0x60], edi
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x140002893
cmp dword [rbp - 0x30], 0x4550
jne 0x140002893
mov ebx, dword [rbp + 0x58]
test ebx, ebx
je 0x140002893
mov eax, dword [rbp + 0x5c]
test eax, eax
je 0x140002893
mov qword [rsp + 0x248], rsi
lea r9d, [rdi + 4]
mov qword [rsp + 0x1f0], r15
mov r8d, 0x3000
mov edx, eax
mov qword [rsp + 0x58], rax
xor ecx, ecx
mov r15d, eax
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rsi, rax
mov qword [rsp + 0x50], rbx
lea rax, [rbx + r13]
test rsi, rsi
je 0x1400027af
test rax, rax
je 0x1400027af
test r15, r15
je 0x1400027af
mov qword [rsp + 0x38], rdi
lea r9d, [rdi + 0x28]
mov qword [rsp + 0x78], rax
lea r8, [rsp + 0x68]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x70], 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 + 0x68], 0x33
mov qword [rbp - 0x80], rsi
mov qword [rbp - 0x78], r15
mov dword [rsp + 0x60], edi
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x1400027af
mov ecx, dword [rsi + 0x24]
mov r15, rsi
mov eax, dword [rsi + 0x20]
sub r15, rbx
add rcx, r15
add rax, r15
mov qword [rsp + 0x40], rcx
mov ebx, edi
mov ecx, dword [rsi + 0x1c]
add rcx, r15
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x48], rcx
cmp dword [rsi + 0x18], ebx
jbe 0x1400027af
nop dword [rax + rax]
mov r14d, ebx
mov r8, 0xffffffffffffffff
mov qword [rsp + 0x78], rdi
mov qword [rbp - 0x80], 0xf
mov byte [rsp + 0x68], dil
mov edx, dword [rax + r14*4]
add rdx, r15
inc r8
cmp byte [rdx + r8], dil
jne 0x140002723
lea rcx, [rsp + 0x68]
call fcn.140005ac0
cmp qword [r12 + 0x18], 0x10
mov rdx, r12
jb 0x140002745
mov rdx, qword [r12]
cmp qword [rbp - 0x80], 0x10
lea rcx, [rsp + 0x68]
cmovae rcx, qword [rsp + 0x68]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
test eax, eax
je 0x1400027f2
mov rdx, qword [rbp - 0x80]
cmp rdx, 0x10
jb 0x14000279f
mov rcx, qword [rsp + 0x68]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000279a
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000287f
call fcn.14000d0d4
mov rax, qword [rsp + 0x60]
inc ebx
cmp ebx, dword [rsi + 0x18]
jb 0x140002700
xor edx, edx
mov r8d, 0x8000
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualFree]
xor eax, eax
mov rsi, qword [rsp + 0x248]
mov r15, qword [rsp + 0x1f0]
mov rcx, qword [rbp + 0xe0]
xor rcx, rsp
call fcn.14000d0b0
add rsp, 0x1f8
pop r14
pop r13
pop r12
pop rdi
pop rbx
pop rbp
ret
mov rcx, qword [rsp + 0x48]
mov rax, qword [rsp + 0x40]
movzx eax, word [rax + r14*2]
mov ebx, dword [rcx + rax*4]
mov rcx, qword [rsp + 0x50]
add rbx, r13
lea rax, [rcx + r13]
cmp rbx, rax
jb 0x140002838
mov rax, qword [rsp + 0x58]
add rax, rcx
add rax, r13
cmp rbx, rax
ja 0x140002838
xor edx, edx
mov r8d, 0x8000
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x14000284c
xor edx, edx
mov r8d, 0x8000
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rdi, rbx
mov rdx, qword [rbp - 0x80]
cmp rdx, 0x10
jb 0x14000288b
mov rcx, qword [rsp + 0x68]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140002886
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140002886
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000d0d4
mov rax, rdi
jmp 0x1400027c2
xor eax, eax
jmp 0x1400027d2