Function at 0x610fe0
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x1c
mov ebx, dword [esp + 0x44]
mov eax, dword [esp + 0x3c]
mov edi, dword [esp + 0x40]
test edi, edi
cmove edi, eax
push eax
call fcn.005c3100
add esp, 4
test eax, eax
js 0x6110ff
cmp ebx, 0xfffffffc
mov dword [esp + 0xc], eax
je 0x611036
cmp ebx, 0xffffffff
je 0x61102d
cmp ebx, 0xfffffffe
jne 0x611043
mov dword [esp], 0xffffffff
mov dword [esp + 4], 0xfffffffd
jmp 0x61108f
mov dword [esp + 4], eax
mov dword [esp], ebx
jmp 0x61108f
mov dword [esp + 4], 0xfffffffd
mov dword [esp], eax
jmp 0x61108f
mov esi, ebx
cmp ebx, 0xfffffffb
jg 0x611084
call fcn.005b5560
push str.RSA_padding_add_PKCS1_PSS_mgf1
push 0xc4
push str.crypto_rsa_rsa_pss.c
call fcn.005b5660
add esp, 0xc
push 0
push 0x88
push 4
call fcn.005b5750
add esp, 0xc
xor edi, edi
xor ebp, ebp
mov ebx, esi
xor esi, esi
jmp 0x611105
mov dword [esp], 0xffffffff
mov dword [esp + 4], esi
mov esi, dword [esp + 0x34]
mov ebx, dword [esp + 0x30]
push dword [ebx + 0x14]
call fcn.00587bd0
add esp, 4
mov ebp, eax
dec ebp
push ebx
call fcn.00608e50
add esp, 4
and ebp, 7
mov dword [esp + 0x18], ebp
je 0x6110bd
mov dword [esp + 8], esi
jmp 0x6110c6
mov byte [esi], 0
inc esi
mov dword [esp + 8], esi
dec eax
mov ebp, dword [esp + 0xc]
lea ecx, [ebp + 2]
cmp eax, ecx
mov ebx, dword [esp + 4]
jge 0x61112c
call fcn.005b5560
push str.RSA_padding_add_PKCS1_PSS_mgf1
push 0xcf
push str.crypto_rsa_rsa_pss.c
call fcn.005b5660
add esp, 0xc
push 0
push 0x6e
push 4
call fcn.005b5750
add esp, 0xc
xor edi, edi
xor esi, esi
xor ebp, ebp
push ebp
call fcn.005b83a0
add esp, 4
push 0x10a
push str.crypto_rsa_rsa_pss.c
push ebx
push esi
call fcn.005db1d0
add esp, 0x10
mov eax, edi
add esp, 0x1c
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, eax
sub ecx, ebp
add ecx, 0xfffffffe
cmp ebx, 0xfffffffd
jne 0x61114b
mov esi, dword [esp]
cmp ecx, esi
mov edx, esi
cmovl edx, ecx
test esi, esi
mov ebx, edx
cmovs ebx, ecx
jmp 0x611160
cmp ebx, ecx
jle 0x611160
call fcn.005b5560
push str.RSA_padding_add_PKCS1_PSS_mgf1
push 0xd7
jmp 0x6110e4
mov dword [esp + 4], eax
mov esi, 0
test ebx, ebx
jle 0x6111a5
push 0xdb
push str.crypto_rsa_rsa_pss.c
push ebx
call fcn.005dadf0
add esp, 0xc
test eax, eax
je 0x6110ff
mov esi, eax
push 0
push ebx
push eax
mov eax, dword [esp + 0x3c]
push dword [eax + 4]
call fcn.00603b90
add esp, 0x10
test eax, eax
jle 0x611269
call fcn.005b8380
test eax, eax
je 0x611260
mov ebp, eax
push 0
push dword [esp + 0x40]
push eax
call fcn.005b8a30
add esp, 0xc
test eax, eax
je 0x611259
push 8
push 0xaa839a
push ebp
call fcn.005b8a50
add esp, 0xc
test eax, eax
je 0x611259
push dword [esp + 0xc]
push dword [esp + 0x3c]
push ebp
call fcn.005b8a50
add esp, 0xc
test eax, eax
je 0x611259
test ebx, ebx
je 0x611207
push ebx
push esi
push ebp
call fcn.005b8a50
add esp, 0xc
test eax, eax
je 0x611259
mov dword [esp], esi
mov dword [esp + 0x10], ebx
mov esi, dword [esp + 0xc]
not esi
add esi, dword [esp + 4]
mov ebx, dword [esp + 8]
lea eax, [ebx + esi]
push 0
mov dword [esp + 0x18], eax
push eax
push ebp
call fcn.005b8bd0
add esp, 0xc
test eax, eax
je 0x61124b
push edi
mov edi, dword [esp + 0x10]
push edi
push dword [esp + 0x1c]
push esi
push ebx
call fcn.00721ca0
add esp, 0x14
test eax, eax
je 0x611270
mov ebx, dword [esp + 0x10]
mov esi, dword [esp]
xor edi, edi
jmp 0x611105
xor edi, edi
jmp 0x611105
xor ebp, ebp
xor edi, edi
jmp 0x611105
xor edi, edi
jmp 0x611103
mov eax, ebx
mov ebx, dword [esp + 0x10]
add edi, ebx
mov edx, dword [esp + 4]
sub edx, edi
xor byte [edx + eax - 2], 1
test ebx, ebx
jle 0x6113c9
mov eax, dword [esp + 8]
lea esi, [edx + eax]
add esi, 0xfffffffe
xor ecx, ecx
cmp ebx, 8
jae 0x6112a3
mov edx, esi
jmp 0x611369
mov dword [esp + 8], eax
mov eax, dword [esp + 4]
dec eax
mov dword [esp + 0x14], eax
mov ebx, eax
sub ebx, edi
add ebx, dword [esp + 8]
mov edi, dword [esp]
mov eax, dword [esp + 0x10]
add edi, eax
cmp ebx, edi
jae 0x6112e1
mov eax, dword [esp + 0x14]
sub eax, dword [esp + 0xc]
add eax, dword [esp + 8]
cmp dword [esp], eax
jae 0x6112e1
mov edx, esi
mov ebx, dword [esp + 0x10]
jmp 0x611369
xor ecx, ecx
mov ebx, dword [esp + 0x10]
cmp ebx, 0x20
jb 0x61133b
mov ecx, ebx
and ecx, 0x7fffffe0
mov eax, dword [esp + 8]
add edx, eax
add edx, 0xf
xor edi, edi
mov eax, dword [esp]
movups xmm0, xmmword [eax + edi]
movups xmm1, xmmword [eax + edi + 0x10]
movups xmm2, xmmword [edx + edi - 0x10]
xorps xmm2, xmm0
movups xmm0, xmmword [edx + edi]
xorps xmm0, xmm1
movups xmmword [edx + edi - 0x10], xmm2
movups xmmword [edx + edi], xmm0
add edi, 0x20
cmp ecx, edi
jne 0x611302
cmp ebx, ecx
je 0x6113c9
test bl, 0x18
je 0x6113f8
mov edi, ecx
mov ecx, ebx
and ecx, 0x7ffffff8
lea edx, [esi + ecx]
mov eax, dword [esp]
movsd xmm0, qword [eax + edi]
movsd xmm1, qword [esi + edi + 1]
xorps xmm1, xmm0
movlps qword [esi + edi + 1], xmm1
add edi, 8
cmp ecx, edi
jne 0x61134b
cmp ebx, ecx
je 0x6113c9
mov dword [esp + 0xc], ebp
mov edi, ebx
mov esi, ecx
and edi, 3
je 0x611386
mov ebp, dword [esp]
movzx eax, byte [ebp + esi]
xor byte [edx + 1], al
inc edx
inc esi
dec edi
jne 0x611379
sub ecx, ebx
cmp ecx, 0xfffffffc
mov ebp, dword [esp + 0xc]
ja 0x6113c9
mov ecx, ebx
sub ecx, esi
mov eax, dword [esp]
add esi, eax
add esi, 3
xor edi, edi
movzx eax, byte [esi + edi - 3]
xor byte [edx + edi + 1], al
movzx eax, byte [esi + edi - 2]
xor byte [edx + edi + 2], al
movzx eax, byte [esi + edi - 1]
xor byte [edx + edi + 3], al
movzx eax, byte [esi + edi]
xor byte [edx + edi + 4], al
add edi, 4
cmp ecx, edi
jne 0x61139f
mov eax, dword [esp + 0x18]
test eax, eax
mov edx, dword [esp + 8]
je 0x6113e2
mov cl, 8
sub cl, al
mov eax, 0xff
shr eax, cl
and byte [edx], al
mov eax, dword [esp + 4]
mov byte [eax + edx - 1], 0xbc
mov edi, 1
mov esi, dword [esp]
jmp 0x611105
add esi, ecx
jmp 0x61129c