Function at 0x140218040
Capabilities:
Encode data using xor

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r15
mov eax, 0xc0
call fcn.1402b9730
sub rsp, rax
mov rax, qword [0x1403b9e40]
xor rax, rsp
mov qword [rsp + 0xa0], rax
mov rbx, qword [rsp + 0x120]
xor r12d, r12d
mov edi, r12d
mov qword [rsp + 0x48], r8
mov rsi, r9
mov qword [rsp + 0x50], rdx
mov rbp, r8
mov qword [rsp + 0x38], rcx
mov r15, rcx
call fcn.1401648a0
mov r13, rax
test rax, rax
je 0x140218575
test rsi, rsi
mov qword [rsp + 0xb8], r14
mov rax, rbp
mov rcx, rbp
cmovne rax, rsi
mov qword [rsp + 0x40], rax
call fcn.14013d4d0
mov dword [rsp + 0x30], eax
mov r14d, eax
test eax, eax
js 0x14021856d
mov ebp, dword [rsp + 0x128]
cmp ebp, 0xffffffff
jne 0x14021813a
mov ebp, eax
mov rcx, qword [r15 + 0x28]
call fcn.14015cf30
mov rcx, qword [rsp + 0x38]
lea r15d, [rax - 1]
and r15d, 7
call fcn.14018d020
mov ecx, r15d
mov edx, 0xff
shl edx, cl
test byte [rbx], dl
je 0x140218173
call fcn.14013e130
lea r8, str.RSA_verify_PKCS1_PSS_mgf1
mov edx, 0x4d
lea rcx, str.crypto_rsa_rsa_pss.c
call fcn.14013e250
xor r8d, r8d
mov edx, 0x85
mov ecx, 4
call fcn.14013e3b0
jmp 0x14021856d
cmp ebp, 0xfffffffc
jge 0x1402180dd
call fcn.14013e130
lea r8, str.RSA_verify_PKCS1_PSS_mgf1
mov edx, 0x46
lea rcx, str.crypto_rsa_rsa_pss.c
call fcn.14013e250
xor r8d, r8d
mov edx, 0x88
mov ecx, 4
call fcn.14013e3b0
jmp 0x14021856d
test r15d, r15d
jne 0x14021817b
inc rbx
test r15d, r15d
lea ecx, [rax - 1]
cmovne ecx, eax
lea eax, [r14 + 2]
cmp ecx, eax
jge 0x1402181c0
call fcn.14013e130
lea r8, str.RSA_verify_PKCS1_PSS_mgf1
mov edx, 0x55
lea rcx, str.crypto_rsa_rsa_pss.c
call fcn.14013e250
xor r8d, r8d
mov edx, WSAGetLastError
mov ecx, 4
call fcn.14013e3b0
jmp 0x14021856d
mov esi, ecx
sub esi, r14d
lea eax, [rsi - 2]
cmp ebp, 0xfffffffd
jne 0x14021820d
mov ebp, eax
movsxd rax, ecx
cmp byte [rax + rbx - 1], 0xbc
je 0x140218245
call fcn.14013e130
lea r8, str.RSA_verify_PKCS1_PSS_mgf1
mov edx, 0x5f
lea rcx, str.crypto_rsa_rsa_pss.c
call fcn.14013e250
xor r8d, r8d
mov edx, 0x86
mov ecx, 4
call fcn.14013e3b0
jmp 0x14021856d
cmp ebp, eax
jle 0x1402181cf
call fcn.14013e130
lea r8, str.RSA_verify_PKCS1_PSS_mgf1
mov edx, 0x5b
lea rcx, str.crypto_rsa_rsa_pss.c
call fcn.14013e250
xor r8d, r8d
mov edx, WSAGetLastError
mov ecx, 4
call fcn.14013e3b0
jmp 0x14021856d
dec esi
lea rdx, str.crypto_rsa_rsa_pss.c
movsxd r14, esi
mov r8d, 0x64
mov rcx, r14
lea rax, [r14 + rbx]
mov qword [rsp + 0x38], rax
call fcn.140137250
mov rdi, rax
test rax, rax
je 0x14021856d
mov rax, qword [rsp + 0x40]
mov edx, esi
mov r9d, dword [rsp + 0x30]
mov rcx, rdi
mov r8, qword [rsp + 0x38]
mov qword [rsp + 0x20], rax
call fcn.1401dd700
test eax, eax
js 0x14021856d
mov edx, r12d
test esi, esi
jle 0x1402183b3
cmp esi, 8
jb 0x1402183b3
lea eax, [rsi - 1]
movsxd rcx, eax
lea rax, [rcx + rbx]
lea r8, [rcx + rdi]
cmp rdi, rax
ja 0x1402182ca
cmp r8, rbx
jae 0x1402183b3
cmp esi, 0x40
jb 0x140218368
mov ecx, esi
and ecx, 0x8000003f
jge 0x1402182e4
dec ecx
or ecx, 0xffffffc0
inc ecx
mov eax, esi
sub eax, ecx
mov r8, rbx
movsxd r10, eax
sub r8, rdi
lea rcx, [rdi + 0x10]
mov r9, 0xfffffffffffffff0
sub r9, rdi
nop
movdqu xmm0, xmmword [rcx - 0x10]
add edx, 0x40
movdqu xmm1, xmmword [rcx + r8 - 0x10]
lea rcx, [rcx + 0x40]
lea rax, [rcx + r9]
xorps xmm1, xmm0
movdqu xmm0, xmmword [rcx + r8 - 0x40]
movdqu xmmword [rcx - 0x50], xmm1
movdqu xmm2, xmmword [rcx - 0x40]
movdqu xmm1, xmmword [rcx + r8 - 0x30]
xorps xmm2, xmm0
movdqu xmmword [rcx - 0x40], xmm2
movdqu xmm0, xmmword [rcx - 0x30]
xorps xmm1, xmm0
movdqu xmmword [rcx - 0x30], xmm1
movdqu xmm0, xmmword [rcx - 0x20]
movdqu xmm1, xmmword [rcx + r8 - 0x20]
xorps xmm1, xmm0
movdqu xmmword [rcx - 0x20], xmm1
cmp rax, r10
jl 0x140218300
mov eax, esi
and al, 0x3f
cmp al, 8
jb 0x1402183b3
mov eax, esi
and eax, 0x80000007
jge 0x140218378
dec eax
or eax, 0xfffffff8
inc eax
mov ecx, esi
sub ecx, eax
movsxd rax, edx
mov r8, rbx
movsxd r9, ecx
sub r8, rdi
lea rcx, [rax + rdi]
nop dword [rax]
movq xmm0, qword [rcx]
add edx, 8
movq xmm1, qword [r8 + rcx]
xorps xmm1, xmm0
movq qword [rcx], xmm1
add rcx, 8
mov rax, rcx
sub rax, rdi
cmp rax, r9
jl 0x140218390
movsxd rax, edx
cmp rax, r14
jge 0x1402183e0
sub rbx, rdi
lea rcx, [rax + rdi]
sub r14, rax
nop word [rax + rax]
movzx eax, byte [rbx + rcx]
xor byte [rcx], al
lea rcx, [rcx + 1]
sub r14, 1
jne 0x1402183d0
test r15d, r15d
je 0x1402183f6
mov ecx, 8
mov eax, 0xff
sub ecx, r15d
sar eax, cl
and byte [rdi], al
mov ebx, r12d
cmp byte [rdi], bl
jne 0x140218411
lea ecx, [rsi - 1]
mov rax, rdi
cmp ebx, ecx
jge 0x140218411
inc rax
inc ebx
cmp byte [rax], r12b
je 0x140218403
movsxd rax, ebx
inc ebx
cmp byte [rax + rdi], 1
je 0x140218450
call fcn.14013e130
lea r8, str.RSA_verify_PKCS1_PSS_mgf1
mov edx, reloc.WS2_32.dll_WSAGetLastError
lea rcx, str.crypto_rsa_rsa_pss.c
call fcn.14013e250
xor r8d, r8d
mov edx, 0x87
mov ecx, 4
call fcn.14013e3b0
jmp 0x14021856d
lea eax, [rbp + 4]
test eax, 0xfffffffd
je 0x1402184a5
mov r14d, esi
sub r14d, ebx
cmp r14d, ebp
je 0x1402184a5
call fcn.14013e130
lea r8, str.RSA_verify_PKCS1_PSS_mgf1
mov edx, 0x75
lea rcx, str.crypto_rsa_rsa_pss.c
call fcn.14013e250
mov r9d, ebp
mov dword [rsp + 0x20], r14d
lea r8, str.expected:__d_retrieved:__d
mov edx, 0x88
mov ecx, 4
call fcn.14013e3b0
jmp 0x14021856d
mov rdx, qword [rsp + 0x48]
xor r8d, r8d
mov rcx, r13
call fcn.140164130
test eax, eax
je 0x14021856d
mov r8d, 8
lea rdx, [0x14034ef90]
mov rcx, r13
call fcn.140164170
test eax, eax
je 0x14021856d
movsxd rbp, dword [rsp + 0x30]
mov rcx, r13
mov rdx, qword [rsp + 0x50]
mov r8, rbp
call fcn.140164170
test eax, eax
je 0x14021856d
sub esi, ebx
je 0x14021850c
movsxd rdx, ebx
mov rcx, r13
add rdx, rdi
movsxd r8, esi
call fcn.140164170
test eax, eax
je 0x14021856d
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, r13
call fcn.140163e70
test eax, eax
je 0x14021856d
mov rdx, qword [rsp + 0x38]
lea rcx, [rsp + 0x60]
mov r8, rbp
call fcn.1402e8fc0
test eax, eax
je 0x140218567
call fcn.14013e130
lea r8, str.RSA_verify_PKCS1_PSS_mgf1
mov edx, 0x85
lea rcx, str.crypto_rsa_rsa_pss.c
call fcn.14013e250
xor r8d, r8d
mov edx, 0x68
mov ecx, 4
call fcn.14013e3b0
jmp 0x14021856d
mov r12d, 1
mov r14, qword [rsp + 0xb8]
mov r8d, 0x8c
lea rdx, str.crypto_rsa_rsa_pss.c
mov rcx, rdi
call fcn.140137310
mov rcx, r13
call fcn.1401647f0
mov eax, r12d
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.1402b93e0
add rsp, 0xc0
pop r15
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret