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

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, dword [esp + 0x18]
mov ebx, ecx
push edi
shr esi, 2
lea eax, [esi + 6]
lea edi, [eax*4 + 4]
mov dword [ebx + 0x10], eax
mov eax, dword [ebx + 0x118]
mov ecx, dword [ebx + 0x11c]
lea ebp, [ebx + 0x18]
push edi
push eax
push ecx
mov eax, ebp
mov dword [esp + 0x1c], ebx
call fcn.1002d0e0
mov edx, dword [esp + 0x1c]
mov dword [ebp + 0x104], eax
mov eax, dword [esp + 0x18]
mov dword [ebp + 0x100], edi
mov edi, dword [ebx + 0x11c]
push edx
mov ecx, esi
call fcn.1002d150
mov ecx, dword [edi + esi*4 - 4]
mov eax, ecx
shr eax, 0x10
movzx edx, al
movzx eax, byte [edx + str.cw]
mov edx, ecx
shr edx, 8
xor eax, 1
movzx edx, dl
movzx edx, byte [edx + str.cw]
shl eax, 8
xor eax, edx
movzx edx, cl
movzx edx, byte [edx + str.cw]
shl eax, 8
xor eax, edx
shr ecx, 0x18
movzx ecx, byte [ecx + str.cw]
shl eax, 8
xor eax, ecx
xor eax, dword [edi]
add esp, 4
mov dword [edi + esi*4], eax
mov ecx, dword [edi + 4]
xor ecx, eax
mov dword [edi + esi*4 + 4], ecx
mov eax, dword [edi + 8]
xor eax, ecx
mov dword [edi + esi*4 + 8], eax
mov edx, dword [edi + 0xc]
xor edx, eax
mov dword [edi + esi*4 + 0xc], edx
mov eax, dword [ebp + 0x100]
mov ecx, dword [ebp + 0x104]
lea edx, [ecx + eax*4]
lea eax, [edi + esi*4 + 0x10]
cmp eax, edx
mov dword [esp + 0x18], 0x1007aa8c
je 0x1002b883
jmp 0x1002b770
mov eax, dword [esp + 0x1c]
cmp eax, 0x18
jne 0x1002b78c
mov eax, dword [edi + 0x24]
xor eax, dword [edi + 0x10]
mov ecx, dword [edi + 0x14]
xor ecx, eax
mov dword [edi + 0x28], eax
mov dword [edi + 0x2c], ecx
jmp 0x1002b7f5
cmp eax, 0x20
jne 0x1002b7f5
mov eax, dword [edi + 0x2c]
xor ecx, ecx
mov edx, eax
shr edx, 0x18
mov ch, byte [edx + str.cw]
mov edx, eax
shr edx, 0x10
movzx edx, dl
movzx edx, byte [edx + str.cw]
xor ecx, edx
mov edx, eax
shr edx, 8
movzx edx, dl
movzx edx, byte [edx + str.cw]
shl ecx, 8
movzx eax, al
xor ecx, edx
movzx edx, byte [eax + str.cw]
shl ecx, 8
xor ecx, edx
mov eax, ecx
xor eax, dword [edi + 0x10]
mov ecx, dword [edi + 0x14]
xor ecx, eax
mov dword [edi + 0x30], eax
mov eax, dword [edi + 0x18]
xor eax, ecx
mov dword [edi + 0x34], ecx
mov ecx, dword [edi + 0x1c]
xor ecx, eax
mov dword [edi + 0x38], eax
mov dword [edi + 0x3c], ecx
lea edi, [edi + esi*4]
mov eax, dword [edi + esi*4 - 4]
mov edx, eax
shr edx, 0x10
movzx ecx, dl
xor edx, edx
mov dh, byte [ecx + str.cw]
mov ecx, eax
shr ecx, 8
movzx ecx, cl
movzx ecx, byte [ecx + str.cw]
xor edx, ecx
movzx ecx, al
movzx ecx, byte [ecx + str.cw]
shl edx, 8
xor edx, ecx
shr eax, 0x18
movzx eax, byte [eax + str.cw]
shl edx, 8
xor edx, eax
mov eax, dword [esp + 0x18]
xor edx, dword [eax]
add eax, 4
xor edx, dword [edi]
mov dword [esp + 0x18], eax
mov dword [edi + esi*4], edx
mov eax, dword [edi + 4]
xor eax, edx
mov dword [edi + esi*4 + 4], eax
mov ecx, dword [edi + 8]
xor ecx, eax
mov dword [edi + esi*4 + 8], ecx
mov edx, dword [edi + 0xc]
xor edx, ecx
mov dword [edi + esi*4 + 0xc], edx
mov eax, dword [ebp + 0x100]
mov ecx, dword [ebp + 0x104]
lea edx, [ecx + eax*4]
lea eax, [edi + esi*4 + 0x10]
cmp eax, edx
jne 0x1002b770
mov edx, dword [ebx + 4]
mov eax, dword [edx + 0x1c]
mov esi, dword [ebx + 0x11c]
lea ecx, [ebx + 4]
call eax
test al, al
je 0x1002b8ea
mov cl, byte [0x100923a4]
test cl, cl
jne 0x1002b8a7
call fcn.1002b470
xor eax, eax
lea esp, [esp]
mov edx, dword [esi + eax*4]
bswap edx
mov dword [esi + eax*4], edx
add eax, 1
cmp eax, 4
jb 0x1002b8b0
mov eax, dword [ebx + 0x10]
shl eax, 4
add esi, eax
mov eax, esi
mov ecx, esi
sub ecx, eax
mov edx, 4
mov esi, dword [ecx + eax]
bswap esi
mov dword [eax], esi
add eax, 4
sub edx, 1
jne 0x1002b8d3
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 0xc
mov cl, byte [0x100923a5]
test cl, cl
jne 0x1002b8f9
call fcn.1002b500
mov eax, dword [ebx + 0x10]
lea eax, [eax*4 - 4]
mov ebp, 4
cmp eax, ebp
mov dword [esp + 0x1c], eax
jbe 0x1002bbe5
lea ecx, [esi + eax*4 + 8]
lea eax, [esi + 0x18]
jmp 0x1002b920
mov edx, dword [eax - 8]
mov ebx, edx
mov edi, edx
shr edx, 8
movzx edx, dl
movzx edx, byte [edx + str.cw]
shr ebx, 0x10
movzx ebx, bl
movzx ebx, byte [ebx + str.cw]
shr edi, 0x18
movzx edi, byte [edi + str.cw]
mov edi, dword [edi*8 + 0x1009138c]
xor edi, dword [ebx*8 + 0x10091389]
xor edi, dword [edx*8 + 0x1009138a]
movzx edx, byte [eax - 8]
movzx edx, byte [edx + str.cw]
xor edi, dword [edx*8 + 0x1009138b]
mov edx, dword [ecx - 8]
mov ebx, edx
shr edx, 0x10
movzx edx, dl
movzx edx, byte [edx + str.cw]
shr ebx, 0x18
movzx ebx, byte [ebx + str.cw]
mov ebx, dword [ebx*8 + 0x1009138c]
xor ebx, dword [edx*8 + 0x10091389]
mov edx, dword [ecx - 8]
shr edx, 8
movzx edx, dl
movzx edx, byte [edx + str.cw]
xor ebx, dword [edx*8 + 0x1009138a]
movzx edx, byte [ecx - 8]
movzx edx, byte [edx + str.cw]
xor ebx, dword [edx*8 + 0x1009138b]
mov dword [eax - 8], ebx
mov dword [ecx - 8], edi
mov edx, dword [eax - 4]
mov ebx, edx
mov edi, edx
shr ebx, 0x10
shr edx, 8
movzx ebx, bl
movzx ebx, byte [ebx + str.cw]
movzx edx, dl
movzx edx, byte [edx + str.cw]
shr edi, 0x18
movzx edi, byte [edi + str.cw]
mov edi, dword [edi*8 + 0x1009138c]
xor edi, dword [ebx*8 + 0x10091389]
xor edi, dword [edx*8 + 0x1009138a]
movzx edx, byte [eax - 4]
movzx edx, byte [edx + str.cw]
xor edi, dword [edx*8 + 0x1009138b]
mov edx, dword [ecx - 4]
mov ebx, edx
shr edx, 0x10
shr ebx, 0x18
movzx ebx, byte [ebx + str.cw]
mov ebx, dword [ebx*8 + 0x1009138c]
movzx edx, dl
movzx edx, byte [edx + str.cw]
xor ebx, dword [edx*8 + 0x10091389]
mov edx, dword [ecx - 4]
shr edx, 8
movzx edx, dl
movzx edx, byte [edx + str.cw]
xor ebx, dword [edx*8 + 0x1009138a]
movzx edx, byte [ecx - 4]
movzx edx, byte [edx + str.cw]
xor ebx, dword [edx*8 + 0x1009138b]
mov dword [eax - 4], ebx
mov dword [ecx - 4], edi
mov edx, dword [eax]
mov edi, edx
shr edi, 0x18
movzx edi, byte [edi + str.cw]
mov edi, dword [edi*8 + 0x1009138c]
mov ebx, edx
shr ebx, 0x10
movzx ebx, bl
movzx ebx, byte [ebx + str.cw]
xor edi, dword [ebx*8 + 0x10091389]
shr edx, 8
movzx edx, dl
movzx edx, byte [edx + str.cw]
xor edi, dword [edx*8 + 0x1009138a]
movzx edx, byte [eax]
movzx edx, byte [edx + str.cw]
xor edi, dword [edx*8 + 0x1009138b]
mov edx, dword [ecx]
mov ebx, edx
shr edx, 0x10
movzx edx, dl
movzx edx, byte [edx + str.cw]
shr ebx, 0x18
movzx ebx, byte [ebx + str.cw]
mov ebx, dword [ebx*8 + 0x1009138c]
xor ebx, dword [edx*8 + 0x10091389]
mov edx, dword [ecx]
shr edx, 8
movzx edx, dl
movzx edx, byte [edx + str.cw]
xor ebx, dword [edx*8 + 0x1009138a]
movzx edx, byte [ecx]
movzx edx, byte [edx + str.cw]
xor ebx, dword [edx*8 + 0x1009138b]
add ebp, 4
mov dword [eax], ebx
mov dword [ecx], edi
mov edx, dword [eax + 4]
mov ebx, edx
mov edi, edx
shr edx, 8
shr ebx, 0x10
movzx edx, dl
movzx edx, byte [edx + str.cw]
movzx ebx, bl
movzx ebx, byte [ebx + str.cw]
shr edi, 0x18
movzx edi, byte [edi + str.cw]
mov edi, dword [edi*8 + 0x1009138c]
xor edi, dword [ebx*8 + 0x10091389]
add eax, 0x10
xor edi, dword [edx*8 + 0x1009138a]
movzx edx, byte [eax - 0xc]
movzx edx, byte [edx + str.cw]
xor edi, dword [edx*8 + 0x1009138b]
mov edx, dword [ecx + 4]
mov ebx, edx
shr edx, 0x10
movzx edx, dl
movzx edx, byte [edx + str.cw]
shr ebx, 0x18
movzx ebx, byte [ebx + str.cw]
mov ebx, dword [ebx*8 + 0x1009138c]
xor ebx, dword [edx*8 + 0x10091389]
mov edx, dword [ecx + 4]
shr edx, 8
movzx edx, dl
movzx edx, byte [edx + str.cw]
xor ebx, dword [edx*8 + 0x1009138a]
movzx edx, byte [ecx + 4]
movzx edx, byte [edx + str.cw]
xor ebx, dword [edx*8 + 0x1009138b]
mov edx, dword [esp + 0x1c]
mov dword [eax - 0xc], ebx
sub edx, 4
mov dword [ecx + 4], edi
sub ecx, 0x10
cmp ebp, edx
mov dword [esp + 0x1c], edx
jb 0x1002b920
mov ebx, dword [esp + 0x10]
mov eax, dword [esi + ebp*4]
mov ecx, eax
shr ecx, 0x18
movzx edx, byte [ecx + str.cw]
mov edx, dword [edx*8 + 0x1009138c]
mov ecx, eax
shr ecx, 0x10
movzx ecx, cl
movzx ecx, byte [ecx + str.cw]
xor edx, dword [ecx*8 + 0x10091389]
shr eax, 8
movzx eax, al
movzx ecx, byte [eax + str.cw]
xor edx, dword [ecx*8 + 0x1009138a]
movzx eax, byte [esi + ebp*4]
movzx ecx, byte [eax + str.cw]
xor edx, dword [ecx*8 + 0x1009138b]
mov eax, dword [esi + ebp*4 + 4]
mov dword [esi + ebp*4], edx
mov edx, eax
shr edx, 0x18
movzx ecx, byte [edx + str.cw]
mov ecx, dword [ecx*8 + 0x1009138c]
mov edx, eax
shr edx, 0x10
movzx edx, dl
movzx edx, byte [edx + str.cw]
xor ecx, dword [edx*8 + 0x10091389]
shr eax, 8
movzx edx, al
movzx eax, byte [edx + str.cw]
xor ecx, dword [eax*8 + 0x1009138a]
movzx edx, byte [esi + ebp*4 + 4]
movzx eax, byte [edx + str.cw]
xor ecx, dword [eax*8 + 0x1009138b]
mov eax, dword [esi + ebp*4 + 8]
mov dword [esi + ebp*4 + 4], ecx
mov ecx, eax
shr ecx, 0x18
movzx edx, byte [ecx + str.cw]
mov edx, dword [edx*8 + 0x1009138c]
mov ecx, eax
shr ecx, 0x10
movzx ecx, cl
movzx ecx, byte [ecx + str.cw]
xor edx, dword [ecx*8 + 0x10091389]
shr eax, 8
movzx eax, al
movzx ecx, byte [eax + str.cw]
xor edx, dword [ecx*8 + 0x1009138a]
movzx eax, byte [esi + ebp*4 + 8]
movzx ecx, byte [eax + str.cw]
xor edx, dword [ecx*8 + 0x1009138b]
mov eax, dword [esi + ebp*4 + 0xc]
mov dword [esi + ebp*4 + 8], edx
mov edx, eax
shr edx, 0x18
movzx ecx, byte [edx + str.cw]
mov ecx, dword [ecx*8 + 0x1009138c]
mov edx, eax
shr edx, 0x10
movzx edx, dl
movzx edx, byte [edx + str.cw]
xor ecx, dword [edx*8 + 0x10091389]
shr eax, 8
movzx edx, al
movzx eax, byte [edx + str.cw]
xor ecx, dword [eax*8 + 0x1009138a]
movzx edx, byte [esi + ebp*4 + 0xc]
movzx eax, byte [edx + str.cw]
xor ecx, dword [eax*8 + 0x1009138b]
mov dword [esi + ebp*4 + 0xc], ecx
mov ecx, dword [ebx + 0x10]
mov eax, dword [esi]
shl ecx, 4
mov edx, dword [ecx + esi]
bswap edx
mov dword [esi], edx
mov ecx, dword [ebx + 0x10]
bswap eax
shl ecx, 4
mov dword [ecx + esi], eax
mov edx, dword [ebx + 0x10]
mov eax, dword [esi + 4]
shl edx, 4
mov ecx, dword [edx + esi + 4]
bswap ecx
mov dword [esi + 4], ecx
mov edx, dword [ebx + 0x10]
shl edx, 4
bswap eax
mov dword [edx + esi + 4], eax
mov ecx, dword [ebx + 0x10]
mov eax, dword [esi + 8]
shl ecx, 4
mov edx, dword [ecx + esi + 8]
bswap edx
mov dword [esi + 8], edx
mov ecx, dword [ebx + 0x10]
shl ecx, 4
bswap eax
mov dword [ecx + esi + 8], eax
mov edx, dword [ebx + 0x10]
mov eax, dword [esi + 0xc]
shl edx, 4
mov ecx, dword [edx + esi + 0xc]
bswap ecx
mov dword [esi + 0xc], ecx
mov edx, dword [ebx + 0x10]
pop edi
bswap eax
shl edx, 4
mov dword [edx + esi + 0xc], eax
pop esi
pop ebp
pop ebx
pop ecx
ret 0xc