Function at 0x5fc280
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x1c
call fcn.00655180
cmp dword [esp + 0x24], 0
push ebp
push esi
push edi
mov dword [esp + 0xc], 0
jle 0x5fc57e
mov esi, dword [esp + 0x38]
test esi, esi
jle 0x5fc57e
mov ebp, dword [esp + 0x3c]
cmp esi, ebp
jg 0x5fc554
cmp ebp, 0xb
jl 0x5fc554
push 0xc2
push str.crypto_rsa_rsa_pk1.c
push ebp
call fcn.0050e9b0
mov edi, eax
add esp, 0xc
test edi, edi
je 0x5fc57e
mov edx, dword [esp + 0x34]
push ebx
add edx, esi
mov ebx, ebp
add edi, ebp
nop dword [eax]
mov eax, esi
mov dword [esp + 0x18], edi
not eax
lea ecx, [esi - 1]
shr eax, 0x1f
dec edi
shr ecx, 0x1f
and ecx, eax
dec ecx
mov eax, ecx
and eax, 1
sub edx, eax
sub esi, eax
mov al, byte [edx]
and al, cl
mov byte [edi], al
sub ebx, 1
jne 0x5fc2f0
mov eax, dword [esp + 0x18]
mov esi, 2
mov dword [esp + 0x20], edi
movzx ebx, byte [eax]
movzx eax, byte [edi]
xor ebx, 2
dec ebx
dec eax
shr ebx, 0x1f
shr eax, 0x1f
neg ebx
neg eax
and ebx, eax
mov dword [esp + 0x14], ebx
xor ebx, ebx
movzx edx, byte [edi + esi]
mov eax, ebx
dec edx
not eax
shr edx, 0x1f
neg edx
and eax, edx
or ebx, edx
mov dword [esp + 0x18], eax
not eax
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x18], eax
and ecx, esi
mov eax, dword [esp + 0x18]
inc esi
and eax, dword [esp + 0x10]
or eax, ecx
mov dword [esp + 0x10], eax
cmp esi, ebp
jl 0x5fc343
mov esi, dword [esp + 0x34]
mov edx, ebp
sub edx, eax
mov ebx, dword [esp + 0x14]
dec edx
mov ecx, esi
sub ecx, edx
mov dword [esp + 0x18], edx
xor ecx, edx
mov eax, edx
mov edx, dword [esp + 0x10]
xor eax, esi
or ecx, eax
xor ecx, esi
shr ecx, 0x1f
lea eax, [edx - 0xa]
dec ecx
or eax, edx
xor eax, edx
shr eax, 0x1f
dec eax
and ecx, eax
and ebx, ecx
lea ecx, [ebp - 0xb]
mov edx, ecx
mov dword [esp + 0x24], ecx
sub edx, esi
mov dword [esp + 0x14], ebx
xor edx, esi
mov eax, ecx
xor eax, esi
or edx, eax
xor edx, ecx
shr edx, 0x1f
neg edx
mov dword [esp + 0x34], edx
not edx
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x34], edx
lea edx, [ebp - 0xb]
mov eax, dword [esp + 0x34]
mov dword [esp + 0x34], edx
and eax, esi
and dword [esp + 0x34], ecx
mov esi, 1
mov ecx, dword [esp + 0x34]
or ecx, eax
mov dword [esp + 0x34], ecx
cmp edx, esi
jle 0x5fc48a
mov eax, ebp
sub eax, dword [esp + 0x18]
add eax, 0xfffffff5
mov dword [esp + 0x28], eax
nop
and eax, esi
sub ebp, esi
lea ecx, [eax - 1]
not eax
shr ecx, 0x1f
shr eax, 0x1f
and ecx, eax
dec ecx
cmp ebp, 0xb
jle 0x5fc474
movzx ecx, cl
add ebp, 0xfffffff5
mov eax, ecx
mov dword [esp + 0x1c], ecx
not eax
mov dword [esp + 0x10], eax
lea eax, [edi + 0xb]
mov edi, dword [esp + 0x10]
mov dword [esp + 0x10], ecx
lea eax, [eax + 1]
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x10], edi
mov edx, dword [esp + 0x10]
mov bl, byte [eax + esi - 1]
and bl, cl
mov cl, byte [eax - 1]
and cl, dl
or bl, cl
mov ecx, dword [esp + 0x1c]
mov byte [eax - 1], bl
sub ebp, 1
jne 0x5fc440
mov edi, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
mov ebp, dword [esp + 0x40]
add esi, esi
mov eax, dword [esp + 0x28]
cmp esi, edx
jl 0x5fc410
mov ebx, dword [esp + 0x14]
mov ecx, dword [esp + 0x34]
xor esi, esi
test ecx, ecx
jle 0x5fc4ee
mov ecx, dword [esp + 0x18]
mov ebp, dword [esp + 0x18]
shr ecx, 0x1f
neg ebp
mov dword [esp + 0x24], ecx
mov eax, ebp
inc ebp
shr eax, 0x1f
xor al, cl
or al, cl
neg al
movzx ecx, al
movzx eax, bl
and ecx, eax
mov dword [esp + 0x28], ecx
not ecx
mov eax, dword [esp + 0x28]
mov dword [esp + 0x28], ecx
mov ecx, dword [esp + 0x28]
mov dl, byte [esi + edi + 0xb]
and dl, al
mov eax, dword [esp + 0x30]
mov al, byte [eax + esi]
and al, cl
mov ecx, dword [esp + 0x24]
or dl, al
mov eax, dword [esp + 0x30]
mov byte [eax + esi], dl
inc esi
cmp esi, dword [esp + 0x34]
jl 0x5fc4a1
mov ebp, dword [esp + 0x40]
push 0x108
push str.crypto_rsa_rsa_pk1.c
push ebp
push edi
call fcn.0050ead0
call fcn.00514490
push str.RSA_padding_check_PKCS1_type_2
push 0x10f
push str.crypto_rsa_rsa_pk1.c
call fcn.00514590
push 0
push 0x9f
push 4
call fcn.005146a0
mov eax, ebx
and eax, 1
push eax
call fcn.0052c5d0
add esp, 0x2c
mov dword [esp + 0x34], ebx
mov eax, dword [esp + 0x34]
not ebx
and eax, dword [esp + 0x18]
mov dword [esp + 0x34], ebx
mov ecx, dword [esp + 0x34]
or eax, ecx
pop ebx
pop edi
pop esi
pop ebp
add esp, 0x1c
ret
call fcn.00514490
push str.RSA_padding_check_PKCS1_type_2
push 0xbe
push str.crypto_rsa_rsa_pk1.c
call fcn.00514590
push 0
push 0x9f
push 4
call fcn.005146a0
add esp, 0x18
pop edi
pop esi
or eax, 0xffffffff
pop ebp
add esp, 0x1c
ret