Function at 0x528a40
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
sub esp, 0x34
push edi
mov edi, ecx
test eax, eax
jne 0x528a59
mov al, 1
pop edi
mov esp, ebp
pop ebp
ret 0x14
push ebx
mov ebx, dword [ebp + 0xc]
test ebx, ebx
jne 0x528a7a
mov ecx, dword [ebp + 0x18]
mov eax, dword [ecx]
mov edx, dword [eax + 0x14]
push str.NULL_passed_to_CBC_encryptor
call edx
pop ebx
xor al, al
pop edi
mov esp, ebp
pop ebp
ret 0x14
mov ecx, dword [edi + 0x80]
cmp ecx, 1
ja 0x528aa4
mov ecx, dword [ebp + 0x18]
mov edx, dword [edi]
mov edx, dword [edx + 0x18]
push ecx
mov ecx, dword [ebp + 0x14]
push ecx
push eax
mov eax, dword [ebp + 8]
push ebx
push eax
mov ecx, edi
call edx
pop ebx
pop edi
mov esp, ebp
pop ebp
ret 0x14
xor edx, edx
div ecx
test edx, edx
je 0x528ac5
mov ecx, dword [ebp + 0x18]
mov eax, dword [ecx]
mov edx, dword [eax + 0x14]
push str.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
mov cl, byte [0x6775b2]
mov byte [ebp + 0xf], cl
mov ecx, dword [ebp + 0x14]
push esi
mov dword [ebp - 4], eax
call fcn.00410b60
mov edx, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x14]
mov esi, eax
lea eax, [esi + edx]
mov dword [ebp + 0x10], eax
add eax, 0x20
push eax
call fcn.004156b0
test al, al
jne 0x528b0f
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
mov ecx, dword [ebp + 0x14]
push esi
call fcn.00410bd0
cmp byte [ebp + 0xf], 0
mov esi, eax
je 0x528c25
mov eax, dword [ebp + 8]
add eax, 8
cmp dword [edi + 0x80], 0
mov dword [ebp - 8], eax
mov dword [ebp + 8], esi
jbe 0x528b62
mov edx, dword [edi + 0x80]
mov ecx, ebx
sub ecx, eax
mov dword [ebp + 0xc], ecx
lea ecx, [ebp - 0x24]
sub ecx, eax
mov dword [ebp + 0x18], edx
mov edi, edi
mov edx, dword [ebp + 0xc]
mov dl, byte [edx + eax]
xor dl, byte [eax]
inc eax
dec dword [ebp + 0x18]
mov byte [ecx + eax - 1], dl
jne 0x528b50
mov eax, dword [edi]
mov eax, dword [eax + 0x10]
lea ecx, [ebp - 0x34]
push ecx
lea edx, [ebp - 0x24]
push edx
mov ecx, edi
call eax
mov ecx, dword [edi + 0x80]
push ecx
lea edx, [ebp - 0x34]
push edx
push esi
call sub.MSVCR100.dll_memcpy
mov ecx, dword [edi + 0x80]
add esp, 0xc
dec dword [ebp - 4]
lea esi, [ecx + ebx]
mov ebx, dword [ebp + 8]
je 0x528bfc
test ecx, ecx
je 0x528bc5
sub ebx, esi
lea edx, [ebp - 0x24]
mov eax, esi
mov dword [ebp + 0xc], ebx
sub edx, esi
mov dword [ebp + 0x18], ecx
jmp 0x528bb3
mov ebx, dword [ebp + 0xc]
mov bl, byte [ebx + eax]
xor bl, byte [eax]
inc eax
dec dword [ebp + 0x18]
mov byte [edx + eax - 1], bl
jne 0x528bb0
mov ebx, dword [ebp + 8]
mov eax, dword [edi]
mov eax, dword [eax + 0x10]
add ebx, ecx
lea ecx, [ebp - 0x34]
push ecx
lea edx, [ebp - 0x24]
push edx
mov ecx, edi
mov dword [ebp + 8], ebx
call eax
mov ecx, dword [edi + 0x80]
push ecx
lea edx, [ebp - 0x34]
push edx
push ebx
call sub.MSVCR100.dll_memcpy
mov ecx, dword [edi + 0x80]
add esp, 0xc
add esi, ecx
dec dword [ebp - 4]
jne 0x528b98
xor ecx, ecx
cmp dword [edi + 0x80], ecx
jbe 0x528d36
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 0x528c11
jmp 0x528d36
mov eax, dword [edi + 0x80]
cmp eax, 0x10
jne 0x528cca
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
xor ecx, dword [ebx]
mov edx, dword [eax + 0xc]
xor edx, dword [ebx + 4]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebx + 8]
xor ecx, dword [eax + 0x10]
mov dword [ebp - 0x10], edx
mov edx, dword [ebx + 0xc]
xor edx, dword [eax + 0x14]
mov eax, dword [edi]
mov dword [ebp - 0xc], ecx
push esi
lea ecx, [ebp - 0x14]
mov dword [ebp - 8], edx
mov edx, dword [eax + 0x10]
push ecx
mov ecx, edi
call edx
add ebx, 0x10
dec dword [ebp - 4]
je 0x528cae
sub ebx, esi
mov eax, dword [ebx + esi]
xor eax, dword [esi]
mov edx, dword [ebx + esi + 8]
xor edx, dword [esi + 8]
mov ecx, dword [ebx + esi + 4]
xor ecx, dword [esi + 4]
mov dword [ebp - 0x14], eax
mov eax, dword [ebx + esi + 0xc]
xor eax, dword [esi + 0xc]
mov dword [ebp - 0xc], edx
mov edx, dword [edi]
mov edx, dword [edx + 0x10]
mov dword [ebp - 8], eax
add esi, 0x10
push esi
lea eax, [ebp - 0x14]
mov dword [ebp - 0x10], ecx
push eax
mov ecx, edi
call edx
dec dword [ebp - 4]
jne 0x528c72
mov ecx, dword [esi]
mov eax, dword [ebp + 8]
mov dword [eax + 8], ecx
mov edx, dword [esi + 4]
mov dword [eax + 0xc], edx
mov ecx, dword [esi + 8]
mov dword [eax + 0x10], ecx
mov edx, dword [esi + 0xc]
mov dword [eax + 0x14], edx
jmp 0x528d36
cmp eax, 8
jne 0x528d42
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
xor ecx, dword [ebx]
mov edx, dword [eax + 0xc]
xor edx, dword [ebx + 4]
mov eax, dword [edi]
mov dword [ebp - 0xc], ecx
push esi
lea ecx, [ebp - 0xc]
mov dword [ebp - 8], edx
mov edx, dword [eax + 0x10]
push ecx
mov ecx, edi
call edx
add ebx, 8
dec dword [ebp - 4]
je 0x528d28
sub ebx, esi
nop
mov eax, dword [ebx + esi]
xor eax, dword [esi]
mov ecx, dword [ebx + esi + 4]
xor ecx, dword [esi + 4]
mov edx, dword [edi]
mov edx, dword [edx + 0x10]
mov dword [ebp - 0xc], eax
add esi, 8
push esi
lea eax, [ebp - 0xc]
mov dword [ebp - 8], ecx
push eax
mov ecx, edi
call edx
dec dword [ebp - 4]
jne 0x528d00
mov ecx, dword [esi]
mov eax, dword [ebp + 8]
mov dword [eax + 8], ecx
mov edx, dword [esi + 4]
mov dword [eax + 0xc], edx
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x14]
push eax
call fcn.00410de0
pop esi
pop ebx
mov al, 1
pop edi
mov esp, ebp
pop ebp
ret 0x14