Function at 0x14015e15c
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x180]
sub rsp, 0x280
mov rax, qword [0x1401a95d8]
xor rax, rsp
mov qword [rbp + 0x170], rax
mov rbx, qword [rcx + 0x10]
mov rdi, rdx
mov rsi, rcx
call fcn.1401453e8
mov rdx, rdi
mov qword [rbp - 0x50], rax
mov rcx, rsi
mov r15, rax
call fcn.1401453c8
xor r8d, r8d
mov rdx, rax
mov qword [rsp + 0x60], r8
mov r14d, r8d
mov r13, qword [rbx + 0x28]
mov qword [rbp - 0x78], r13
mov dword [rsp + 0x70], r8d
cmp byte [r15 + 0x69], r8b
je 0x14015e20e
mov cl, byte [r13 + 0x6c]
cmp byte [rax + 0xb3], r8b
je 0x14015e1e9
neg cl
sbb eax, eax
and eax, 0xffffffe8
add eax, 0x1820
jmp 0x14015e213
cmp byte [rax + 0xb5], r8b
je 0x14015e200
neg cl
sbb eax, eax
and eax, 0xffffffe8
add eax, 0x1a20
jmp 0x14015e213
neg cl
sbb eax, eax
and eax, 0xffffffe8
add eax, 0x220
jmp 0x14015e213
mov eax, 0x1808
mov r12d, eax
or r12d, 4
cmp byte [r15 + 0x6a], r8b
cmovne r12d, eax
mov al, byte [rdx + 0xb7]
test al, al
jne 0x14015e230
or r12d, 0x10
test al, al
mov dword [rsp + 0x58], r12d
lea rcx, [0x14000fd90]
lea rdx, [0x14000fd58]
cmovne rdx, rcx
mov rcx, rdi
call fcn.14014bb34
movzx edx, byte [r15 + 0x68]
test edx, edx
je 0x14015e2af
sub edx, 1
je 0x14015e2af
sub edx, 1
je 0x14015e296
sub edx, 1
je 0x14015e296
sub edx, 1
je 0x14015e2af
sub edx, 1
je 0x14015e2af
sub edx, 1
je 0x14015e2af
cmp edx, 1
je 0x14015e2af
lea rdx, [0x14000fde8]
mov rcx, rdi
call fcn.14014ba60
mov eax, 0x23
jmp 0x14015e7df
lea rdx, [0x14000fdc8]
mov rcx, rdi
call fcn.14014ba60
mov eax, 4
jmp 0x14015e7df
mov r8, rdi
lea rcx, [rsp + 0x70]
mov rdx, rsi
call fcn.14015fc54
xor esi, esi
test eax, eax
jne 0x14015e7df
mov rcx, qword [rdi + 0x538]
test rcx, rcx
jne 0x14015e2e2
cmp qword [rdi + 0x560], rsi
je 0x14015e794
mov r13, qword [rdi + 0x560]
xor edx, edx
mov dword [rsp + 0x54], esi
mov r15d, esi
mov qword [rbp - 0x80], rsi
mov r12d, edx
mov qword [rbp - 0x70], rdx
mov ebx, edx
mov qword [rsp + 0x68], rdx
mov qword [rsp + 0x78], rdx
mov qword [rbp - 0x60], r13
test r13, r13
je 0x14015e326
mov rax, qword [r13]
mov qword [rsp + 0x68], rax
mov rax, qword [r13 + 8]
mov qword [rsp + 0x78], rax
jmp 0x14015e389
call case.0x140147e69.1
mov rbx, rax
test rax, rax
je 0x14015e7da
lea r9, [rbp - 0x70]
mov rcx, rax
lea r8, [rbp - 0x80]
lea rdx, [rsp + 0x54]
call fcn.14015de54
mov esi, eax
test eax, eax
je 0x14015e67a
mov rcx, qword [rdi + 0x538]
cmp byte [rcx], r12b
je 0x14015e655
lea rdx, [0x140009d60]
call fcn.14015a4a4
xor edx, edx
mov r12, rax
test rax, rax
je 0x14015e655
mov r15d, dword [rsp + 0x54]
mov rsi, qword [rbp - 0x80]
mov rcx, qword [rdi + 0x5a8]
test rcx, rcx
je 0x14015e3d1
lea rdx, [0x14000fe5c]
call fcn.14014f4b8
xor edx, edx
test eax, eax
jne 0x14015e3d1
lea rsi, [0x14000fe60]
test r13, r13
jne 0x14015e3ba
mov rsi, qword [rdi + 0x538]
mov r8, rsi
lea rdx, [0x14000fe70]
mov rcx, rdi
call fcn.14014ba60
jmp 0x14015e6ce
test r12, r12
jne 0x14015e3df
test r13, r13
je 0x14015e683
mov dword [rsp + 0x54], edx
mov r15, rdx
lea rsi, [0x14000fe60]
test r13, r13
jne 0x14015e3f9
mov rsi, qword [rdi + 0x538]
test rbx, rbx
je 0x14015e408
mov rcx, rbx
call fcn.140178790
xor edx, edx
test r12, r12
je 0x14015e4e2
mov r13d, edx
mov rcx, r12
xor edx, edx
lea r8d, [rdx + 2]
call fcn.14017f13c
test eax, eax
sete bl
test eax, eax
jne 0x14015e46e
mov rcx, r12
call fcn.140185b2c
mov r13d, eax
xor eax, eax
test r13d, r13d
jns 0x14015e46e
mov r13, qword [rsp + 0x78]
mov bl, al
mov rax, qword [rsp + 0x68]
test rax, rax
je 0x14015e49e
mov rdx, r13
mov r9, r12
mov r13, qword [rsp + 0x68]
mov r8d, 1
mov rcx, r13
call fcn.14017ea24
cmp eax, 1
je 0x14015e4a7
jmp 0x14015e4a3
mov qword [rsp + 0x78], r13
test bl, bl
je 0x14015e444
xor r8d, r8d
xor edx, edx
mov rcx, r12
call fcn.14017f13c
test eax, eax
sete bl
test eax, eax
jne 0x14015e444
lea rcx, [r13 + 1]
call qword [fcn.1401787a4]
mov qword [rsp + 0x68], rax
jmp 0x14015e449
mov r13, qword [rsp + 0x68]
xor eax, eax
mov bl, al
mov rcx, r12
call fcn.14017f800
xor edx, edx
test bl, bl
jne 0x14015e4de
mov r8, qword [rdi + 0x538]
lea rdx, [0x14000feb0]
mov rcx, rdi
call fcn.14014ba60
mov rcx, r13
call qword [fcn.140178790]
mov eax, 0x3a
jmp 0x14015e7df
mov r13, qword [rbp - 0x60]
mov rax, qword [rsp + 0x78]
mov r12, qword [rsp + 0x68]
mov dword [rbp - 0x70], eax
mov rax, qword [rdi + 0x5c8]
mov qword [rbp - 0x68], r12
test rax, rax
je 0x14015e50c
or r15, 0xffffffffffffffff
inc r15
cmp byte [rax + r15], dl
jne 0x14015e503
lea rcx, [r15*2 + 2]
call qword [fcn.1401787a4]
xor ecx, ecx
mov rbx, rax
test rax, rax
je 0x14015e5b3
test r15, r15
je 0x14015e58b
mov r8, qword [rdi + 0x5c8]
lea ecx, [r15 + 1]
mov dword [rsp + 0x28], ecx
mov r9d, r15d
mov ecx, 0xfde9
mov qword [rsp + 0x20], rax
mov edx, 8
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
xor ecx, ecx
test eax, eax
jns 0x14015e58f
mov word [rbx], cx
xor edx, edx
mov dword [rsp + 0x20], 3
mov r9d, 2
xor r8d, r8d
lea ecx, [rdx + 6]
call fcn.140169794
lea rcx, [rbp - 0x70]
mov rdx, rbx
test al, al
je 0x14015e59c
mov r8d, 0x8000
jmp 0x14015e59f
mov eax, dword [rsp + 0x54]
cmp eax, r15d
jg 0x14015e55a
mov eax, eax
mov word [rbx + rax*2], cx
jmp 0x14015e55d
xor r8d, r8d
call qword [sym.imp.CRYPT32.dll_PFXImportCertStore]
mov rcx, rbx
mov r14, rax
call qword [fcn.140178790]
xor ecx, ecx
test r13, r13
jne 0x14015e5c3
mov rcx, r12
call qword [fcn.140178790]
xor ecx, ecx
test r14, r14
jne 0x14015e5fe
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8, rsi
mov rcx, rdi
cmp eax, 0x56
jne 0x14015e5ea
lea rdx, [0x14000fed8]
call fcn.14014ba60
jmp 0x14015e4d4
mov r9d, eax
lea rdx, [0x14000ff18]
call fcn.14014ba60
jmp 0x14015e4d4
mov qword [rsp + 0x28], rcx
xor r9d, r9d
mov qword [rsp + 0x20], rcx
xor r8d, r8d
mov rcx, r14
mov edx, 0x10001
call qword [sym.imp.CRYPT32.dll_CertFindCertificateInStore]
mov qword [rsp + 0x60], rax
test rax, rax
jne 0x14015e785
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8, rsi
lea rdx, [0x14000ff60]
mov r9d, eax
mov rcx, rdi
call fcn.14014ba60
xor edx, edx
mov rcx, r14
call qword [sym.imp.CRYPT32.dll_CertCloseStore]
jmp 0x14015e4d4
mov r8, qword [rdi + 0x538]
lea rdx, [0x14000fe20]
mov rcx, rdi
call fcn.14014ba60
mov rcx, rbx
call fcn.140178790
mov eax, esi
jmp 0x14015e7df
mov r15d, dword [rsp + 0x54]
mov rsi, qword [rbp - 0x80]
xor edx, edx
mov qword [rsp + 0x20], rsi
mov r9d, r15d
xor r8d, r8d
bts r9d, 0xe
lea ecx, [rdx + 9]
call qword [sym.imp.CRYPT32.dll_CertOpenStore]
mov r14, rax
test rax, rax
jne 0x14015e6e4
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9, rsi
lea rdx, [0x14000ffa8]
mov r8d, r15d
mov dword [rsp + 0x20], eax
mov rcx, rdi
call fcn.14014ba60
mov rcx, rsi
call qword [fcn.140178790]
test rbx, rbx
je 0x14015e4d4
mov rcx, rbx
call fcn.140178790
jmp 0x14015e4d4
mov rcx, rsi
call qword [fcn.140178790]
mov rcx, qword [rbp - 0x70]
lea rax, [rbp + 0x48]
xor esi, esi
mov qword [rbp - 0x38], rax
lea rax, [rbp - 0x40]
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x28], rsi
lea r9, [rbp + 0x48]
mov qword [rsp + 0x20], rax
lea edx, [rsi + 0x28]
mov dword [rbp - 0x40], socket
lea r8d, [rsi + 4]
call qword [sym.imp.CRYPT32.dll_CryptStringToBinaryA]
test eax, eax
jne 0x14015e740
test rbx, rbx
je 0x14015e645
mov rcx, rbx
call fcn.140178790
jmp 0x14015e645
mov r9d, 0x10000
mov qword [rsp + 0x28], rsi
lea rax, [rbp - 0x40]
xor r8d, r8d
mov rcx, r14
mov qword [rsp + 0x20], rax
lea edx, [r9 + 1]
call qword [sym.imp.CRYPT32.dll_CertFindCertificateInStore]
mov qword [rsp + 0x60], rax
test rbx, rbx
je 0x14015e77b
mov rcx, rbx
call fcn.140178790
mov rax, qword [rsp + 0x60]
test rax, rax
jne 0x14015e787
jmp 0x14015e645
xor esi, esi
mov r12d, dword [rsp + 0x58]
mov r15, qword [rbp - 0x50]
mov r13, qword [rbp - 0x78]
mov edx, 0x30
lea ecx, [rdx - 0x2f]
call qword [fcn.14017e614]
mov qword [r13], rax
test rax, rax
jne 0x14015e809
lea rdx, [0x14000ffe8]
mov rcx, rdi
call fcn.14014ba60
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x14015e7ca
call qword [sym.imp.CRYPT32.dll_CertFreeCertificateContext]
test r14, r14
je 0x14015e7da
xor edx, edx
mov rcx, r14
call qword [sym.imp.CRYPT32.dll_CertCloseStore]
mov eax, 0x1b
mov rcx, qword [rbp + 0x170]
xor rcx, rsp
call fcn.140171490
mov rbx, qword [rsp + 0x2d0]
add rsp, 0x280
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov dword [rax + 0x28], 1
xor edx, edx
mov rax, qword [r13]
mov r8d, 0x4563
mov dword [rsp + 0x20], 3
lea ecx, [rdx + 0xa]
lea r9d, [rdx + 2]
mov qword [rax + 0x20], r14
call fcn.140169794
xor edx, edx
test al, al
je 0x14015ebe7
lea r8d, [rdx + 0x48]
lea rcx, [rbp - 0x30]
call fcn.140172be0
xorps xmm0, xmm0
lea rcx, [rbp + 0x70]
xor eax, eax
xor edx, edx
mov r8d, 0xc0
mov qword [rbp + 0x40], rax
movups xmmword [rbp + 0x20], xmm0
movups xmmword [rbp + 0x30], xmm0
call fcn.140172be0
mov rbx, qword [r15 + 0x28]
xorps xmm0, xmm0
xorps xmm1, xmm1
mov r14d, esi
movups xmmword [rbp - 0x50], xmm0
movups xmmword [rbp - 0x60], xmm1
test rbx, rbx
je 0x14015eb86
mov r13b, 1
mov byte [rsp + 0x50], 1
mov al, r13b
mov byte [rsp + 0x51], 1
mov ecx, esi
mov byte [rsp + 0x53], al
mov dword [rsp + 0x58], ecx
movups xmmword [rbp + 0x48], xmm0
mov byte [rsp + 0x52], 1
movups xmmword [rbp + 0x58], xmm0
cmp byte [rbx], sil
je 0x14015ea36
cmp ecx, 5
jge 0x14015ea36
mov edx, 0x3a
mov rcx, rbx
call fcn.140173be0
mov r15, rax
test rax, rax
je 0x14015e8e1
mov rsi, rax
sub rsi, rbx
jmp 0x14015e8ef
or rsi, 0xffffffffffffffff
xor eax, eax
inc rsi
cmp byte [rbx + rsi], al
jne 0x14015e8e7
cmp rsi, 0x1f
ja 0x14015ea1d
mov r8, rsi
lea rcx, [rbp + 0x48]
mov rdx, rbx
call fcn.1401854b0
xor eax, eax
mov byte [rbp + rsi + 0x48], al
xor esi, esi
cmp byte [rsp + 0x50], sil
je 0x14015e93c
lea rdx, [rbp + 0x48]
lea rcx, [0x140010038]
call fcn.140178580
test eax, eax
jne 0x14015e93c
mov al, byte [rsp + 0x53]
mov r8b, sil
mov byte [rsp + 0x50], sil
jmp 0x14015e9e9
cmp byte [rsp + 0x51], sil
je 0x14015e96d
lea rdx, [rbp + 0x48]
lea rcx, [0x140010050]
call fcn.140178580
test eax, eax
jne 0x14015e96d
mov al, byte [rsp + 0x53]
mov r9b, sil
mov r8b, byte [rsp + 0x50]
mov byte [rsp + 0x51], sil
jmp 0x14015e9ee
cmp byte [rsp + 0x52], sil
je 0x14015e9a0
lea rdx, [rbp + 0x48]
lea rcx, [0x140010068]
call fcn.140178580
test eax, eax
jne 0x14015e9a0
mov al, byte [rsp + 0x53]
mov r10b, sil
mov r8b, byte [rsp + 0x50]
mov r9b, byte [rsp + 0x51]
mov byte [rsp + 0x52], sil
jmp 0x14015e9f3
test r13b, r13b
je 0x14015e9c2
lea rdx, [rbp + 0x48]
lea rcx, [0x140010088]
call fcn.140178580
test eax, eax
jne 0x14015e9c2
mov al, byte [rsp + 0x53]
mov r13b, sil
jmp 0x14015e9e4
cmp byte [rsp + 0x53], sil
je 0x14015ea14
lea rdx, [rbp + 0x48]
lea rcx, [0x1400100a8]
call fcn.140178580
test eax, eax
jne 0x14015ea14
mov al, sil
mov byte [rsp + 0x53], al
mov r8b, byte [rsp + 0x50]
mov r9b, byte [rsp + 0x51]
mov r10b, byte [rsp + 0x52]
mov rbx, r15
test r15, r15
je 0x14015e9ff
lea rbx, [r15 + 1]
mov ecx, dword [rsp + 0x58]
inc ecx
mov dword [rsp + 0x58], ecx
test rbx, rbx
jne 0x14015e8b2
jmp 0x14015ea45
lea rdx, [0x1400100c0]
jmp 0x14015ea24
lea rdx, [0x140010010]
mov rcx, rdi
call fcn.14014ba60
mov eax, 0x3b
jmp 0x14015e7df
mov r10b, byte [rsp + 0x52]
mov r9b, byte [rsp + 0x51]
mov r8b, byte [rsp + 0x50]
lea rdx, [0x140010138]
test r8b, r8b
je 0x14015ea6d
test r9b, r9b
je 0x14015ea6d
test r10b, r10b
je 0x14015ea6d
test r13b, r13b
je 0x14015ea72
test al, al
je 0x14015ea76
lea rdx, [0x1400100e8]
jmp 0x14015ea24
test r13b, r13b
jne 0x14015ea76
test al, al
je 0x14015ead8
mov dword [rbp - 0x50], 0x200020
lea rcx, [0x140010118]
mov qword [rbp - 0x48], rcx
lea rcx, [rbp - 0x50]
mov qword [rbp + 0x90], rcx
mov dword [rbp + 0x70], 2
mov dword [rbp + 0x88], 1
mov dword [rbp + 0x78], 0x80008
mov qword [rbp + 0x80], rdx
cmp r13b, al
je 0x14015ead2
test r13b, r13b
je 0x14015eac8
mov dword [rbp + 0x98], 0x80
jmp 0x14015ead2
mov dword [rbp + 0x9c], 0x40
mov r14d, 1
test r8b, r8b
jne 0x14015eae2
test r9b, r9b
je 0x14015eb51
lea rax, [0x140010140]
mov dword [rbp - 0x60], 0x200020
mov qword [rbp - 0x58], rax
mov eax, r14d
lea rcx, [rax + rax*2]
add rcx, rcx
cmp r8b, r9b
je 0x14015eb18
test r8b, r8b
lea rax, [0x140010160]
lea rdx, [0x140010170]
cmovne rdx, rax
mov eax, esi
cmp r8b, r9b
setne al
add eax, 2
mov dword [rbp + rcx*8 + 0x70], eax
inc r14d
mov dword [rbp + rcx*8 + 0x78], 0x80008
lea rax, [rbp - 0x60]
mov qword [rbp + rcx*8 + 0x80], rdx
mov qword [rbp + rcx*8 + 0x90], rax
mov dword [rbp + rcx*8 + 0x88], 1
mov r13, qword [rbp - 0x78]
test r10b, r10b
je 0x14015eb86
mov eax, r14d
lea rcx, [rax + rax*2]
add rcx, rcx
lea rax, [0x140010180]
inc r14d
mov dword [rbp + rcx*8 + 0x70], 2
mov dword [rbp + rcx*8 + 0x78], 0x240024
mov qword [rbp + rcx*8 + 0x80], rax
lea rax, [rbp + 0x70]
mov dword [rbp + 0x34], r14d
mov qword [rbp + 0x38], rax
bts r12d, 0x16
lea rax, [rbp + 0x20]
mov dword [rbp + 8], 1
mov qword [rbp + 0x10], rax
mov eax, dword [rsp + 0x70]
not eax
mov dword [rbp - 0x30], 5
mov dword [rbp + 0x30], eax
mov dword [rbp + 4], r12d
cmp qword [rsp + 0x60], rsi
je 0x14015ebd1
lea rax, [rsp + 0x60]
mov dword [rbp - 0x28], 1
mov qword [rbp - 0x20], rax
mov rcx, qword [r13]
lea rax, [rcx + 0x10]
mov qword [rsp + 0x40], rax
lea rax, [rbp - 0x30]
jmp 0x14015ec6c
mov r8d, 0x50
lea rcx, [rbp - 0x30]
call fcn.140172be0
mov eax, dword [rsp + 0x70]
mov dword [rbp + 8], eax
mov dword [rbp - 0x30], 4
mov dword [rbp + 0x18], r12d
cmp qword [r15 + 0x20], rsi
je 0x14015ec3b
mov rdx, qword [r15 + 0x20]
lea r8, [rbp + 0x70]
lea rcx, [rbp - 0x30]
call fcn.14015fb6c
mov ebx, eax
test eax, eax
je 0x14015ec44
lea rdx, [0x1400101d8]
mov rcx, rdi
call fcn.14014ba60
mov eax, ebx
jmp 0x14015e7df
bts r12d, 0x16
mov dword [rbp + 0x18], r12d
cmp qword [rsp + 0x60], rsi
je 0x14015ec5b
lea rax, [rsp + 0x60]
mov dword [rbp - 0x2c], 1
mov qword [rbp - 0x28], rax
mov rcx, qword [r13]
lea rax, [rcx + 0x10]
mov qword [rsp + 0x40], rax
lea rax, [rbp - 0x30]
mov qword [rsp + 0x38], rcx
lea rdx, [0x1400101a8]
mov qword [rsp + 0x30], rsi
xor r9d, r9d
mov qword [rsp + 0x28], rsi
xor ecx, ecx
mov qword [rsp + 0x20], rax
mov rax, qword [0x1401aa630]
lea r8d, [r9 + 2]
call qword [rax + 0x18]
mov rcx, qword [rsp + 0x60]
mov ebx, eax
test rcx, rcx
je 0x14015ecac
call qword [sym.imp.CRYPT32.dll_CertFreeCertificateContext]
test ebx, ebx
je 0x14015ecf2
mov r8d, 0x100
lea rdx, [rbp + 0x70]
mov ecx, ebx
call fcn.14015a4e0
mov r8, rax
lea rdx, [0x140010210]
mov rcx, rdi
call fcn.14014ba60
mov rcx, qword [r13]
call qword [fcn.140178790]
mov qword [r13], rsi
cmp ebx, 0x80090300
je 0x14015e7da
jmp 0x14015e28c
xor eax, eax
jmp 0x14015e7df