Function at 0x47b807
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
xor eax, eax
push esi
mov esi, dword [ebp + 0x18]
push edi
mov dword [ebp - 0x14], eax
mov dword [ebp - 8], eax
cmp dword [ebp + 0xc], eax
jle 0x47bab9
mov ebx, dword [ebp + 0x14]
test ebx, ebx
jle 0x47bab9
cmp ebx, esi
jg 0x47ba9e
cmp esi, 0xb
jl 0x47ba9e
push 0xb2
push str.d:package_cacheopenssl1.1.1g.2crypto_rsa_rsa_pk1.c
push esi
call fcn.004551b7
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x47b86a
push 0xb4
push str.d:package_cacheopenssl1.1.1g.2crypto_rsa_rsa_pk1.c
push 0x41
jmp 0x47baad
mov edx, dword [ebp + 0x10]
add edi, esi
add edx, ebx
mov dword [ebp - 0x10], edi
test esi, esi
jle 0x47b8a3
mov eax, ebx
lea ecx, [ebx - 1]
not eax
shr ecx, 0x1f
shr eax, 0x1f
and ecx, eax
dec ecx
mov eax, ecx
and eax, 1
sub edx, eax
sub ebx, eax
dec edi
mov al, byte [edx]
and al, cl
mov byte [edi], al
sub esi, 1
jne 0x47b878
mov esi, dword [ebp + 0x18]
mov dword [ebp - 0x10], edi
movzx eax, byte [edi + 1]
push 2
pop ecx
xor eax, ecx
lea ebx, [eax - 1]
not eax
shr eax, 0x1f
shr ebx, 0x1f
and ebx, eax
movzx eax, byte [edi]
neg ebx
dec eax
shr eax, 0x1f
neg eax
and ebx, eax
xor eax, eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], eax
cmp esi, ecx
jle 0x47b90a
push ecx
pop ebx
movzx edx, byte [ebx + edi]
not eax
dec edx
shr edx, 0x1f
neg edx
and eax, edx
mov dword [ebp - 0x18], eax
not eax
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
and ecx, ebx
and eax, dword [ebp - 8]
or eax, ecx
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0xc]
or eax, edx
inc ebx
mov dword [ebp - 0xc], eax
cmp ebx, esi
jl 0x47b8d4
mov ebx, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov eax, esi
mov ecx, dword [ebp + 0xc]
sub eax, edx
dec eax
sub ecx, eax
mov dword [ebp - 8], eax
xor ecx, eax
xor eax, dword [ebp + 0xc]
or ecx, eax
lea eax, [edx - 0xa]
xor ecx, dword [ebp + 0xc]
or eax, edx
xor eax, edx
shr ecx, 0x1f
shr eax, 0x1f
dec ecx
dec eax
and ecx, eax
and ebx, ecx
lea ecx, [esi - 0xb]
mov edx, ecx
mov dword [ebp - 4], ebx
sub edx, dword [ebp + 0xc]
mov eax, ecx
xor edx, dword [ebp + 0xc]
xor eax, dword [ebp + 0xc]
or edx, eax
xor edx, ecx
shr edx, 0x1f
neg edx
mov dword [ebp - 0x1c], edx
not edx
mov dword [ebp - 0x18], edx
lea edx, [esi - 0xb]
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x18]
and eax, edx
and ecx, dword [ebp + 0xc]
or ecx, eax
xor eax, eax
inc eax
mov dword [ebp + 0xc], ecx
mov dword [ebp - 0x1c], eax
cmp edx, eax
jle 0x47b9e7
mov edx, dword [ebp - 0x1c]
mov eax, esi
sub eax, dword [ebp - 8]
add eax, 0xfffffff5
mov dword [ebp - 0x20], eax
and eax, edx
lea ecx, [eax - 1]
not eax
shr eax, 0x1f
shr ecx, 0x1f
and ecx, eax
mov eax, esi
sub eax, edx
dec ecx
cmp eax, 0xb
jle 0x47b9d5
movzx ecx, cl
lea esi, [edi + 0xb]
mov ebx, ecx
mov dword [ebp - 0xc], ecx
not ebx
lea edi, [eax - 0xb]
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x18], ebx
mov eax, dword [ebp - 0x1c]
mov cl, byte [esi + edx]
and cl, al
mov eax, dword [ebp - 0x18]
and al, byte [esi]
or al, cl
mov ecx, dword [ebp - 0xc]
mov byte [esi], al
inc esi
sub edi, 1
jne 0x47b9af
mov esi, dword [ebp + 0x18]
mov edi, dword [ebp - 0x10]
lea eax, [esi - 0xb]
add edx, edx
cmp edx, eax
mov eax, dword [ebp - 0x20]
jl 0x47b986
mov ebx, dword [ebp - 4]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 8]
test ecx, ecx
jle 0x47ba52
mov eax, edx
mov esi, edx
shr eax, 0x1f
neg esi
mov dword [ebp - 0x10], eax
xor edx, edx
mov ecx, edx
mov edx, esi
shr ecx, 0x1f
shr edx, 0x1f
xor dl, al
mov al, cl
xor al, byte [ebp - 0x10]
or dl, al
movzx eax, bl
mov ebx, dword [ebp + 8]
xor dl, cl
neg dl
movzx ecx, dl
mov edx, dword [ebp - 0x14]
and ecx, eax
mov dword [ebp - 0x20], ecx
not ecx
mov dword [ebp - 0x1c], ecx
mov eax, dword [ebp - 0x20]
mov cl, byte [edi + edx + 0xb]
and cl, al
mov eax, dword [ebp - 0x1c]
and al, byte [edx + ebx]
or al, cl
mov ecx, ebx
mov ebx, dword [ebp - 4]
mov byte [edx + ecx], al
inc edx
mov eax, dword [ebp - 0x10]
inc esi
mov dword [ebp - 0x14], edx
cmp edx, dword [ebp + 0xc]
jl 0x47b9fc
mov esi, dword [ebp + 0x18]
push 0xfa
push str.d:package_cacheopenssl1.1.1g.2crypto_rsa_rsa_pk1.c
push esi
push edi
call fcn.00455260
push 0xfb
push str.d:package_cacheopenssl1.1.1g.2crypto_rsa_rsa_pk1.c
push 0x9f
push 0x71
push 4
call fcn.004559e9
mov eax, ebx
and eax, 1
push eax
call fcn.00455d42
mov dword [ebp + 0xc], ebx
add esp, 0x28
not ebx
mov dword [ebp - 0x20], ebx
mov ecx, dword [ebp + 0xc]
and ecx, dword [ebp - 8]
mov eax, dword [ebp - 0x20]
or eax, ecx
jmp 0x47babc
push 0xae
push str.d:package_cacheopenssl1.1.1g.2crypto_rsa_rsa_pk1.c
push 0x9f
push 0x71
push 4
call fcn.004559e9
add esp, 0x14
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret