Function at 0x4ed320
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
and esp, 0xfffffff0
sub esp, 0x90
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 0x20]
lea esi, [eax - 1]
test edi, edi
je 0x4ed710
mov eax, dword [ebp + 0x24]
test eax, eax
mov eax, edi
cmovne eax, dword [ebp + 0x24]
mov dword [ebp + 0x24], eax
mov dword [esp], edi
call fcn.004aa2f0
mov ebx, eax
test eax, eax
jle 0x4ed768
lea edx, [eax + eax]
mov ecx, esi
sub ecx, edx
cmp dword [ebp + 0x14], ecx
jge 0x4ed720
cmp esi, edx
jle 0x4ed670
mov eax, dword [ebp + 8]
mov dword [esp + 0x38], ecx
mov dword [esp + 0x3c], edx
mov byte [eax], 0
lea eax, [ebx + 1]
mov dword [esp + 0x34], eax
add eax, dword [ebp + 8]
mov dword [esp + 8], eax
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], 0
mov dword [esp + 0x40], eax
mov eax, dword [ebp + 0x1c]
mov dword [esp + 4], eax
mov eax, dword [ebp + 0x18]
mov dword [esp], eax
call fcn.0049f7e0
mov edx, dword [esp + 0x3c]
mov ecx, dword [esp + 0x38]
test eax, eax
je 0x4ed6c0
sub esi, dword [ebp + 0x14]
mov eax, dword [ebp + 8]
mov dword [esp + 4], 0
mov edi, esi
mov dword [esp + 0x30], ecx
sub esi, ebx
sub edi, edx
mov edx, dword [esp + 0x40]
add eax, 1
mov dword [esp + 0x38], eax
lea eax, [edi - 1]
add edx, ebx
mov dword [esp + 8], eax
mov dword [esp], edx
mov dword [esp + 0x3c], edx
call sub.msvcrt.dll_memset
mov edx, dword [esp + 0x3c]
mov ecx, dword [ebp + 0x14]
mov byte [edi + edx - 1], 1
mov edx, dword [esp + 0x40]
mov dword [esp + 8], ecx
mov eax, dword [ebp + 0x10]
add esi, edx
mov dword [esp + 4], eax
mov dword [esp], esi
call sub.msvcrt.dll_memcpy
mov eax, dword [esp + 0x38]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], 0
mov dword [esp + 4], eax
mov dword [esp], 0
call fcn.0040e8c0
test eax, eax
jle 0x4ed6c0
mov ecx, dword [esp + 0x30]
mov dword [esp + 8], 0x72
mov dword [esp + 4], str..._crypto_rsa_rsa_oaep.c
lea edi, [ebx + ecx]
mov dword [esp], edi
mov dword [esp + 0x3c], edi
call fcn.004ce330
mov esi, eax
test eax, eax
je 0x4ed8e0
mov eax, dword [ebp + 0x24]
mov dword [esp + 0xc], ebx
mov dword [esp + 4], edi
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x38]
mov dword [esp], esi
mov dword [esp + 8], eax
call fcn.004ebbc0
test eax, eax
js 0x4ed8d0
test edi, edi
jle 0x4ed4eb
lea eax, [edi - 1]
cmp eax, 2
jbe 0x4ed4c5
mov edx, dword [esp + 0x40]
lea ecx, [esi + 1]
sub edx, ecx
cmp edx, 0xe
ja 0x4ed7b0
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x34], ebx
mov edx, esi
mov eax, ecx
add ecx, edi
lea esi, cs:[esi]
movzx ebx, byte [edx]
xor byte [eax], bl
add eax, 1
add edx, 1
cmp eax, ecx
jne 0x4ed4d8
mov ebx, dword [esp + 0x34]
mov eax, dword [ebp + 0x24]
mov dword [esp + 0xc], edi
lea edi, [esp + 0x50]
mov dword [esp + 4], ebx
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x40]
mov dword [esp], edi
mov dword [esp + 8], eax
call fcn.004ebbc0
test eax, eax
js 0x4ed8d4
lea eax, [ebx - 1]
cmp eax, 0xe
jbe 0x4ed928
mov edx, dword [ebp + 8]
movdqu xmm0, xmmword [esp + 0x50]
mov eax, ebx
shr eax, 4
movdqu xmm2, xmmword [edx + 1]
pxor xmm0, xmm2
movups xmmword [esp + 0x40], xmm2
movups xmmword [edx + 1], xmm0
cmp eax, 1
je 0x4ed59c
movdqu xmm4, xmmword [edx + 0x11]
movdqu xmm0, xmmword [esp + 0x60]
pxor xmm0, xmm4
movups xmmword [esp + 0x40], xmm4
movups xmmword [edx + 0x11], xmm0
cmp eax, 2
je 0x4ed59c
movdqu xmm7, xmmword [edx + 0x21]
movdqu xmm0, xmmword [esp + 0x70]
pxor xmm0, xmm7
movups xmmword [esp + 0x40], xmm7
movups xmmword [edx + 0x21], xmm0
cmp eax, 3
je 0x4ed59c
movdqu xmm0, xmmword [esp + 0x80]
movdqu xmm4, xmmword [edx + 0x31]
pxor xmm0, xmm4
movups xmmword [esp + 0x40], xmm4
movups xmmword [edx + 0x31], xmm0
mov eax, ebx
and eax, 0xfffffff0
mov dword [esp + 0x40], eax
mov edx, eax
cmp ebx, eax
je 0x4ed667
mov ecx, ebx
sub ecx, edx
mov dword [esp + 0x34], ecx
mov eax, ecx
sub ecx, 1
cmp ecx, 2
jbe 0x4ed629
mov ecx, eax
mov eax, dword [ebp + 8]
shr ecx, 2
mov dword [esp + 0x30], ecx
lea ecx, [eax + edx + 1]
add edx, edi
mov eax, dword [esp + 0x30]
movd xmm0, dword [ecx]
movd xmm3, dword [edx]
pxor xmm0, xmm3
movd dword [ecx], xmm0
cmp eax, 1
je 0x4ed617
movd xmm0, dword [ecx + 4]
movd xmm6, dword [edx + 4]
pxor xmm0, xmm6
movd dword [ecx + 4], xmm0
cmp eax, 2
je 0x4ed617
movd xmm0, dword [ecx + 8]
movd xmm6, dword [edx + 8]
pxor xmm0, xmm6
movd dword [ecx + 8], xmm0
mov ecx, dword [esp + 0x34]
mov edx, ecx
and edx, 0xfffffffc
add dword [esp + 0x40], edx
and ecx, 3
je 0x4ed667
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x38]
movzx edx, byte [esp + eax + 0x50]
xor byte [ecx + eax], dl
mov edx, eax
add edx, 1
mov dword [esp + 0x34], ecx
cmp ebx, edx
jle 0x4ed667
mov eax, ecx
movzx ecx, byte [esp + edx + 0x50]
xor byte [eax + edx], cl
mov eax, dword [esp + 0x40]
add eax, 2
cmp ebx, eax
jle 0x4ed667
mov ecx, dword [esp + 0x38]
movzx edx, byte [esp + eax + 0x50]
xor byte [ecx + eax], dl
mov ebx, 1
jmp 0x4ed6d0
call fcn.0049b030
mov dword [esp + 8], str.ossl_rsa_padding_add_PKCS1_OAEP_mgf1_ex
xor ebx, ebx
mov dword [esp + 4], 0x5c
mov dword [esp], str..._crypto_rsa_rsa_oaep.c
call fcn.0049b150
mov dword [esp + 8], 0
mov dword [esp + 4], 0x78
mov dword [esp], 4
call fcn.0049b230
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 0x3c], 0
xor esi, esi
xor ebx, ebx
lea edi, [esp + 0x50]
mov dword [esp], edi
mov dword [esp + 4], 0x40
call fcn.004ded70
mov eax, dword [esp + 0x3c]
mov dword [esp], esi
mov dword [esp + 0xc], 0x89
mov dword [esp + 4], eax
mov dword [esp + 8], str..._crypto_rsa_rsa_oaep.c
call fcn.004ce740
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
call fcn.004aee50
mov edi, eax
jmp 0x4ed340
call fcn.0049b030
mov dword [esp + 8], str.ossl_rsa_padding_add_PKCS1_OAEP_mgf1_ex
xor ebx, ebx
mov dword [esp + 4], 0x57
mov dword [esp], str..._crypto_rsa_rsa_oaep.c
call fcn.0049b150
mov dword [esp + 8], 0
mov dword [esp + 4], 0x6e
mov dword [esp], 4
call fcn.0049b230
jmp 0x4ed6af
call fcn.0049b030
mov dword [esp + 8], str.ossl_rsa_padding_add_PKCS1_OAEP_mgf1_ex
xor ebx, ebx
mov dword [esp + 4], 0x51
mov dword [esp], str..._crypto_rsa_rsa_oaep.c
call fcn.0049b150
mov dword [esp + 8], 0
mov dword [esp + 4], 0xb5
mov dword [esp], 4
call fcn.0049b230
jmp 0x4ed6af
cmp eax, 0xe
jbe 0x4ed937
mov ecx, dword [esp + 0x40]
mov eax, edi
mov edx, esi
and eax, 0xfffffff0
mov dword [esp + 0x30], ecx
add ecx, eax
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x30]
lea esi, [esi]
movdqu xmm0, xmmword [eax]
movdqu xmm1, xmmword [edx]
add eax, 0x10
add edx, 0x10
pxor xmm0, xmm1
movups xmmword [eax - 0x10], xmm0
cmp ecx, eax
jne 0x4ed7d8
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x30], eax
cmp edi, eax
je 0x4ed4eb
mov edx, edi
sub edx, eax
lea eax, [edx - 1]
mov ecx, edx
cmp eax, 2
jbe 0x4ed880
mov eax, ecx
mov edx, dword [esp + 0x2c]
shr eax, 2
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x34]
add eax, edx
add edx, esi
add eax, dword [ebp + 8]
cmp dword [esp + 0x28], 1
movd xmm0, dword [edx]
movd xmm5, dword [eax]
pxor xmm5, xmm0
movd dword [eax], xmm5
je 0x4ed86c
movd xmm0, dword [edx + 4]
movd xmm7, dword [eax + 4]
cmp dword [esp + 0x28], 2
pxor xmm7, xmm0
movd dword [eax + 4], xmm7
je 0x4ed86c
movd xmm0, dword [edx + 8]
movd xmm5, dword [eax + 8]
pxor xmm5, xmm0
movd dword [eax + 8], xmm5
mov edx, ecx
mov eax, ecx
and eax, 0xfffffffc
add dword [esp + 0x30], eax
and edx, 3
je 0x4ed4eb
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x40]
movzx eax, byte [esi + ecx]
xor byte [edx + ecx], al
lea eax, [ecx + 1]
mov dword [esp + 0x34], edx
cmp edi, eax
jle 0x4ed4eb
movzx edx, byte [esi + ecx + 1]
mov ecx, dword [esp + 0x34]
xor byte [ecx + eax], dl
mov edx, dword [esp + 0x30]
lea eax, [edx + 2]
cmp edi, eax
jle 0x4ed4eb
movzx edx, byte [esi + edx + 2]
xor byte [ecx + eax], dl
jmp 0x4ed4eb
lea edi, [esp + 0x50]
xor ebx, ebx
jmp 0x4ed6d0
call fcn.0049b030
mov dword [esp + 8], str.ossl_rsa_padding_add_PKCS1_OAEP_mgf1_ex
xor ebx, ebx
lea edi, [esp + 0x50]
mov dword [esp + 4], 0x74
mov dword [esp], str..._crypto_rsa_rsa_oaep.c
call fcn.0049b150
mov dword [esp + 8], 0
mov dword [esp + 4], 0xc0100
mov dword [esp], 4
call fcn.0049b230
jmp 0x4ed6d0
mov dword [esp + 0x40], 0
xor edx, edx
jmp 0x4ed5af
mov dword [esp + 0x2c], 0
mov ecx, edi
mov dword [esp + 0x30], 0
jmp 0x4ed810