Function at 0x140036090
Capabilities:
Delete file
Get file attributes
Set file attributes

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0xc8
mov qword [rsp + 0x40], 0
xor r8d, r8d
lea rdx, [0x14008ddb8]
lea rcx, [rsp + 0x40]
call sub.WINTRUST.dll_CryptCATAdminAcquireContext
mov dword [rsp + 0x50], eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x54], eax
cmp dword [rsp + 0x50], 0
jne 0x1400360eb
mov edx, dword [rsp + 0x54]
mov rcx, qword [rsp + 0xd0]
call fcn.140005cd0
xor eax, eax
jmp 0x14003639b
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov r8d, 1
mov edx, 0x80000000
mov rcx, qword [rsp + 0xd8]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rsp + 0x48], rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x54], eax
cmp qword [rsp + 0x48], 0xffffffffffffffff
je 0x140036372
mov dword [rsp + 0x50], 0
mov dword [rsp + 0x54], 8
mov dword [rsp + 0x60], 0x64
mov ecx, dword [rsp + 0x60]
call fcn.140006748
mov qword [rsp + 0x88], rax
mov rax, qword [rsp + 0x88]
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
je 0x14003621d
xor r9d, r9d
mov r8, qword [rsp + 0x58]
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x48]
call sub.WINTRUST.dll_CryptCATAdminCalcHashFromFileHandle
mov dword [rsp + 0x50], eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x54], eax
cmp dword [rsp + 0x50], 0
jne 0x14003621d
cmp dword [rsp + 0x54], 0x7a
jne 0x14003621d
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x90], rax
mov rcx, qword [rsp + 0x90]
call fcn.140006750
mov ecx, dword [rsp + 0x60]
call fcn.140006748
mov qword [rsp + 0x98], rax
mov rax, qword [rsp + 0x98]
mov qword [rsp + 0x58], rax
mov dword [rsp + 0x54], 8
cmp qword [rsp + 0x58], 0
je 0x14003621d
xor r9d, r9d
mov r8, qword [rsp + 0x58]
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x48]
call sub.WINTRUST.dll_CryptCATAdminCalcHashFromFileHandle
mov dword [rsp + 0x50], eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x54], eax
cmp dword [rsp + 0x50], 0
je 0x140036345
mov qword [rsp + 0x78], 0
lea rax, [rsp + 0x78]
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov r8d, dword [rsp + 0x60]
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x40]
call sub.WINTRUST.dll_CryptCATAdminEnumCatalogFromHash
mov qword [rsp + 0x68], rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x54], eax
mov ecx, 0x20c
call fcn.140006704
mov qword [rsp + 0xa0], rax
mov rax, qword [rsp + 0xa0]
mov qword [rsp + 0x70], rax
cmp qword [rsp + 0x70], 0
je 0x140036345
mov rax, qword [rsp + 0x70]
mov dword [rax], 0x20c
xor r8d, r8d
mov rdx, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x68]
call sub.WINTRUST.dll_CryptCATCatalogInfoFromContext
mov dword [rsp + 0x50], eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x54], eax
cmp dword [rsp + 0x50], 0
je 0x14003632b
mov rcx, qword [rsp + 0x70]
add rcx, 4
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [rsp + 0x80], eax
mov eax, dword [rsp + 0x80]
and eax, 0xfffffffc
mov dword [rsp + 0x80], eax
mov eax, dword [rsp + 0x80]
or eax, 0x80
mov dword [rsp + 0x80], eax
mov rcx, qword [rsp + 0x70]
add rcx, 4
mov edx, dword [rsp + 0x80]
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov rcx, qword [rsp + 0x70]
add rcx, 4
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [rsp + 0x50], eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x54], eax
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0xa8], rax
mov rcx, qword [rsp + 0xa8]
call fcn.140006750
cmp qword [rsp + 0x58], 0
je 0x140036367
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0xb0], rax
mov rcx, qword [rsp + 0xb0]
call fcn.140006750
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor edx, edx
mov rcx, qword [rsp + 0x40]
call sub.WINTRUST.dll_CryptCATAdminReleaseContext
mov dword [rsp + 0x50], eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov rcx, qword [rsp + 0xd0]
call fcn.140005cd0
mov eax, dword [rsp + 0x50]
add rsp, 0xc8
ret