Function at 0x48f900
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x3c
mov eax, dword [ebp + 0x18]
mov edi, dword [ebp + 8]
mov ebx, dword [ebp + 0x1c]
test eax, eax
je 0x48fa94
sub esp, 0xc
mov eax, dword [ebp + 0x14]
push eax
call fcn.00439be0
add esp, 0x10
mov esi, eax
mov dword [ebp - 0x40], 0
test eax, eax
js 0x48fa11
cmp ebx, 0xffffffff
je 0x48faa0
cmp ebx, 0xfffffffe
je 0x48f94e
jl 0x48fa50
sub esp, 0xc
mov eax, dword [edi + 0x10]
push eax
call fcn.0041b9c0
dec eax
and eax, 7
mov dword [ebp - 0x38], eax
mov dword [esp], edi
call fcn.0041b810
mov ecx, dword [ebp - 0x38]
add esp, 0x10
mov edi, eax
test ecx, ecx
je 0x48fa20
cmp ebx, 0xfffffffe
je 0x48fa34
lea eax, [esi + ebx + 2]
cmp edi, eax
jl 0x48fa83
mov dword [ebp - 0x30], 0
test ebx, ebx
jle 0x48f9cb
push edx
push 0xf2
push str.external_openssl_crypto_rsa_rsa_pss.c
push ebx
call fcn.00424350
add esp, 0x10
mov dword [ebp - 0x30], eax
test eax, eax
je 0x48fba7
push eax
push eax
push ebx
mov eax, dword [ebp - 0x30]
push eax
call fcn.00426ba0
add esp, 0x10
test eax, eax
jle 0x48f9f4
sub esp, 0xc
lea eax, [ebp - 0x24]
push eax
call fcn.0045a460
add esp, 0xc
lea edx, [ebp - 0x24]
push 0
mov eax, dword [ebp + 0x14]
push eax
push edx
call fcn.0045a760
add esp, 0x10
test eax, eax
jne 0x48faa7
mov dword [ebp - 0x40], 0
mov edx, dword [ebp - 0x30]
test edx, edx
je 0x48fa11
sub esp, 0xc
mov eax, dword [ebp - 0x30]
push eax
call fcn.00424480
add esp, 0x10
mov eax, dword [ebp - 0x40]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov edx, dword [ebp + 0xc]
dec edi
mov byte [edx], 0
inc edx
mov dword [ebp + 0xc], edx
cmp ebx, 0xfffffffe
jne 0x48f982
mov eax, edi
mov dword [ebp - 0x30], 0
sub eax, esi
lea ebx, [eax - 2]
test ebx, ebx
jg 0x48f999
jmp 0x48f9cb
sub esp, 0xc
push 0xdc
push str.external_openssl_crypto_rsa_rsa_pss.c
push 0x88
push 0x94
push 4
call fcn.00423b20
mov dword [ebp - 0x40], 0
mov eax, dword [ebp - 0x40]
add esp, 0x20
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
sub esp, 0xc
push 0xed
push str.external_openssl_crypto_rsa_rsa_pss.c
push 0x6e
jmp 0x48fa62
mov eax, dword [ebp + 0x14]
mov dword [ebp + 0x18], eax
jmp 0x48f91a
mov ebx, eax
jmp 0x48f94e
push eax
lea eax, [ebp - 0x24]
push 8
push 0x4c5fe2
push eax
call fcn.0045a340
add esp, 0x10
test eax, eax
je 0x48f9f4
push eax
push esi
mov eax, dword [ebp + 0x10]
lea edx, [ebp - 0x24]
push eax
push edx
call fcn.0045a340
add esp, 0x10
test eax, eax
je 0x48f9f4
test ebx, ebx
je 0x48fafb
push ecx
push ebx
mov edx, dword [ebp - 0x30]
lea eax, [ebp - 0x24]
push edx
push eax
call fcn.0045a340
add esp, 0x10
test eax, eax
je 0x48f9f4
mov eax, edi
mov edx, dword [ebp + 0xc]
sub eax, esi
dec eax
add edx, eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x34], edx
push eax
lea eax, [ebp - 0x24]
push 0
push edx
push eax
call fcn.0045a6a0
add esp, 0x10
test eax, eax
je 0x48f9f4
sub esp, 0xc
lea edx, [ebp - 0x24]
push edx
call fcn.0045a350
pop eax
mov eax, dword [ebp + 0x18]
push eax
push esi
mov eax, dword [ebp - 0x34]
push eax
mov eax, dword [ebp - 0x3c]
push eax
mov eax, dword [ebp + 0xc]
push eax
call fcn.0044e7a0
add esp, 0x20
test eax, eax
jne 0x48f9f4
mov eax, edi
sub eax, ebx
sub eax, esi
mov esi, dword [ebp + 0xc]
lea ecx, [esi + eax - 2]
xor byte [ecx], 1
test ebx, ebx
jle 0x48fb76
xor edx, edx
mov esi, dword [ebp - 0x30]
mov al, byte [edx + esi]
xor byte [edx + ecx + 1], al
inc edx
cmp edx, ebx
jne 0x48fb67
mov esi, dword [ebp - 0x38]
test esi, esi
je 0x48fb93
mov ebx, dword [ebp - 0x38]
mov ecx, 8
sub ecx, ebx
mov eax, 0xff
mov edx, dword [ebp + 0xc]
sar eax, cl
and byte [edx], al
mov esi, dword [ebp + 0xc]
mov byte [edi + esi - 1], 0xbc
mov dword [ebp - 0x40], 1
jmp 0x48f9fb
sub esp, 0xc
push 0xf5
push str.external_openssl_crypto_rsa_rsa_pss.c
push 0x41
jmp 0x48fa62