Function at 0x140001270
Capabilities:
Access peb ldr_data

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x90
mov rax, qword [0x140005040]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov qword [rsp + 0x30], rcx
mov r13, r8
mov ecx, 0x3e8
mov r15, rdx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
xor edx, edx
mov r8d, 0x3e8
mov rcx, rax
mov r14, rax
call sub.VCRUNTIME140.dll_memset
mov rdx, qword gs:[0x60]
lea rax, str.NtReadVirtualMemory
xorps xmm0, xmm0
mov qword [rsp + 0x38], rax
movups xmmword [rsp + 0x70], xmm0
xor edi, edi
lea rbx, [rsp + 0x70]
mov rcx, qword [rdx + 0x18]
lea rsi, [rsp + 0x38]
mov rdx, qword [rcx + 0x20]
mov rcx, qword [rdx]
mov rbp, qword [rcx + 0x20]
nop word [rax + rax]
movups xmm0, xmmword [rbx]
mov r9, qword [rsi]
lea rax, [rsp + 0x40]
mov rdx, rbp
mov qword [rsp + 0x20], rax
lea rcx, [rsp + 0x50]
movaps xmmword [rsp + 0x40], xmm0
call fcn.140001070
inc edi
lea rbx, [rbx + 0x10]
lea rsi, [rsi + 8]
movups xmm0, xmmword [rax]
movups xmmword [rbx - 0x10], xmm0
cmp edi, 1
jb 0x140001300
mov r12, qword [rsp + 0x78]
movzx edi, word [rsp + 0x70]
mov rdx, r12
movzx ecx, di
call fcn.140001e50
mov edx, dword [r15]
mov r9d, 0x3e8
mov rbx, qword [rsp + 0x30]
add rdx, r13
mov r8, r14
mov qword [rsp + 0x20], 0
mov rcx, rbx
call fcn.140001e68
mov ecx, 0x18
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rcx, rax
mov qword [rsp + 0x38], rax
xor eax, eax
xorps xmm0, xmm0
movups xmmword [rcx], xmm0
mov qword [rcx + 0x10], rax
cmp dword [r14], eax
je 0x140001555
mov rsi, qword [rsp + 0x38]
lea rbp, [r14 + 0x10]
mov ecx, 0x500
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rdx, r12
movzx ecx, di
mov r14, rax
xor eax, eax
mov dword [r14], eax
call fcn.140001e50
mov edx, dword [rbp - 4]
mov r9d, 0x500
add rdx, r13
mov qword [rsp + 0x20], 0
mov r8, r14
mov rcx, rbx
call fcn.140001e68
xor ebx, ebx
mov rdx, r12
movzx ecx, di
call fcn.140001e50
mov edx, dword [rbp - 0x10]
lea r8, [rsp + 0x60]
mov rcx, qword [rsp + 0x30]
mov r9d, 8
movsxd r15, ebx
shl r15, 3
add rdx, r15
mov dword [rsp + 0x20], 0
add rdx, r13
call fcn.140001e68
mov rdx, r12
movzx ecx, di
call fcn.140001e50
mov edx, dword [rbp]
lea r8, [rsp + 0x68]
mov rcx, qword [rsp + 0x30]
add rdx, r15
add rdx, r13
mov dword [rsp + 0x20], 0
mov r9d, 8
call fcn.140001e68
mov rax, qword [rsp + 0x60]
test rax, rax
jne 0x140001461
cmp qword [rsp + 0x68], rax
je 0x140001529
test ebx, ebx
jne 0x14000146f
mov rsi, rax
inc ebx
jmp 0x1400013e3
sub eax, esi
mov ecx, eax
neg ecx
cmovs ecx, eax
cmp ecx, 0x5000
jge 0x140001503
mov ecx, 0x500
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
xor edx, edx
mov r8d, 0x500
mov rcx, rax
mov rdi, rax
call sub.VCRUNTIME140.dll_memset
movzx ecx, word [rsp + 0x70]
mov rdx, r12
call fcn.140001e50
mov rdx, qword [rsp + 0x60]
mov r9d, 0x500
mov rcx, qword [rsp + 0x30]
add rdx, 2
add rdx, r13
mov dword [rsp + 0x20], 0
mov r8, rdi
call fcn.140001e68
lea rdx, str.CreateFileW
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
test eax, eax
jne 0x1400014fe
lea rdx, [0x140003398]
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
test eax, eax
je 0x14000150a
movzx edi, word [rsp + 0x70]
inc ebx
jmp 0x1400013e3
mov rcx, qword [rsp + 0x38]
mov rax, qword [rsp + 0x68]
movzx edi, word [rsp + 0x70]
mov qword [rcx + 8], rax
mov eax, dword [rbp]
add rax, r15
add rax, r13
mov qword [rcx], rax
lea rdx, [0x140003398]
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
test eax, eax
je 0x140001550
mov rbx, qword [rsp + 0x30]
add rbp, 0x14
cmp dword [rbp - 0x10], 0
jne 0x1400013a3
mov rcx, qword [rsp + 0x38]
lea rax, [r13 + 0x400]
mov qword [rcx + 0x10], rax
mov rax, rcx
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.140001e90
mov rbx, qword [rsp + 0xe8]
add rsp, 0x90
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret