Function at 0x51bc50
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x18
call fcn.0054da90
cmp dword [esp + 0x20], 0
push esi
mov dword [esp + 8], 0
jl 0x51bf6c
mov esi, dword [esp + 0x2c]
test esi, esi
js 0x51bf6c
push ebp
mov ebp, dword [esp + 0x34]
cmp esi, ebp
jg 0x51bf48
cmp ebp, 0xb
jl 0x51bf48
push ebx
push 0xe3
push str..crypto_rsa_rsa_pk1.c
push ebp
call fcn.004cb5b0
mov ebx, eax
add esp, 0xc
test ebx, ebx
jne 0x51bccc
push 0xe5
push str..crypto_rsa_rsa_pk1.c
push 0x41
push 0x71
push 4
call fcn.004c6320
add esp, 0x14
or eax, 0xffffffff
pop ebx
pop ebp
pop esi
add esp, 0x18
ret
mov edx, dword [esp + 0x30]
add ebx, ebp
add edx, esi
mov dword [esp + 0x14], ebx
push edi
test ebp, ebp
jle 0x51bd07
mov edi, ebp
nop
mov eax, esi
lea ecx, [esi - 1]
not eax
shr ecx, 0x1f
shr eax, 0x1f
dec ebx
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
dec edi
jne 0x51bce0
mov dword [esp + 0x18], ebx
movzx eax, byte [ebx + 1]
mov esi, 2
movzx ecx, byte [ebx]
xor eax, 2
xor edi, edi
lea edx, [eax - 1]
not eax
shr eax, 0x1f
shr edx, 0x1f
and edx, eax
lea eax, [ecx - 1]
shr eax, 0x1f
not ecx
shr ecx, 0x1f
neg edx
and eax, ecx
neg eax
and edx, eax
mov dword [esp + 0x10], edx
cmp ebp, esi
jle 0x51bd84
movzx eax, byte [esi + ebx]
lea edx, [eax - 1]
not eax
shr eax, 0x1f
shr edx, 0x1f
and edx, eax
mov eax, edi
not eax
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 0x51bd40
mov edx, dword [esp + 0x10]
jmp 0x51bd86
xor eax, eax
mov edi, dword [esp + 0x30]
mov esi, ebp
sub esi, eax
mov ecx, edi
dec esi
sub ecx, esi
mov dword [esp + 0x1c], esi
xor ecx, esi
mov eax, esi
mov esi, dword [esp + 0x14]
xor eax, edi
or ecx, eax
xor ecx, edi
shr ecx, 0x1f
lea eax, [esi - 0xa]
dec ecx
or eax, esi
xor eax, esi
mov esi, 1
shr eax, 0x1f
dec eax
and ecx, eax
and edx, ecx
lea ecx, [ebp - 0xb]
mov dword [esp + 0x10], edx
mov eax, ecx
mov edx, ecx
xor eax, edi
sub edx, edi
xor edx, edi
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 edx, dword [esp + 0x30]
mov eax, dword [esp + 0x20]
and edx, ecx
and eax, edi
or edx, eax
mov dword [esp + 0x30], edx
cmp ecx, esi
jle 0x51be70
mov eax, ebp
sub eax, dword [esp + 0x1c]
add eax, 0xfffffff5
mov dword [esp + 0x24], eax
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 0x51be5f
movzx ebp, cl
lea eax, [ebx + 0xb]
mov dword [esp + 0x20], ebp
add edi, 0xfffffff5
mov ebx, dword [esp + 0x20]
not ebp
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
dec edi
jne 0x51be33
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 0x51be07
mov edx, dword [esp + 0x30]
xor esi, esi
test edx, edx
jle 0x51bef3
mov eax, dword [esp + 0x1c]
mov edi, dword [esp + 0x1c]
shr eax, 0x1f
neg edi
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x10]
movzx eax, al
mov dword [esp + 0x20], eax
lea eax, [ebx + 0xb]
mov ebx, dword [esp + 0x24]
mov ebp, dword [esp + 0x20]
mov dword [esp + 0x14], eax
mov ecx, esi
mov edx, edi
shr ecx, 0x1f
inc edi
shr edx, 0x1f
mov al, cl
xor al, bl
xor dl, bl
or dl, al
xor dl, cl
mov ecx, dword [esp + 0x14]
neg dl
movzx eax, dl
mov edx, dword [esp + 0x2c]
and eax, ebp
mov dword [esp + 0x24], eax
not eax
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x24]
mov cl, byte [ecx + esi]
and cl, al
mov eax, dword [esp + 0x20]
and al, byte [esi + edx]
or al, cl
mov byte [esi + edx], al
inc esi
cmp esi, dword [esp + 0x30]
jl 0x51bea1
mov ebx, dword [esp + 0x18]
mov ebp, dword [esp + 0x3c]
push ebp
push ebx
call fcn.00401360
push ebx
call fcn.004cb530
push 0x12d
push str..crypto_rsa_rsa_pk1.c
push 0x9f
push 0x71
push 4
call fcn.004c6320
mov ebx, dword [esp + 0x30]
mov eax, ebx
and eax, 1
push eax
call fcn.004c66a0
add esp, 0x24
mov dword [esp + 0x30], ebx
not ebx
mov dword [esp + 0x24], ebx
mov eax, dword [esp + 0x30]
and eax, dword [esp + 0x1c]
or eax, dword [esp + 0x24]
pop edi
pop ebx
pop ebp
pop esi
add esp, 0x18
ret
push 0xdf
push str..crypto_rsa_rsa_pk1.c
push 0x9f
push 0x71
push 4
call fcn.004c6320
add esp, 0x14
or eax, 0xffffffff
pop ebp
pop esi
add esp, 0x18
ret
or eax, 0xffffffff
pop esi
add esp, 0x18
ret