Function at 0x612ba0
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.005c4cc0
add esp, 4
test eax, eax
js 0x612cbf
cmp ebx, 0xfffffffc
mov dword [esp + 0xc], eax
je 0x612bf6
cmp ebx, 0xffffffff
je 0x612bed
cmp ebx, 0xfffffffe
jne 0x612c03
mov dword [esp], 0xffffffff
mov dword [esp + 4], 0xfffffffd
jmp 0x612c4f
mov dword [esp + 4], eax
mov dword [esp], ebx
jmp 0x612c4f
mov dword [esp + 4], 0xfffffffd
mov dword [esp], eax
jmp 0x612c4f
mov esi, ebx
cmp ebx, 0xfffffffb
jg 0x612c44
call fcn.005b7120
push str.RSA_padding_add_PKCS1_PSS_mgf1
push 0xc4
push str.crypto_rsa_rsa_pss.c
call fcn.005b7220
add esp, 0xc
push 0
push 0x88
push 4
call fcn.005b7310
add esp, 0xc
xor edi, edi
xor ebp, ebp
mov ebx, esi
xor esi, esi
jmp 0x612cc5
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.00589790
add esp, 4
mov ebp, eax
dec ebp
push ebx
call fcn.0060aa10
add esp, 4
and ebp, 7
mov dword [esp + 0x18], ebp
je 0x612c7d
mov dword [esp + 8], esi
jmp 0x612c86
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 0x612cec
call fcn.005b7120
push str.RSA_padding_add_PKCS1_PSS_mgf1
push 0xcf
push str.crypto_rsa_rsa_pss.c
call fcn.005b7220
add esp, 0xc
push 0
push 0x6e
push 4
call fcn.005b7310
add esp, 0xc
xor edi, edi
xor esi, esi
xor ebp, ebp
push ebp
call fcn.005b9f60
add esp, 4
push 0x10a
push str.crypto_rsa_rsa_pss.c
push ebx
push esi
call fcn.005dcd90
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 0x612d0b
mov esi, dword [esp]
cmp ecx, esi
mov edx, esi
cmovl edx, ecx
test esi, esi
mov ebx, edx
cmovs ebx, ecx
jmp 0x612d20
cmp ebx, ecx
jle 0x612d20
call fcn.005b7120
push str.RSA_padding_add_PKCS1_PSS_mgf1
push 0xd7
jmp 0x612ca4
mov dword [esp + 4], eax
mov esi, 0
test ebx, ebx
jle 0x612d65
push 0xdb
push str.crypto_rsa_rsa_pss.c
push ebx
call fcn.005dc9b0
add esp, 0xc
test eax, eax
je 0x612cbf
mov esi, eax
push 0
push ebx
push eax
mov eax, dword [esp + 0x3c]
push dword [eax + 4]
call fcn.00605750
add esp, 0x10
test eax, eax
jle 0x612e29
call fcn.005b9f40
test eax, eax
je 0x612e20
mov ebp, eax
push 0
push dword [esp + 0x40]
push eax
call fcn.005ba5f0
add esp, 0xc
test eax, eax
je 0x612e19
push 8
push 0xa21ffa
push ebp
call fcn.005ba610
add esp, 0xc
test eax, eax
je 0x612e19
push dword [esp + 0xc]
push dword [esp + 0x3c]
push ebp
call fcn.005ba610
add esp, 0xc
test eax, eax
je 0x612e19
test ebx, ebx
je 0x612dc7
push ebx
push esi
push ebp
call fcn.005ba610
add esp, 0xc
test eax, eax
je 0x612e19
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.005ba790
add esp, 0xc
test eax, eax
je 0x612e0b
push edi
mov edi, dword [esp + 0x10]
push edi
push dword [esp + 0x1c]
push esi
push ebx
call fcn.00723ca0
add esp, 0x14
test eax, eax
je 0x612e30
mov ebx, dword [esp + 0x10]
mov esi, dword [esp]
xor edi, edi
jmp 0x612cc5
xor edi, edi
jmp 0x612cc5
xor ebp, ebp
xor edi, edi
jmp 0x612cc5
xor edi, edi
jmp 0x612cc3
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 0x612f89
mov eax, dword [esp + 8]
lea esi, [edx + eax]
add esi, 0xfffffffe
xor ecx, ecx
cmp ebx, 8
jae 0x612e63
mov edx, esi
jmp 0x612f29
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 0x612ea1
mov eax, dword [esp + 0x14]
sub eax, dword [esp + 0xc]
add eax, dword [esp + 8]
cmp dword [esp], eax
jae 0x612ea1
mov edx, esi
mov ebx, dword [esp + 0x10]
jmp 0x612f29
xor ecx, ecx
mov ebx, dword [esp + 0x10]
cmp ebx, 0x20
jb 0x612efb
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 0x612ec2
cmp ebx, ecx
je 0x612f89
test bl, 0x18
je 0x612fb8
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 0x612f0b
cmp ebx, ecx
je 0x612f89
mov dword [esp + 0xc], ebp
mov edi, ebx
mov esi, ecx
and edi, 3
je 0x612f46
mov ebp, dword [esp]
movzx eax, byte [ebp + esi]
xor byte [edx + 1], al
inc edx
inc esi
dec edi
jne 0x612f39
sub ecx, ebx
cmp ecx, 0xfffffffc
mov ebp, dword [esp + 0xc]
ja 0x612f89
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 0x612f5f
mov eax, dword [esp + 0x18]
test eax, eax
mov edx, dword [esp + 8]
je 0x612fa2
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 0x612cc5
add esi, ecx
jmp 0x612e5c