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

Disassembly:
jmp 0x14002ad80
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rbx
push rsi
push rdi
sub rsp, 0x538
lea rbp, [rsp + 0x70]
lea rdi, [rsp + 0x70]
mov ecx, 0xd2
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x568]
lea rcx, [0x140083552]
call fcn.14001df69
mov dword [rbp + 4], 0
mov dword [rbp + 0x24], 0xc0000001
mov qword [rbp + 0x48], 0
mov qword [rbp + 0x68], 0
mov qword [rbp + 0x88], 0
mov qword [rbp + 0xa8], 0
mov qword [rbp + 0x168], 0
mov rax, qword [rbp + 0x4f8]
mov qword [rax], 0
mov rax, qword [rbp + 0x500]
mov qword [rax], 0
mov rax, qword [rbp + 0x4f0]
mov eax, dword [rax + 8]
mov dword [rbp + 0x4b4], eax
cmp dword [rbp + 0x4b4], 1
je 0x14002ae6b
cmp dword [rbp + 0x4b4], 2
je 0x14002ae5e
cmp dword [rbp + 0x4b4], 3
je 0x14002ae51
jmp 0x14002ae6b
mov qword [rbp + 0x2c8], 0x460
jmp 0x14002ae76
mov qword [rbp + 0x2c8], 0x20
jmp 0x14002ae76
mov qword [rbp + 0x2c8], 0x28
mov rcx, qword [rbp + 0x2c8]
call fcn.14001d2da
mov qword [rbp + 0x2a8], rax
cmp qword [rbp + 0x2a8], 0
jne 0x14002aea9
lea rdx, str.____Error__payload_header_not_allocated_r_n
mov ecx, 1
call fcn.14001d46f
jmp 0x14002b370
lea rdx, [rbp + 0x68]
lea rcx, [rbp + 0x168]
call fcn.14001dfff
mov dword [rbp + 0x24], eax
cmp dword [rbp + 0x24], 0
jge 0x14002aed6
mov edx, dword [rbp + 0x24]
lea rcx, str.____Error__shared_section_SD_not_allocated
call fcn.14001d230
jmp 0x14002b370
lea rcx, [rbp + 0x188]
call qword [sym.imp.RPCRT4.dll_UuidCreate]
test eax, eax
je 0x14002af00
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.____Cannot_allocate_shared_section_UUID
call fcn.14001db9f
jmp 0x14002b370
mov rcx, qword [rbp + 0x508]
call qword [sym.imp.ntdll.dll_RtlImageNtHeader]
mov qword [rbp + 0xc8], rax
mov rax, qword [rbp + 0xc8]
mov eax, dword [rax + 0x50]
mov dword [rbp + 0x2e4], eax
mov eax, dword [rbp + 0x2e4]
mov ecx, eax
call fcn.14001d2da
mov qword [rbp + 0xa8], rax
cmp qword [rbp + 0xa8], 0
je 0x14002af86
mov eax, dword [rbp + 0x2e4]
mov r8d, eax
mov rdx, qword [rbp + 0x508]
mov rcx, qword [rbp + 0xa8]
call fcn.14001d767
lea rcx, str.___Resolving_kernel_import_for_input_driver_r_n
call fcn.14001de79
mov r8, qword [rbp + 0x518]
mov rdx, qword [rbp + 0x510]
mov rcx, qword [rbp + 0xa8]
call fcn.14001db5e
jmp 0x14002af9c
lea rdx, str.____Could_not_allocate_memory_for_image_r_n
mov ecx, 1
call fcn.14001d46f
jmp 0x14002b370
mov edx, 0xc8
lea rcx, [rbp + 0x1c0]
call fcn.14001dad2
mov eax, 1
imul rax, rax, 7
movzx eax, byte [rbp + rax + 0x190]
mov ecx, 1
imul rcx, rcx, 6
movzx ecx, byte [rbp + rcx + 0x190]
mov edx, 1
imul rdx, rdx, 5
movzx edx, byte [rbp + rdx + 0x190]
mov r8d, 1
imul r8, r8, 4
movzx r8d, byte [rbp + r8 + 0x190]
mov r9d, 1
imul r9, r9, 3
movzx r9d, byte [rbp + r9 + 0x190]
mov r10d, 1
imul r10, r10, 2
movzx r10d, byte [rbp + r10 + 0x190]
mov r11d, 1
imul r11, r11, 1
movzx r11d, byte [rbp + r11 + 0x190]
mov ebx, 1
imul rbx, rbx, 0
movzx ebx, byte [rbp + rbx + 0x190]
movzx edi, word [rbp + 0x18e]
movzx esi, word [rbp + 0x18c]
mov dword [rsp + 0x68], eax
mov dword [rsp + 0x60], ecx
mov dword [rsp + 0x58], edx
mov dword [rsp + 0x50], r8d
mov dword [rsp + 0x48], r9d
mov dword [rsp + 0x40], r10d
mov dword [rsp + 0x38], r11d
mov dword [rsp + 0x30], ebx
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], esi
mov r9d, dword [rbp + 0x188]
lea r8, str.BaseNamedObjects_08X__04X__04X__02X_02X__02X_02X_02X_02X_02X_02X
mov edx, 0x64
lea rcx, [rbp + 0x1c0]
call fcn.14001da14
lea rdx, [rbp + 0x1c0]
lea rcx, [rbp + 0xe8]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
mov dword [rbp + 0x118], 0x30
mov qword [rbp + 0x120], 0
mov dword [rbp + 0x130], 0x40
lea rax, [rbp + 0xe8]
mov qword [rbp + 0x128], rax
mov rax, qword [rbp + 0x168]
mov qword [rbp + 0x138], rax
mov qword [rbp + 0x140], 0
mov eax, dword [rbp + 0x2e4]
mov rcx, qword [rbp + 0x2c8]
lea rax, [rax + rcx + 0xfff]
and rax, 0xfffffffffffff000
mov qword [rbp + 0x328], rax
mov rax, qword [rbp + 0x328]
mov qword [rbp + 0x308], rax
mov rax, qword [rbp + 0x500]
mov rcx, qword [rbp + 0x328]
mov qword [rax], rcx
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x8000000
mov dword [rsp + 0x20], 4
lea r9, [rbp + 0x308]
lea r8, [rbp + 0x118]
mov edx, 0xf001f
lea rcx, [rbp + 0x48]
call qword [sym.imp.ntdll.dll_NtCreateSection]
mov dword [rbp + 0x24], eax
cmp dword [rbp + 0x24], 0
jge 0x14002b184
mov edx, dword [rbp + 0x24]
lea rcx, str.____Error__cannot_create_shared_section
call fcn.14001d230
jmp 0x14002b370
mov dword [rsp + 0x48], 4
mov dword [rsp + 0x40], 0x100000
mov dword [rsp + 0x38], 2
lea rax, [rbp + 0x328]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0x1000
xor r9d, r9d
lea r8, [rbp + 0x88]
mov rdx, 0xffffffffffffffff
mov rcx, qword [rbp + 0x48]
call qword [sym.imp.ntdll.dll_NtMapViewOfSection]
mov dword [rbp + 0x24], eax
cmp dword [rbp + 0x24], 0
jl 0x14002b357
lea rcx, str.___Resolving_payload_import_r_n
call fcn.14001de79
mov r9, qword [rbp + 0x518]
mov r8, qword [rbp + 0x510]
mov rdx, qword [rbp + 0x2a8]
mov rax, qword [rbp + 0x4f0]
mov ecx, dword [rax + 8]
call fcn.14001da82
movzx eax, al
test eax, eax
je 0x14002b344
mov rax, qword [rbp + 0x4f0]
mov r8d, dword [rax + 0xc]
mov edx, dword [rbp + 0x2e4]
mov rcx, qword [rbp + 0xa8]
call fcn.14001d483
mov rax, qword [rbp + 0x4f0]
mov eax, dword [rax + 8]
mov dword [rbp + 0x4b4], eax
cmp dword [rbp + 0x4b4], 1
je 0x14002b289
cmp dword [rbp + 0x4b4], 2
je 0x14002b278
cmp dword [rbp + 0x4b4], 3
je 0x14002b267
jmp 0x14002b289
mov rax, qword [rbp + 0x2a8]
mov ecx, dword [rbp + 0x2e4]
mov dword [rax], ecx
jmp 0x14002b298
mov rax, qword [rbp + 0x2a8]
mov ecx, dword [rbp + 0x2e4]
mov dword [rax], ecx
jmp 0x14002b298
mov rax, qword [rbp + 0x2a8]
mov ecx, dword [rbp + 0x2e4]
mov dword [rax], ecx
mov rax, qword [rbp + 0x2a8]
mov dword [rax + 8], 0xc0000001
mov rdx, qword [rbp + 0x2a8]
mov rcx, qword [rbp + 0x4f0]
call fcn.14001dcf3
movzx eax, al
test eax, eax
jne 0x14002b2d6
lea rdx, str.____Error__cannot_store_additional_data_for_shellcode_r_n
mov ecx, 1
call fcn.14001d46f
jmp 0x14002b370
mov r8, qword [rbp + 0x2c8]
mov rdx, qword [rbp + 0x2a8]
mov rcx, qword [rbp + 0x88]
call fcn.14001d767
mov eax, dword [rbp + 0x2e4]
mov rcx, qword [rbp + 0x2c8]
mov rdx, qword [rbp + 0x88]
add rdx, rcx
mov rcx, rdx
mov r8d, eax
mov rdx, qword [rbp + 0xa8]
call fcn.14001d767
mov rdx, qword [rbp + 0x88]
mov rcx, 0xffffffffffffffff
call qword [sym.imp.ntdll.dll_NtUnmapViewOfSection]
mov rax, qword [rbp + 0x4f8]
mov rcx, qword [rbp + 0x48]
mov qword [rax], rcx
mov dword [rbp + 4], 1
jmp 0x14002b355
lea rdx, str.____Error__resolving_additional_import_failed_r_n
mov ecx, 1
call fcn.14001d46f
jmp 0x14002b366
mov edx, dword [rbp + 0x24]
lea rcx, str.____Error__shared_section_not_mapped
call fcn.14001d230
xor eax, eax
test eax, eax
jne 0x14002ae24
mov ecx, dword [rbp + 0x24]
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
cmp qword [rbp + 0xa8], 0
je 0x14002b397
mov rcx, qword [rbp + 0xa8]
call fcn.14001da19
cmp qword [rbp + 0x168], 0
je 0x14002b3ad
mov rcx, qword [rbp + 0x168]
call fcn.14001da19
cmp qword [rbp + 0x2a8], 0
je 0x14002b3c3
mov rcx, qword [rbp + 0x2a8]
call fcn.14001da19
cmp qword [rbp + 0x68], 0
je 0x14002b3d3
mov rcx, qword [rbp + 0x68]
call fcn.14001da19
cmp dword [rbp + 4], 0
jne 0x14002b408
cmp qword [rbp + 0x88], 0
je 0x14002b3f7
mov rdx, qword [rbp + 0x88]
mov rcx, 0xffffffffffffffff
call qword [sym.imp.ntdll.dll_NtUnmapViewOfSection]
cmp qword [rbp + 0x48], 0
je 0x14002b408
mov rcx, qword [rbp + 0x48]
call qword [sym.imp.ntdll.dll_NtClose]
mov eax, dword [rbp + 4]
mov edi, eax
lea rcx, [rbp - 0x70]
lea rdx, [0x14005e6e0]
call fcn.14001dcb2
mov eax, edi
lea rsp, [rbp + 0x4c8]
pop rdi
pop rsi
pop rbx
pop rbp
ret