Function at 0x4ebd40
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 + 0x10]
mov edi, dword [ebp + 0x24]
lea esi, [eax - 1]
test edi, edi
je 0x4ec130
mov eax, dword [ebp + 0x28]
test eax, eax
mov eax, edi
cmovne eax, dword [ebp + 0x28]
mov dword [ebp + 0x28], eax
mov dword [esp], edi
call fcn.004aa2f0
mov ebx, eax
test eax, eax
jle 0x4ec188
lea edx, [eax + eax]
mov ecx, esi
sub ecx, edx
cmp ecx, dword [ebp + 0x18]
jle 0x4ec140
cmp edx, esi
jge 0x4ec090
mov eax, dword [ebp + 0xc]
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 + 0xc]
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 + 0x20]
mov dword [esp + 4], eax
mov eax, dword [ebp + 0x1c]
mov dword [esp], eax
call fcn.0049f7e0
mov edx, dword [esp + 0x3c]
mov ecx, dword [esp + 0x38]
test eax, eax
je 0x4ec0e0
mov eax, dword [ebp + 0xc]
sub esi, dword [ebp + 0x18]
mov dword [esp + 4], 0
mov edi, esi
mov dword [esp + 0x3c], ecx
sub esi, ebx
add eax, 1
sub edi, edx
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x40]
lea edx, [edi - 1]
mov dword [esp + 8], edx
add eax, ebx
mov dword [esp], eax
call sub.msvcrt.dll_memset
mov eax, dword [esp + 0x40]
mov edx, dword [ebp + 0x18]
add edi, eax
add esi, eax
mov byte [ebx + edi - 1], 1
mov dword [esp + 8], edx
mov eax, dword [ebp + 0x14]
mov dword [esp], esi
mov dword [esp + 4], eax
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 eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.0040e8c0
test eax, eax
jle 0x4ec0e0
mov ecx, dword [esp + 0x3c]
mov dword [esp + 8], 0x72
mov dword [esp + 4], str..._crypto_rsa_rsa_oaep.c
lea edi, [ecx + ebx]
mov dword [esp], edi
mov dword [esp + 0x3c], edi
call fcn.004ce330
mov esi, eax
test eax, eax
je 0x4ec300
mov eax, dword [ebp + 0x28]
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 0x4ec2f0
test edi, edi
jle 0x4ebf03
lea eax, [edi - 1]
cmp eax, 2
jbe 0x4ebede
mov edx, dword [esp + 0x40]
lea ecx, [esi + 1]
sub edx, ecx
cmp edx, 0xe
ja 0x4ec1d0
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x34], ebx
mov edx, esi
mov eax, ecx
add ecx, edi
lea esi, [esi]
movzx ebx, byte [edx]
xor byte [eax], bl
add eax, 1
add edx, 1
cmp eax, ecx
jne 0x4ebef0
mov ebx, dword [esp + 0x34]
mov eax, dword [ebp + 0x28]
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 0x4ec2f4
lea eax, [ebx - 1]
cmp eax, 0xe
jbe 0x4ec348
mov edx, dword [ebp + 0xc]
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 0x4ebfb4
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 0x4ebfb4
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 0x4ebfb4
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 0x4ec07f
mov ecx, ebx
sub ecx, edx
mov dword [esp + 0x34], ecx
mov eax, ecx
sub ecx, 1
cmp ecx, 2
jbe 0x4ec041
mov ecx, eax
mov eax, dword [ebp + 0xc]
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 0x4ec02f
movd xmm0, dword [ecx + 4]
movd xmm6, dword [edx + 4]
pxor xmm0, xmm6
movd dword [ecx + 4], xmm0
cmp eax, 2
je 0x4ec02f
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 0x4ec07f
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 edx, ebx
jge 0x4ec07f
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 0x4ec07f
mov ecx, dword [esp + 0x38]
movzx edx, byte [esp + eax + 0x50]
xor byte [ecx + eax], dl
mov ebx, 1
jmp 0x4ec0f0
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 0x4ebd60
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 0x4ec0cf
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 0x4ec0cf
cmp eax, 0xe
jbe 0x4ec357
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 0x4ec1f8
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x30], eax
cmp edi, eax
je 0x4ebf03
mov edx, edi
sub edx, eax
lea eax, [edx - 1]
mov ecx, edx
cmp eax, 2
jbe 0x4ec2a0
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 + 0xc]
cmp dword [esp + 0x28], 1
movd xmm0, dword [edx]
movd xmm5, dword [eax]
pxor xmm5, xmm0
movd dword [eax], xmm5
je 0x4ec28c
movd xmm0, dword [edx + 4]
movd xmm7, dword [eax + 4]
cmp dword [esp + 0x28], 2
pxor xmm7, xmm0
movd dword [eax + 4], xmm7
je 0x4ec28c
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 0x4ebf03
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 0x4ebf03
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 0x4ebf03
movzx edx, byte [esi + edx + 2]
xor byte [ecx + eax], dl
jmp 0x4ebf03
lea edi, [esp + 0x50]
xor ebx, ebx
jmp 0x4ec0f0
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 0x4ec0f0
mov dword [esp + 0x40], 0
xor edx, edx
jmp 0x4ebfc7
mov dword [esp + 0x2c], 0
mov ecx, edi
mov dword [esp + 0x30], 0
jmp 0x4ec230