Function at 0x140239e30
Capabilities:
Encode data using xor

Disassembly:
push rbx
push rsi
push rdi
push r12
push r13
mov eax, 0xf0
call fcn.1402807a0
sub rsp, rax
mov rax, qword [0x1403b9868]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov rbx, qword [rsp + 0x140]
mov rsi, rcx
lea rcx, [rsp + 0x50]
mov r13, r9
mov rdi, r8
mov qword [rsp + 0x40], r8
mov qword [rsp + 0x48], rdx
xor r12d, r12d
call fcn.1401d9190
test r13, r13
mov rcx, rdi
cmove r13, rdi
call fcn.1401e3270
mov edi, eax
mov dword [rsp + 0x30], eax
test eax, eax
js 0x14023a25c
mov qword [rsp + 0xe8], rbp
mov ebp, dword [rsp + 0x148]
cmp ebp, 0xffffffff
jne 0x140239f0c
mov ebp, eax
mov rcx, qword [rsi + 0x18]
mov qword [rsp + 0xd8], r15
call fcn.1401df120
mov rcx, rsi
lea r15d, [rax - 1]
and r15d, 7
call fcn.1401d7230
mov ecx, r15d
mov edx, 0xff
mov r8d, eax
shl edx, cl
test byte [rbx], dl
je 0x140239f3c
mov r8d, 0x85
lea r9, [0x1403b47c8]
mov ecx, 4
lea edx, [r8 + 0x10]
mov dword [rsp + 0x20], 0x76
call fcn.1401c3730
jmp 0x14023a24c
cmp ebp, 0xfffffffe
jne 0x140239f13
jmp 0x140239eb2
jge 0x140239eb2
mov edx, __WSAFDIsSet
lea r9, [0x1403b47b0]
mov ecx, 4
lea r8d, [rdx - 0xd]
mov dword [rsp + 0x20], reloc.WS2_32.dll_WSAGetLastError
call fcn.1401c3730
jmp 0x14023a254
test r15d, r15d
jne 0x140239f47
inc rbx
dec r8d
lea eax, [rdi + 2]
cmp r8d, eax
jge 0x140239f60
mov dword [rsp + 0x20], 0x7e
lea r9, [0x1403b47e0]
jmp 0x140239f7b
mov esi, r8d
sub esi, edi
lea eax, [rsi - 2]
cmp ebp, eax
jle 0x140239f93
mov dword [rsp + 0x20], 0x82
lea r9, [0x1403b47f8]
mov r8d, WSASetLastError
lea ecx, [r8 - 0x69]
lea edx, [r8 + 0x28]
call fcn.1401c3730
jmp 0x14023a24c
movsxd rax, r8d
cmp byte [rax + rbx - 1], 0xbc
je 0x140239fc4
mov edx, __WSAFDIsSet
lea r9, [0x1403b4810]
mov ecx, 4
lea r8d, [rdx - 0xf]
mov dword [rsp + 0x20], 0x86
call fcn.1401c3730
jmp 0x14023a24c
dec esi
mov qword [rsp + 0xe0], r14
lea rdx, [0x1403b4828]
movsxd r14, esi
mov r8d, 0x8b
mov ecx, esi
lea rax, [r14 + rbx]
mov qword [rsp + 0x38], rax
call fcn.1401d5df0
mov rdi, rax
test rax, rax
jne 0x14023a01b
lea r9, str..crypto_rsa_rsa_pss.c
lea ecx, [rax + 4]
lea r8d, [rax + 0x41]
mov edx, __WSAFDIsSet
mov dword [rsp + 0x20], 0x8d
call fcn.1401c3730
jmp 0x14023a244
mov r8, qword [rsp + 0x38]
mov qword [rsp + 0x20], r13
movsxd r13, dword [rsp + 0x30]
mov r9d, r13d
mov edx, esi
mov rcx, rax
call fcn.1402336d0
test eax, eax
js 0x14023a23c
mov edx, r12d
test esi, esi
jle 0x14023a0b7
cmp esi, 0x20
jb 0x14023a0b7
lea eax, [rsi - 1]
movsxd rcx, eax
lea rax, [rcx + rbx]
lea r8, [rcx + rdi]
cmp rdi, rax
ja 0x14023a063
cmp r8, rbx
jae 0x14023a0b7
mov eax, esi
and eax, 0x8000001f
jge 0x14023a073
dec eax
or eax, 0xffffffe0
inc eax
mov r8d, esi
sub r8d, eax
nop dword [rax]
movsxd rax, edx
movdqu xmm0, xmmword [rax + rdi]
movdqu xmm1, xmmword [rax + rbx]
pxor xmm1, xmm0
movdqu xmmword [rax + rdi], xmm1
lea eax, [rdx + 0x10]
add edx, 0x20
movsxd rcx, eax
movdqu xmm1, xmmword [rcx + rbx]
movdqu xmm0, xmmword [rcx + rdi]
pxor xmm1, xmm0
movdqu xmmword [rcx + rdi], xmm1
cmp edx, r8d
jl 0x14023a080
movsxd rax, edx
cmp rax, r14
jge 0x14023a0e0
sub rbx, rdi
lea rcx, [rax + rdi]
sub r14, rax
nop dword [rax]
movzx eax, byte [rbx + rcx]
lea rcx, [rcx + 1]
xor byte [rcx - 1], al
dec r14
jne 0x14023a0d0
test r15d, r15d
je 0x14023a0f6
mov ecx, 8
mov eax, 0xff
sub ecx, r15d
sar eax, cl
and byte [rdi], al
mov ebx, r12d
cmp byte [rdi], bl
jne 0x14023a111
lea ecx, [rsi - 1]
mov rax, rdi
cmp ebx, ecx
jge 0x14023a111
inc rax
inc ebx
cmp byte [rax], r12b
je 0x14023a103
movsxd rax, ebx
inc ebx
cmp byte [rax + rdi], 1
je 0x14023a143
mov edx, __WSAFDIsSet
lea r9, [0x1403b46f0]
mov ecx, 4
lea r8d, [rdx - 0xe]
mov dword [rsp + 0x20], 0x98
call fcn.1401c3730
jmp 0x14023a23c
test ebp, ebp
js 0x14023a176
mov eax, esi
sub eax, ebx
cmp eax, ebp
je 0x14023a176
mov edx, __WSAFDIsSet
lea r9, [0x1403b4708]
mov ecx, 4
lea r8d, [rdx - 0xd]
mov dword [rsp + 0x20], 0x9c
call fcn.1401c3730
jmp 0x14023a23c
mov rdx, qword [rsp + 0x40]
lea rcx, [rsp + 0x50]
xor r8d, r8d
call fcn.1401d8bd0
test eax, eax
je 0x14023a23c
lea rdx, [0x1403180c0]
lea rcx, [rsp + 0x50]
mov r8d, 8
call fcn.1401d8e30
test eax, eax
je 0x14023a23c
mov rdx, qword [rsp + 0x48]
lea rcx, [rsp + 0x50]
mov r8, r13
call fcn.1401d8e30
test eax, eax
je 0x14023a23c
sub esi, ebx
je 0x14023a1e0
movsxd rdx, ebx
lea rcx, [rsp + 0x50]
movsxd r8, esi
add rdx, rdi
call fcn.1401d8e30
test eax, eax
je 0x14023a23c
lea rdx, [rsp + 0x80]
lea rcx, [rsp + 0x50]
xor r8d, r8d
call fcn.1401d8af0
test eax, eax
je 0x14023a23c
mov rdx, qword [rsp + 0x38]
lea rcx, [rsp + 0x80]
mov r8, r13
call fcn.1402829c0
test eax, eax
je 0x14023a236
mov edx, __WSAFDIsSet
lea r9, [0x1403b4720]
mov ecx, 4
lea r8d, [rdx - 0x2d]
mov dword [rsp + 0x20], 0xaa
call fcn.1401c3730
jmp 0x14023a23c
mov r12d, 1
mov rcx, rdi
call fcn.1401d5d50
mov r14, qword [rsp + 0xe0]
mov r15, qword [rsp + 0xd8]
mov rbp, qword [rsp + 0xe8]
lea rcx, [rsp + 0x50]
call fcn.1401d8e50
mov eax, r12d
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.1402806f0
add rsp, 0xf0
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret