Function at 0x14010f230
Capabilities:
Link many functions at runtime

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x10], rdx
push rbp
push rdi
push r13
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0xf0
xor r14d, r14d
mov r13, r8
test byte [0x14018b6d0], 1
mov r15, rcx
mov dword [rbp - 0x2d], r14d
mov qword [rbp - 0x19], r14
jne 0x14010f410
lock bts qword [0x14018b6d0], 0x1f
setb al
test al, al
je 0x14010f2a2
test byte [0x14018b6d0], 1
jne 0x14010f410
xor edx, edx
lea rcx, [0x14018b6d0]
call sym.4yUlCM3HuVsHzW5CaCX.exe_PhfWaitForEvent
jmp 0x14010f410
lea rcx, str.wintrust.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
lea rcx, str.crypt32.dll
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
lea rdx, str.CryptCATAdminCalcHashFromFileHandle
mov rcx, rbx
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.CryptCATAdminCalcHashFromFileHandle2
mov rcx, rbx
mov qword [0x140190ef0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.CryptCATAdminAcquireContext
mov rcx, rbx
mov qword [0x140190ea0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.CryptCATAdminAcquireContext2
mov rcx, rbx
mov qword [0x140190eb0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.CryptCATAdminEnumCatalogFromHash
mov rcx, rbx
mov qword [0x140190ee0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.CryptCATCatalogInfoFromContext
mov rcx, rbx
mov qword [0x140190eb8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.CryptCATAdminReleaseCatalogContext
mov rcx, rbx
mov qword [0x140190e98], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.CryptCATAdminReleaseContext
mov rcx, rbx
mov qword [0x140190e90], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.WTHelperProvDataFromStateData
mov rcx, rbx
mov qword [0x140190e88], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.WTHelperGetProvSignerFromChain
mov rcx, rbx
mov qword [0x140190ee8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.WinVerifyTrust
mov rcx, rbx
mov qword [0x140190ea8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.CertNameToStrW
mov rcx, rdi
mov qword [0x140190ed8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.CertDuplicateCertificateContext
mov rcx, rdi
mov qword [0x140190ec0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.CertFreeCertificateContext
mov rcx, rdi
mov qword [0x140190ec8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rcx, [0x14018b6d0]
mov qword [0x140190ed0], rax
call sym.4yUlCM3HuVsHzW5CaCX.exe_PhfSetEvent
cmp qword [0x140190ef0], r14
je 0x14010f710
cmp qword [0x140190eb0], r14
je 0x14010f710
cmp qword [0x140190eb8], r14
je 0x14010f710
cmp qword [0x140190e98], r14
je 0x14010f710
cmp qword [0x140190e90], r14
je 0x14010f710
cmp qword [0x140190e88], r14
je 0x14010f710
cmp qword [0x140190ed8], r14
je 0x14010f710
cmp qword [0x140190ee8], r14
je 0x14010f710
cmp qword [0x140190ea8], r14
je 0x14010f710
cmp qword [0x140190ec0], r14
je 0x14010f710
cmp qword [0x140190ec8], r14
je 0x14010f710
cmp qword [0x140190ed0], r14
je 0x14010f710
mov rcx, qword [r15]
lea rdx, [rbp - 0x41]
xor r9d, r9d
mov qword [rsp + 0x120], rsi
xor r8d, r8d
call qword [sym.imp.ntdll.dll_RtlDosPathNameToNtPathName_U]
test al, al
jne 0x14010f4d5
mov ebx, 0xc0000034
jmp 0x14010f569
mov dword [rsp + 0x50], r14d
lea rax, [rbp - 0x41]
mov qword [rsp + 0x48], r14
lea r9, [rbp + 0x1f]
mov dword [rsp + 0x40], 0x60
lea r8, [rbp - 0x11]
mov dword [rsp + 0x38], 1
lea rcx, [rbp - 0x49]
mov dword [rsp + 0x30], 5
xorps xmm0, xmm0
mov dword [rsp + 0x28], 0x80
mov edx, 0x120089
mov qword [rsp + 0x20], r14
mov dword [rbp - 0x11], 0x30
mov qword [rbp - 9], r14
mov dword [rbp + 7], 0x40
mov qword [rbp - 1], rax
movdqu xmmword [rbp + 0xf], xmm0
call qword [sym.imp.ntdll.dll_NtCreateFile]
mov ebx, eax
xor edx, edx
mov rax, qword gs:[0x30]
mov r8, qword [rbp - 0x39]
mov rcx, qword [rax + 0x60]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov rsi, qword [rbp - 0x49]
test ebx, ebx
cmovns rsi, qword [rbp - 0x49]
jns 0x14010f58b
mov eax, ebx
mov rsi, qword [rsp + 0x120]
mov rbx, qword [rsp + 0x130]
add rsp, 0xf0
pop r15
pop r14
pop r13
pop rdi
pop rbp
ret
mov rax, qword [r15]
lea r9, [rbp - 0x31]
mov qword [rbp - 0x29], rax
mov r8d, 1
lea rax, [rbp - 0x59]
mov dword [rbp - 0x31], 0x20
mov qword [rsp + 0x38], rax
mov rcx, r15
lea rax, [rbp - 0x51]
mov qword [rbp - 0x21], rsi
mov qword [rsp + 0x30], rax
lea rax, [0x14018b6f0]
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], rax
call fcn.14010e910
mov r14, rsi
cmp eax, 1
jne 0x14010f6a5
cmp qword [0x140190ee0], 0
je 0x14010f650
cmp qword [0x140190ea0], 0
je 0x14010f650
cmp qword [rbp - 0x51], 0
je 0x14010f62c
mov eax, dword [rbp - 0x59]
test eax, eax
je 0x14010f619
mov rbx, qword [rbp - 0x51]
mov edi, eax
mov rcx, qword [rbx]
call qword [0x140190ed0]
lea rbx, [rbx + 8]
sub rdi, 1
jne 0x14010f606
mov r8, qword [rbp - 0x51]
xor edx, edx
mov rcx, qword [sym.4yUlCM3HuVsHzW5CaCX.exe_PhHeapHandle]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
lea rax, [rbp - 0x59]
mov rdx, r14
lea r9, [rbp - 0x51]
mov qword [rsp + 0x20], rax
lea r8, str.SHA256
mov rcx, r15
call fcn.14010ece0
cmp eax, 2
je 0x14010f6a5
mov rsi, qword [rbp - 0x51]
test rsi, rsi
je 0x14010f68a
mov eax, dword [rbp - 0x59]
test eax, eax
je 0x14010f678
mov rbx, rsi
mov edi, eax
mov rcx, qword [rbx]
call qword [0x140190ed0]
lea rbx, [rbx + 8]
sub rdi, 1
jne 0x14010f665
mov rcx, qword [sym.4yUlCM3HuVsHzW5CaCX.exe_PhHeapHandle]
mov r8, rsi
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
lea rax, [rbp - 0x59]
xor r8d, r8d
lea r9, [rbp - 0x51]
mov qword [rsp + 0x20], rax
mov rdx, r14
mov rcx, r15
call fcn.14010ece0
mov rcx, qword [rbp + 0x6f]
mov esi, dword [rbp - 0x59]
mov dword [rcx], eax
test r13, r13
je 0x14010f6bd
mov rax, qword [rbp - 0x51]
mov qword [r13], rax
jmp 0x14010f6f5
mov r15, qword [rbp - 0x51]
test r15, r15
je 0x14010f6f5
test esi, esi
je 0x14010f6e3
mov rbx, r15
mov rdi, rsi
mov rcx, qword [rbx]
call qword [0x140190ed0]
lea rbx, [rbx + 8]
sub rdi, 1
jne 0x14010f6d0
mov rcx, qword [sym.4yUlCM3HuVsHzW5CaCX.exe_PhHeapHandle]
mov r8, r15
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov rax, qword [rbp + 0x7f]
test rax, rax
je 0x14010f700
mov dword [rax], esi
mov rcx, r14
call qword [sym.imp.ntdll.dll_NtClose]
xor eax, eax
jmp 0x14010f56b
mov eax, 0xc00000bb
jmp 0x14010f573