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

Disassembly:
sub esp, 0x78
mov eax, dword [0x1026d48c]
xor eax, esp
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0x80]
push ebx
mov ebx, dword [esp + 0x88]
test ebx, ebx
push ebp
mov ebp, dword [esp + 0x84]
mov edx, ecx
mov ecx, dword [esp + 0x94]
push esi
mov esi, dword [esp + 0x94]
mov dword [esp + 0x40], edx
mov dword [esp + 0x14], ebp
mov dword [esp + 0x3c], eax
mov dword [esp + 0x48], esi
mov dword [esp + 0x18], ecx
jne 0x10175ab4
pop esi
pop ebp
mov al, 1
pop ebx
mov ecx, dword [esp + 0x74]
xor ecx, esp
call fcn.1018f87e
add esp, 0x78
ret 0x14
test eax, eax
jne 0x10175ada
mov eax, dword [ecx]
mov edx, dword [eax + 0x14]
push str.NULL_passed_to_XTC_decryptor
call edx
pop esi
pop ebp
xor al, al
pop ebx
mov ecx, dword [esp + 0x74]
xor ecx, esp
call fcn.1018f87e
add esp, 0x78
ret 0x14
cmp dword [edx + 8], 2
je 0x10175b02
mov eax, dword [ecx]
mov edx, dword [eax + 0x14]
push str.XTS_mode_is_only_possible_with_XTC_encryption.
call edx
pop esi
pop ebp
xor al, al
pop ebx
mov ecx, dword [esp + 0x74]
xor ecx, esp
call fcn.1018f87e
add esp, 0x78
ret 0x14
mov eax, ebx
shr eax, 4
mov dword [esp + 0x10], eax
jne 0x10175b2f
mov eax, dword [ecx]
mov edx, dword [eax + 0x14]
push str.XTS_mode_requires_at_least_1_full_block__16_bytes_or_more_
call edx
pop esi
pop ebp
xor al, al
pop ebx
mov ecx, dword [esp + 0x74]
xor ecx, esp
call fcn.1018f87e
add esp, 0x78
ret 0x14
push edi
mov ecx, esi
call fcn.100f6330
mov edi, eax
lea eax, [edi + ebx]
mov dword [esp + 0x50], eax
add eax, 0x20
push eax
mov ecx, esi
call fcn.1001cc40
test al, al
jne 0x10175b76
mov ecx, dword [esp + 0x1c]
mov eax, dword [ecx]
mov edx, dword [eax + 0x14]
push str.Unable_to_allocate_XTC_decrypt_output_buffer.
call edx
pop edi
pop esi
pop ebp
xor al, al
pop ebx
mov ecx, dword [esp + 0x74]
xor ecx, esp
call fcn.1018f87e
add esp, 0x78
ret 0x14
push edi
mov ecx, esi
call fcn.10018050
mov esi, eax
call fcn.100eee40
cmp ebx, 0x10
mov byte [esp + 0x48], al
jbe 0x10175ee3
test bl, 0xf
je 0x10175ee3
sub dword [esp + 0x14], 1
mov byte [esp + 0x13], 1
cmp dword [esp + 0x14], 0
mov edi, dword [esp + 0x40]
mov dword [esp + 0x1c], esi
je 0x10175ca0
mov eax, dword [edi]
mov ecx, dword [edi + 4]
mov edx, dword [edi + 8]
mov dword [esp + 0x30], eax
mov eax, dword [edi + 0xc]
mov dword [esp + 0x34], ecx
mov dword [esp + 0x3c], eax
lea ecx, [ebp + 0x559]
mov dword [esp + 0x38], edx
lea eax, [esp + 0x31]
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 0x10175be2
mov ecx, dword [esp + 0x44]
mov eax, dword [ecx]
mov eax, dword [eax + 0x14]
lea edx, [esp + 0x20]
push edx
lea edx, [esp + 0x34]
push edx
call eax
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x21]
add ecx, 0x559
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 0x10175c30
mov eax, dword [esp + 0x20]
mov dword [esi], eax
mov ecx, dword [esp + 0x24]
mov dword [esi + 4], ecx
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x48]
mov dword [esi + 8], edx
mov eax, dword [esp + 0x2c]
mov dword [esi + 0xc], eax
mov eax, dword [esp + 0x18]
add eax, 0x558
push eax
push ecx
call fcn.10174ee0
mov ebp, dword [esp + 0x20]
add esp, 8
add edi, 0x10
add esi, 0x10
sub dword [esp + 0x14], 1
jne 0x10175bb8
mov dword [esp + 0x1c], esi
cmp byte [esp + 0x13], 0
je 0x10175ebb
mov ecx, dword [edi + 8]
mov edx, dword [edi]
mov eax, dword [edi + 4]
lea esi, [ebp + 0x558]
mov dword [esp + 0x38], ecx
mov ecx, dword [esi + 4]
mov dword [esp + 0x30], edx
mov edx, dword [edi + 0xc]
mov dword [esp + 0x34], eax
mov eax, dword [esi]
mov dword [esp + 0x58], ecx
mov ecx, dword [esp + 0x48]
mov dword [esp + 0x3c], edx
mov edx, dword [esi + 8]
mov dword [esp + 0x54], eax
mov eax, dword [esi + 0xc]
push esi
and ebx, 0xf
push ecx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x64], edx
mov dword [esp + 0x68], eax
call fcn.10174ee0
add esp, 8
add ebp, 0x559
lea eax, [esp + 0x31]
mov ecx, ebp
mov edx, 4
lea ecx, [ecx]
movzx ebx, byte [ecx - 1]
xor byte [eax - 1], bl
movzx ebx, byte [ecx]
xor byte [eax], bl
movzx ebx, byte [ecx + 1]
xor byte [eax + 1], bl
movzx ebx, byte [ecx + 2]
xor byte [eax + 2], bl
add ecx, 4
add eax, 4
sub edx, 1
jne 0x10175d10
mov ecx, dword [esp + 0x44]
mov edx, dword [ecx]
mov edx, dword [edx + 0x14]
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x34]
push eax
call edx
lea eax, [esp + 0x21]
mov ecx, ebp
mov edx, 4
movzx ebx, byte [ecx - 1]
xor byte [eax - 1], bl
movzx ebx, byte [ecx]
xor byte [eax], bl
movzx ebx, byte [ecx + 1]
xor byte [eax + 1], bl
movzx ebx, byte [ecx + 2]
xor byte [eax + 2], bl
add ecx, 4
add eax, 4
sub edx, 1
jne 0x10175d55
mov ebx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x28]
mov dword [esp + 0x70], ebx
mov ebx, dword [esp + 0x54]
mov dword [esi], ebx
mov ebx, dword [esp + 0x58]
mov dword [esi + 4], ebx
mov ebx, dword [esp + 0x5c]
mov dword [esi + 8], ebx
mov ebx, dword [esp + 0x60]
mov dword [esi + 0xc], ebx
mov ebx, dword [esp + 0x40]
push ebx
mov dword [esp + 0x6c], ecx
mov dword [esp + 0x5c], ecx
add edi, 0x10
mov dword [esp + 0x68], eax
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x30]
lea ecx, [esp + 0x58]
push edi
push ecx
mov dword [esp + 0x78], edx
mov dword [esp + 0x68], edx
mov dword [esp + 0x6c], eax
call sub.MSVCR80.dll_memcpy
push ebx
lea edx, [esp + 0x74]
push edx
lea eax, [esp + 0x88]
push eax
call sub.MSVCR80.dll_memcpy
mov ecx, dword [esp + 0x6c]
mov eax, dword [esp + 0x74]
mov edx, dword [esp + 0x70]
mov dword [esp + 0x48], ecx
mov ecx, dword [esp + 0x78]
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], ecx
add esp, 0x18
mov dword [esp + 0x34], edx
lea eax, [esp + 0x31]
mov ecx, ebp
mov esi, 4
lea ecx, [ecx]
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 0x10175e20
mov ecx, dword [esp + 0x44]
mov eax, dword [ecx]
mov eax, dword [eax + 0x14]
lea edx, [esp + 0x20]
push edx
lea edx, [esp + 0x34]
push edx
call eax
lea eax, [esp + 0x21]
mov ecx, ebp
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 0x10175e65
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
mov dword [eax], ecx
mov edx, dword [esp + 0x24]
mov dword [eax + 4], edx
mov ecx, dword [esp + 0x28]
mov dword [eax + 8], ecx
mov edx, dword [esp + 0x2c]
push ebx
lea ecx, [esp + 0x78]
mov dword [eax + 0xc], edx
push ecx
add eax, 0x10
push eax
call sub.MSVCR80.dll_memcpy
add esp, 0xc
mov edx, dword [esp + 0x50]
mov ecx, dword [esp + 0x4c]
push edx
call fcn.10018270
mov ecx, dword [esp + 0x84]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
mov al, 1
call fcn.1018f87e
add esp, 0x78
ret 0x14
mov byte [esp + 0x13], 0
jmp 0x10175ba5