Function at 0x140005a00
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
mov dword [rsp + 0x10], edx
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x2f]
sub rsp, 0xd0
movdqa xmm0, xmmword [str.AAAAAAAA]
lea rdx, str.dpapi.dll
lea rax, str.CryptProtectMemory
mov qword [rbp - 0x11], rdx
mov qword [rbp - 9], rax
lea r13, [0x140005980]
lea rax, str.CryptUnprotectMemory
mov qword [rbp + 0xf], rdx
mov qword [rbp + 0x17], rax
lea r14, [0x1400059f0]
lea rax, [rbp + 0xf]
mov esi, r9d
mov qword [rbp - 0x49], rax
lea rdx, [0x14000e5b0]
lea rax, [0x1401b2860]
movdqa xmmword [rbp - 1], xmm0
mov r15, r8
mov qword [rbp - 0x39], rax
xor edi, edi
movdqa xmmword [rbp + 0x1f], xmm0
mov ebx, 1
mov qword [rbp - 0x41], r13
lea r8, [rbp - 0x51]
mov dword [rbp - 0x51], ebx
sub r14d, r13d
mov qword [rbp - 0x59], rcx
mov r12d, edi
mov qword [rbp - 0x61], rdi
call fcn.14000b8b0
mov r9d, dword [rbp - 0x51]
mov edx, edi
test r9d, r9d
je 0x140005aea
mov r8, qword [rbp - 0x49]
test ebx, ebx
je 0x140005b6c
mov ecx, edx
mov eax, edi
shl rcx, 5
inc edx
cmp qword [rcx + r8 + 0x18], rax
cmovne eax, ebx
mov ebx, eax
cmp edx, r9d
jb 0x140005ac1
test eax, eax
je 0x140005b6c
mov edx, r14d
mov ecx, 0x40
mov ebx, r14d
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov qword [rbp - 0x41], rax
test rax, rax
je 0x140005d09
mov r8d, ebx
mov rdx, r13
mov rcx, rax
call fcn.14011b4a0
mov r8d, edi
add rbx, 0xfffffffffffffff8
je 0x140005b6c
mov r11d, dword [rbp - 0x51]
mov eax, edi
test r11d, r11d
je 0x140005b61
nop word [rax + rax]
mov r9d, eax
shl r9, 5
add r9, qword [rbp - 0x49]
mov r10d, r8d
add r10, qword [rbp - 0x41]
mov rcx, qword [r10]
cmp qword [r9 + 0x10], rcx
jne 0x140005b5a
mov rcx, qword [r9 + 0x18]
add r8d, 7
mov qword [r10], rcx
mov r11d, dword [rbp - 0x51]
inc eax
cmp eax, r11d
jb 0x140005b30
inc r8d
mov eax, r8d
cmp rax, rbx
jb 0x140005b23
cmp qword [rbp - 0x41], rdi
je 0x140005d09
mov rdx, qword [rbp - 0x59]
mov ebx, r14d
mov ecx, dword [rdx]
test ecx, ecx
je 0x140005c0e
sub ecx, 1
je 0x140005bec
cmp ecx, 2
jne 0x140005c65
mov rax, qword [rdx + 8]
lea rcx, [rbp + 0x67]
mov qword [rsp + 0x38], rdi
mov r9d, r14d
mov qword [rsp + 0x30], rcx
xor r8d, r8d
lea rcx, [rbp - 0x61]
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 0x140005c29
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 0x140005c29
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 0x140005c25
mov r9d, Ordinal_69
mov r8d, 0x1000
mov rdx, rbx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rbp - 0x61], rax
cmp qword [rbp - 0x61], rdi
je 0x140005c65
mov r8, rbx
lea rdx, [rbp - 0x41]
lea rcx, [rbp - 0x61]
call fcn.14000a6f0
mov r12d, eax
test eax, eax
jne 0x140005c79
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 - 0x61]
call fcn.14000ae80
jmp 0x140005c79
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 - 0x41]
call qword [sym.imp.KERNEL32.dll_LocalFree]
test r12d, r12d
je 0x140005d15
lea edx, [rsi + 0x10]
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rbx, rax
test rax, rax
je 0x140005cfe
mov qword [rax], rdi
mov dword [rax + 8], edi
test esi, esi
je 0x140005cc3
test r15, r15
je 0x140005cc3
mov r8, rsi
mov dword [rax + 0xc], esi
lea rcx, [rax + 0x10]
mov rdx, r15
call fcn.14011b4a0
lea r8, [rbp - 0x31]
mov rdx, rbx
lea rcx, [rbp - 0x61]
call fcn.14000e1c0
test eax, eax
je 0x140005cf5
mov edi, dword [rbp - 0x25]
test edi, edi
je 0x140005cf5
mov ecx, dword [rbp - 0x21]
cmp esi, ecx
mov rdx, qword [rbp - 0x19]
cmovb ecx, esi
mov r8d, ecx
mov rcx, r15
call fcn.14011b4a0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
lea rcx, [rbp - 0x61]
call fcn.14000ae80
jmp 0x140005d21
lea rcx, str.ERROR_kull_m_remotelib_CreateRemoteCodeWitthPatternReplace___No_buffer___n
call fcn.14000afb0
lea rcx, str.ERROR_kull_m_crypto_remote_CryptProtectMemory_Generic___kull_m_remotelib_CreateRemoteCodeWitthPatternReplace_n
call fcn.14000afb0
lea r11, [rsp + 0xd0]
mov eax, edi
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret