Function at 0x10017460
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 8]
sub esp, 0xbc
push ebx
push ebp
push esi
xor esi, esi
add edx, 2
push edi
movzx ecx, byte [edx - 2]
lea edx, [edx + 4]
movzx eax, byte [edx - 5]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx - 4]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx - 3]
shl ecx, 8
or ecx, eax
mov dword [esp + esi*4 + 0x4c], ecx
inc esi
cmp esi, 0x10
jb 0x10017473
mov eax, dword [esp + 0xd0]
mov dword [esp + 0x3c], 0xa4093822
mov dword [esp + 0x44], 0x82efa98
mov ecx, dword [eax + 0x14]
mov edi, dword [eax]
mov ebx, dword [eax + 8]
mov ebp, dword [eax + 0xc]
mov edx, dword [eax + 0x10]
mov dword [esp + 0x14], ecx
mov ecx, dword [eax + 0x18]
mov dword [esp + 0x10], ecx
mov ecx, dword [eax + 0x1c]
mov dword [esp + 0x1c], ecx
mov ecx, dword [eax + 0x20]
xor ecx, 0x243f6a88
mov dword [esp + 0x2c], edi
mov edi, dword [eax + 4]
mov dword [esp + 0x48], ecx
mov ecx, dword [eax + 0x24]
xor ecx, 0x85a308d3
mov dword [esp + 0x28], ebx
mov dword [esp + 0x40], ecx
mov ebx, 0x299f31d0
mov ecx, dword [eax + 0x28]
xor ecx, 0x13198a2e
mov dword [esp + 0x24], ebp
mov dword [esp + 0x30], ecx
mov ebp, 0xec4e6c89
mov ecx, dword [eax + 0x2c]
xor ecx, 0x3707344
mov dword [esp + 0x34], edi
cmp dword [eax + 0x3c], 0
mov dword [esp + 0x18], edx
mov dword [esp + 0x38], ecx
jne 0x1001755b
mov ebx, dword [eax + 0x30]
mov ecx, ebx
mov ebp, dword [eax + 0x34]
xor ecx, 0xa4093822
mov dword [esp + 0x3c], ecx
xor ebx, 0x299f31d0
mov ecx, ebp
xor ecx, 0x82efa98
xor ebp, 0xec4e6c89
mov dword [esp + 0x44], ecx
mov eax, dword [esp + 0x48]
xor ecx, ecx
mov dword [esp + 0x20], ecx
nop word [eax + eax]
movzx edi, byte [ecx + 0x1004a7a1]
movzx esi, byte [ecx + 0x1004a7a0]
mov ecx, dword [edi*4 + 0x1004a880]
xor ecx, dword [esp + esi*4 + 0x4c]
add ecx, edx
mov edx, dword [esp + 0x2c]
add edx, ecx
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x2c], edx
xor edx, dword [esp + 0x3c]
rol edx, 0x10
add eax, edx
xor ecx, eax
ror ecx, 0xc
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + edi*4 + 0x4c]
xor ecx, dword [esi*4 + 0x1004a880]
mov esi, dword [esp + 0x18]
add ecx, esi
mov edi, dword [esp + 0x2c]
add edi, ecx
mov ecx, edi
mov dword [esp + 0x2c], edi
xor ecx, edx
mov edx, dword [esp + 0x34]
ror ecx, 8
add eax, ecx
mov dword [esp + 0x3c], ecx
mov ecx, dword [esp + 0x20]
xor esi, eax
ror esi, 7
mov dword [esp + 0x18], esi
movzx esi, byte [ecx + 0x1004a7a2]
movzx edi, byte [ecx + 0x1004a7a3]
mov ecx, dword [esp + esi*4 + 0x4c]
xor ecx, dword [edi*4 + 0x1004a880]
add ecx, dword [esp + 0x14]
add edx, ecx
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x34], edx
xor edx, ebx
mov ebx, dword [esp + 0x40]
rol edx, 0x10
add ebx, edx
xor ecx, ebx
ror ecx, 0xc
mov dword [esp + 0x14], ecx
mov ecx, dword [esi*4 + 0x1004a880]
xor ecx, dword [esp + edi*4 + 0x4c]
mov esi, dword [esp + 0x14]
add ecx, esi
mov edi, dword [esp + 0x34]
add edi, ecx
mov ecx, edi
mov dword [esp + 0x34], edi
xor ecx, edx
mov edx, dword [esp + 0x28]
ror ecx, 8
add ebx, ecx
mov dword [esp + 0x48], ecx
mov ecx, dword [esp + 0x20]
xor esi, ebx
ror esi, 7
mov dword [esp + 0x14], esi
mov dword [esp + 0x40], ebx
movzx esi, byte [ecx + 0x1004a7a4]
movzx edi, byte [ecx + 0x1004a7a5]
mov ebx, dword [esp + 0x10]
mov ecx, dword [esp + esi*4 + 0x4c]
xor ecx, dword [edi*4 + 0x1004a880]
add ecx, ebx
add edx, ecx
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x28], edx
xor edx, dword [esp + 0x44]
rol edx, 0x10
add ecx, edx
xor ebx, ecx
mov dword [esp + 0x30], ecx
ror ebx, 0xc
mov dword [esp + 0x10], ebx
mov ecx, dword [esi*4 + 0x1004a880]
xor ecx, dword [esp + edi*4 + 0x4c]
add ecx, ebx
mov ebx, dword [esp + 0x28]
add ebx, ecx
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x28], ebx
xor ebx, edx
mov edx, dword [esp + 0x10]
ror ebx, 8
add ecx, ebx
xor edx, ecx
mov dword [esp + 0x30], ecx
mov ecx, dword [esp + 0x20]
ror edx, 7
mov dword [esp + 0x10], edx
mov edx, dword [esp + 0x24]
movzx esi, byte [ecx + 0x1004a7a6]
movzx edi, byte [ecx + 0x1004a7a7]
mov ecx, dword [esp + esi*4 + 0x4c]
xor ecx, dword [edi*4 + 0x1004a880]
add ecx, dword [esp + 0x1c]
add edx, ecx
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x24], edx
xor edx, ebp
mov ebp, dword [esp + 0x1c]
rol edx, 0x10
add ecx, edx
xor ebp, ecx
mov dword [esp + 0x38], ecx
mov ecx, dword [esi*4 + 0x1004a880]
xor ecx, dword [esp + edi*4 + 0x4c]
ror ebp, 0xc
add ecx, ebp
mov dword [esp + 0x1c], ebp
mov ebp, dword [esp + 0x24]
add ebp, ecx
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x24], ebp
xor ebp, edx
mov edx, dword [esp + 0x1c]
ror ebp, 8
add ecx, ebp
xor edx, ecx
mov dword [esp + 0x38], ecx
mov ecx, dword [esp + 0x20]
ror edx, 7
mov dword [esp + 0x1c], edx
mov edx, dword [esp + 0x24]
movzx esi, byte [ecx + 0x1004a7ae]
movzx edi, byte [ecx + 0x1004a7af]
mov ecx, dword [esp + esi*4 + 0x4c]
xor ecx, dword [edi*4 + 0x1004a880]
add ecx, dword [esp + 0x18]
add edx, ecx
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x24], edx
xor edx, ebx
mov ebx, dword [esp + 0x40]
rol edx, 0x10
add ebx, edx
xor ecx, ebx
ror ecx, 0xc
mov dword [esp + 0x18], ecx
mov ecx, dword [esi*4 + 0x1004a880]
xor ecx, dword [esp + edi*4 + 0x4c]
mov esi, dword [esp + 0x18]
add ecx, esi
mov edi, dword [esp + 0x24]
add edi, ecx
mov ecx, edi
mov dword [esp + 0x24], edi
xor ecx, edx
mov dword [esp + 0x98], edi
ror ecx, 8
add ebx, ecx
mov dword [esp + 0x44], ecx
mov dword [esp + 0xc4], ecx
mov dword [esp + 0x40], ebx
mov dword [esp + 0xb0], ebx
mov ecx, dword [esp + 0x20]
xor esi, ebx
mov ebx, dword [esp + 0x1c]
mov edx, dword [esp + 0x28]
ror esi, 7
movzx edi, byte [ecx + 0x1004a7ad]
mov dword [esp + 0x18], esi
mov dword [esp + 0x9c], esi
movzx esi, byte [ecx + 0x1004a7ac]
mov ecx, dword [esp + esi*4 + 0x4c]
xor ecx, dword [edi*4 + 0x1004a880]
add ecx, ebx
add edx, ecx
mov ecx, dword [esi*4 + 0x1004a880]
xor ecx, dword [esp + edi*4 + 0x4c]
mov dword [esp + 0x28], edx
xor edx, dword [esp + 0x48]
rol edx, 0x10
add eax, edx
xor ebx, eax
ror ebx, 0xc
add ecx, ebx
mov dword [esp + 0x1c], ebx
mov ebx, dword [esp + 0x28]
add ebx, ecx
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x28], ebx
mov dword [esp + 0x94], ebx
xor ebx, edx
mov edx, dword [esp + 0x2c]
ror ebx, 8
add eax, ebx
xor ecx, eax
ror ecx, 7
mov dword [esp + 0x1c], ecx
mov dword [esp + 0xa8], ecx
mov ecx, dword [esp + 0x20]
movzx esi, byte [ecx + 0x1004a7a8]
movzx edi, byte [ecx + 0x1004a7a9]
mov ecx, dword [esp + esi*4 + 0x4c]
xor ecx, dword [edi*4 + 0x1004a880]
add ecx, dword [esp + 0x14]
add edx, ecx
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x2c], edx
xor edx, ebp
mov ebp, dword [esp + 0x14]
rol edx, 0x10
add ecx, edx
xor ebp, ecx
mov dword [esp + 0x30], ecx
mov ecx, dword [esi*4 + 0x1004a880]
xor ecx, dword [esp + edi*4 + 0x4c]
ror ebp, 0xc
mov esi, ebp
mov dword [esp + 0x14], ebp
mov ebp, dword [esp + 0x2c]
add ecx, esi
add ebp, ecx
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x8c], ebp
xor ebp, edx
mov edx, dword [esp + 0x34]
ror ebp, 8
add ecx, ebp
xor esi, ecx
mov dword [esp + 0x30], ecx
mov dword [esp + 0xb4], ecx
mov ecx, dword [esp + 0x20]
ror esi, 7
mov dword [esp + 0x14], esi
mov dword [esp + 0xa0], esi
movzx esi, byte [ecx + 0x1004a7aa]
movzx edi, byte [ecx + 0x1004a7ab]
mov ecx, dword [esp + esi*4 + 0x4c]
xor ecx, dword [edi*4 + 0x1004a880]
add ecx, dword [esp + 0x10]
add edx, ecx
mov dword [esp + 0x34], edx
xor edx, dword [esp + 0x3c]
mov ecx, dword [esp + 0x38]
rol edx, 0x10
add ecx, edx
xor dword [esp + 0x10], ecx
ror dword [esp + 0x10], 0xc
mov dword [esp + 0x38], ecx
mov ecx, dword [esi*4 + 0x1004a880]
xor ecx, dword [esp + edi*4 + 0x4c]
mov edi, dword [esp + 0x10]
add ecx, edi
mov esi, dword [esp + 0x34]
add esi, ecx
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x34], esi
mov dword [esp + 0x90], esi
xor esi, edx
mov edx, dword [esp + 0x18]
ror esi, 8
add ecx, esi
mov dword [esp + 0x3c], esi
xor edi, ecx
mov dword [esp + 0x38], ecx
mov dword [esp + 0xb8], ecx
mov ecx, dword [esp + 0x20]
ror edi, 7
add ecx, 0x10
mov dword [esp + 0xbc], esi
mov dword [esp + 0x10], edi
mov dword [esp + 0xa4], edi
mov dword [esp + 0x20], ecx
cmp ecx, 0xe0
jb 0x10017570
mov esi, 2
mov dword [esp + 0xc0], ebx
mov dword [esp + 0xac], eax
lea edi, [esp + 0x90]
mov eax, dword [esp + 0xd0]
mov dword [esp + 0xc8], ebp
lea ebx, [esi + 2]
nop
lea ecx, [esi - 2]
and ecx, 7
lea edi, [edi + 0x10]
lea edx, [eax + ecx*4]
mov ecx, dword [edi - 0x14]
xor dword [edx], ecx
lea ecx, [esi - 1]
and ecx, 7
lea edx, [eax + ecx*4]
mov ecx, dword [edi - 0x10]
xor dword [edx], ecx
mov ecx, esi
and ecx, 7
lea edx, [eax + ecx*4]
mov ecx, dword [edi - 0xc]
xor dword [edx], ecx
lea ecx, [esi + 1]
and ecx, 7
add esi, 4
lea edx, [eax + ecx*4]
mov ecx, dword [edi - 8]
xor dword [edx], ecx
sub ebx, 1
jne 0x100179c0
mov ecx, dword [eax + 0x20]
xor dword [eax], ecx
mov ecx, dword [eax + 0x24]
xor dword [eax + 4], ecx
mov ecx, dword [eax + 0x28]
xor dword [eax + 8], ecx
mov ecx, dword [eax + 0x2c]
xor dword [eax + 0xc], ecx
mov ecx, dword [eax + 0x20]
xor dword [eax + 0x10], ecx
mov ecx, dword [eax + 0x24]
xor dword [eax + 0x14], ecx
mov ecx, dword [eax + 0x28]
xor dword [eax + 0x18], ecx
mov ecx, dword [eax + 0x2c]
xor dword [eax + 0x1c], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xbc
ret