Function at 0x10173c30
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 0xc]
sub esp, 0x30
test eax, eax
push edi
mov edi, ecx
jne 0x10173c47
mov al, 1
pop edi
add esp, 0x30
ret 0x14
push ebx
mov ebx, dword [esp + 0x40]
test ebx, ebx
jne 0x10173c6a
mov ecx, dword [esp + 0x4c]
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
add esp, 0x30
ret 0x14
mov ecx, dword [edi + 0x80]
cmp ecx, 1
ja 0x10173c97
mov ecx, dword [esp + 0x4c]
mov edx, dword [edi]
mov edx, dword [edx + 0x18]
push ecx
mov ecx, dword [esp + 0x4c]
push ecx
push eax
mov eax, dword [esp + 0x48]
push ebx
push eax
mov ecx, edi
call edx
pop ebx
pop edi
add esp, 0x30
ret 0x14
xor edx, edx
div ecx
test edx, edx
je 0x10173cb9
mov ecx, dword [esp + 0x4c]
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
add esp, 0x30
ret 0x14
mov cl, byte [0x1026e91c]
push ebp
mov byte [esp + 0x44], cl
mov ecx, dword [esp + 0x4c]
push esi
mov ebp, eax
call fcn.100f6330
mov edx, dword [esp + 0x4c]
mov ecx, dword [esp + 0x50]
mov esi, eax
lea eax, [esi + edx]
mov dword [esp + 0x4c], eax
add eax, 0x20
push eax
call fcn.1001cc40
test al, al
jne 0x10173d0a
mov ecx, dword [esp + 0x54]
mov eax, dword [ecx]
mov edx, dword [eax + 0x14]
push str.Unable_to_allocate_CBC_encrypt_output_buffer.
call edx
pop esi
pop ebp
pop ebx
xor al, al
pop edi
add esp, 0x30
ret 0x14
mov ecx, dword [esp + 0x50]
push esi
call fcn.10018050
cmp byte [esp + 0x48], 0
mov esi, eax
je 0x10173e48
mov eax, dword [esp + 0x44]
add eax, 8
cmp dword [edi + 0x80], 0
mov dword [esp + 0x10], eax
mov dword [esp + 0x44], esi
jbe 0x10173d68
mov edx, dword [edi + 0x80]
mov ecx, ebx
sub ecx, eax
mov dword [esp + 0x48], ecx
lea ecx, [esp + 0x20]
sub ecx, eax
mov dword [esp + 0x54], edx
mov edx, dword [esp + 0x48]
mov dl, byte [edx + eax]
xor dl, byte [eax]
add eax, 1
sub dword [esp + 0x54], 1
mov byte [ecx + eax - 1], dl
jne 0x10173d51
mov eax, dword [edi]
mov eax, dword [eax + 0x10]
lea ecx, [esp + 0x30]
push ecx
lea edx, [esp + 0x24]
push edx
mov ecx, edi
call eax
mov ecx, dword [edi + 0x80]
push ecx
lea edx, [esp + 0x34]
push edx
push esi
call sub.MSVCR80.dll_memcpy
mov ecx, dword [edi + 0x80]
add esp, 0xc
sub ebp, 1
lea esi, [ecx + ebx]
mov dword [esp + 0x48], ebp
je 0x10173e12
test ecx, ecx
jbe 0x10173dcf
mov ebp, dword [esp + 0x44]
lea edx, [esp + 0x20]
sub ebp, esi
mov eax, esi
sub edx, esi
mov dword [esp + 0x54], ecx
mov bl, byte [eax + ebp]
xor bl, byte [eax]
add eax, 1
sub dword [esp + 0x54], 1
mov byte [edx + eax - 1], bl
jne 0x10173db8
mov ebp, dword [esp + 0x48]
mov ebx, dword [esp + 0x44]
mov eax, dword [edi]
mov eax, dword [eax + 0x10]
add ebx, ecx
lea ecx, [esp + 0x30]
push ecx
lea edx, [esp + 0x24]
push edx
mov ecx, edi
mov dword [esp + 0x4c], ebx
call eax
mov ecx, dword [edi + 0x80]
push ecx
lea edx, [esp + 0x34]
push edx
push ebx
call sub.MSVCR80.dll_memcpy
mov ecx, dword [edi + 0x80]
add esp, 0xc
add esi, ecx
sub ebp, 1
mov dword [esp + 0x48], ebp
jne 0x10173da2
xor ecx, ecx
cmp dword [edi + 0x80], ecx
jbe 0x10173f6b
mov eax, dword [esp + 0x10]
mov esi, dword [esp + 0x44]
sub esi, eax
lea ebx, [ebx]
mov dl, byte [esi + eax]
mov byte [eax], dl
add ecx, 1
add eax, 1
cmp ecx, dword [edi + 0x80]
jb 0x10173e30
jmp 0x10173f6b
mov eax, dword [edi + 0x80]
cmp eax, 0x10
jne 0x10173efd
mov eax, dword [esp + 0x44]
mov ecx, dword [eax + 8]
xor ecx, dword [ebx]
mov edx, dword [eax + 0xc]
xor edx, dword [ebx + 4]
mov dword [esp + 0x10], ecx
mov ecx, dword [ebx + 8]
xor ecx, dword [eax + 0x10]
mov dword [esp + 0x14], edx
mov edx, dword [ebx + 0xc]
xor edx, dword [eax + 0x14]
mov eax, dword [edi]
mov dword [esp + 0x18], ecx
push esi
lea ecx, [esp + 0x14]
mov dword [esp + 0x20], edx
mov edx, dword [eax + 0x10]
push ecx
mov ecx, edi
call edx
add ebx, 0x10
sub ebp, 1
je 0x10173ee0
lea esp, [esp]
mov eax, dword [esi]
xor eax, dword [ebx]
mov edx, dword [esi + 8]
xor edx, dword [ebx + 8]
mov ecx, dword [esi + 4]
xor ecx, dword [ebx + 4]
mov dword [esp + 0x10], eax
mov eax, dword [esi + 0xc]
xor eax, dword [ebx + 0xc]
mov dword [esp + 0x18], edx
mov edx, dword [edi]
mov edx, dword [edx + 0x10]
mov dword [esp + 0x1c], eax
add esi, 0x10
push esi
lea eax, [esp + 0x14]
mov dword [esp + 0x18], ecx
push eax
mov ecx, edi
call edx
add ebx, 0x10
sub ebp, 1
jne 0x10173ea0
mov ecx, dword [esi]
mov eax, dword [esp + 0x44]
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 0x10173f6b
cmp eax, 8
jne 0x10173f79
mov eax, dword [esp + 0x44]
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 [esp + 0x10], ecx
push esi
lea ecx, [esp + 0x14]
mov dword [esp + 0x18], edx
mov edx, dword [eax + 0x10]
push ecx
mov ecx, edi
call edx
add ebx, 8
sub ebp, 1
je 0x10173f5c
mov eax, dword [esi]
xor eax, dword [ebx]
mov ecx, dword [esi + 4]
xor ecx, dword [ebx + 4]
mov edx, dword [edi]
mov edx, dword [edx + 0x10]
mov dword [esp + 0x10], eax
add esi, 8
push esi
lea eax, [esp + 0x14]
mov dword [esp + 0x18], ecx
push eax
mov ecx, edi
call edx
add ebx, 8
sub ebp, 1
jne 0x10173f30
mov ecx, dword [esi]
mov eax, dword [esp + 0x44]
mov dword [eax + 8], ecx
mov edx, dword [esi + 4]
mov dword [eax + 0xc], edx
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x50]
push eax
call fcn.10018270
pop esi
pop ebp
pop ebx
mov al, 1
pop edi
add esp, 0x30
ret 0x14