Function at 0x18000dcf0
Capabilities:
Link many functions at runtime
Read file on windows

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r15
lea rbp, [rsp - 0x2b50]
mov eax, 0x2c50
call fcn.18002f2e0
sub rsp, rax
mov rax, qword [0x180043040]
xor rax, rsp
mov qword [rbp + 0x2b40], rax
xor ebx, ebx
lea rcx, [0x18003afe8]
mov esi, ebx
mov byte [rsp + 0x40], bl
mov r15d, ebx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rdi, rax
test rax, rax
jne 0x18000dd48
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x18000e1c5
mov qword [rsp + 0x2c80], r12
lea rdx, str.PK11_ListCerts
mov qword [rsp + 0x2c88], r13
mov rcx, rdi
mov qword [rsp + 0x2c90], r14
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.CERT_DestroyCertList
mov rcx, rdi
mov r14, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.PK11_GetInternalKeySlot
mov rcx, rdi
mov qword [rbp - 0x78], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.PK11_ImportCert
mov rcx, rdi
mov qword [rsp + 0x60], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.PK11_FreeSlot
mov rcx, rdi
mov qword [rsp + 0x68], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.PORT_GetError
mov rcx, rdi
mov qword [rsp + 0x78], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.CERT_GetDefaultCertDB
mov rcx, rdi
mov r13, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.CERT_DestroyCertificate
mov rcx, rdi
mov r12, rax
mov qword [rbp - 0x70], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.CERT_ChangeCertTrust
mov rcx, rdi
mov qword [rbp - 0x80], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.CERT_NewTempCertificate
mov rcx, rdi
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x58], rax
test rax, rax
jne 0x18000de48
lea rdx, str.__CERT_NewTempCertificate
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x58], rax
test r12, r12
je 0x18000e1a6
test rax, rax
je 0x18000e1a6
cmp qword [rsp + 0x60], rbx
je 0x18000e1a6
cmp qword [rsp + 0x68], rbx
je 0x18000e1a6
cmp qword [rsp + 0x70], rbx
je 0x18000e1a6
cmp qword [rsp + 0x78], rbx
je 0x18000e1a6
cmp qword [rbp - 0x80], rbx
je 0x18000e1a6
test r13, r13
je 0x18000e1a6
test r14, r14
je 0x18000e1a6
cmp qword [rbp - 0x78], rbx
je 0x18000e1a6
mov eax, 9
lea rcx, [0x180000000]
cmp ax, word [0x180046ee8]
movsxd rax, dword [0x180047f40]
jne 0x18000ded2
mov rdx, qword [rcx + rax*8 + 0x38cb8]
jmp 0x18000deda
mov rdx, qword [rcx + rax*8 + 0x38cd8]
mov rax, qword [0x180047d70]
lea r8, [rbp - 0x48]
mov qword [rbp - 0x38], rdx
lea rcx, [rbp - 0x68]
xorps xmm0, xmm0
mov word [rbp + 0x130], bx
mov edx, 0x20019
mov dword [rbp - 0x48], 0x30
movdqu xmmword [rbp - 0x28], xmm0
mov qword [rbp - 0x40], rbx
mov dword [rbp - 0x30], 0x40
call rax
test eax, eax
js 0x18000e1ab
mov rax, qword [0x180047d58]
lea rcx, [rbp]
mov qword [rsp + 0x28], rcx
lea r9, [rbp + 0x10]
mov rcx, qword [rbp - 0x68]
lea rdx, [0x180044a80]
mov r8d, 2
mov dword [rsp + 0x20], 0x114
call rax
test eax, eax
js 0x18000df86
cmp dword [rbp + 0x14], 1
jne 0x18000df86
mov eax, dword [rbp + 0x18]
dec eax
cmp eax, 0x206
ja 0x18000df86
mov rcx, rbx
nop word [rax + rax]
movzx eax, word [rbp + rcx + 0x1c]
mov word [rbp + rcx + 0x130], ax
lea rcx, [rcx + 2]
test ax, ax
jne 0x18000df70
mov rcx, qword [rbp - 0x68]
call qword [0x180047d38]
lea rax, [rbp + 0x130]
sub rax, 2
nop dword [rax + rax]
cmp word [rax + 2], bx
lea rax, [rax + 2]
jne 0x18000dfa0
movups xmm0, xmmword [str.wscert.der]
xor r9d, r9d
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], ebx
lea rcx, [rbp + 0x130]
movups xmmword [rax], xmm0
mov edx, 0x80000000
mov dword [rsp + 0x20], 3
movsd xmm0, qword [0x18003b100]
lea r8d, [r9 + 2]
movsd qword [rax + 0x10], xmm0
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rsp + 0x50], rax
mov r12, rax
cmp rax, 0xffffffffffffffff
jne 0x18000e006
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x18000e1ab
lea r9, [rbp - 0x18]
mov qword [rsp + 0x20], rbx
mov r8d, 0x2800
lea rdx, [rbp + 0x340]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x18000e03f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, r12
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x18000e1ab
cmp dword [rbp - 0x18], ebx
jne 0x18000e057
mov rcx, r12
mov ebx, 0x3ee
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x18000e1ab
xor edx, edx
lea ecx, [rdx + 6]
call r14
mov r14, rax
test rax, rax
je 0x18000e0c3
mov rdi, qword [rax]
cmp rdi, rax
je 0x18000e0c3
mov r12d, dword [rbp - 0x18]
nop dword [rax]
nop word [rax + rax]
mov rsi, qword [rdi + 0x10]
mov ecx, dword [rsi + 0x88]
cmp ecx, r12d
jne 0x18000e0a9
mov r8d, ecx
lea rdx, [rbp + 0x340]
mov rcx, qword [rsi + 0x80]
call fcn.18002ff30
test eax, eax
je 0x18000e0b3
mov rdi, qword [rdi]
cmp rdi, r14
jne 0x18000e080
jmp 0x18000e0bb
mov byte [rsp + 0x40], 1
mov r15, rsi
mov r12, qword [rsp + 0x50]
mov rsi, rbx
call qword [rbp - 0x70]
mov rdi, rax
test rax, rax
jne 0x18000e0d8
call r13
mov ebx, eax
jmp 0x18000e17e
cmp byte [rsp + 0x40], bl
jne 0x18000e150
lea rax, [rbp + 0x340]
mov dword [rbp - 0x60], 3
mov qword [rbp - 0x58], rax
lea rdx, [rbp - 0x60]
mov eax, dword [rbp - 0x18]
xor r9d, r9d
xor r8d, r8d
mov dword [rbp - 0x50], eax
mov rcx, rdi
mov dword [rsp + 0x20], 1
call qword [rsp + 0x58]
mov r15, rax
test rax, rax
jne 0x18000e11e
call r13
mov ebx, eax
jmp 0x18000e190
call qword [rsp + 0x60]
mov rsi, rax
test rax, rax
jne 0x18000e131
call r13
mov ebx, eax
jmp 0x18000e18a
xor r9d, r9d
mov dword [rsp + 0x20], ebx
xor r8d, r8d
mov rdx, r15
mov rcx, rax
call qword [rsp + 0x68]
test eax, eax
je 0x18000e150
call r13
mov ebx, eax
jmp 0x18000e177
lea r8, [rbp - 0x10]
mov qword [rbp - 0x10], 0x18
mov rdx, r15
mov dword [rbp - 8], ebx
mov rcx, rdi
call qword [rsp + 0x70]
test eax, eax
je 0x18000e172
call r13
mov ebx, eax
test rsi, rsi
je 0x18000e17e
mov rcx, rsi
call qword [rsp + 0x78]
test r15, r15
je 0x18000e190
cmp byte [rsp + 0x40], 0
jne 0x18000e190
mov rcx, r15
call qword [rbp - 0x80]
test r14, r14
je 0x18000e19b
mov rcx, r14
call qword [rbp - 0x78]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x18000e1ab
mov ebx, 0x7f
mov r14, qword [rsp + 0x2c90]
mov eax, ebx
mov r13, qword [rsp + 0x2c88]
mov r12, qword [rsp + 0x2c80]
mov rcx, qword [rbp + 0x2b40]
xor rcx, rsp
call fcn.18001e5f0
add rsp, 0x2c50
pop r15
pop rdi
pop rsi
pop rbx
pop rbp
ret