Function at 0x180016140
Capabilities:
Allocate or change rwx memory
Create thread

Disassembly:
jmp 0x180016140
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x60]
sub rsp, 0x160
mov rax, qword [0x1802ed080]
xor rax, rsp
mov qword [rbp + 0x50], rax
mov r14, r8
mov rdi, rdx
mov r15, rcx
mov qword [rsp + 0x70], rcx
mov rbx, qword [rbp + 0xc0]
mov rsi, qword [rbp + 0xf8]
xor r13d, r13d
mov rcx, rdx
call qword [sym.imp.KERNEL32.dll_GetProcessId]
mov edx, eax
lea r8, str.ntdll.dll
lea rcx, [rsp + 0x78]
call fcn.180002cd4
mov eax, 0x5a4d
cmp word [r14], ax
je 0x1800161c4
movzx edx, byte [0x1802cc230]
mov rcx, r15
call fcn.18000202c
jmp 0x180016821
movsxd r12, dword [r14 + 0x3c]
add r12, r14
mov eax, 0x8664
cmp word [r12 + 4], ax
jne 0x1800161b0
mov r8d, dword [r12 + 0x50]
mov dword [rsp + 0x20], 4
mov r9d, 0x3000
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov qword [rsp + 0x40], rax
test rax, rax
je 0x1800161b0
mov edx, 0x1400000
lea rcx, [rsp + 0x48]
call fcn.18000247d
nop
lea rcx, [rsp + 0x48]
call fcn.180004fcf
mov rbx, rax
mov qword [rsp + 0x68], rax
test rax, rax
je 0x180016807
xor edx, edx
mov r8d, 0x1400000
mov rcx, rax
call fcn.180004034
mov dword [rsp + 0x60], r13d
mov r8d, dword [r12 + 0x50]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r9d, 0x40
mov rdx, qword [rsp + 0x40]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
mov qword [rbp - 0x58], r13
mov qword [rbp - 0x40], r13
mov dword [rbp - 0x34], r13d
mov dword [rbp - 0x24], r13d
mov dword [rsp + 0x20], 4
xor edx, edx
mov r9d, 0x3000
mov r8d, 0x220
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov qword [rbp - 0x58], rax
mov qword [rsp + 0x20], r13
mov r9d, 0x220
mov r8, rbx
mov rdx, rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
lea rcx, [rsp + 0x78]
call fcn.180004b06
test al, al
je 0x180016334
mov rbx, qword [rbp + 0xc8]
mov rcx, rbx
call fcn.1800036d9
test al, al
je 0x180016334
mov rcx, rbx
call fcn.18000331e
mov rbx, qword [rax]
lea rdx, str.LdrpHandleTlsData
lea rcx, [rbp + 0x30]
call fcn.180002db0
nop
lea r8, [rbp + 0x30]
lea rdx, [rsp + 0x58]
mov rcx, rbx
call fcn.180004421
nop
lea rcx, [rbp + 0x30]
call fcn.180001c53
lea rcx, [rsp + 0x58]
call fcn.18000333c
test al, al
je 0x180016334
lea rcx, [rsp + 0x58]
call fcn.180005033
mov ebx, dword [rax]
lea rcx, [rsp + 0x78]
call fcn.180005709
mov ecx, ebx
add rcx, qword [rax]
jmp 0x180016337
mov rcx, r13
mov qword [rbp - 0x60], rcx
mov rax, qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov qword [rbp - 0x70], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbp - 0x68], rax
mov rax, qword [sym.imp.KERNEL32.dll_RtlAddFunctionTable]
mov qword [rbp - 0x50], rax
mov rdx, qword [rsp + 0x40]
mov qword [rbp - 0x48], rdx
mov eax, dword [rbp + 0xf0]
mov dword [rbp - 0x38], eax
mov qword [rbp - 0x30], rsi
movzx eax, byte [rbp + 0xe8]
mov dword [rbp - 0x28], eax
mov qword [rsp + 0x20], r13
mov r9d, 0x1000
mov r8, r14
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x1800163a1
mov rdx, qword [rsp + 0x40]
jmp 0x1800167f5
movzx ebx, word [r12 + 0x14]
add rbx, 0x2c
mov esi, r13d
cmp word [r12 + 6], si
je 0x1800163fa
add rbx, r12
nop dword [rax]
mov eax, dword [rbx - 4]
test eax, eax
je 0x1800163ea
mov r9d, eax
mov r8d, dword [rbx]
add r8, r14
mov edx, dword [rbx - 8]
add rdx, qword [rsp + 0x40]
mov qword [rsp + 0x20], r13
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x180016397
inc esi
add rbx, 0x28
movzx eax, word [r12 + 6]
cmp esi, eax
jne 0x1800163c0
mov dword [rsp + 0x20], 4
xor edx, edx
mov r9d, 0x3000
mov r8d, 0x50
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov r14, rax
mov rcx, rdi
test rax, rax
jne 0x18001642e
mov rdx, qword [rsp + 0x40]
jmp 0x1800167f8
mov qword [rsp + 0x20], r13
mov r9d, 0x50
lea r8, [rbp - 0x70]
mov rdx, r14
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov rcx, rdi
test eax, eax
jne 0x180016469
mov r9d, 0x8000
xor r8d, r8d
mov rdx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov rdx, r14
jmp 0x1800167f5
mov dword [rsp + 0x20], 0x40
movabs rdx, 0x1caae9a0000
mov r9d, 0x3000
mov r8d, 0x1000
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov r13, rax
mov rcx, rdi
test rax, rax
je 0x18001644d
xor esi, esi
mov qword [rsp + 0x20], rsi
mov r9d, 0x1000
lea r8, [fcn.1800019fb]
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov rcx, rdi
test eax, eax
je 0x1800167c9
call qword [sym.imp.KERNEL32.dll_GetProcessId]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp ebx, eax
je 0x180016505
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x20], r14
mov r9, r13
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
test rax, rax
je 0x1800167c6
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x180016510
mov rcx, r14
call fcn.1800019fb
nop dword [rax]
mov dword [rsp + 0x50], esi
lea rdx, [rsp + 0x50]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
cmp dword [rsp + 0x50], 0x103
jne 0x180016807
xorps xmm0, xmm0
movups xmmword [rbp - 0x20], xmm0
movups xmmword [rbp - 0x10], xmm0
movups xmmword [rbp], xmm0
movups xmmword [rbp + 0x10], xmm0
movups xmmword [rbp + 0x20], xmm0
mov qword [rsp + 0x20], rsi
mov r9d, 0x50
lea r8, [rbp - 0x20]
mov rdx, r14
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov rbx, qword [rbp + 0x10]
cmp rbx, 0x404040
je 0x1800167c6
mov ecx, 0xa
call qword [sym.imp.KERNEL32.dll_Sleep]
test rbx, rbx
je 0x180016510
cmp byte [rbp + 0xd0], sil
je 0x1800165aa
mov qword [rsp + 0x20], rsi
mov r9d, 0x1000
mov r8, qword [rsp + 0x68]
mov rdx, qword [rsp + 0x40]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
cmp byte [rbp + 0xd8], sil
je 0x1800166b4
movzx ebx, word [r12 + 0x14]
add rbx, 0x18
add rbx, r12
cmp word [r12 + 6], si
je 0x1800166b4
lea r8, str..pdata
lea r9, str..rsrc
lea r10, str..reloc
mov r15, qword [rsp + 0x68]
nop word [rax + rax]
mov edx, dword [rbx + 8]
test edx, edx
je 0x180016699
cmp byte [rbp + 0xe8], 0
jne 0x180016626
xor ecx, ecx
nop word [rax + rax]
movzx eax, byte [rbx + rcx]
inc rcx
cmp al, byte [r8 + rcx - 1]
jne 0x180016626
cmp rcx, 7
jne 0x180016610
jmp 0x180016664
xor ecx, ecx
nop dword [rax + rax]
movzx eax, byte [rbx + rcx]
inc rcx
cmp al, byte [r9 + rcx - 1]
jne 0x180016646
cmp rcx, 6
jne 0x180016630
jmp 0x180016664
xor ecx, ecx
nop dword [rax + rax]
movzx eax, byte [rbx + rcx]
inc rcx
cmp al, byte [r10 + rcx - 1]
jne 0x180016699
cmp rcx, 7
jne 0x180016650
mov r9, rdx
mov edx, dword [rbx + 0xc]
add rdx, qword [rsp + 0x40]
mov qword [rsp + 0x20], 0
mov r8, r15
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
lea r8, str..pdata
lea r9, str..rsrc
lea r10, str..reloc
inc esi
add rbx, 0x28
movzx eax, word [r12 + 6]
cmp esi, eax
jne 0x1800165f0
mov r15, qword [rsp + 0x70]
xor esi, esi
cmp byte [rbp + 0xe0], 0
je 0x180016771
movzx ebx, word [r12 + 0x14]
add rbx, 0x3c
cmp word [r12 + 6], 0
je 0x180016742
add rbx, r12
mov edx, 0x20
nop dword [rax]
mov ecx, dword [rbx - 0x1c]
test ecx, ecx
je 0x180016732
mov dword [rsp + 0x50], 0
mov eax, dword [rbx]
test eax, 0x80000000
jbe 0x180016700
mov r9d, 4
jmp 0x18001670f
test eax, 0x20000000
mov r9d, 2
cmova r9d, edx
mov r8, rcx
mov edx, dword [rbx - 0x18]
add rdx, qword [rsp + 0x40]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
mov edx, 0x20
inc esi
add rbx, 0x28
movzx eax, word [r12 + 6]
cmp esi, eax
jne 0x1800166e0
xor esi, esi
mov dword [rsp + 0x58], esi
movzx eax, word [r12 + 0x14]
mov r8d, dword [rax + r12 + 0x24]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x20], rax
mov r9d, 2
mov rdx, qword [rsp + 0x40]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
mov qword [rsp + 0x20], rsi
mov r9d, 0x1000
mov r8, qword [rsp + 0x68]
mov rdx, r13
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov r9d, 0x8000
xor r8d, r8d
mov rdx, r13
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov r9d, 0x8000
xor r8d, r8d
mov rdx, r14
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
lea rdx, [rsp + 0x40]
mov rcx, r15
call fcn.1800020f9
jmp 0x180016817
mov rcx, rdi
mov rdx, qword [rsp + 0x40]
xor r8d, r8d
mov r9d, 0x8000
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov r9d, 0x8000
xor r8d, r8d
mov rdx, r14
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov rdx, r13
mov rcx, rdi
mov r9d, 0x8000
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
movzx edx, byte [0x1802cc230]
mov rcx, r15
call fcn.18000202c
nop
lea rcx, [rsp + 0x48]
call fcn.180002ac7
mov rax, r15
mov rcx, qword [rbp + 0x50]
xor rcx, rsp
call fcn.180002f7c
mov rbx, qword [rsp + 0x1b8]
add rsp, 0x160
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret