Function at 0x6115a0
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.005c36b0
add esp, 4
test eax, eax
js 0x6116bf
cmp ebx, 0xfffffffc
mov dword [esp + 0xc], eax
je 0x6115f6
cmp ebx, 0xffffffff
je 0x6115ed
cmp ebx, 0xfffffffe
jne 0x611603
mov dword [esp], 0xffffffff
mov dword [esp + 4], 0xfffffffd
jmp 0x61164f
mov dword [esp + 4], eax
mov dword [esp], ebx
jmp 0x61164f
mov dword [esp + 4], 0xfffffffd
mov dword [esp], eax
jmp 0x61164f
mov esi, ebx
cmp ebx, 0xfffffffb
jg 0x611644
call fcn.005b5b10
push str.RSA_padding_add_PKCS1_PSS_mgf1
push 0xc4
push str.crypto_rsa_rsa_pss.c
call fcn.005b5c10
add esp, 0xc
push 0
push 0x88
push 4
call fcn.005b5d00
add esp, 0xc
xor edi, edi
xor ebp, ebp
mov ebx, esi
xor esi, esi
jmp 0x6116c5
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.00588180
add esp, 4
mov ebp, eax
dec ebp
push ebx
call fcn.00609410
add esp, 4
and ebp, 7
mov dword [esp + 0x18], ebp
je 0x61167d
mov dword [esp + 8], esi
jmp 0x611686
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 0x6116ec
call fcn.005b5b10
push str.RSA_padding_add_PKCS1_PSS_mgf1
push 0xcf
push str.crypto_rsa_rsa_pss.c
call fcn.005b5c10
add esp, 0xc
push 0
push 0x6e
push 4
call fcn.005b5d00
add esp, 0xc
xor edi, edi
xor esi, esi
xor ebp, ebp
push ebp
call fcn.005b8950
add esp, 4
push 0x10a
push str.crypto_rsa_rsa_pss.c
push ebx
push esi
call fcn.005db780
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 0x61170b
mov esi, dword [esp]
cmp ecx, esi
mov edx, esi
cmovl edx, ecx
test esi, esi
mov ebx, edx
cmovs ebx, ecx
jmp 0x611720
cmp ebx, ecx
jle 0x611720
call fcn.005b5b10
push str.RSA_padding_add_PKCS1_PSS_mgf1
push 0xd7
jmp 0x6116a4
mov dword [esp + 4], eax
mov esi, 0
test ebx, ebx
jle 0x611765
push 0xdb
push str.crypto_rsa_rsa_pss.c
push ebx
call fcn.005db3a0
add esp, 0xc
test eax, eax
je 0x6116bf
mov esi, eax
push 0
push ebx
push eax
mov eax, dword [esp + 0x3c]
push dword [eax + 4]
call fcn.00604150
add esp, 0x10
test eax, eax
jle 0x611829
call fcn.005b8930
test eax, eax
je 0x611820
mov ebp, eax
push 0
push dword [esp + 0x40]
push eax
call fcn.005b8fe0
add esp, 0xc
test eax, eax
je 0x611819
push 8
push 0x9f7cda
push ebp
call fcn.005b9000
add esp, 0xc
test eax, eax
je 0x611819
push dword [esp + 0xc]
push dword [esp + 0x3c]
push ebp
call fcn.005b9000
add esp, 0xc
test eax, eax
je 0x611819
test ebx, ebx
je 0x6117c7
push ebx
push esi
push ebp
call fcn.005b9000
add esp, 0xc
test eax, eax
je 0x611819
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.005b9180
add esp, 0xc
test eax, eax
je 0x61180b
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 0x611830
mov ebx, dword [esp + 0x10]
mov esi, dword [esp]
xor edi, edi
jmp 0x6116c5
xor edi, edi
jmp 0x6116c5
xor ebp, ebp
xor edi, edi
jmp 0x6116c5
xor edi, edi
jmp 0x6116c3
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 0x611989
mov eax, dword [esp + 8]
lea esi, [edx + eax]
add esi, 0xfffffffe
xor ecx, ecx
cmp ebx, 8
jae 0x611863
mov edx, esi
jmp 0x611929
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 0x6118a1
mov eax, dword [esp + 0x14]
sub eax, dword [esp + 0xc]
add eax, dword [esp + 8]
cmp dword [esp], eax
jae 0x6118a1
mov edx, esi
mov ebx, dword [esp + 0x10]
jmp 0x611929
xor ecx, ecx
mov ebx, dword [esp + 0x10]
cmp ebx, 0x20
jb 0x6118fb
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 0x6118c2
cmp ebx, ecx
je 0x611989
test bl, 0x18
je 0x6119b8
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 0x61190b
cmp ebx, ecx
je 0x611989
mov dword [esp + 0xc], ebp
mov edi, ebx
mov esi, ecx
and edi, 3
je 0x611946
mov ebp, dword [esp]
movzx eax, byte [ebp + esi]
xor byte [edx + 1], al
inc edx
inc esi
dec edi
jne 0x611939
sub ecx, ebx
cmp ecx, 0xfffffffc
mov ebp, dword [esp + 0xc]
ja 0x611989
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 0x61195f
mov eax, dword [esp + 0x18]
test eax, eax
mov edx, dword [esp + 8]
je 0x6119a2
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 0x6116c5
add esi, ecx
jmp 0x61185c