Function at 0x13171a80
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x131c5020
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x131e90f0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x1c], edi
mov ecx, dword [edi + 0x128]
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov edx, dword [edi + 0x12c]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x28], ebx
cmp ecx, 0x120c
je 0x13171aeb
mov edi, edx
xor al, al
rep stosb byte es:[edi], al
push edx
call fcn.131724b0
push 0x120c
call fcn.13172440
mov edi, dword [ebp - 0x1c]
add esp, 8
mov edx, eax
mov eax, ebx
mov dword [edi + 0x12c], edx
shr eax, 2
lea ecx, [edi + 0x10]
mov dword [ebp - 0x10], eax
add eax, 6
mov dword [edi + 0x128], 0x120c
mov dword [edi + 0x124], 0xffffffff
mov dword [edi + 0xc], eax
lea eax, [eax*4 + 4]
mov dword [edi + 0x124], 0
push eax
mov dword [ebp - 0x18], ecx
call fcn.13170d90
mov al, byte [0x131eddd8]
mov esi, dword [edi + 0x118]
test al, al
jne 0x13171b49
call fcn.13182ce0
mov al, byte [0x131eddd8]
cmp byte [0x131edddd], 0
je 0x13171ba9
test al, al
jne 0x13171b5b
call fcn.13182ce0
cmp byte [0x131edddb], 0
je 0x13171ba9
push esi
push ebx
push dword [ebp - 0x14]
call fcn.131834e0
mov eax, dword [edi + 4]
lea ecx, [edi + 4]
add esp, 0xc
mov eax, dword [eax + 0x1c]
call eax
test al, al
jne 0x1317233f
push dword [edi + 0xc]
push dword [edi + 0x118]
call fcn.13183480
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebp - 0x10]
push ebx
push dword [ebp - 0x14]
shl eax, 2
push eax
push esi
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], 4
call fcn.1316a450
mov ecx, dword [ebp - 0x10]
lea eax, [ecx*4]
sub eax, ebx
push eax
lea eax, [ebx + esi]
push 0
push eax
call fcn.1319ba80
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.1316a6e0
push eax
push esi
push esi
call fcn.131708d0
mov ecx, dword [ebp - 0x10]
add esp, 0x30
mov dword [ebp - 0x14], 0x131caf8c
lea ebx, [ecx*4]
mov ecx, dword [ebx + esi - 4]
add ebx, esi
mov eax, ecx
shr eax, 0x10
movzx eax, al
movzx edx, byte [eax + str.cw]
mov eax, ecx
shr eax, 8
movzx eax, al
shl edx, 8
movzx eax, byte [eax + str.cw]
xor edx, eax
movzx eax, cl
shl edx, 8
shr ecx, 0x18
movzx eax, byte [eax + str.cw]
xor edx, eax
movzx eax, byte [ecx + str.cw]
shl edx, 8
xor edx, eax
xor edx, dword [esi]
xor edx, dword [0x131caf88]
mov dword [ebx], edx
mov eax, dword [esi + 4]
xor eax, edx
mov edx, dword [ebp - 0x10]
mov dword [ebx + 4], eax
mov ecx, dword [esi + 8]
xor ecx, eax
lea eax, [edx*4 + 8]
mov dword [eax + esi], ecx
mov dword [ebp - 0x24], eax
lea eax, [edx*4 + 0xc]
mov dword [ebp - 0x20], eax
mov eax, dword [esi + 0xc]
xor eax, ecx
mov dword [esi + edx*4 + 0xc], eax
mov eax, dword [edi + 0x118]
mov ecx, dword [edi + 0x114]
lea ecx, [eax + ecx*4]
lea eax, [edx*4]
add eax, 0x10
add eax, esi
cmp eax, ecx
je 0x13171de1
nop dword [eax]
mov eax, dword [ebp - 0x28]
cmp eax, 0x18
jne 0x13171ccb
mov ecx, dword [esi + 0x24]
xor ecx, dword [esi + 0x10]
mov eax, dword [esi + 0x14]
xor eax, ecx
mov dword [esi + 0x28], ecx
mov dword [esi + 0x2c], eax
jmp 0x13171d37
cmp eax, 0x20
jne 0x13171d37
mov ecx, dword [esi + 0x2c]
mov eax, ecx
shr eax, 0x18
movzx edx, byte [eax + str.cw]
mov eax, ecx
shr eax, 0x10
movzx eax, al
shl edx, 8
movzx eax, byte [eax + str.cw]
xor edx, eax
mov eax, ecx
shr eax, 8
movzx eax, al
shl edx, 8
movzx eax, byte [eax + str.cw]
xor edx, eax
movzx eax, cl
mov ecx, dword [esi + 0x18]
shl edx, 8
movzx eax, byte [eax + str.cw]
xor edx, eax
mov eax, dword [esi + 0x14]
xor edx, dword [esi + 0x10]
xor eax, edx
mov dword [esi + 0x30], edx
mov edx, dword [ebp - 0x10]
xor ecx, eax
mov dword [esi + 0x34], eax
mov eax, dword [esi + 0x1c]
xor eax, ecx
mov dword [esi + 0x38], ecx
mov dword [esi + 0x3c], eax
mov esi, ebx
mov edi, ebx
lea ebx, [edx*4]
add ebx, esi
mov ecx, dword [ebx - 4]
mov eax, ecx
shr eax, 0x10
movzx eax, al
movzx edx, byte [eax + str.cw]
mov eax, ecx
shr eax, 8
movzx eax, al
shl edx, 8
movzx eax, byte [eax + str.cw]
xor edx, eax
movzx eax, cl
shl edx, 8
shr ecx, 0x18
movzx eax, byte [eax + str.cw]
xor edx, eax
movzx eax, byte [ecx + str.cw]
shl edx, 8
xor edx, eax
mov eax, dword [ebp - 0x14]
xor edx, dword [eax]
add eax, 4
xor edx, dword [esi]
mov dword [ebx], edx
mov dword [ebp - 0x14], eax
mov eax, dword [esi + 4]
xor eax, edx
mov edx, dword [ebp - 0x18]
mov dword [ebx + 4], eax
mov ecx, dword [esi + 8]
xor ecx, eax
mov eax, dword [ebp - 0x24]
mov dword [eax + esi], ecx
mov eax, dword [esi + 0xc]
xor eax, ecx
mov ecx, dword [ebp - 0x20]
mov dword [ecx + esi], eax
mov eax, dword [edx + 0x108]
mov ecx, dword [edx + 0x104]
mov edx, dword [ebp - 0x10]
lea ecx, [eax + ecx*4]
lea eax, [edx*4]
add eax, 0x10
add eax, edi
cmp eax, ecx
jne 0x13171cb0
mov edi, dword [ebp - 0x1c]
mov eax, dword [edi + 4]
lea ecx, [edi + 4]
mov ebx, dword [edi + 0x118]
mov dword [ebp - 0x28], ebx
mov eax, dword [eax + 0x1c]
call eax
test al, al
je 0x13171e29
cmp byte [0x131edba0], 0
jne 0x13171e07
call fcn.13170d20
push 0x10
push ebx
push ebx
call fcn.131708d0
mov eax, dword [edi + 0xc]
shl eax, 4
add eax, ebx
push 0x10
push eax
push eax
call fcn.131708d0
add esp, 0x18
jmp 0x13172311
cmp byte [0x131edba1], 0
jne 0x13171e37
call fcn.13170bc0
mov eax, dword [edi + 0xc]
mov esi, 4
mov dword [ebp - 0x14], esi
lea eax, [eax*4 - 4]
mov dword [ebp - 0x18], eax
cmp eax, esi
jbe 0x13172148
mov edi, eax
lea eax, [edi + 2]
lea eax, [ebx + eax*4]
mov dword [ebp - 0x18], eax
lea eax, [ebx + 0x18]
mov ebx, dword [ebp - 0x18]
mov dword [ebp - 0x10], eax
mov edx, dword [eax - 8]
mov eax, edx
shr eax, 0x18
movzx ecx, byte [eax + str.cw]
mov eax, edx
shr eax, 0x10
movzx eax, al
shr edx, 8
mov esi, dword [ecx*8 + 0x131ed3a4]
movzx eax, byte [eax + str.cw]
xor esi, dword [eax*8 + 0x131ed3a1]
movzx eax, dl
mov edx, dword [ebx - 8]
movzx eax, byte [eax + str.cw]
xor esi, dword [eax*8 + 0x131ed3a2]
mov eax, dword [ebp - 0x10]
movzx eax, byte [eax - 8]
movzx eax, byte [eax + str.cw]
xor esi, dword [eax*8 + 0x131ed3a3]
mov eax, edx
shr eax, 0x18
movzx ecx, byte [eax + str.cw]
mov eax, edx
shr eax, 0x10
movzx eax, al
shr edx, 8
mov ecx, dword [ecx*8 + 0x131ed3a4]
movzx eax, byte [eax + str.cw]
xor ecx, dword [eax*8 + 0x131ed3a1]
movzx eax, dl
movzx eax, byte [eax + str.cw]
xor ecx, dword [eax*8 + 0x131ed3a2]
movzx eax, byte [ebx - 8]
movzx eax, byte [eax + str.cw]
xor ecx, dword [eax*8 + 0x131ed3a3]
mov eax, dword [ebp - 0x10]
mov dword [eax - 8], ecx
mov dword [ebx - 8], esi
mov edx, dword [eax - 4]
mov eax, edx
shr eax, 0x18
movzx ecx, byte [eax + str.cw]
mov eax, edx
shr eax, 0x10
movzx eax, al
shr edx, 8
mov esi, dword [ecx*8 + 0x131ed3a4]
movzx eax, byte [eax + str.cw]
xor esi, dword [eax*8 + 0x131ed3a1]
movzx eax, dl
mov edx, dword [ebx - 4]
movzx eax, byte [eax + str.cw]
xor esi, dword [eax*8 + 0x131ed3a2]
mov eax, dword [ebp - 0x10]
movzx eax, byte [eax - 4]
movzx eax, byte [eax + str.cw]
xor esi, dword [eax*8 + 0x131ed3a3]
mov eax, edx
shr eax, 0x18
movzx ecx, byte [eax + str.cw]
mov eax, edx
shr eax, 0x10
movzx eax, al
shr edx, 8
mov ecx, dword [ecx*8 + 0x131ed3a4]
movzx eax, byte [eax + str.cw]
xor ecx, dword [eax*8 + 0x131ed3a1]
movzx eax, dl
movzx eax, byte [eax + str.cw]
xor ecx, dword [eax*8 + 0x131ed3a2]
movzx eax, byte [ebx - 4]
movzx eax, byte [eax + str.cw]
xor ecx, dword [eax*8 + 0x131ed3a3]
mov eax, dword [ebp - 0x10]
mov dword [eax - 4], ecx
mov dword [ebx - 4], esi
mov edx, dword [eax]
mov eax, edx
shr eax, 0x18
movzx ecx, byte [eax + str.cw]
mov eax, edx
shr eax, 0x10
lea ebx, [ebx - 0x10]
movzx eax, al
sub edi, 4
mov esi, dword [ecx*8 + 0x131ed3a4]
shr edx, 8
movzx eax, byte [eax + str.cw]
xor esi, dword [eax*8 + 0x131ed3a1]
movzx eax, dl
mov edx, dword [ebx + 0x10]
movzx eax, byte [eax + str.cw]
xor esi, dword [eax*8 + 0x131ed3a2]
mov eax, dword [ebp - 0x10]
movzx eax, byte [eax]
movzx eax, byte [eax + str.cw]
xor esi, dword [eax*8 + 0x131ed3a3]
mov eax, edx
shr eax, 0x18
movzx ecx, byte [eax + str.cw]
mov eax, edx
shr eax, 0x10
movzx eax, al
shr edx, 8
mov ecx, dword [ecx*8 + 0x131ed3a4]
movzx eax, byte [eax + str.cw]
xor ecx, dword [eax*8 + 0x131ed3a1]
movzx eax, dl
movzx eax, byte [eax + str.cw]
xor ecx, dword [eax*8 + 0x131ed3a2]
movzx eax, byte [ebx + 0x10]
movzx eax, byte [eax + str.cw]
xor ecx, dword [eax*8 + 0x131ed3a3]
mov eax, dword [ebp - 0x10]
mov dword [eax], ecx
mov dword [ebx + 0x10], esi
mov edx, dword [eax + 4]
mov eax, edx
shr eax, 0x18
movzx ecx, byte [eax + str.cw]
mov eax, edx
shr eax, 0x10
movzx eax, al
shr edx, 8
mov esi, dword [ecx*8 + 0x131ed3a4]
movzx eax, byte [eax + str.cw]
xor esi, dword [eax*8 + 0x131ed3a1]
movzx eax, dl
mov edx, dword [ebx + 0x14]
movzx eax, byte [eax + str.cw]
xor esi, dword [eax*8 + 0x131ed3a2]
mov eax, dword [ebp - 0x10]
movzx eax, byte [eax + 4]
movzx eax, byte [eax + str.cw]
xor esi, dword [eax*8 + 0x131ed3a3]
mov eax, edx
shr eax, 0x18
movzx ecx, byte [eax + str.cw]
mov eax, edx
shr eax, 0x10
movzx eax, al
shr edx, 8
mov ecx, dword [ecx*8 + 0x131ed3a4]
movzx eax, byte [eax + str.cw]
xor ecx, dword [eax*8 + 0x131ed3a1]
movzx eax, dl
movzx eax, byte [eax + str.cw]
xor ecx, dword [eax*8 + 0x131ed3a2]
movzx eax, byte [ebx + 0x14]
movzx eax, byte [eax + str.cw]
xor ecx, dword [eax*8 + 0x131ed3a3]
mov eax, dword [ebp - 0x10]
mov dword [eax + 4], ecx
add eax, 0x10
mov dword [ebx + 0x14], esi
mov esi, dword [ebp - 0x14]
add esi, 4
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], esi
cmp esi, edi
jb 0x13171e68
mov edi, dword [ebp - 0x1c]
mov ebx, dword [ebp - 0x28]
mov edx, dword [ebx + esi*4]
mov eax, edx
shr eax, 0x18
movzx ecx, byte [eax + str.cw]
mov eax, edx
shr eax, 0x10
movzx eax, al
shr edx, 8
mov ecx, dword [ecx*8 + 0x131ed3a4]
movzx eax, byte [eax + str.cw]
xor ecx, dword [eax*8 + 0x131ed3a1]
movzx eax, dl
mov edx, dword [ebx + esi*4 + 4]
movzx eax, byte [eax + str.cw]
xor ecx, dword [eax*8 + 0x131ed3a2]
movzx eax, byte [ebx + esi*4]
movzx eax, byte [eax + str.cw]
xor ecx, dword [eax*8 + 0x131ed3a3]
mov eax, edx
shr eax, 0x18
mov dword [ebx + esi*4], ecx
movzx ecx, byte [eax + str.cw]
mov eax, edx
shr eax, 0x10
movzx eax, al
shr edx, 8
mov ecx, dword [ecx*8 + 0x131ed3a4]
movzx eax, byte [eax + str.cw]
xor ecx, dword [eax*8 + 0x131ed3a1]
movzx eax, dl
mov edx, dword [ebx + esi*4 + 8]
movzx eax, byte [eax + str.cw]
xor ecx, dword [eax*8 + 0x131ed3a2]
movzx eax, byte [ebx + esi*4 + 4]
movzx eax, byte [eax + str.cw]
xor ecx, dword [eax*8 + 0x131ed3a3]
mov eax, edx
shr eax, 0x18
mov dword [ebx + esi*4 + 4], ecx
movzx ecx, byte [eax + str.cw]
mov eax, edx
shr eax, 0x10
movzx eax, al
shr edx, 8
mov ecx, dword [ecx*8 + 0x131ed3a4]
movzx eax, byte [eax + str.cw]
xor ecx, dword [eax*8 + 0x131ed3a1]
movzx eax, dl
mov edx, dword [ebx + esi*4 + 0xc]
movzx eax, byte [eax + str.cw]
xor ecx, dword [eax*8 + 0x131ed3a2]
movzx eax, byte [ebx + esi*4 + 8]
movzx eax, byte [eax + str.cw]
xor ecx, dword [eax*8 + 0x131ed3a3]
mov eax, edx
shr eax, 0x18
mov dword [ebx + esi*4 + 8], ecx
movzx ecx, byte [eax + str.cw]
mov eax, edx
shr eax, 0x10
movzx eax, al
shr edx, 8
mov ecx, dword [ecx*8 + 0x131ed3a4]
movzx eax, byte [eax + str.cw]
xor ecx, dword [eax*8 + 0x131ed3a1]
movzx eax, dl
movzx eax, byte [eax + str.cw]
xor ecx, dword [eax*8 + 0x131ed3a2]
movzx eax, byte [ebx + esi*4 + 0xc]
movzx eax, byte [eax + str.cw]
xor ecx, dword [eax*8 + 0x131ed3a3]
mov dword [ebx + esi*4 + 0xc], ecx
mov eax, dword [edi + 0xc]
mov ecx, dword [ebx]
add eax, eax
bswap ecx
mov eax, dword [ebx + eax*8]
bswap eax
mov dword [ebx], eax
mov eax, dword [edi + 0xc]
add eax, eax
mov dword [ebx + eax*8], ecx
mov eax, dword [edi + 0xc]
mov ecx, dword [ebx + 4]
add eax, eax
bswap ecx
mov eax, dword [ebx + eax*8 + 4]
bswap eax
mov dword [ebx + 4], eax
mov eax, dword [edi + 0xc]
add eax, eax
mov dword [ebx + eax*8 + 4], ecx
mov eax, dword [edi + 0xc]
mov ecx, dword [ebx + 8]
add eax, eax
bswap ecx
mov eax, dword [ebx + eax*8 + 8]
bswap eax
mov dword [ebx + 8], eax
mov eax, dword [edi + 0xc]
add eax, eax
mov dword [ebx + eax*8 + 8], ecx
mov eax, dword [edi + 0xc]
mov ecx, dword [ebx + 0xc]
add eax, eax
bswap ecx
mov eax, dword [ebx + eax*8 + 0xc]
bswap eax
mov dword [ebx + 0xc], eax
mov eax, dword [edi + 0xc]
add eax, eax
mov dword [ebx + eax*8 + 0xc], ecx
cmp byte [0x131eddd8], 0
jne 0x1317231f
call fcn.13182ce0
cmp byte [0x131edddd], 0
je 0x1317233f
mov ecx, dword [edi + 0xc]
lea eax, [ebx + 0x10]
shl ecx, 4
sub ecx, 0x10
push ecx
push eax
push eax
call fcn.131708d0
add esp, 0xc
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc