Function at 0x140017ed0
Capabilities:
Read file via mapping

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r14
lea rbp, [rsp - 0x48]
sub rsp, 0x148
mov rax, qword [0x1400a3758]
xor rax, rsp
mov qword [rbp + 0x30], rax
xor ebx, ebx
mov qword [rsp + 0x38], rcx
mov rdi, r9
mov qword [rsp + 0x28], rbx
mov r12d, r8d
mov dword [rsp + 0x20], ebx
mov rsi, rdx
xor r9d, r9d
lea r8d, [rbx + 2]
xor edx, edx
mov r14, rcx
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov qword [rsp + 0x40], rax
test rax, rax
je 0x140018293
xor r9d, r9d
mov qword [rsp + 0x190], r13
xor r8d, r8d
mov qword [rsp + 0x20], rbx
lea edx, [rbx + 4]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov r13, rax
test rax, rax
je 0x140018280
mov r8d, dword [rsi]
mov r9, rdi
mov rdx, rax
mov ecx, 0x8003
call fcn.14002f8e0
cmp r12d, 1
jbe 0x140017f84
mov r8d, dword [rsi]
lea r9, [rdi + 8]
mov rdx, r13
mov ecx, 0x8004
call fcn.14002f8e0
cmp r12d, 2
jbe 0x140017f9e
mov r8d, dword [rsi]
lea r9, [rdi + 0x10]
mov rdx, r13
mov ecx, 0x800c
call fcn.14002f8e0
mov dword [rsp + 0x30], 0x20
xorps xmm0, xmm0
movups xmmword [rbp + 0x10], xmm0
movups xmmword [rbp + 0x20], xmm0
cmp r12d, 3
jbe 0x140018047
mov rcx, qword [rdi + 0x18]
mov edx, 0x84
call fcn.140059dcc
mov qword [rdi + 0x18], rax
test rax, rax
je 0x140017ffc
xorps xmm0, xmm0
xor ecx, ecx
movups xmmword [rax], xmm0
movups xmmword [rax + 0x10], xmm0
movups xmmword [rax + 0x20], xmm0
movups xmmword [rax + 0x30], xmm0
movups xmmword [rax + 0x40], xmm0
movups xmmword [rax + 0x50], xmm0
movups xmmword [rax + 0x60], xmm0
movups xmmword [rax + 0x70], xmm0
mov dword [rax + 0x80], ecx
xor r9d, r9d
lea r8, [rbp + 0x10]
lea rdx, [rsp + 0x30]
mov rcx, r14
call sub.WINTRUST.dll_CryptCATAdminCalcHashFromFileHandle
test eax, eax
je 0x140018047
mov esi, ebx
cmp dword [rsp + 0x30], ebx
jbe 0x140018047
nop dword [rax]
mov eax, esi
lea ecx, [rsi + rsi]
lea rdx, str._02X
movzx r8d, byte [rbp + rax + 0x10]
mov rax, qword [rdi + 0x18]
lea rcx, [rax + rcx*2]
call fcn.140005340
inc esi
cmp esi, dword [rsp + 0x30]
jb 0x140018020
mov dword [rsp + 0x30], 0x20
cmp r12d, 4
jbe 0x140018231
mov rcx, qword [rdi + 0x20]
mov edx, 0x84
mov qword [rsp + 0x140], r15
call fcn.140059dcc
mov qword [rdi + 0x20], rax
test rax, rax
je 0x1400180a2
xorps xmm0, xmm0
xor ecx, ecx
movups xmmword [rax], xmm0
movups xmmword [rax + 0x10], xmm0
movups xmmword [rax + 0x20], xmm0
movups xmmword [rax + 0x30], xmm0
movups xmmword [rax + 0x40], xmm0
movups xmmword [rax + 0x50], xmm0
movups xmmword [rax + 0x60], xmm0
movups xmmword [rax + 0x70], xmm0
mov dword [rax + 0x80], ecx
lea r15, str.CATADMIN
mov rdx, r14
mov rcx, r15
lea r8, [rbp]
mov esi, ebx
call sub.CRYPT32.dll_CryptSIPRetrieveSubjectGuidForCatalogFile
test eax, eax
jne 0x1400180cb
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x1400181f8
xorps xmm0, xmm0
lea r8, [rsp + 0x48]
xor eax, eax
lea rcx, [rbp]
movups xmmword [rsp + 0x48], xmm0
xor edx, edx
mov dword [rsp + 0x48], 0x38
movups xmmword [rsp + 0x58], xmm0
mov qword [rsp + 0x78], rax
movups xmmword [rsp + 0x68], xmm0
call sub.CRYPT32.dll_CryptSIPLoad
test eax, eax
jne 0x14001810d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x1400181f8
xorps xmm0, xmm0
mov dword [rsp + 0x34], ebx
movups xmmword [rbp - 0x80], xmm0
lea rax, str.2.16.840.1.101.3.4.2.1
xor r8d, r8d
movups xmmword [rbp - 0x70], xmm0
lea rdx, [rsp + 0x34]
mov dword [rbp - 0x80], 0x80
movups xmmword [rbp - 0x30], xmm0
lea rcx, [rbp - 0x80]
mov dword [rbp - 0x30], 0x100b0
movups xmmword [rbp - 0x50], xmm0
mov qword [rbp - 0x48], rax
lea rax, [rbp]
mov qword [rbp - 0x78], rax
movups xmmword [rbp - 0x60], xmm0
mov qword [rbp - 0x70], r14
movups xmmword [rbp - 0x40], xmm0
mov qword [rbp - 0x68], r15
movups xmmword [rbp - 0x20], xmm0
mov dword [rbp - 0x2c], 0x10001
movups xmmword [rbp - 0x10], xmm0
call qword [rsp + 0x68]
mov eax, dword [rsp + 0x34]
test eax, eax
jne 0x140018186
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x1400181f8
mov rcx, rax
call fcn.140059d40
mov r15, rax
test rax, rax
je 0x140018229
mov r8, rax
lea rdx, [rsp + 0x34]
lea rcx, [rbp - 0x80]
call qword [rsp + 0x68]
test eax, eax
jne 0x1400181b8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x1400181f0
mov r14d, dword [r15 + 0x30]
test r14d, r14d
jne 0x1400181c8
mov esi, 0xe8
jmp 0x1400181eb
cmp dword [rsp + 0x30], r14d
jb 0x1400181e1
mov rdx, qword [r15 + 0x38]
lea rcx, [rbp + 0x10]
mov r8, r14
call fcn.14004fcc0
jmp 0x1400181e6
mov esi, 0x7a
mov dword [rsp + 0x30], r14d
mov r14, qword [rsp + 0x38]
mov rcx, r15
call fcn.140059d2c
test esi, esi
jne 0x140018229
cmp dword [rsp + 0x30], ebx
jbe 0x140018229
mov eax, ebx
lea ecx, [rbx + rbx]
lea rdx, str._02X
movzx r8d, byte [rbp + rax + 0x10]
mov rax, qword [rdi + 0x20]
lea rcx, [rax + rcx*2]
call fcn.140005340
inc ebx
cmp ebx, dword [rsp + 0x30]
jb 0x140018202
mov r15, qword [rsp + 0x140]
cmp r12d, 5
jbe 0x140018277
mov rcx, qword [rdi + 0x28]
mov edx, 0x44
call fcn.140059dcc
mov qword [rdi + 0x28], rax
test rax, rax
je 0x140018265
xorps xmm0, xmm0
xor ecx, ecx
movups xmmword [rax], xmm0
movups xmmword [rax + 0x10], xmm0
movups xmmword [rax + 0x20], xmm0
movups xmmword [rax + 0x30], xmm0
mov dword [rax + 0x40], ecx
mov rdx, qword [rdi + 0x28]
mov r8d, 0x21
mov rcx, r14
call fcn.140005220
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r13, qword [rsp + 0x190]
mov rcx, qword [rbp + 0x30]
xor rcx, rsp
call fcn.14004bd30
add rsp, 0x148
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret