Function at 0x180001104
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x6e0]
sub rsp, 0x7e0
mov rax, qword [0x180013020]
xor rax, rsp
mov qword [rbp + 0x6d0], rax
xor r12d, r12d
mov qword [rsp + 0x70], rcx
mov r15d, edx
mov dword [rsp + 0x78], edx
lea rcx, [rsp + 0x48]
mov edx, 0x100000
mov qword [rsp + 0x68], r12
mov edi, r12d
mov esi, r12d
mov qword [rbp - 0x60], r12
mov qword [rsp + 0x40], r12
mov qword [rsp + 0x38], r12
mov r14d, r12d
mov r13d, r12d
call fcn.180001024
test eax, eax
je 0x1800016ab
lea r9, str.GlobalSAM
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventA]
lea r9, str.GlobalFREE
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov rbx, rax
mov qword [rsp + 0x30], rax
call qword [sym.imp.KERNEL32.dll_CreateEventA]
mov qword [rbp - 0x70], rax
test rbx, rbx
je 0x1800016d5
test rax, rax
je 0x1800016d5
lea rax, [0x1800016ec]
lea r12, [fcn.180001e38]
cmp rax, r12
jae 0x1800015a1
sub r12, rax
mov qword [rbp - 0x68], r12
call fcn.180001d80
test eax, eax
jne 0x1800015a6
call fcn.180001cb0
mov rdi, rax
test rax, rax
je 0x1800015a6
lea rcx, [rbp + 0x140]
mov edx, r15d
call fcn.180001e38
test eax, eax
jne 0x1800015a6
lea ebx, [rax + 0x40]
xor edx, edx
mov r9d, 0x1000
mov r8d, 0x190
mov rcx, rdi
mov dword [rsp + 0x20], ebx
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov rsi, rax
mov qword [rsp + 0x60], rax
test rax, rax
jne 0x18000124d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r15, qword [rsp + 0x30]
jmp 0x1800015a9
lea rax, [rsp + 0x40]
lea r8, [rbp + 0x140]
mov r9d, 0x190
mov rdx, rsi
mov rcx, rdi
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
xor ecx, ecx
test eax, eax
je 0x18000123d
cmp qword [rsp + 0x40], 0x190
jne 0x180001243
mov qword [rsp + 0x40], rcx
mov r9d, 0x1000
mov r8, r12
mov rcx, rdi
xor edx, edx
mov dword [rsp + 0x20], ebx
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov rbx, rax
mov qword [rbp - 0x60], rax
test rax, rax
je 0x18000123d
lea rax, [rsp + 0x40]
lea r8, [0x1800016ec]
mov r9, r12
mov rdx, rbx
mov rcx, rdi
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
xor ecx, ecx
test eax, eax
je 0x18000123d
cmp qword [rsp + 0x40], r12
jne 0x180001243
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x40], rcx
mov dword [rsp + 0x20], ecx
mov rcx, rdi
mov r9, rsi
mov r8, rbx
xor edx, edx
call fcn.180002384
mov qword [rsp + 0x68], rax
test rax, rax
je 0x18000123d
mov rcx, qword [rsp + 0x30]
mov edx, r15d
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x18000123d
lea rax, [rsp + 0x38]
mov ebx, 0x190
lea r8, [rbp - 0x50]
mov rdx, rsi
mov rcx, rdi
mov r9d, ebx
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
xor ecx, ecx
test eax, eax
je 0x18000123d
cmp qword [rsp + 0x38], rbx
jne 0x180001243
mov ebx, dword [rbp + 0x134]
mov qword [rsp + 0x38], rcx
mov ecx, ebx
call fcn.1800026cc
mov r13, rax
mov qword [rbp - 0x78], rax
test rax, rax
je 0x180001243
movabs rax, 0xaaaaaaaaaaaaaaab
mov r9d, ebx
mov r8, r13
mov rcx, rdi
mul rbx
mov r14, rdx
mov rdx, qword [rbp + 0x138]
lea rax, [rsp + 0x38]
shr r14, 5
mov qword [rbp - 0x80], r14
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
xor ecx, ecx
test eax, eax
je 0x18000123d
mov eax, dword [rbp + 0x134]
cmp qword [rsp + 0x38], rax
jne 0x180001243
mov qword [rsp + 0x38], rcx
mov esi, ecx
test r14d, r14d
je 0x18000144d
lea rbx, [r13 + 8]
mov r12, r14
xor r13d, r13d
mov r14d, dword [rbx]
mov r15, qword [rbx - 8]
lea rcx, [r14 + 2]
call fcn.1800026cc
mov qword [rbx - 8], rax
test rax, rax
je 0x18000143c
lea rcx, [rsp + 0x38]
mov r9d, r14d
mov r8, rax
mov qword [rsp + 0x20], rcx
mov rcx, rdi
mov rdx, r15
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x18000143c
mov ecx, dword [rbx]
cmp qword [rsp + 0x38], rcx
jne 0x18000143c
mov rax, qword [rbx - 8]
shr rcx, 1
inc esi
add rbx, 0x30
mov word [rax + rcx*2], r13w
cmp esi, r12d
jb 0x1800013e3
mov r13, qword [rbp - 0x78]
mov r12, qword [rbp - 0x68]
mov r14, qword [rbp - 0x80]
mov r15d, dword [rsp + 0x78]
mov rcx, qword [rbp - 0x70]
call qword [sym.imp.KERNEL32.dll_SetEvent]
test eax, eax
je 0x180001597
mov edx, r15d
mov r15, qword [rsp + 0x30]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x1800016e0
test r14d, r14d
je 0x1800016e0
mov r12, qword [rsp + 0x70]
lea rsi, [r13 + 0x20]
mov r15d, r14d
mov rcx, qword [rsi - 0x20]
lea rdx, [rbp + 0x2d0]
mov r8d, 0x400
call fcn.1800025e8
test eax, eax
je 0x18000157e
mov r9d, dword [rsi - 0x14]
lea r8, [rbp + 0x2d0]
lea rdx, str._s:_d:
lea rcx, [rsp + 0x48]
call fcn.180001078
mov rbx, rsi
mov r14d, 0x10
movzx r8d, byte [rbx]
lea rdx, str._02x
lea rcx, [rsp + 0x48]
call fcn.180001078
inc rbx
dec r14
jne 0x1800014d0
lea rdx, [0x18000c5b4]
lea rcx, [rsp + 0x48]
call fcn.180001078
lea rbx, [rsi - 0x10]
mov r14d, 0x10
movzx r8d, byte [rbx]
lea rdx, str._02x
lea rcx, [rsp + 0x48]
call fcn.180001078
inc rbx
dec r14
jne 0x180001508
lea rdx, str.:::_n
lea rcx, [rsp + 0x48]
call fcn.180001078
lea rcx, [rsp + 0x48]
call fcn.180001074
cmp eax, 0x40000
jbe 0x18000157e
lea rcx, [rsp + 0x48]
call fcn.180001074
lea rcx, [rsp + 0x48]
mov ebx, eax
call fcn.180001100
mov r8d, ebx
mov rdx, rax
mov rcx, r12
call fcn.18000256c
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_FlushFileBuffers]
lea rcx, [rsp + 0x48]
call fcn.1800010d8
add rsi, 0x30
dec r15
jne 0x18000148d
mov r13, qword [rbp - 0x78]
mov r12, qword [rbp - 0x68]
mov r14, qword [rbp - 0x80]
mov rsi, qword [rsp + 0x60]
jmp 0x180001243
mov r12, qword [rsp + 0x68]
mov r15, rbx
lea rcx, [rsp + 0x48]
call fcn.180001074
lea rcx, [rsp + 0x48]
test eax, eax
jne 0x1800015cd
lea rdx, str.____no_results.
call fcn.180001078
lea rcx, [rsp + 0x48]
call fcn.180001074
lea rcx, [rsp + 0x48]
mov ebx, eax
call fcn.180001100
mov rcx, qword [rsp + 0x70]
mov rdx, rax
mov r8d, ebx
call fcn.18000256c
test r15, r15
je 0x1800015fc
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rbp - 0x70]
test rax, rax
je 0x18000160e
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test rdi, rdi
je 0x18000161c
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r15d, 0x8000
test rsi, rsi
je 0x18000163c
mov r9d, r15d
mov r8d, 0x190
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov rax, qword [rbp - 0x60]
test rax, rax
je 0x180001657
mov r9d, r15d
mov r8, r12
mov rdx, rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov rax, qword [rsp + 0x68]
test rax, rax
je 0x18000166a
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test r13, r13
je 0x18000169c
test r14d, r14d
je 0x180001694
mov rbx, r13
mov edi, r14d
xor eax, eax
mov rcx, qword [rbx]
test rcx, rcx
je 0x18000168b
call fcn.18000268c
xor eax, eax
add rbx, 0x30
dec rdi
jne 0x18000167c
mov rcx, r13
call fcn.18000268c
lea rcx, [rsp + 0x48]
call fcn.180001000
mov eax, 1
mov rcx, qword [rbp + 0x6d0]
xor rcx, rsp
call fcn.180002c10
mov rbx, qword [rsp + 0x830]
add rsp, 0x7e0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1800015a1
mov rsi, qword [rsp + 0x60]
jmp 0x1800015a9