Function at 0x10174f70
Capabilities:
Encode data using xor
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x74
mov eax, dword [0x1026d48c]
xor eax, esp
mov dword [esp + 0x70], eax
mov eax, dword [esp + 0x78]
push ebx
mov ebx, dword [esp + 0x84]
test ebx, ebx
push ebp
mov ebp, dword [esp + 0x90]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x8c]
push esi
mov esi, dword [esp + 0x88]
mov dword [esp + 0x38], ecx
mov dword [esp + 0x3c], eax
jne 0x10174fc7
pop esi
pop ebp
mov al, 1
pop ebx
mov ecx, dword [esp + 0x70]
xor ecx, esp
call fcn.1018f87e
add esp, 0x74
ret 0x14
test esi, esi
jne 0x10174ff0
mov edx, dword [ebp]
mov eax, dword [edx + 0x14]
push str.NULL_passed_to_XTS_encryptor
mov ecx, ebp
call eax
pop esi
pop ebp
xor al, al
pop ebx
mov ecx, dword [esp + 0x70]
xor ecx, esp
call fcn.1018f87e
add esp, 0x74
ret 0x14
cmp dword [ecx + 8], 2
je 0x1017501b
mov edx, dword [ebp]
mov eax, dword [edx + 0x14]
push str.XTS_mode_is_only_possible_with_AES_encryption.
mov ecx, ebp
call eax
pop esi
pop ebp
xor al, al
pop ebx
mov ecx, dword [esp + 0x70]
xor ecx, esp
call fcn.1018f87e
add esp, 0x74
ret 0x14
mov ecx, ebx
shr ecx, 4
mov dword [esp + 0x10], ecx
jne 0x1017504b
mov edx, dword [ebp]
mov eax, dword [edx + 0x14]
push str.XTS_mode_requires_at_least_1_full_block__16_bytes_or_more_
mov ecx, ebp
call eax
pop esi
pop ebp
xor al, al
pop ebx
mov ecx, dword [esp + 0x70]
xor ecx, esp
call fcn.1018f87e
add esp, 0x74
ret 0x14
push edi
mov ecx, eax
call fcn.100f6330
mov ecx, dword [esp + 0x40]
mov edi, eax
lea eax, [edi + ebx]
mov dword [esp + 0x4c], eax
add eax, 0x20
push eax
call fcn.1001cc40
test al, al
jne 0x10175093
mov edx, dword [ebp]
mov eax, dword [edx + 0x14]
push str.Unable_to_allocate_XTC_encrypt_output_buffer.
mov ecx, ebp
call eax
pop edi
pop esi
pop ebp
xor al, al
pop ebx
mov ecx, dword [esp + 0x70]
xor ecx, esp
call fcn.1018f87e
add esp, 0x74
ret 0x14
mov ecx, dword [esp + 0x40]
push edi
call fcn.10018050
mov ebp, eax
call fcn.100eee40
cmp ebx, 0x10
mov byte [esp + 0x48], al
jbe 0x101753de
test bl, 0xf
je 0x101753de
sub dword [esp + 0x14], 1
mov byte [esp + 0x13], 1
cmp dword [esp + 0x14], 0
mov dword [esp + 0x44], ebp
je 0x101751bd
mov ecx, dword [esi]
mov eax, dword [esi + 8]
mov edx, dword [esi + 4]
mov dword [esp + 0x2c], ecx
mov ecx, dword [esi + 0xc]
mov dword [esp + 0x38], ecx
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x34], eax
mov dword [esp + 0x30], edx
lea eax, [esp + 0x2d]
add ecx, 0x559
mov edi, 4
movzx edx, byte [ecx - 1]
xor byte [eax - 1], dl
movzx edx, byte [ecx]
xor byte [eax], dl
movzx edx, byte [ecx + 1]
xor byte [eax + 1], dl
movzx edx, byte [ecx + 2]
xor byte [eax + 2], dl
add ecx, 4
add eax, 4
sub edi, 1
jne 0x10175101
mov ecx, dword [esp + 0x3c]
mov eax, dword [ecx]
mov eax, dword [eax + 0x10]
lea edx, [esp + 0x1c]
push edx
lea edx, [esp + 0x30]
push edx
call eax
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x1d]
add ecx, 0x559
mov edi, 4
mov edi, edi
movzx edx, byte [ecx - 1]
xor byte [eax - 1], dl
movzx edx, byte [ecx]
xor byte [eax], dl
movzx edx, byte [ecx + 1]
xor byte [eax + 1], dl
movzx edx, byte [ecx + 2]
xor byte [eax + 2], dl
add ecx, 4
add eax, 4
sub edi, 1
jne 0x10175150
mov eax, dword [esp + 0x1c]
mov dword [ebp], eax
mov ecx, dword [esp + 0x20]
mov dword [ebp + 4], ecx
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x48]
mov dword [ebp + 8], edx
mov eax, dword [esp + 0x28]
mov dword [ebp + 0xc], eax
mov eax, dword [esp + 0x18]
add eax, 0x558
push eax
push ecx
call fcn.10174ee0
add esp, 8
add esi, 0x10
add ebp, 0x10
sub dword [esp + 0x14], 1
jne 0x101750d3
mov dword [esp + 0x44], ebp
cmp byte [esp + 0x13], 0
je 0x101753b6
mov edx, dword [esi]
mov eax, dword [esi + 4]
mov ecx, dword [esi + 8]
mov edi, dword [esp + 0x18]
and ebx, 0xf
mov dword [esp + 0x2c], edx
mov edx, dword [esi + 0xc]
add edi, 0x559
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x38], edx
lea eax, [esp + 0x2d]
mov ecx, edi
mov ebp, 4
nop
movzx edx, byte [ecx - 1]
xor byte [eax - 1], dl
movzx edx, byte [ecx]
xor byte [eax], dl
movzx edx, byte [ecx + 1]
xor byte [eax + 1], dl
movzx edx, byte [ecx + 2]
xor byte [eax + 2], dl
add ecx, 4
add eax, 4
sub ebp, 1
jne 0x10175200
mov ecx, dword [esp + 0x3c]
mov eax, dword [ecx]
mov eax, dword [eax + 0x10]
lea edx, [esp + 0x1c]
push edx
lea edx, [esp + 0x30]
push edx
call eax
lea eax, [esp + 0x1d]
mov ecx, edi
mov ebp, 4
movzx edx, byte [ecx - 1]
xor byte [eax - 1], dl
movzx edx, byte [ecx]
xor byte [eax], dl
movzx edx, byte [ecx + 1]
xor byte [eax + 1], dl
movzx edx, byte [ecx + 2]
xor byte [eax + 2], dl
add ecx, 4
add eax, 4
sub ebp, 1
jne 0x10175245
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x18]
mov ebx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x20]
mov ecx, dword [esp + 0x28]
add edx, 0x558
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x48]
push edx
push eax
mov dword [esp + 0x68], ebx
mov dword [esp + 0x6c], ebp
mov dword [esp + 0x74], ecx
call fcn.10174ee0
mov ecx, dword [esp + 0x1c]
push ecx
lea edx, [esp + 0x6c]
push edx
lea eax, [esp + 0x80]
push eax
call sub.MSVCR80.dll_memcpy
mov ecx, dword [esp + 0x7c]
mov edx, dword [esp + 0x80]
mov dword [esp + 0x68], ebp
mov ebp, dword [esp + 0x28]
push ebp
add esi, 0x10
lea eax, [esp + 0x68]
push esi
push eax
mov dword [esp + 0x70], ebx
mov dword [esp + 0x78], ecx
mov dword [esp + 0x7c], edx
call sub.MSVCR80.dll_memcpy
mov ecx, dword [esp + 0x70]
mov eax, dword [esp + 0x78]
mov edx, dword [esp + 0x74]
mov dword [esp + 0x4c], ecx
mov ecx, dword [esp + 0x7c]
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], ecx
add esp, 0x20
mov dword [esp + 0x30], edx
lea eax, [esp + 0x2d]
mov ecx, edi
mov esi, 4
movzx edx, byte [ecx - 1]
xor byte [eax - 1], dl
movzx edx, byte [ecx]
xor byte [eax], dl
movzx edx, byte [ecx + 1]
xor byte [eax + 1], dl
movzx edx, byte [ecx + 2]
xor byte [eax + 2], dl
add ecx, 4
add eax, 4
sub esi, 1
jne 0x10175312
mov ecx, dword [esp + 0x3c]
mov eax, dword [ecx]
mov eax, dword [eax + 0x10]
lea edx, [esp + 0x1c]
push edx
lea edx, [esp + 0x30]
push edx
call eax
lea eax, [esp + 0x1d]
mov ecx, edi
mov esi, 4
jmp 0x10175360
movzx edx, byte [ecx - 1]
xor byte [eax - 1], dl
movzx edx, byte [ecx]
xor byte [eax], dl
movzx edx, byte [ecx + 1]
xor byte [eax + 1], dl
movzx edx, byte [ecx + 2]
xor byte [eax + 2], dl
add ecx, 4
add eax, 4
sub esi, 1
jne 0x10175360
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x44]
mov dword [eax], ecx
mov edx, dword [esp + 0x20]
mov dword [eax + 4], edx
mov ecx, dword [esp + 0x24]
mov dword [eax + 8], ecx
mov edx, dword [esp + 0x28]
push ebp
lea ecx, [esp + 0x74]
mov dword [eax + 0xc], edx
push ecx
add eax, 0x10
push eax
call sub.MSVCR80.dll_memcpy
add esp, 0xc
mov edx, dword [esp + 0x4c]
mov ecx, dword [esp + 0x40]
push edx
call fcn.10018270
mov ecx, dword [esp + 0x80]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
mov al, 1
call fcn.1018f87e
add esp, 0x74
ret 0x14
mov byte [esp + 0x13], 0
jmp 0x101750c4