Function at 0x140019f40
Capabilities:
Encrypt data using openssl rsa

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x1d8
mov r14, rdx
mov rbx, rcx
lea rax, [rsp + 0x130]
lea rsi, [0x1400793d0]
mov ecx, 9
mov rdi, rax
rep movsq qword [rdi], qword [rsi]
mov qword [rax - 0x10], rdx
mov qword [rax - 8], 0x28e
lea rcx, [rsp + 0x131]
lea rdx, [0x1400829d9]
mov r8d, 0x27
call fcn.1400711b0
test eax, eax
je 0x140019fcb
mov r8d, 5
mov ecx, 0x48862a09
movabs r9, 0x101010df786
xor r10d, r10d
xor esi, esi
xor ebp, ebp
xor r11d, r11d
xor edi, edi
xor r14d, r14d
xor r12d, r12d
xor eax, eax
jmp 0x14001a325
lea rdx, [rsp + 0xe0]
mov qword [rdx], r14
mov eax, 0x28e
mov qword [rdx + 8], rax
mov qword [rdx + 0x10], rax
mov qword [rdx + 0x18], 0
lea rsi, [rsp + 0x40]
mov rcx, rsi
call case.0x14002cf3f.57
cmp dword [rsi], 2
jne 0x14001a010
mov dl, byte [rsp + 0x44]
lea rcx, [rsp + 0xa0]
call fcn.14002d904
jmp 0x14001a044
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0xd0], rax
movups xmm0, xmmword [rsp + 0x40]
movups xmm1, xmmword [rsp + 0x50]
movups xmm2, xmmword [rsp + 0x60]
movaps xmmword [rsp + 0xc0], xmm2
movaps xmmword [rsp + 0xb0], xmm1
movaps xmmword [rsp + 0xa0], xmm0
mov r8d, dword [rsp + 0xa0]
cmp r8d, 2
jne 0x14001a130
mov r12b, byte [rsp + 0xa4]
movzx r15d, r12b
movzx esi, word [rsp + 0xa5]
lea rdi, [rsp + 0x40]
lea r14, [rsp + 0xe0]
mov rcx, rdi
mov rdx, r14
call case.0x14002cf3f.57
mov r9d, dword [rdi]
cmp r9d, 2
jne 0x14001a18b
mov qword [rsp + 0x28], r15
mov r15b, byte [rsp + 0x44]
xor r13d, r13d
test r15b, r15b
js 0x14001a1d7
mov ecx, r15d
cmp r12b, 9
mov rdx, qword [rsp + 0x28]
jne 0x14001a380
movzx eax, cl
shl r13d, 8
or r13d, eax
mov eax, dword [rsp + 0xf0]
mov ecx, dword [rsp + 0xf8]
xor r8d, r8d
sub eax, ecx
cmovb eax, r8d
cmp eax, r13d
jae 0x14001a3ae
add r13d, ecx
setb dl
mov r9d, 0xa
cmp r13d, 0xfffffff
ja 0x14001a466
test dl, dl
jne 0x14001a466
add eax, ecx
setb dl
cmp eax, 0xfffffff
ja 0x14001a4b3
test dl, dl
jne 0x14001a4b3
shl r13, 0x20
or r13, 3
mov r8d, 1
mov r9, r13
jmp 0x14001a4b5
mov bpl, byte [rsp + 0xa8]
movzx eax, byte [rsp + 0xab]
shl eax, 0x10
movzx r9d, word [rsp + 0xa9]
or r9d, eax
mov r10d, dword [rsp + 0xac]
mov rax, qword [rsp + 0xb0]
mov r12, qword [rsp + 0xb8]
mov rdi, qword [rsp + 0xc0]
mov rsi, qword [rsp + 0xc8]
mov rdx, qword [rsp + 0xd0]
mov ecx, dword [rsp + 0xa4]
jmp 0x14001a2ea
mov dword [rsp + 0x3c], esi
mov cl, byte [rsp + 0x44]
mov bpl, byte [rsp + 0x48]
movzx eax, byte [rsp + 0x47]
shl eax, 0x10
movzx r13d, word [rsp + 0x45]
or r13d, eax
mov r14b, byte [rsp + 0x49]
movzx r11d, word [rsp + 0x4a]
mov r10d, dword [rsp + 0x4c]
mov rax, qword [rsp + 0x50]
mov r12, qword [rsp + 0x58]
mov rdi, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
mov rdx, qword [rsp + 0x70]
jmp 0x14001a2a8
xor r9d, r9d
mov bpl, 0xb
cmp r15b, 0x80
mov dword [rsp + 0x3c], esi
je 0x14001a2a3
cmp r15b, 0x84
ja 0x14001a2a3
movzx esi, r15b
xor rsi, 0x80
je 0x14001a2a3
xor edx, edx
lea rdi, [rsp + 0x40]
lea r14, [rsp + 0xe0]
mov r13d, edx
mov rcx, rdi
mov rdx, r14
call case.0x14002cf3f.57
mov r9d, dword [rsp + 0x40]
cmp r9d, 2
jne 0x14001a46b
mov eax, r13d
shl eax, 8
movzx ecx, byte [rsp + 0x44]
lea edx, [rax + rcx]
dec rsi
jne 0x14001a215
cmp edx, 0xfffffff
lea r14, [rsp + 0xe0]
ja 0x14001a4c5
and edx, 0xffffff80
mov r8b, 0x81
cmp edx, 0x80
je 0x14001a293
lea edx, [rax - 0x100]
mov r8b, 0x82
cmp edx, 0xff00
jb 0x14001a293
lea edx, [rax - 0x10000]
mov r8b, 0x83
cmp edx, 0xff0000
jb 0x14001a293
mov r8b, 0x84
cmp eax, 0x1000000
jb 0x14001a2a0
cmp r8b, r15b
mov esi, dword [rsp + 0x3c]
je 0x14001a0a8
xor r9d, r9d
mov r15, qword [rsp + 0x28]
and r13d, 0xffffff
shl r13, 8
movzx ecx, cl
or rcx, r13
xor r8d, r8d
cmp bpl, 0xb
movzx r14d, r14b
cmove r14d, r15d
cmove r11d, dword [rsp + 0x3c]
movzx r15d, bpl
mov ebp, 5
cmovne ebp, r15d
cmovne r8d, r9d
shl r11d, 8
movzx r9d, r14b
or r9d, r11d
shl r9, 0x28
movzx r11d, bpl
shl r11, 0x20
or r11, r9
or r11, rcx
mov dword [rsp + 0x38], r10d
mov qword [rsp + 0x30], r11
mov r9, qword [rsp + 0x34]
mov r14, r12
shr r14, 0x20
mov r11d, edi
shr r11d, 8
mov ebp, edi
shr ebp, 0x10
mov r10, rdi
shr r10, 0x18
mov dword [rbx + 0x10], r8d
mov dword [rbx + 0x14], ecx
mov qword [rbx + 0x18], r9
mov qword [rbx + 0x20], rax
mov dword [rbx + 0x28], r12d
mov dword [rbx + 0x2c], r14d
mov byte [rbx + 0x30], dil
mov byte [rbx + 0x31], r11b
mov byte [rbx + 0x32], bpl
mov dword [rbx + 0x33], r10d
shr r10, 0x20
mov byte [rbx + 0x37], r10b
mov qword [rbx + 0x38], rsi
mov qword [rbx + 0x40], rdx
mov qword [rbx + 8], 3
mov eax, 2
mov qword [rbx], rax
add rsp, 0x1d8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
movzx eax, si
mov byte [rsp + 0x34], 0x11
mov byte [rsp + 0x37], 0
mov word [rsp + 0x35], 9
mov byte [rsp + 0x3a], ah
shl eax, 8
or edx, eax
mov word [rsp + 0x38], dx
xor r8d, r8d
mov ecx, dword [rsp + 0x30]
jmp 0x14001a306
mov eax, r13d
lea rdx, [rsp + 0xa0]
mov qword [rdx], r14
mov qword [rdx + 8], rax
lea rsi, [rsp + 0x40]
mov rcx, rsi
call fcn.14003e7b6
mov r8d, dword [rsi]
cmp r8d, 2
jne 0x14001a442
lea rsi, [rsp + 0x40]
mov r14, qword [rsi + 8]
mov r15, qword [rsi + 0x10]
mov r12, qword [rsi + 0x18]
lea rdx, [rsp + 0xa0]
mov rcx, rsi
call fcn.14003e7b6
mov r8d, dword [rsi]
cmp r8d, 2
jne 0x14001a442
mov rdi, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdx, qword [rsp + 0x58]
mov eax, dword [rsp + 0xa8]
mov ecx, dword [rsp + 0xac]
cmp eax, ecx
jbe 0x14001a4d0
xor r8d, r8d
sub eax, ecx
cmovb eax, r8d
mov byte [rsp + 0x34], 0x13
mov dword [rsp + 0x38], ecx
mov r8d, 1
jmp 0x14001a306
mov ecx, dword [rsp + 0x44]
mov r9, qword [rsp + 0x48]
mov rax, qword [rsp + 0x50]
mov r12, qword [rsp + 0x58]
mov rdi, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
mov rdx, qword [rsp + 0x70]
jmp 0x14001a4b7
mov ecx, r13d
jmp 0x14001a4b5
mov cl, byte [rsp + 0x44]
mov bpl, byte [rsp + 0x48]
movzx eax, byte [rsp + 0x47]
shl eax, 0x10
movzx r13d, word [rsp + 0x45]
or r13d, eax
mov r14b, byte [rsp + 0x49]
movzx r11d, word [rsp + 0x4a]
mov r10d, dword [rsp + 0x4c]
mov rax, qword [rsp + 0x50]
mov r12, qword [rsp + 0x58]
mov rdi, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
mov rdx, qword [rsp + 0x70]
jmp 0x14001a2a3
mov ecx, eax
mov eax, eax
mov dword [rsp + 0x30], ecx
mov qword [rsp + 0x34], r9
jmp 0x14001a306
xor r9d, r9d
mov bpl, 0xa
jmp 0x14001a2a3
mov ecx, dword [rsp + 0xf8]
cmp byte [rsp + 0xfc], 0
je 0x14001a4e9
mov r9d, 1
jmp 0x14001a508
mov eax, dword [rsp + 0xf0]
cmp eax, ecx
jbe 0x14001a513
xor r8d, r8d
sub eax, ecx
cmovb eax, r8d
mov r9, rcx
shl r9, 0x20
or r9, 0x13
mov r8d, 1
jmp 0x14001a30b
lea r12, [rsp + 0x178]
mov rcx, r12
mov rdx, r14
mov r8, r15
call fcn.14004a4c7
lea r14, [rsp + 0x1a8]
mov rcx, r14
mov rdx, rdi
mov r8, rsi
call fcn.14004a4c7
movups xmm0, xmmword [r12]
movups xmm1, xmmword [r12 + 0x10]
movups xmm2, xmmword [r12 + 0x20]
movaps xmmword [rsp + 0x60], xmm2
movaps xmmword [rsp + 0x40], xmm0
movaps xmmword [rsp + 0x50], xmm1
movups xmm0, xmmword [r14]
movups xmm1, xmmword [r14 + 0x10]
movups xmm2, xmmword [r14 + 0x20]
movaps xmmword [rsp + 0x70], xmm0
movaps xmmword [rsp + 0x80], xmm1
movaps xmmword [rsp + 0x90], xmm2
mov rcx, qword [rsp + 0x68]
mov rax, qword [rsp + 0x40]
cmp rcx, 5
jb 0x14001a5a3
mov rdx, qword [rsp + 0x48]
test rdx, rdx
je 0x14001a5de
mov r8, qword [rsp + 0x50]
jmp 0x14001a5b0
test rcx, rcx
je 0x14001a5de
lea r8, [rsp + 0x48]
mov rdx, rcx
mov r8, qword [r8 + rdx*8 - 8]
test r8, r8
je 0x14001a5c4
bsr r8, r8
xor r8, 0x3f
jmp 0x14001a5ca
mov r8d, 0x40
shl rdx, 6
sub rdx, r8
cmp rdx, 0x23a0
ja 0x14001a6c9
mov r11, qword [rsp + 0x98]
cmp r11, 4
jbe 0x14001a5fb
mov r11, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x80]
jmp 0x14001a600
lea rsi, [rsp + 0x78]
test r11, r11
je 0x14001a6c9
mov r8d, ecx
shr r8d, 8
mov r9d, ecx
shr r9d, 0x10
mov rdx, rcx
shr rdx, 0x18
mov r10, qword [rsp + 0x70]
shl r11, 3
mov bpl, 1
xor r14d, r14d
xor edi, edi
test bpl, 1
je 0x14001a6c9
add rdi, qword [rsi + r14]
add r14, 8
xor ebp, ebp
cmp r11, r14
jne 0x14001a62f
cmp rdi, 2
jb 0x14001a6c9
shr rdi, 0x21
jne 0x14001a6c9
mov r11, qword [rsp + 0x48]
movaps xmm0, xmmword [rsp + 0x90]
movaps xmm1, xmmword [rsp + 0x80]
movups xmmword [rbx + 0x50], xmm0
movups xmmword [rbx + 0x40], xmm1
mov dword [rbx + 8], r11d
shr r11, 0x20
movaps xmm2, xmmword [rsp + 0x50]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x78]
movaps xmmword [rsp + 0x100], xmm1
movaps xmmword [rsp + 0x110], xmm0
mov dword [rbx + 0xc], r11d
movups xmmword [rbx + 0x10], xmm2
mov qword [rbx + 0x20], rsi
mov byte [rbx + 0x28], cl
mov byte [rbx + 0x29], r8b
mov byte [rbx + 0x2a], r9b
mov rcx, rdx
shr rcx, 0x20
mov byte [rbx + 0x2f], cl
mov dword [rbx + 0x2b], edx
mov qword [rbx + 0x30], r10
mov qword [rbx + 0x38], rdi
jmp 0x14001a369
cmp rcx, 5
jb 0x14001a6e3
mov r8, qword [rsp + 0x50]
mov rcx, qword [0x14009e2b0]
xor edx, edx
call qword [sym.imp.kernel32.dll_HeapFree]
cmp qword [rsp + 0x98], 5
jb 0x14001a705
mov r8, qword [rsp + 0x80]
mov rcx, qword [0x14009e2b0]
xor edx, edx
call qword [sym.imp.kernel32.dll_HeapFree]
invalid
invalid
invalid
mov r8d, 4
jmp 0x140019fc6