Function at 0x50a8e0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push edi
mov edi, ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
jne 0x50a8f9
mov al, 1
pop edi
mov esp, ebp
pop ebp
ret 0x14
cmp dword [ebp + 0xc], 0
jne 0x50a917
mov ecx, dword [ebp + 0x18]
mov eax, dword [ecx]
mov edx, dword [eax + 0x14]
push str.NULL_passed_to_CBC_encryptor
call edx
xor al, al
pop edi
mov esp, ebp
pop ebp
ret 0x14
xor edx, edx
mov eax, ecx
div dword [edi + 0x80]
push ebx
test edx, edx
je 0x50a93f
mov ecx, dword [ebp + 0x18]
mov eax, dword [ecx]
mov edx, dword [eax + 0x14]
push str.AES_CBC_input_not_a_multiple_of_the_cipher_block_size.
call edx
pop ebx
xor al, al
pop edi
mov esp, ebp
pop ebp
ret 0x14
cmp byte [0x6775b2], 0
push esi
push ecx
mov ecx, dword [ebp + 0x14]
mov dword [ebp - 4], eax
je 0x50aa88
mov esi, dword [ebp + 8]
add esi, 8
mov dword [ebp - 8], esi
call fcn.00415e70
mov ebx, eax
mov dword [ebp + 8], ebx
test ebx, ebx
jne 0x50a985
mov ecx, dword [ebp + 0x18]
mov eax, dword [ecx]
mov edx, dword [eax + 0x14]
push str.Unable_to_allocate_CBC_encrypt_output_buffer.
call edx
pop esi
pop ebx
xor al, al
pop edi
mov esp, ebp
pop ebp
ret 0x14
cmp dword [edi + 0x80], 0
jbe 0x50a9b4
mov eax, esi
mov esi, dword [ebp + 0xc]
mov edx, eax
sub esi, edx
lea ecx, [ebp - 0x18]
sub ecx, edx
mov edx, dword [edi + 0x80]
mov dword [ebp + 0x18], edx
mov dl, byte [esi + eax]
xor dl, byte [eax]
inc eax
dec dword [ebp + 0x18]
mov byte [ecx + eax - 1], dl
jne 0x50a9a5
mov eax, dword [edi]
mov eax, dword [eax + 0x10]
lea ecx, [ebp - 0x28]
push ecx
lea edx, [ebp - 0x18]
push edx
mov ecx, edi
call eax
mov ecx, dword [edi + 0x80]
push ecx
lea edx, [ebp - 0x28]
push edx
push ebx
call sub.MSVCR100.dll_memcpy
mov ecx, dword [edi + 0x80]
mov eax, dword [ebp + 0xc]
add esp, 0xc
dec dword [ebp - 4]
lea esi, [ecx + eax]
je 0x50aa51
lea ebx, [ebx]
test ecx, ecx
je 0x50aa1a
sub ebx, esi
lea edx, [ebp - 0x18]
mov eax, esi
mov dword [ebp + 0x18], ebx
sub edx, esi
mov dword [ebp + 0xc], ecx
jmp 0x50aa08
mov ebx, dword [ebp + 0x18]
mov bl, byte [ebx + eax]
xor bl, byte [eax]
inc eax
dec dword [ebp + 0xc]
mov byte [edx + eax - 1], bl
jne 0x50aa05
mov ebx, dword [ebp + 8]
mov edx, dword [edi]
mov edx, dword [edx + 0x10]
add ebx, ecx
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x18]
push ecx
mov ecx, edi
mov dword [ebp + 8], ebx
call edx
mov eax, dword [edi + 0x80]
push eax
lea ecx, [ebp - 0x28]
push ecx
push ebx
call sub.MSVCR100.dll_memcpy
mov ecx, dword [edi + 0x80]
add esp, 0xc
add esi, ecx
dec dword [ebp - 4]
jne 0x50a9f0
xor ecx, ecx
cmp dword [edi + 0x80], ecx
jbe 0x50aa71
mov eax, dword [ebp - 8]
mov esi, ebx
sub esi, eax
mov dl, byte [esi + eax]
mov byte [eax], dl
inc ecx
inc eax
cmp ecx, dword [edi + 0x80]
jb 0x50aa62
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x14]
push eax
call fcn.00410b90
pop esi
pop ebx
mov al, 1
pop edi
mov esp, ebp
pop ebp
ret 0x14
call fcn.00415e70
mov esi, eax
test esi, esi
jne 0x50aaad
mov ecx, dword [ebp + 0x18]
mov edx, dword [ecx]
mov eax, dword [edx + 0x14]
push str.Unable_to_allocate_CBC_encrypt_output_buffer.
call eax
pop esi
pop ebx
xor al, al
pop edi
mov esp, ebp
pop ebp
ret 0x14
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
mov ecx, dword [eax]
xor ecx, dword [ebx + 8]
mov edx, dword [eax + 4]
xor edx, dword [ebx + 0xc]
mov dword [ebp - 0x18], ecx
mov ecx, dword [eax + 8]
xor ecx, dword [ebx + 0x10]
mov dword [ebp - 0x14], edx
mov edx, dword [eax + 0xc]
xor edx, dword [ebx + 0x14]
mov eax, dword [edi]
mov dword [ebp - 0x10], ecx
push esi
lea ecx, [ebp - 0x18]
mov dword [ebp - 0xc], edx
mov edx, dword [eax + 0x10]
push ecx
mov ecx, edi
call edx
dec dword [ebp - 4]
mov eax, dword [ebp + 0xc]
je 0x50ab30
lea ebx, [eax + 0x10]
sub ebx, esi
mov eax, dword [ebx + esi]
xor eax, dword [esi]
mov ecx, dword [ebx + esi + 4]
xor ecx, dword [esi + 4]
mov edx, dword [ebx + esi + 8]
mov dword [ebp - 0x18], eax
mov eax, dword [ebx + esi + 0xc]
mov dword [ebp - 0x14], ecx
xor edx, dword [esi + 8]
xor eax, dword [esi + 0xc]
mov dword [ebp - 0x10], edx
mov edx, dword [edi]
mov edx, dword [edx + 0x10]
mov dword [ebp - 0xc], eax
add esi, 0x10
push esi
lea eax, [ebp - 0x18]
push eax
mov ecx, edi
call edx
dec dword [ebp - 4]
jne 0x50aaf1
mov ebx, dword [ebp + 8]
mov eax, dword [esi]
mov dword [ebx + 8], eax
mov ecx, dword [esi + 4]
mov dword [ebx + 0xc], ecx
mov edx, dword [esi + 8]
mov ecx, dword [ebp + 0x10]
mov dword [ebx + 0x10], edx
mov eax, dword [esi + 0xc]
push ecx
mov ecx, dword [ebp + 0x14]
mov dword [ebx + 0x14], eax
call fcn.00410b90
pop esi
pop ebx
mov al, 1
pop edi
mov esp, ebp
pop ebp
ret 0x14