Function at 0x572810
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x18
call fcn.005cf470
cmp dword [esp + 0x20], 0
push esi
mov dword [esp + 8], 0
jl 0x572afc
mov esi, dword [esp + 0x2c]
test esi, esi
js 0x572afc
push ebp
mov ebp, dword [esp + 0x34]
cmp esi, ebp
jg 0x572ad8
cmp ebp, 0xb
jl 0x572ad8
push ebx
push 0xe3
push str..crypto_rsa_rsa_pk1.c
push ebp
call fcn.004fe760
mov ebx, eax
add esp, 0xc
test ebx, ebx
jne 0x57288c
push 0xe5
push str..crypto_rsa_rsa_pk1.c
push 0x41
push 0x71
push 4
call fcn.0050ce40
add esp, 0x14
or eax, 0xffffffff
pop ebx
pop ebp
pop esi
add esp, 0x18
ret
mov edx, dword [esp + 0x30]
push edi
add edx, esi
mov edi, ebp
add ebx, ebp
mov eax, esi
mov dword [esp + 0x1c], ebx
not eax
lea ecx, [esi - 1]
shr eax, 0x1f
dec ebx
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 [ebx], al
sub edi, 1
jne 0x572897
mov eax, dword [esp + 0x1c]
mov esi, 2
mov dword [esp + 0x18], ebx
movzx ecx, byte [eax]
movzx eax, byte [ebx]
xor ecx, 2
dec ecx
dec eax
shr ecx, 0x1f
shr eax, 0x1f
neg ecx
neg eax
and ecx, eax
mov dword [esp + 0x10], ecx
movzx edx, byte [ebx + esi]
mov eax, edi
dec edx
not eax
shr edx, 0x1f
neg edx
and eax, edx
or edi, edx
mov dword [esp + 0x1c], eax
not eax
mov dword [esp + 0x20], eax
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
and ecx, esi
and eax, dword [esp + 0x14]
inc esi
or eax, ecx
mov dword [esp + 0x14], eax
cmp esi, ebp
jl 0x5728e8
mov esi, dword [esp + 0x30]
mov edi, ebp
mov edx, dword [esp + 0x14]
sub edi, eax
dec edi
mov ecx, esi
sub ecx, edi
mov dword [esp + 0x1c], edi
xor ecx, edi
mov eax, edi
xor eax, esi
or ecx, eax
lea eax, [edx - 0xa]
or eax, edx
xor ecx, esi
xor eax, edx
shr ecx, 0x1f
shr eax, 0x1f
dec ecx
dec eax
and ecx, eax
and dword [esp + 0x10], ecx
lea ecx, [ebp - 0xb]
mov edx, ecx
mov eax, ecx
sub edx, esi
xor eax, esi
xor edx, esi
or edx, eax
xor edx, ecx
lea ecx, [ebp - 0xb]
shr edx, 0x1f
neg edx
mov dword [esp + 0x30], edx
not edx
mov dword [esp + 0x20], edx
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x20]
and eax, ecx
and edx, esi
mov esi, 1
or edx, eax
mov dword [esp + 0x30], edx
cmp ecx, esi
jle 0x572a13
mov eax, ebp
sub eax, edi
add eax, 0xfffffff5
mov dword [esp + 0x24], eax
nop
and eax, esi
mov edi, ebp
sub edi, esi
lea ecx, [eax - 1]
not eax
shr ecx, 0x1f
shr eax, 0x1f
and ecx, eax
dec ecx
cmp edi, 0xb
jle 0x5729fe
movzx ebp, cl
lea eax, [ebx + 0xb]
mov dword [esp + 0x20], ebp
add edi, 0xfffffff5
mov ebx, dword [esp + 0x20]
not ebp
nop dword [eax]
mov dword [esp + 0x20], ebx
lea eax, [eax + 1]
mov dword [esp + 0x14], ebp
mov ecx, dword [esp + 0x20]
mov dl, byte [eax + esi - 1]
and dl, cl
mov ecx, dword [esp + 0x14]
and cl, byte [eax - 1]
or cl, dl
mov byte [eax - 1], cl
sub edi, 1
jne 0x5729d0
mov ebx, dword [esp + 0x18]
mov ebp, dword [esp + 0x3c]
lea eax, [ebp - 0xb]
add esi, esi
cmp esi, eax
mov eax, dword [esp + 0x24]
jl 0x5729a0
mov edi, dword [esp + 0x1c]
mov edx, dword [esp + 0x30]
xor esi, esi
test edx, edx
jle 0x572a81
mov edx, dword [esp + 0x10]
mov eax, edi
shr eax, 0x1f
neg edi
mov dword [esp + 0x14], eax
lea eax, [ebx + 0xb]
mov ebx, dword [esp + 0x14]
mov ebp, eax
mov dword [esp + 0x24], eax
mov eax, edi
inc edi
shr eax, 0x1f
xor al, bl
or al, bl
mov ebx, dword [esp + 0x2c]
neg al
movzx ecx, al
movzx eax, dl
and ecx, eax
mov dword [esp + 0x24], ecx
not ecx
mov dword [esp + 0x20], ecx
mov eax, dword [esp + 0x24]
mov cl, byte [esi + ebp]
and cl, al
mov eax, dword [esp + 0x20]
and al, byte [esi + ebx]
or al, cl
mov ecx, ebx
mov ebx, dword [esp + 0x14]
mov byte [esi + ecx], al
inc esi
cmp esi, dword [esp + 0x30]
jl 0x572a35
mov ebx, dword [esp + 0x18]
mov ebp, dword [esp + 0x3c]
push ebp
push ebx
call fcn.0051ab20
push ebx
call fcn.004fe690
push 0x12d
push str..crypto_rsa_rsa_pk1.c
push 0x9f
push 0x71
push 4
call fcn.0050ce40
mov ebx, dword [esp + 0x30]
mov eax, ebx
and eax, 1
push eax
call fcn.0050d080
add esp, 0x24
mov dword [esp + 0x30], ebx
not ebx
mov dword [esp + 0x24], ebx
mov ecx, dword [esp + 0x30]
and ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x24]
pop edi
pop ebx
pop ebp
or eax, ecx
pop esi
add esp, 0x18
ret
push 0xdf
push str..crypto_rsa_rsa_pk1.c
push 0x9f
push 0x71
push 4
call fcn.0050ce40
add esp, 0x14
or eax, 0xffffffff
pop ebp
pop esi
add esp, 0x18
ret
or eax, 0xffffffff
pop esi
add esp, 0x18
ret