Function at 0x1400f1fd0
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rdx
push rbp
push r15
lea rbp, [rsp - 0x4f]
sub rsp, 0xe8
movdqa xmm0, xmmword [str.AAAAAAAA]
lea rax, str.user32.dll
mov qword [rbp - 0x29], rax
mov r8d, ecx
lea rax, str.LockWorkStation
movdqa xmmword [rbp - 0x19], xmm0
movdqa xmm0, xmmword [str.BBBBBBBB]
xor edx, edx
mov qword [rbp - 0x21], rax
mov ecx, 0x43a
lea rax, str.kernel32.dll
movdqa xmmword [rbp + 7], xmm0
mov qword [rbp - 9], rax
lea rax, [0x1401611c8]
mov qword [rbp - 1], rax
lea rax, [rbp - 0x29]
mov qword [rbp - 0x41], rax
mov dword [rbp - 0x49], 2
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov r15, rax
test rax, rax
je 0x1400f2402
mov edx, 0x10
mov qword [rsp + 0x118], rdi
lea ecx, [rdx + 0x30]
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rdi, rax
test rax, rax
je 0x1400f23e6
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 [rdi + 8], rax
test rax, rax
je 0x1400f23d5
mov qword [rsp + 0x110], rsi
lea r8, [rbp - 0x49]
mov qword [rax], r15
lea rsi, [0x1400f1fc0]
mov qword [rsp + 0xe0], r12
lea rax, [0x1401b2860]
mov qword [rsp + 0xd8], r13
lea r12, [0x1400f1f80]
xor r13d, r13d
mov qword [rsp + 0xd0], r14
lea rdx, [0x14000e5b0]
mov qword [rbp - 0x59], r13
mov rcx, rdi
mov qword [rbp - 0x39], r12
mov r14d, r13d
mov qword [rbp - 0x31], rax
sub esi, r12d
mov qword [rbp - 0x51], rdi
call fcn.14000b8b0
mov r9d, dword [rbp - 0x49]
mov edx, r13d
test r9d, r9d
je 0x1400f213d
mov r8, qword [rbp - 0x41]
test ebx, ebx
je 0x1400f21bc
mov ecx, edx
mov eax, r13d
shl rcx, 5
inc edx
cmp qword [rcx + r8 + 0x18], rax
cmovne eax, ebx
mov ebx, eax
cmp edx, r9d
jb 0x1400f2113
test eax, eax
je 0x1400f21bc
mov edx, esi
mov ecx, 0x40
mov ebx, esi
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov qword [rbp - 0x39], rax
test rax, rax
je 0x1400f2352
mov r8d, ebx
mov rdx, r12
mov rcx, rax
call fcn.14011b4a0
mov r8d, r13d
add rbx, 0xfffffffffffffff8
je 0x1400f21bc
mov r9d, dword [rbp - 0x49]
mov edx, r13d
test r9d, r9d
je 0x1400f21b1
nop dword [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 0x1400f21aa
mov rax, qword [r10 + 0x18]
add r8d, 7
mov qword [r11], rax
mov r9d, dword [rbp - 0x49]
inc edx
cmp edx, r9d
jb 0x1400f2180
inc r8d
mov eax, r8d
cmp rax, rbx
jb 0x1400f2174
cmp qword [rbp - 0x39], r13
je 0x1400f2352
mov rdx, qword [rbp - 0x51]
mov ebx, esi
mov ecx, dword [rdx]
test ecx, ecx
je 0x1400f225d
sub ecx, 1
je 0x1400f223b
cmp ecx, 2
jne 0x1400f22b4
mov rax, qword [rdx + 8]
lea rcx, [rbp + 0x6f]
mov qword [rsp + 0x38], r13
mov r9d, esi
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 0x1400f2278
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 0x1400f2278
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 0x1400f2274
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], r13
je 0x1400f22b4
mov r8, rbx
lea rdx, [rbp - 0x39]
lea rcx, [rbp - 0x59]
call fcn.14000a6f0
mov r14d, eax
test eax, eax
jne 0x1400f22c8
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 0x1400f22c8
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 0x1400f235e
mov edx, 0x10
lea ecx, [rdx + 0x30]
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rbx, rax
test rax, rax
je 0x1400f2347
lea r8, [rbp + 0x17]
mov qword [rax], r13
mov rdx, rax
mov dword [rax + 8], r13d
lea rcx, [rbp - 0x59]
call fcn.14000e1c0
test eax, eax
je 0x1400f232a
mov edx, dword [rbp + 0x23]
test edx, edx
je 0x1400f231c
lea rcx, str.error__u_n
jmp 0x1400f2339
lea rcx, str.OK__n
call fcn.14000afb0
jmp 0x1400f233e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.ERROR_kuhl_m_misc_lock_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 0x1400f236a
lea rcx, str.ERROR_kull_m_remotelib_CreateRemoteCodeWitthPatternReplace___No_buffer___n
call fcn.14000afb0
lea rcx, str.ERROR_kuhl_m_misc_lock_for_pid___kull_m_remotelib_CreateRemoteCodeWitthPatternReplace_n
call fcn.14000afb0
mov ecx, dword [rdi]
mov r14, qword [rsp + 0xd0]
mov r13, qword [rsp + 0xd8]
mov r12, qword [rsp + 0xe0]
mov rsi, qword [rsp + 0x110]
sub ecx, 1
je 0x1400f23cb
sub ecx, 1
je 0x1400f23a2
sub ecx, 1
je 0x1400f23cb
cmp ecx, 3
jne 0x1400f23d5
jmp 0x1400f23cb
mov rax, qword [rdi + 8]
test rax, rax
je 0x1400f23d5
mov rbx, qword [rax]
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x1400f23bd
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov rcx, qword [rbx]
test rcx, rcx
je 0x1400f23cb
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rdi + 8]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rbx, qword [rsp + 0x100]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdi, qword [rsp + 0x118]
add rsp, 0xe8
pop r15
pop rbp
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.ERROR_kuhl_m_misc_lock_for_pid___OpenProcess__0x_08x__n
call fcn.14000afb0
add rsp, 0xe8
pop r15
pop rbp
ret