Function at 0x14008bca0
Capabilities:
Set file attributes

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rbp
mov qword [r11 + 0x18], rsi
mov qword [r11 + 0x20], rdi
push r12
sub rsp, 0x170
xor r12d, r12d
xor eax, eax
mov rbp, rcx
mov ecx, 2
mov rsi, r8
mov rbx, rdx
mov dword [rsp + 0x80], ecx
lea r8d, [rcx + 0x44]
mov dword [rsp + 0x40], ecx
lea rcx, [r11 - 0xea]
xor edx, edx
mov edi, r9d
mov byte [rsp + 0x44], r12b
mov qword [rsp + 0x45], rax
mov dword [rsp + 0x4d], eax
mov word [rsp + 0x51], ax
mov byte [rsp + 0x53], al
mov dword [rsp + 0x54], 0xfa0
mov dword [rsp + 0x58], 0x8009
mov dword [rsp + 0x5c], 0x6603
mov qword [rsp + 0x60], r12
mov dword [rsp + 0x68], r12d
mov dword [r11 - 0xf4], r12d
mov dword [r11 - 0xf0], r12d
mov word [r11 - 0xec], r12w
call sub.msvcrt.dll_memset
mov eax, dword [rsp + 0x1c0]
mov dword [rsp + 0xdc], eax
lea rax, [rsp + 0x40]
mov dword [rsp + 0xd4], r12d
mov dword [rsp + 0xd8], r12d
mov qword [rsp + 0xe0], r12
mov qword [rsp + 0xe8], r12
mov qword [rsp + 0x100], rax
mov qword [rsp + 0xf0], r12
mov qword [rsp + 0xf8], r12
mov qword [rsp + 0x108], r12
mov qword [rsp + 0x110], r12
mov qword [rsp + 0x118], r12
cmp rbx, r12
je 0x14008bfc2
lea rcx, str.Key_GUID:
call fcn.14000c030
mov rcx, rbx
call fcn.1400130e8
lea rcx, [0x1400d27a8]
call fcn.14000c030
cmp rsi, r12
je 0x14008bfb6
cmp edi, r12d
je 0x14008bfb6
lea rdx, [rsp + 0x70]
mov rcx, rbx
call sub.ntdll.dll_RtlStringFromGUID
cmp eax, r12d
jl 0x14008bfc2
lea edx, [r12 + 0x10]
lea rcx, [rsp + 0x44]
call sub.cryptdll.dll_CDGenerateRandomBits
movzx r11d, word [rsp + 0x70]
mov rdx, qword [rsp + 0x78]
sub r11d, 4
lea rcx, [rsp + 0x8c]
add rdx, 2
movsxd r8, r11d
call sub.msvcrt.dll_memcpy
mov r8, qword [rsp + 0x1a0]
cmp r8, r12
je 0x14008be6c
mov eax, dword [rsp + 0x1b8]
mov ecx, dword [rsp + 0xdc]
mov qword [rsp + 0x38], r12
mov dword [rsp + 0x30], edi
lea rdx, [rsp + 0x40]
mov r9, rbp
mov qword [rsp + 0x28], rsi
mov dword [rsp + 0x20], eax
call fcn.140008e64
cmp eax, r12d
jne 0x14008bebd
lea rcx, str.PA7LB_kuhl_m_dpapi_create_data___kull_m_dpapi_protect_masterkey_with_password_n
jmp 0x14008beb8
mov rdx, qword [rsp + 0x1a8]
cmp rdx, r12
je 0x14008bebd
mov r8d, dword [rsp + 0x1b0]
cmp r8d, r12d
je 0x14008bebd
mov eax, dword [rsp + 0x1b8]
mov qword [rsp + 0x38], r12
mov dword [rsp + 0x30], edi
lea rcx, [rsp + 0x40]
mov r9, rbp
mov qword [rsp + 0x28], rsi
mov dword [rsp + 0x20], eax
call fcn.140008f4c
cmp eax, r12d
jne 0x14008bebd
lea rcx, str.PA7LB_kuhl_m_dpapi_create_data___kull_m_dpapi_protect_masterkey_with_userHash_n
call fcn.14000c030
cmp qword [rsp + 0x60], r12
je 0x14008bfc2
lea rdx, [rsp + 0xe0]
lea rcx, [rsp + 0x80]
call fcn.140007ad0
mov rbx, rax
cmp rax, r12
je 0x14008bfa9
cmp dword [rsp + 0x1c8], r12d
je 0x14008bf02
lea rdx, [rsp + 0x80]
xor ecx, ecx
call fcn.1400078cc
lea rcx, [rsp + 0x120]
lea rdx, [rsp + 0x8c]
mov r8d, 0x48
call sub.msvcrt.dll_memcpy
lea rdx, [rsp + 0x120]
lea rcx, str.File__s__hidden__system_:
mov word [rsp + 0x168], r12w
call fcn.14000c030
mov r8d, dword [rsp + 0xe0]
lea rcx, [rsp + 0x120]
mov rdx, rbx
call fcn.140009ce8
cmp eax, r12d
je 0x14008bf8c
lea rcx, [rsp + 0x120]
mov edx, 0x26
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp eax, r12d
je 0x14008bf7d
lea rcx, [0x1400f9538]
call fcn.14000c030
jmp 0x14008bfa0
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.PA7LB_kuhl_m_dpapi_create_data___SetFileAttributes__0x_08x__n
jmp 0x14008bf99
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.PA7LB_kuhl_m_dpapi_create_data___kull_m_file_writeData__0x_08x__n
mov edx, eax
call fcn.14000c030
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x14008bfc2
lea rcx, str.PA7LB_kuhl_m_dpapi_create_data___No_key_n
call fcn.14000c030
lea r11, [rsp + 0x170]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r12
ret