Function at 0x18006ada8
Capabilities:
Map section object
Set file attributes

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x27]
sub rsp, 0x100
mov rax, qword [0x1800b2220]
xor rax, rsp
mov qword [rbp + 0x17], rax
xor r12d, r12d
mov qword [rbp - 1], 0x18
mov rsi, r9
mov rdi, r8
mov r15, rcx
mov qword [rbp + 7], rdx
mov qword [rbp + 0xf], r12
mov dword [rbp - 0x75], r12d
mov qword [rbp - 0x69], r12
mov qword [rsp + 0x58], r12
mov dword [rsp + 0x50], r12d
mov qword [rbp - 0x71], r12
mov qword [rbp - 0x59], r12
cmp qword [r8], r12
jne 0x18006aebe
mov rax, qword [rcx + 8]
lea r9, [rbp - 0x21]
xorps xmm0, xmm0
mov dword [rsp + 0x28], 0x60
mov rcx, rdi
mov qword [rbp - 0x41], rax
lea r8, [rbp - 0x51]
mov dword [rbp - 0x51], 0x30
mov edx, 0x120089
mov qword [rbp - 0x49], r12
movdqu xmmword [rbp - 0x31], xmm0
mov dword [rbp - 0x39], 0x40
mov dword [rsp + 0x20], 5
call sub.ntdll.dll_NtOpenFile
mov ebx, eax
test eax, eax
jns 0x18006aebe
cmp eax, 0xc0000204
je 0x18006b02a
lea ecx, [rax + 0x3fffff77]
cmp ecx, 2
jbe 0x18006b02a
cmp eax, 0xc0000034
je 0x18006b02a
cmp eax, 0xc000000f
je 0x18006b02a
cmp eax, 0xc0150002
je 0x18006b02a
mov dword [rsp + 0x28], eax
lea r9, str.BasepSxsCreateResourceStreamFromFileHandle
mov rax, qword [rbp - 0x41]
lea r8, str.SXS:__s___NtOpenFile__wZ__failed._Status__0x_x_n
xor edx, edx
mov qword [rsp + 0x20], rax
lea ecx, [rdx + 0x33]
call sub.ntdll.dll_DbgPrintEx
jmp 0x18006b02a
mov rcx, qword [rdi]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x38], r12
lea rdx, [rbp - 1]
mov qword [rsp + 0x30], r12
mov r9d, 0x8810
mov qword [rsp + 0x28], rax
mov r8d, 3
lea rax, [rbp - 0x69]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntdll.dll_LdrResSearchResource]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
js 0x18006b02a
mov rax, qword [rsp + 0x58]
cmp rax, 0x800000
jbe 0x18006af1b
mov ebx, 0xc0150022
jmp 0x18006b02a
xor r8d, r8d
mov qword [rsp + 0x30], r12
lea r14, [rdi + 0x10]
mov dword [rsp + 0x28], 0x8000000
lea r9, [rbp - 0x79]
mov dword [rbp - 0x79], eax
mov rcx, r14
mov dword [rsp + 0x20], 4
lea edx, [r8 + 6]
call sub.ntdll.dll_NtCreateSection
mov ebx, eax
test eax, eax
js 0x18006b02a
mov rdx, qword [rdi + 8]
lea rax, [rbp - 0x59]
mov rcx, qword [r14]
lea r8, [rbp - 0x71]
mov dword [rsp + 0x48], 4
xor r9d, r9d
mov dword [rsp + 0x40], r12d
mov dword [rsp + 0x38], 2
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], r12
call sub.ntdll.dll_NtMapViewOfSection
mov ebx, eax
test eax, eax
js 0x18006b02a
mov rax, qword [rbp - 0x71]
lea r8, [rbp - 0x61]
mov rcx, qword [rdi]
lea rdx, [rbp - 0x11]
mov qword [rdi + 0x18], rax
mov r9d, 8
mov eax, dword [rbp - 0x69]
mov qword [rbp - 0x61], r12
mov dword [rbp - 0x61], eax
mov dword [rsp + 0x20], 0xe
call sub.ntdll.dll_NtSetInformationFile
mov ebx, eax
test eax, eax
js 0x18006b02a
mov r8d, dword [rsp + 0x58]
lea r9, [rsp + 0x50]
mov rdx, qword [rdi + 0x18]
mov rcx, qword [rdi]
call fcn.18006b054
mov ebx, eax
test eax, eax
js 0x18006b02a
mov rcx, qword [rsp + 0x58]
cmp dword [rsp + 0x50], ecx
je 0x18006affd
mov ebx, 0xc000007b
jmp 0x18006b02a
mov rax, qword [rdi]
mov ebx, r12d
mov qword [rsi + 0x18], rax
mov word [rsi], 0x101
mov rax, qword [r15]
movups xmm0, xmmword [rax]
mov byte [rsi + 2], 3
movdqu xmmword [rsi + 8], xmm0
mov rax, qword [r14]
mov qword [rsi + 0x20], rax
mov qword [rsi + 0x28], r12
mov qword [rsi + 0x30], rcx
mov eax, ebx
mov rcx, qword [rbp + 0x17]
xor rcx, rsp
call fcn.180024680
add rsp, 0x100
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret