Function at 0x1400f2770
Capabilities:
Allocate or change rwx memory

Disassembly:
push rbp
push r12
push r15
lea rbp, [rsp - 0x47]
sub rsp, 0xe0
movdqa xmm0, xmmword [str.AAAAAAAA]
lea rax, str.user32.dll
mov qword [rbp - 0x29], rax
mov r15, rdx
lea rax, str.SystemParametersInfoW
movdqa xmmword [rbp - 0x19], xmm0
movdqa xmm0, xmmword [str.BBBBBBBB]
mov r8d, ecx
mov qword [rbp - 0x21], rax
xor edx, edx
lea rax, str.kernel32.dll
movdqa xmmword [rbp + 7], xmm0
mov qword [rbp - 9], rax
mov ecx, 0x43a
lea rax, [0x1401611c8]
mov dword [rbp - 0x49], 2
mov qword [rbp - 1], rax
lea rax, [rbp - 0x29]
mov qword [rbp - 0x41], rax
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov r12, rax
test rax, rax
je 0x1400f2bc8
mov edx, 0x10
mov qword [rsp + 0x108], rsi
lea ecx, [rdx + 0x30]
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rsi, rax
test rax, rax
je 0x1400f2baa
mov qword [rsp + 0x100], rbx
mov ebx, 1
mov dword [rax], ebx
lea edx, [rbx + 7]
lea ecx, [rbx + 0x3f]
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov qword [rsi + 8], rax
test rax, rax
je 0x1400f2b99
mov qword [rsp + 0x118], rdi
lea r8, [rbp - 0x49]
xor ecx, ecx
mov qword [rax], r12
mov qword [rsp + 0xd8], r13
lea rax, [0x1401b2860]
lea r13, [0x1400f2700]
mov qword [rbp - 0x59], rcx
mov qword [rsp + 0xd0], r14
lea rdi, [0x1400f2760]
mov r14d, ecx
mov qword [rbp - 0x39], r13
mov rcx, rsi
mov qword [rbp - 0x31], rax
lea rdx, [0x14000e5b0]
mov qword [rbp - 0x51], rsi
sub edi, r13d
call fcn.14000b8b0
mov r9d, dword [rbp - 0x49]
xor edx, edx
test r9d, r9d
je 0x1400f28d9
mov r8, qword [rbp - 0x41]
nop word [rax + rax]
test ebx, ebx
je 0x1400f295c
xor eax, eax
mov ecx, edx
shl rcx, 5
inc edx
cmp qword [rcx + r8 + 0x18], rax
cmovne eax, ebx
mov ebx, eax
cmp edx, r9d
jb 0x1400f28b0
test eax, eax
je 0x1400f295c
mov edx, edi
mov ecx, 0x40
mov ebx, edi
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov qword [rbp - 0x39], rax
test rax, rax
je 0x1400f2b1e
mov r8d, ebx
mov rdx, r13
mov rcx, rax
call fcn.14011b4a0
xor r8d, r8d
add rbx, 0xfffffffffffffff8
je 0x1400f295c
mov r9d, dword [rbp - 0x49]
xor edx, edx
test r9d, r9d
je 0x1400f2951
nop word [rax + rax]
mov r10d, edx
shl r10, 5
add r10, qword [rbp - 0x41]
mov r11d, r8d
add r11, qword [rbp - 0x39]
mov rax, qword [r11]
cmp qword [r10 + 0x10], rax
jne 0x1400f294a
mov rax, qword [r10 + 0x18]
add r8d, 7
mov qword [r11], rax
mov r9d, dword [rbp - 0x49]
inc edx
cmp edx, r9d
jb 0x1400f2920
inc r8d
mov eax, r8d
cmp rax, rbx
jb 0x1400f2910
cmp qword [rbp - 0x39], r14
je 0x1400f2b1e
mov rdx, qword [rbp - 0x51]
mov ebx, edi
mov ecx, dword [rdx]
test ecx, ecx
je 0x1400f29fd
sub ecx, 1
je 0x1400f29db
cmp ecx, 2
jne 0x1400f2a54
mov rax, qword [rdx + 8]
lea rcx, [rbp + 0x77]
mov qword [rsp + 0x38], r14
mov r9d, edi
mov qword [rsp + 0x30], rcx
xor r8d, r8d
lea rcx, [rbp - 0x59]
mov dword [rsp + 0x28], 8
mov qword [rsp + 0x20], rcx
mov edx, 0x22c18b
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x1400f2a18
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, 0x22c18b
lea rcx, str.ERROR_kull_m_kernel_ioctl_handle___DeviceIoControl__0x_08x__:_0x_08x_n
mov r8d, eax
call fcn.14000afb0
jmp 0x1400f2a18
mov rcx, qword [rdx + 8]
mov r9d, 0x1000
mov r8, rbx
mov dword [rsp + 0x20], Ordinal_69
xor edx, edx
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
jmp 0x1400f2a14
mov r9d, Ordinal_69
mov r8d, 0x1000
mov rdx, rbx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rbp - 0x59], rax
cmp qword [rbp - 0x59], r14
je 0x1400f2a54
mov r8, rbx
lea rdx, [rbp - 0x39]
lea rcx, [rbp - 0x59]
call fcn.14000a6f0
mov r14d, eax
test eax, eax
jne 0x1400f2a68
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.ERROR_kull_m_remotelib_CreateRemoteCodeWitthPatternReplace___kull_m_memory_copy__0x_08x__n
call fcn.14000afb0
lea rcx, [rbp - 0x59]
call fcn.14000ae80
jmp 0x1400f2a68
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.ERROR_kull_m_remotelib_CreateRemoteCodeWitthPatternReplace___kull_m_memory_alloc___VirtualAlloc_Ex___0x_08x__n
call fcn.14000afb0
mov rcx, qword [rbp - 0x39]
call qword [sym.imp.KERNEL32.dll_LocalFree]
test r14d, r14d
je 0x1400f2b2a
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, 0x40
lea edi, [rax*2 + 2]
lea edx, [rdi + 0x10]
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rbx, rax
test rax, rax
je 0x1400f2b13
xor ecx, ecx
mov qword [rax], rcx
mov dword [rax + 8], ecx
test edi, edi
je 0x1400f2ac4
test r15, r15
je 0x1400f2ac4
mov r8d, edi
lea rcx, [rax + 0x10]
mov rdx, r15
mov dword [rax + 0xc], edi
call fcn.14011b4a0
lea r8, [rbp + 0x17]
mov rdx, rbx
lea rcx, [rbp - 0x59]
call fcn.14000e1c0
test eax, eax
je 0x1400f2af6
mov edx, dword [rbp + 0x23]
test edx, edx
je 0x1400f2ae8
lea rcx, str.error__u_n
jmp 0x1400f2b05
lea rcx, str.OK__n
call fcn.14000afb0
jmp 0x1400f2b0a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.ERROR_kuhl_m_misc_wp_for_pid___kull_m_remotelib_create__0x_08x__n
call fcn.14000afb0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
lea rcx, [rbp - 0x59]
call fcn.14000ae80
jmp 0x1400f2b36
lea rcx, str.ERROR_kull_m_remotelib_CreateRemoteCodeWitthPatternReplace___No_buffer___n
call fcn.14000afb0
lea rcx, str.ERROR_kuhl_m_misc_wp_for_pid___kull_m_remotelib_CreateRemoteCodeWitthPatternReplace_n
call fcn.14000afb0
mov ecx, dword [rsi]
mov r14, qword [rsp + 0xd0]
mov r13, qword [rsp + 0xd8]
mov rdi, qword [rsp + 0x118]
sub ecx, 1
je 0x1400f2b8f
sub ecx, 1
je 0x1400f2b66
sub ecx, 1
je 0x1400f2b8f
cmp ecx, 3
jne 0x1400f2b99
jmp 0x1400f2b8f
mov rax, qword [rsi + 8]
test rax, rax
je 0x1400f2b99
mov rbx, qword [rax]
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x1400f2b81
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov rcx, qword [rbx]
test rcx, rcx
je 0x1400f2b8f
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsi + 8]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rbx, qword [rsp + 0x100]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rsi, qword [rsp + 0x108]
add rsp, 0xe0
pop r15
pop r12
pop rbp
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.ERROR_kuhl_m_misc_wp_for_pid___OpenProcess__0x_08x__n
call fcn.14000afb0
add rsp, 0xe0
pop r15
pop r12
pop rbp
ret