Function at 0x180001160
Capabilities:
Create thread
Inject dll
Inject thread

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x60
mov rax, qword [0x180031030]
xor rax, rsp
mov qword [rsp + 0x50], rax
xor edx, edx
mov dword [rsp + 0x20], 4
mov r9d, 0x1000
mov rbx, rcx
lea r8d, [rdx + 0xc]
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov rdi, rax
test rax, rax
jne 0x1800011c7
xor r9d, r9d
lea r8, str.Error
lea rdx, str.VirtualAllocEx_failed
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x1800013b5
mov qword [rsp + 0x78], rbp
lea r8, str.RedTeam.dll
xor ebp, ebp
mov rdx, rdi
mov rcx, rbx
mov qword [rsp + 0x20], rbp
lea r9d, [rbp + 0xc]
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x18000122d
xor r9d, r9d
lea r8, str.Error
lea rdx, str.WriteProcessMemory_failed
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
mov r9d, 0x8000
lea r8d, [rbp + 0xc]
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x1800013b0
lea rcx, str.KERNEL32.DLL
mov qword [rsp + 0x80], rsi
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
lea rdx, str.LoadLibraryA
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x30], rbp
xor r8d, r8d
mov r9, rax
mov dword [rsp + 0x28], ebp
xor edx, edx
mov qword [rsp + 0x20], rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x180001295
xor r9d, r9d
lea r8, str.Error
lea rdx, str.CreateRemoteThread_failed
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x1800012ce
lea rdx, [rsp + 0x40]
mov qword [rsp + 0x40], rbp
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test eax, eax
jne 0x1800012eb
xor r9d, r9d
lea r8, str.Error
lea rdx, str.GetExitCodeThread_failed
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r9d, 0x8000
mov r8d, 0xc
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
jmp 0x18000139d
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r9d, 0x8000
mov r8d, 0xc
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov rax, qword [rsp + 0x40]
test rax, rax
jne 0x1800013a8
xor r9d, r9d
lea r8, str.Error
lea rdx, str.hLibrary__NULL
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
lea rcx, str.KERNEL32.DLL
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
lea rdx, [0x18002b2f0]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x30], rbp
xor r8d, r8d
mov r9, rax
mov dword [rsp + 0x28], ebp
xor edx, edx
mov qword [rsp + 0x20], rbp
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x18000139d
mov edx, 0xffffffff
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea rdx, [rsp + 0x48]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetExitCodeThread]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov rsi, qword [rsp + 0x80]
mov rbp, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.1800065a0
mov rbx, qword [rsp + 0x88]
add rsp, 0x60
pop rdi
ret