Function at 0x140089d98
Capabilities:
Set file attributes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r14
push r15
lea rbp, [rsp - 0x70]
sub rsp, 0x170
xor r15d, r15d
xor eax, eax
mov r14, rcx
mov ecx, 2
mov rsi, r8
mov rdi, rdx
lea r8d, [rcx + 0x44]
mov dword [rsp + 0x40], ecx
mov qword [rbp - 0x40], rcx
lea rcx, [rbp - 0x32]
xor edx, edx
mov ebx, r9d
mov byte [rsp + 0x44], r15b
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], r15
mov dword [rsp + 0x68], r15d
mov dword [rbp - 0x38], r15d
mov word [rbp - 0x34], r15w
call fcn.1400c8410
mov eax, dword [rbp + 0xd0]
mov qword [rbp + 0x14], r15
xorps xmm0, xmm0
movdqa xmmword [rbp + 0x50], xmm0
mov dword [rbp + 0x1c], eax
lea rax, [rsp + 0x40]
mov qword [rbp + 0x20], r15
mov qword [rbp + 0x28], r15
mov qword [rbp + 0x30], r15
mov qword [rbp + 0x38], r15
mov qword [rbp + 0x40], rax
mov qword [rbp + 0x48], r15
test rdi, rdi
je 0x14008a08e
lea rcx, str.Key_GUID:
call fcn.14000bf0c
mov rcx, rdi
call fcn.140012d14
lea rcx, reloc.Cabinet.dll_FCICreate
call fcn.14000bf0c
test rsi, rsi
je 0x14008a082
test ebx, ebx
je 0x14008a082
lea rdx, [rbp + 0x60]
mov rcx, rdi
call qword [sym.imp.ntdll.dll_RtlStringFromGUID]
test eax, eax
js 0x14008a08e
lea edx, [r15 + 0x10]
lea rcx, [rsp + 0x44]
call qword [sym.imp.cryptdll.dll_CDGenerateRandomBits]
movzx eax, word [rbp + 0x60]
mov rdx, qword [rbp + 0x68]
sub eax, 4
lea rcx, [rbp - 0x34]
add rdx, 2
movsxd r8, eax
call fcn.1400c5d20
mov r8, qword [rbp + 0xb0]
test r8, r8
je 0x140089f0e
mov eax, dword [rbp + 0xc8]
mov ecx, dword [rbp + 0x1c]
mov dword [rsp + 0x30], ebx
lea rdx, [rsp + 0x40]
mov r9, r14
mov qword [rsp + 0x28], rsi
mov dword [rsp + 0x20], eax
call fcn.140008e10
test eax, eax
jne 0x140089f56
lea rcx, str.ERROR_kuhl_m_dpapi_create_data___kull_m_dpapi_protect_masterkey_with_password_n
jmp 0x140089f51
mov rdx, qword [rbp + 0xb8]
test rdx, rdx
je 0x140089f56
mov r8d, dword [rbp + 0xc0]
test r8d, r8d
je 0x140089f56
mov eax, dword [rbp + 0xc8]
mov dword [rsp + 0x30], ebx
lea rcx, [rsp + 0x40]
mov r9, r14
mov qword [rsp + 0x28], rsi
mov dword [rsp + 0x20], eax
call fcn.140008ef0
test eax, eax
jne 0x140089f56
lea rcx, str.ERROR_kuhl_m_dpapi_create_data___kull_m_dpapi_protect_masterkey_with_userHash_n
call fcn.14000bf0c
cmp qword [rsp + 0x60], r15
je 0x14008a08e
lea rdx, [rbp + 0x20]
lea rcx, [rbp - 0x40]
call fcn.1400079e8
mov rbx, rax
test rax, rax
je 0x14008a075
cmp dword [rbp + 0xd8], r15d
je 0x140089f8c
lea rdx, [rbp - 0x40]
call fcn.1400077f4
mov eax, dword [rbp - 0x30]
mov ecx, dword [rbp - 0x34]
lea rdx, [rsp + 0x70]
mov dword [rsp + 0x74], eax
mov eax, dword [rbp - 0x2c]
mov dword [rsp + 0x70], ecx
mov dword [rsp + 0x78], eax
mov eax, dword [rbp - 0x28]
lea rcx, str.File__s__hidden__system_:
mov dword [rsp + 0x7c], eax
mov eax, dword [rbp - 0x24]
mov word [rbp - 0x48], r15w
mov dword [rbp - 0x80], eax
mov eax, dword [rbp - 0x20]
mov dword [rbp - 0x7c], eax
mov eax, dword [rbp - 0x1c]
mov dword [rbp - 0x78], eax
mov eax, dword [rbp - 0x18]
mov dword [rbp - 0x74], eax
mov eax, dword [rbp - 0x14]
mov dword [rbp - 0x70], eax
mov eax, dword [rbp - 0x10]
mov dword [rbp - 0x6c], eax
mov eax, dword [rbp - 0xc]
mov dword [rbp - 0x68], eax
mov eax, dword [rbp - 8]
mov dword [rbp - 0x64], eax
mov eax, dword [rbp - 4]
mov dword [rbp - 0x60], eax
mov eax, dword [rbp]
mov dword [rbp - 0x5c], eax
mov eax, dword [rbp + 4]
mov dword [rbp - 0x58], eax
mov eax, dword [rbp + 8]
mov dword [rbp - 0x54], eax
mov eax, dword [rbp + 0xc]
mov dword [rbp - 0x50], eax
mov eax, dword [rbp + 0x10]
mov dword [rbp - 0x4c], eax
call fcn.14000bf0c
mov r8d, dword [rbp + 0x20]
lea rcx, [rsp + 0x70]
mov rdx, rbx
call fcn.140009bbc
test eax, eax
je 0x14008a058
lea rcx, [rsp + 0x70]
mov edx, Ordinal_41
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x14008a049
lea rcx, [0x140103dc8]
call fcn.14000bf0c
jmp 0x14008a06c
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.ERROR_kuhl_m_dpapi_create_data___SetFileAttributes__0x_08x__n
jmp 0x14008a065
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.ERROR_kuhl_m_dpapi_create_data___kull_m_file_writeData__0x_08x__n
mov edx, eax
call fcn.14000bf0c
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x14008a08e
lea rcx, str.ERROR_kuhl_m_dpapi_create_data___No_key_n
call fcn.14000bf0c
lea r11, [rsp + 0x170]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rbp
ret