Function at 0x14000ec00
Capabilities:
Encrypt data using openssl rsa

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x80
mov rax, qword [0x1400b34a8]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov r15, r9
mov rdi, rcx
mov edx, 0x3ff
test r9, r9
jne 0x14000ec7a
lea r8, str._nCertificate_is_uninitialised__n
call fcn.140023810
test eax, eax
js 0x14000ec4d
cmp eax, 0x3ff
jb 0x14000ec52
mov eax, 0xffffd680
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140068c30
mov rbx, qword [rsp + 0xc8]
add rsp, 0x80
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov eax, dword [r9 + 0x38]
lea r14, [0x1400a24f2]
mov r9, r14
mov dword [rsp + 0x20], eax
lea r8, str._scert._version_____:__d_n
call fcn.140023810
test eax, eax
js 0x14000ec4d
cdqe
cmp rax, 0x3ff
jae 0x14000ec4d
add rdi, rax
lea r8, str._sserial_number_____:
mov ebx, 0x3ff
mov r9, r14
sub rbx, rax
mov rcx, rdi
mov rdx, rbx
call fcn.140023810
test eax, eax
js 0x14000ec4d
cdqe
cmp rax, rbx
jae 0x14000ec4d
mov rbp, qword [r15 + 0x48]
lea r13, [rdi + rax]
sub rbx, rax
xor edi, edi
mov rsi, rbx
cmp rbp, 0x20
ja 0x14000ecf9
mov r12, r13
test rbp, rbp
je 0x14000ed89
jmp 0x14000ecfe
mov ebp, 0x1c
mov r12, r13
lea r14, [r15 + 0x50]
lea rdx, [0x1400a6910]
nop dword [rax]
test rdi, rdi
jne 0x14000ed29
cmp rbp, 1
jbe 0x14000ed29
mov rax, qword [r14]
cmp byte [rax], dil
jne 0x14000ed29
lea r14, [r15 + 0x50]
jmp 0x14000ed7a
lea rax, [rbp - 1]
cmp rdi, rax
lea rcx, [0x1400a24f2]
mov rax, qword [r14]
lea r8, str._02X_s
cmovb rcx, rdx
mov rdx, rsi
mov qword [rsp + 0x20], rcx
mov rcx, r12
movzx r9d, byte [rax + rdi]
call fcn.140023810
test eax, eax
js 0x14000ec4d
cdqe
cmp rax, rsi
jae 0x14000ec4d
sub rsi, rax
lea rdx, [0x1400a6910]
add r12, rax
inc rdi
cmp rdi, rbp
jb 0x14000ed10
lea r14, [0x1400a24f2]
cmp rbp, qword [r15 + 0x48]
je 0x14000edb7
lea r8, str.....
mov rdx, rsi
mov rcx, r12
call fcn.140023810
test eax, eax
js 0x14000ec4d
cdqe
cmp rax, rsi
jae 0x14000ec4d
sub rsi, rax
mov eax, ebx
sub eax, esi
js 0x14000ec4d
movsxd rcx, eax
cmp rcx, rbx
jae 0x14000ec4d
sub rbx, rcx
lea rdi, [rcx + r13]
mov rdx, rbx
lea r8, str._n_sissuer_name_______:
mov rcx, rdi
mov r9, r14
call fcn.140023810
test eax, eax
js 0x14000ec4d
cdqe
cmp rax, rbx
jae 0x14000ec4d
sub rbx, rax
lea r8, [r15 + 0xa0]
add rdi, rax
mov rdx, rbx
mov rcx, rdi
call fcn.140020f40
test eax, eax
js 0x14000ec4d
cdqe
cmp rax, rbx
jae 0x14000ec4d
sub rbx, rax
lea r8, str._n_ssubject_name______:
add rdi, rax
mov rdx, rbx
mov rcx, rdi
mov r9, r14
call fcn.140023810
test eax, eax
js 0x14000ec4d
cdqe
cmp rax, rbx
jae 0x14000ec4d
sub rbx, rax
lea r8, [r15 + 0xe0]
add rdi, rax
mov rdx, rbx
mov rcx, rdi
call fcn.140020f40
test eax, eax
js 0x14000ec4d
cdqe
cmp rax, rbx
jae 0x14000ec4d
sub rbx, rax
lea r8, str._n_sissued__on________:__04d__02d__02d__02d:_02d:_02d
add rdi, rax
mov r9, r14
mov eax, dword [r15 + 0x134]
mov rdx, rbx
mov dword [rsp + 0x48], eax
mov rcx, rdi
mov eax, dword [r15 + 0x130]
mov dword [rsp + 0x40], eax
mov eax, dword [r15 + 0x12c]
mov dword [rsp + 0x38], eax
mov eax, dword [r15 + 0x128]
mov dword [rsp + 0x30], eax
mov eax, dword [r15 + 0x124]
mov dword [rsp + 0x28], eax
mov eax, dword [r15 + 0x120]
mov dword [rsp + 0x20], eax
call fcn.140023810
test eax, eax
js 0x14000ec4d
cdqe
cmp rax, rbx
jae 0x14000ec4d
sub rbx, rax
lea r8, str._n_sexpires_on________:__04d__02d__02d__02d:_02d:_02d
add rdi, rax
mov r9, r14
mov eax, dword [r15 + 0x14c]
mov rdx, rbx
mov dword [rsp + 0x48], eax
mov rcx, rdi
mov eax, dword [r15 + 0x148]
mov dword [rsp + 0x40], eax
mov eax, dword [r15 + 0x144]
mov dword [rsp + 0x38], eax
mov eax, dword [r15 + 0x140]
mov dword [rsp + 0x30], eax
mov eax, dword [r15 + 0x13c]
mov dword [rsp + 0x28], eax
mov eax, dword [r15 + 0x138]
mov dword [rsp + 0x20], eax
call fcn.140023810
test eax, eax
js 0x14000ec4d
cdqe
cmp rax, rbx
jae 0x14000ec4d
sub rbx, rax
lea r8, str._n_ssigned_using______:
add rdi, rax
mov rdx, rbx
mov rcx, rdi
mov r9, r14
call fcn.140023810
test eax, eax
js 0x14000ec4d
cdqe
cmp rax, rbx
jae 0x14000ec4d
mov r13d, dword [r15 + 0x254]
lea r12, [rax + rdi]
sub rbx, rax
lea r14, [r15 + 0x58]
mov rax, qword [r15 + 0x258]
lea rdi, str.Pa_n_
mov qword [rsp + 0x50], rax
mov rsi, rbx
mov eax, dword [r15 + 0x250]
mov rcx, rdi
mov dword [rsp + 0x58], eax
test r14, r14
je 0x14000f001
cmp qword [str.Pa_n_], 0
je 0x14000f001
mov rbp, qword [r14 + 8]
cmp qword [rcx + 8], rbp
jne 0x14000eff4
mov rdx, qword [r14 + 0x10]
mov r8, rbp
mov rcx, qword [rcx]
call fcn.14006cf60
test eax, eax
je 0x14000f0d0
add rdi, 0x28
mov rcx, rdi
cmp qword [rdi], 0
jne 0x14000efd7
lea r8, [0x1400a2638]
mov rdx, rsi
mov rcx, r12
call fcn.140023810
test eax, eax
js 0x14000ec4d
movsxd r10, eax
cmp r10, rsi
jae 0x14000ec4d
sub rsi, r10
cmp r13d, 6
jne 0x14000f09b
mov ecx, dword [rsp + 0x58]
call fcn.1400200e0
mov r11, qword [rsp + 0x50]
mov r8, rax
mov ecx, dword [r11]
call fcn.1400200e0
test rax, rax
lea rdx, [0x1400a2638]
lea r9, [0x1400a2638]
cmovne rdx, rax
lea rcx, [r10 + r12]
mov eax, dword [r11 + 4]
test r8, r8
mov dword [rsp + 0x28], eax
cmovne r9, r8
mov qword [rsp + 0x20], rdx
lea r8, str.___s__MGF1__s__0x_02X_
mov rdx, rsi
call fcn.140023810
test eax, eax
js 0x14000ec4d
cdqe
cmp rax, rsi
jae 0x14000ec4d
sub rsi, rax
mov eax, ebx
sub eax, esi
js 0x14000ec4d
cdqe
cmp rax, rbx
jae 0x14000ec4d
sub rbx, rax
lea rdi, [r15 + 0x168]
add r12, rax
test rdi, rdi
je 0x14000f0f4
mov rax, qword [rdi]
test rax, rax
je 0x14000f0f4
mov r9, qword [rax + 8]
jmp 0x14000f0fb
test rdi, rdi
je 0x14000f001
mov r9, qword [rdi + 0x18]
lea r8, [0x1400a690c]
mov rdx, rsi
mov rcx, r12
call fcn.140023810
jmp 0x14000f013
lea r9, str.invalid_PK
lea r8, str._s_key_size
mov edx, shutdown
lea rcx, [rsp + 0x60]
call fcn.140023810
test eax, eax
js 0x14000ec4d
cmp eax, 0x12
jae 0x14000ec4d
test rdi, rdi
je 0x14000f138
mov rax, qword [rdi]
test rax, rax
je 0x14000f138
mov rcx, qword [rdi + 8]
call qword [rax + reloc.WS2_32.dll_recv]
jmp 0x14000f13a
xor eax, eax
mov dword [rsp + 0x28], eax
lea r13, [0x1400a24f2]
lea rax, [rsp + 0x60]
mov r9, r13
lea r8, str._n_s__18s:__d_bits
mov qword [rsp + 0x20], rax
mov rdx, rbx
mov rcx, r12
call fcn.140023810
test eax, eax
js 0x14000ec4d
cdqe
cmp rax, rbx
jae 0x14000ec4d
sub rbx, rax
lea rsi, [rax + r12]
test dword [r15 + 0x200], 0x100
mov rdi, rbx
mov r14, rsi
je 0x14000f228
cmp dword [r15 + 0x204], 0
lea rcx, str.true
lea rax, str.false
mov r9, r13
cmovne rax, rcx
lea r8, str._n_sbasic_constraints_:_CA_s
mov rcx, rsi
mov qword [rsp + 0x20], rax
mov rdx, rbx
call fcn.140023810
test eax, eax
js 0x14000ec4d
cdqe
cmp rax, rbx
jae 0x14000ec4d
mov r9d, dword [r15 + 0x208]
sub rbx, rax
add rsi, rax
mov rdi, rbx
mov r14, rsi
test r9d, r9d
jle 0x14000f228
dec r9d
lea r8, str.__max_pathlen_d
mov rdx, rbx
mov rcx, rsi
call fcn.140023810
test eax, eax
js 0x14000ec4d
cdqe
cmp rax, rbx
jae 0x14000ec4d
sub rbx, rax
add rsi, rax
mov rdi, rbx
mov r14, rsi
test byte [r15 + 0x200], 0x20
je 0x14000f292
mov r9, r13
lea r8, str._n_ssubject_alt_name__:
mov rdx, rbx
mov rcx, rsi
call fcn.140023810
test eax, eax
js 0x14000ec4d
cdqe
cmp rax, rdi
jae 0x14000ec4d
sub rdi, rax
lea r8, [r15 + 0x1c0]
add rax, r14
mov qword [rsp + 0x50], rdi
lea rdx, [rsp + 0x50]
mov qword [rsp + 0x58], rax
lea rcx, [rsp + 0x58]
call fcn.14000e3c0
test eax, eax
jne 0x14000ec52
mov rsi, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x50]
test dword [r15 + 0x200], 0x10000
je 0x14000f300
mov r9, r13
lea r8, str._n_scert._type________:
mov rdx, rbx
mov rcx, rsi
call fcn.140023810
test eax, eax
js 0x14000ec4d
cdqe
cmp rax, rbx
jae 0x14000ec4d
movzx r8d, byte [r15 + 0x230]
lea rdx, [rsp + 0x50]
sub rbx, rax
lea rcx, [rsp + 0x58]
add rsi, rax
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x58], rsi
call fcn.14000e7b0
test eax, eax
jne 0x14000ec52
mov rsi, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x50]
test byte [r15 + 0x200], 4
je 0x14000f36a
mov r9, r13
lea r8, str._n_skey_usage_________:
mov rdx, rbx
mov rcx, rsi
call fcn.140023810
test eax, eax
js 0x14000ec4d
cdqe
cmp rax, rbx
jae 0x14000ec4d
mov r8d, dword [r15 + 0x20c]
lea rdx, [rsp + 0x50]
sub rbx, rax
lea rcx, [rsp + 0x58]
add rsi, rax
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x58], rsi
call fcn.14000e9c0
test eax, eax
jne 0x14000ec52
mov rsi, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x50]
test dword [r15 + 0x200], 0x800
je 0x14000f463
mov r9, r13
lea r8, str._n_sext_key_usage_____:
mov rdx, rbx
mov rcx, rsi
call fcn.140023810
test eax, eax
js 0x14000ec4d
cdqe
cmp rax, rbx
jae 0x14000ec4d
sub rbx, rax
lea r14, [r15 + 0x210]
add rsi, rax
mov r12, r13
test r14, r14
je 0x14000f463
lea rax, [0x14008f090]
nop dword [rax]
nop word [rax + rax]
cmp qword [0x14008f090], 0
mov rdi, rax
mov rcx, rax
je 0x14000f40e
mov rbp, qword [r14 + 8]
cmp qword [rcx + 8], rbp
jne 0x14000f401
mov rdx, qword [r14 + 0x10]
mov r8, rbp
mov rcx, qword [rcx]
call fcn.14006cf60
test eax, eax
je 0x14000f57d
add rdi, 0x20
mov rcx, rdi
cmp qword [rdi], 0
jne 0x14000f3e4
lea rax, [0x1400a2638]
mov r9, r12
mov qword [rsp + 0x20], rax
lea r8, str._s_s
mov rdx, rbx
mov rcx, rsi
call fcn.140023810
test eax, eax
js 0x14000ec4d
cdqe
cmp rax, rbx
jae 0x14000ec4d
mov r14, qword [r14 + 0x18]
lea r12, [0x1400a2508]
sub rbx, rax
add rsi, rax
lea rax, [0x14008f090]
test r14, r14
jne 0x14000f3d0
test byte [r15 + 0x200], 8
je 0x14000f54c
mov r9, r13
lea r8, str._n_scertificate_policies_:
mov rdx, rbx
mov rcx, rsi
call fcn.140023810
test eax, eax
js 0x14000ec4d
cdqe
cmp rax, rbx
jae 0x14000ec4d
sub rbx, rax
lea r14, [r15 + 0x1e0]
add rsi, rax
test r14, r14
je 0x14000f54c
lea r15, [0x14008f970]
nop word [rax + rax]
cmp qword [0x14008f970], 0
mov rdi, r15
mov rcx, r15
je 0x14000f4fe
mov rbp, qword [r14 + 8]
cmp qword [rcx + 8], rbp
jne 0x14000f4f1
mov rdx, qword [r14 + 0x10]
mov r8, rbp
mov rcx, qword [rcx]
call fcn.14006cf60
test eax, eax
je 0x14000f58f
add rdi, 0x20
mov rcx, rdi
cmp qword [rdi], 0
jne 0x14000f4d4
lea rax, [0x1400a2638]
mov r9, r13
mov qword [rsp + 0x20], rax
lea r8, str._s_s
mov rdx, rbx
mov rcx, rsi
call fcn.140023810
test eax, eax
js 0x14000ec4d
cdqe
cmp rax, rbx
jae 0x14000ec4d
mov r14, qword [r14 + 0x18]
lea r13, [0x1400a2508]
sub rbx, rax
add rsi, rax
test r14, r14
jne 0x14000f4c0
lea r8, [0x1400a2834]
mov rdx, rbx
mov rcx, rsi
call fcn.140023810
test eax, eax
js 0x14000ec4d
cdqe
cmp rax, rbx
jae 0x14000ec4d
sub eax, ebx
add eax, 0x3ff
jmp 0x14000ec52
test rdi, rdi
je 0x14000f40e
mov rax, qword [rdi + 0x18]
jmp 0x14000f415
test rdi, rdi
je 0x14000f4fe
mov rax, qword [rdi + 0x18]
jmp 0x14000f505