Function at 0x528d50
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push esi
push edi
mov edi, dword [ebp + 0x10]
mov esi, ecx
test edi, edi
jne 0x528d6b
pop edi
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret 0x14
push ebx
mov ebx, dword [ebp + 0xc]
test ebx, ebx
jne 0x528d8d
mov ecx, dword [ebp + 0x18]
mov eax, dword [ecx]
mov edx, dword [eax + 0x14]
push str.NULL_passed_to_CBC_decryptor
call edx
pop ebx
pop edi
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 0x14
mov ecx, dword [esi + 0x80]
cmp ecx, 1
ja 0x528db8
mov ecx, dword [ebp + 0x18]
mov edx, dword [ebp + 0x14]
mov eax, dword [esi]
push ecx
mov ecx, dword [ebp + 8]
push edx
mov edx, dword [eax + 0x1c]
push edi
push ebx
push ecx
mov ecx, esi
call edx
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x14
xor edx, edx
mov eax, edi
div ecx
test edx, edx
je 0x528dfe
mov ebx, dword [ebp + 0x18]
mov eax, dword [ebx]
mov edx, dword [eax + 0x14]
push str.CBC_decrypt_input_not_a_multiple_of_the_cipher_block_size.
mov ecx, ebx
call edx
push edi
push str.inputLen
mov ecx, ebx
call fcn.0044e930
mov eax, dword [esi + 0x80]
push eax
push str.cipherBlockSize
mov ecx, ebx
call fcn.0044e930
pop ebx
pop edi
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 0x14
mov cl, byte [0x6775b2]
mov byte [ebp + 0xf], cl
mov ecx, dword [ebp + 0x14]
mov dword [ebp - 4], eax
call fcn.00410b60
mov edx, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x14]
mov edi, eax
lea eax, [edi + edx]
mov dword [ebp + 0x10], eax
add eax, 0x20
push eax
call fcn.004156b0
test al, al
jne 0x528e47
mov ecx, dword [ebp + 0x18]
mov eax, dword [ecx]
mov edx, dword [eax + 0x14]
push str.Unable_to_allocate_CBC_decrypt_output_buffer.
call edx
pop ebx
pop edi
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 0x14
mov ecx, dword [ebp + 0x14]
push edi
call fcn.00410bd0
cmp byte [ebp + 0xf], 0
mov edi, eax
je 0x528f89
mov ecx, dword [esi + 0x80]
mov eax, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x34]
add eax, 8
push ebx
push edx
mov dword [ebp - 8], eax
mov dword [ebp + 0xc], ebx
call sub.MSVCR100.dll_memcpy
mov eax, dword [esi]
mov eax, dword [eax + 0x14]
add esp, 0xc
lea ecx, [ebp - 0x24]
push ecx
lea edx, [ebp - 0x34]
push edx
mov ecx, esi
call eax
xor eax, eax
mov dword [ebp + 8], eax
cmp dword [esi + 0x80], eax
jbe 0x528ece
mov ecx, dword [ebp - 8]
lea edx, [ebp - 0x24]
sub ecx, edx
mov dword [ebp + 0x18], ecx
mov ecx, edi
sub ecx, edx
lea esp, [esp]
mov edx, dword [ebp + 0x18]
lea eax, [ebp + eax - 0x24]
mov dl, byte [edx + eax]
xor dl, byte [eax]
mov byte [ecx + eax], dl
mov eax, dword [ebp + 8]
inc eax
mov dword [ebp + 8], eax
cmp eax, dword [esi + 0x80]
jb 0x528eb0
mov eax, dword [esi + 0x80]
add ebx, eax
add eax, edi
dec dword [ebp - 4]
mov edi, dword [ebp + 0xc]
mov dword [ebp + 0x18], ebx
mov dword [ebp + 8], eax
je 0x528f54
mov eax, dword [esi + 0x80]
lea esp, [esp]
push eax
lea eax, [ebp - 0x34]
push ebx
push eax
call sub.MSVCR100.dll_memcpy
mov edx, dword [esi]
mov edx, dword [edx + 0x14]
add esp, 0xc
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x34]
push ecx
mov ecx, esi
call edx
mov eax, dword [esi + 0x80]
xor ecx, ecx
test eax, eax
je 0x528f3f
mov edx, dword [ebp + 8]
lea eax, [ebp - 0x24]
sub edi, eax
sub edx, eax
lea eax, [ebp + ecx - 0x24]
mov bl, byte [edi + eax]
xor bl, byte [eax]
inc ecx
mov byte [edx + eax], bl
mov eax, dword [esi + 0x80]
cmp ecx, eax
jb 0x528f25
mov ebx, dword [ebp + 0x18]
mov ecx, dword [esi + 0x80]
add dword [ebp + 8], ecx
mov edi, ebx
add ebx, ecx
dec dword [ebp - 4]
mov dword [ebp + 0x18], ebx
jne 0x528ef0
xor ecx, ecx
cmp dword [esi + 0x80], ecx
jbe 0x528f72
mov eax, dword [ebp - 8]
sub edi, eax
mov dl, byte [edi + eax]
mov byte [eax], dl
inc ecx
inc eax
cmp ecx, dword [esi + 0x80]
jb 0x528f63
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x14]
push eax
call fcn.00410de0
pop ebx
pop edi
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret 0x14
mov eax, dword [esi + 0x80]
cmp eax, 0x10
jne 0x529057
mov edx, dword [esi]
mov edx, dword [edx + 0x14]
lea eax, [ebp - 0x14]
push eax
push ebx
mov ecx, esi
call edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 0xc]
xor ecx, dword [ebp - 0x14]
xor edx, dword [ebp - 0x10]
mov dword [edi], ecx
mov dword [edi + 4], edx
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0x14]
xor ecx, dword [ebp - 0xc]
xor edx, dword [ebp - 8]
mov dword [edi + 8], ecx
mov dword [edi + 0xc], edx
lea ecx, [ebx + 0x10]
add edi, 0x10
dec dword [ebp - 4]
mov dword [ebp + 0x18], ecx
je 0x529029
lea ebx, [ebx]
mov ecx, dword [ebp + 0x18]
mov edx, dword [esi]
mov edx, dword [edx + 0x14]
lea eax, [ebp - 0x14]
push eax
push ecx
mov ecx, esi
call edx
mov eax, dword [ebx]
mov ecx, dword [ebx + 4]
xor eax, dword [ebp - 0x14]
xor ecx, dword [ebp - 0x10]
mov dword [edi], eax
mov dword [edi + 4], ecx
mov eax, dword [ebx + 0xc]
xor eax, dword [ebp - 8]
mov edx, dword [ebx + 8]
xor edx, dword [ebp - 0xc]
mov dword [edi + 0xc], eax
mov eax, dword [ebp + 0x18]
mov dword [edi + 8], edx
mov ebx, eax
add eax, 0x10
add edi, 0x10
dec dword [ebp - 4]
mov dword [ebp + 0x18], eax
jne 0x528fe0
mov eax, dword [ebp + 8]
mov ecx, dword [ebx]
mov dword [eax + 8], ecx
mov edx, dword [ebx + 4]
mov dword [eax + 0xc], edx
mov ecx, dword [ebx + 8]
mov dword [eax + 0x10], ecx
mov edx, dword [ebx + 0xc]
mov ecx, dword [ebp + 0x14]
mov dword [eax + 0x14], edx
mov eax, dword [ebp + 0x10]
push eax
call fcn.00410de0
pop ebx
pop edi
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret 0x14
cmp eax, 8
jne 0x5290de
mov edx, dword [esi]
mov edx, dword [edx + 0x14]
lea eax, [ebp - 0xc]
push eax
push ebx
mov ecx, esi
call edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 0xc]
xor ecx, dword [ebp - 0xc]
xor edx, dword [ebp - 8]
mov dword [edi], ecx
mov dword [edi + 4], edx
lea ecx, [ebx + 8]
add edi, 8
dec dword [ebp - 4]
mov dword [ebp + 0x18], ecx
je 0x5290c7
mov ecx, dword [ebp + 0x18]
mov edx, dword [esi]
mov edx, dword [edx + 0x14]
lea eax, [ebp - 0xc]
push eax
push ecx
mov ecx, esi
call edx
mov eax, dword [ebx]
xor eax, dword [ebp - 0xc]
mov ecx, dword [ebx + 4]
xor ecx, dword [ebp - 8]
mov dword [edi], eax
mov eax, dword [ebp + 0x18]
mov dword [edi + 4], ecx
mov ebx, eax
add eax, 8
add edi, 8
dec dword [ebp - 4]
mov dword [ebp + 0x18], eax
jne 0x529090
mov eax, dword [ebp + 8]
mov edx, dword [ebx]
mov dword [eax + 8], edx
mov ecx, dword [ebx + 4]
mov edx, dword [ebp + 0x10]
mov dword [eax + 0xc], ecx
mov ecx, dword [ebp + 0x14]
push edx
call fcn.00410de0
pop ebx
pop edi
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret 0x14