Function at 0x18000af4c
Capabilities:
Allocate or change rwx memory
Resume thread

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r12
push rbp
push r14
push r15
lea rbp, [rax - 0x458]
sub rsp, 0x540
and qword [rsp + 0x60], 0
xorps xmm0, xmm0
mov r14, rdx
mov ebx, r9d
xor edx, edx
mov dword [rsp + 0x20], 0x40
mov r15, r8
mov r9d, 0x1000
mov rdi, rcx
movups xmmword [rsp + 0x38], xmm0
lea r8d, [rdx + 0x20]
movups xmmword [rsp + 0x48], xmm0
call qword [sym.imp.KERNEL32.DLL_VirtualAllocEx]
mov rsi, rax
test rax, rax
jne 0x18000afbe
call qword [sym.imp.KERNEL32.DLL_GetLastError]
jmp 0x18000b210
mov r9d, 0x1000
mov dword [rsp + 0x20], 4
mov r8, rbx
xor edx, edx
mov rcx, rdi
mov r12, rbx
call qword [sym.imp.KERNEL32.DLL_VirtualAllocEx]
mov rbx, rax
test rax, rax
je 0x18000afb3
lea rax, [rsp + 0x60]
mov r9, r12
mov r8, r15
mov qword [rsp + 0x20], rax
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.DLL_WriteProcessMemory]
test eax, eax
je 0x18000afb3
and dword [rsp + 0x30], 0
lea rcx, [rsp + 0x30]
mov r8d, 4
mov rdx, r15
call qword [sym.imp.ntdll.dll_memcpy]
mov r8d, dword [rsp + 0x30]
xor edx, edx
mov r9d, 0x1000
mov dword [rsp + 0x20], 0x40
mov rcx, rdi
call qword [sym.imp.KERNEL32.DLL_VirtualAllocEx]
mov r12, rax
test rax, rax
je 0x18000afb3
mov r9d, dword [rsp + 0x30]
lea rax, [rsp + 0x60]
lea r8, [r15 + 4]
mov qword [rsp + 0x20], rax
mov rdx, r12
mov rcx, rdi
call qword [sym.imp.KERNEL32.DLL_WriteProcessMemory]
test eax, eax
je 0x18000afb3
mov rcx, r15
call fcn.18000aa6c
mov r15d, eax
cmp eax, 0x40
jne 0x18000b0f5
sub ebx, esi
mov dword [rsp + 0x38], 0x28ec8348
sub ebx, 0xb
mov word [rsp + 0x3c], 0x8d48
mov eax, ebx
mov byte [rsp + 0x3f], bl
shr eax, 8
mov ecx, r12d
mov byte [rsp + 0x40], al
sub ecx, esi
sub ecx, 0x10
mov byte [rsp + 0x3e], reloc.WS2_32.dll_listen
mov eax, ebx
mov byte [rsp + 0x44], cl
shr eax, 0x10
mov byte [rsp + 0x41], al
mov eax, ecx
shr eax, 8
mov byte [rsp + 0x45], al
mov eax, ecx
shr eax, 0x10
shr ebx, 0x18
shr ecx, 0x18
mov byte [rsp + 0x47], cl
mov byte [rsp + 0x42], bl
mov byte [rsp + 0x43], 0xe8
mov byte [rsp + 0x46], al
mov dword [rsp + 0x48], 0x8348c033
mov word [rsp + 0x4c], 0x28c4
mov byte [rsp + 0x4e], 0xc3
jmp 0x18000b14c
cmp r15d, 0x20
jne 0x18000b14c
mov eax, ebx
mov byte [rsp + 0x39], bl
shr eax, 8
mov ecx, r12d
mov byte [rsp + 0x3a], al
sub ecx, esi
sub ecx, 0xa
mov byte [rsp + 0x38], 0x68
mov eax, ebx
mov byte [rsp + 0x3e], cl
shr eax, 0x10
mov byte [rsp + 0x3b], al
mov eax, ecx
shr eax, 8
mov byte [rsp + 0x3f], al
mov eax, ecx
shr eax, 0x10
shr ebx, 0x18
shr ecx, 0x18
mov byte [rsp + 0x41], cl
mov byte [rsp + 0x3c], bl
mov byte [rsp + 0x3d], 0xe8
mov byte [rsp + 0x40], al
mov byte [rsp + 0x42], 0xc3
lea rax, [rsp + 0x60]
mov r9d, 0x20
lea r8, [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov rdx, rsi
mov rcx, rdi
mov ebx, esi
call qword [sym.imp.KERNEL32.DLL_WriteProcessMemory]
test eax, eax
je 0x18000afb3
and dword [rsp + 0x58], 0
lea rax, [rsp + 0x58]
mov qword [rsp + 0x20], rax
mov rdx, rsi
mov eax, 0x20
mov rcx, rdi
mov r9d, eax
mov r8d, eax
call qword [sym.imp.KERNEL32.DLL_VirtualProtectEx]
mov r8d, dword [rsp + 0x30]
lea rax, [rsp + 0x58]
mov r9d, 0x20
mov qword [rsp + 0x20], rax
mov rdx, r12
mov rcx, rdi
call qword [sym.imp.KERNEL32.DLL_VirtualProtectEx]
cmp r15d, 0x40
jne 0x18000b231
xor edx, edx
lea rcx, [rsp + 0x70]
mov r8d, 0x4d0
call sub.ntdll.dll_memset
lea rdx, [rsp + 0x70]
mov dword [rbp - 0x60], 0x10000b
mov rcx, r14
call qword [sym.imp.KERNEL32.DLL_GetThreadContext]
lea rdx, [rsp + 0x70]
mov qword [rbp + 0x68], rsi
mov rcx, r14
call qword [sym.imp.KERNEL32.DLL_SetThreadContext]
mov rcx, r14
call qword [sym.imp.KERNEL32.DLL_ResumeThread]
test eax, eax
je 0x18000afb3
xor eax, eax
lea r11, [rsp + 0x540]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov r12, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
cmp r15d, 0x20
jne 0x18000b20e
xor edx, edx
lea rcx, [rsp + 0x74]
mov r8d, 0x2c8
call sub.ntdll.dll_memset
lea rdx, [rsp + 0x70]
mov dword [rsp + 0x70], 0x10000b
mov rcx, r14
call qword [sym.imp.KERNEL32.DLL_Wow64GetThreadContext]
lea rdx, [rsp + 0x70]
mov dword [rbp + 0x28], ebx
mov rcx, r14
call qword [sym.imp.KERNEL32.DLL_Wow64SetThreadContext]
jmp 0x18000b1fd