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

Disassembly:
mov eax, dword [esp + 8]
movzx ecx, byte [eax]
push ebx
push ebp
push esi
push edi
movzx edi, byte [eax + 1]
mov esi, dword [esp + 0x14]
shl ecx, 8
xor ecx, edi
movzx edi, byte [eax + 2]
shl ecx, 8
xor ecx, edi
movzx edi, byte [eax + 3]
shl ecx, 8
xor ecx, edi
mov dword [esi], ecx
movzx edi, byte [eax + 4]
movzx ebx, byte [eax + 5]
shl edi, 8
xor edi, ebx
movzx ebx, byte [eax + 6]
shl edi, 8
xor edi, ebx
movzx ebx, byte [eax + 7]
shl edi, 8
xor edi, ebx
mov dword [esi + 4], edi
movzx edi, byte [eax + 8]
movzx ebx, byte [eax + 9]
shl edi, 8
xor edi, ebx
movzx ebx, byte [eax + 0xa]
lea ecx, [esi + 4]
shl edi, 8
xor edi, ebx
movzx ebx, byte [eax + 0xb]
shl edi, 8
xor edi, ebx
mov dword [esi + 8], edi
movzx edi, byte [eax + 0xc]
movzx ebx, byte [eax + 0xd]
shl edi, 8
xor edi, ebx
movzx ebx, byte [eax + 0xe]
shl edi, 8
xor edi, ebx
movzx ebx, byte [eax + 0xf]
shl edi, 8
xor edi, ebx
mov dword [esi + 0xc], edi
mov edi, dword [esp + 0x1c]
lea edx, [esi + 0xf0]
cmp edi, 0x80
jne 0x1020c52e
mov edi, dword [esi + 0xc]
mov eax, edi
shr eax, 0x10
and eax, 0xff
mov eax, dword [eax*4 + str.ccccwwww]
xor eax, 0x1000000
mov ebx, edi
shr ebx, 8
and ebx, 0xff
mov ebx, dword [ebx*4 + str.ccccwwww]
and ebx, 0xff0000
and eax, 0xff000000
xor eax, ebx
mov ebx, edi
shr ebx, 0x18
movzx ebx, byte [ebx*4 + str.ccccwwww]
xor eax, ebx
mov ebx, edi
and ebx, 0xff
mov ebx, dword [ebx*4 + str.ccccwwww]
and ebx, 0xff00
xor eax, ebx
xor eax, dword [esi]
mov ebx, dword [ecx]
xor ebx, eax
mov dword [esi + 0x10], eax
mov eax, dword [esi + 8]
xor eax, ebx
mov dword [esi + 0x18], eax
xor eax, edi
mov dword [esi + 0x14], ebx
mov dword [esi + 0x1c], eax
mov ebx, 0x102582fc
mov edi, dword [ecx + 0x18]
add ecx, 0x10
mov eax, edi
shr eax, 8
mov ebp, edi
and eax, 0xff
mov eax, dword [eax*4 + str.ccccwwww]
shr ebp, 0x10
and ebp, 0xff
mov ebp, dword [ebp*4 + str.ccccwwww]
and eax, 0xff0000
and ebp, 0xff000000
xor eax, ebp
mov ebp, edi
and edi, 0xff
mov edi, dword [edi*4 + str.ccccwwww]
shr ebp, 0x18
movzx ebp, byte [ebp*4 + str.ccccwwww]
xor eax, ebp
and edi, 0xff00
xor eax, edi
xor eax, dword [ecx - 4]
add ebx, 4
xor eax, dword [ebx - 4]
mov dword [ecx + 0xc], eax
mov edi, dword [ecx]
xor edi, eax
mov dword [ecx + 0x10], edi
mov eax, dword [ecx + 4]
xor eax, edi
mov dword [ecx + 0x14], eax
mov edi, dword [ecx + 8]
xor edi, eax
mov dword [ecx + 0x18], edi
cmp ebx, 0x10258320
jne 0x1020c497
mov eax, 0xa
mov dword [esp + 0x14], eax
jmp 0x1020c888
movzx ebx, byte [eax + 0x10]
movzx ebp, byte [eax + 0x11]
shl ebx, 8
xor ebx, ebp
movzx ebp, byte [eax + 0x12]
shl ebx, 8
xor ebx, ebp
movzx ebp, byte [eax + 0x13]
shl ebx, 8
xor ebx, ebp
mov dword [esi + 0x10], ebx
movzx ebx, byte [eax + 0x14]
movzx ebp, byte [eax + 0x15]
shl ebx, 8
xor ebx, ebp
movzx ebp, byte [eax + 0x16]
shl ebx, 8
xor ebx, ebp
movzx ebp, byte [eax + 0x17]
shl ebx, 8
xor ebx, ebp
mov dword [esi + 0x14], ebx
cmp edi, 0xc0
jne 0x1020c6aa
mov edi, ebx
mov ecx, dword [ecx]
mov eax, edi
shr eax, 0x10
and eax, 0xff
mov eax, dword [eax*4 + str.ccccwwww]
shr ebx, 8
xor eax, 0x1000000
and ebx, 0xff
mov ebx, dword [ebx*4 + str.ccccwwww]
and eax, 0xff000000
and ebx, 0xff0000
xor eax, ebx
mov ebx, edi
shr ebx, 0x18
movzx ebx, byte [ebx*4 + str.ccccwwww]
xor eax, ebx
and edi, 0xff
mov edi, dword [edi*4 + str.ccccwwww]
and edi, 0xff00
xor eax, edi
xor eax, dword [esi]
mov ebx, 0x102582fc
xor ecx, eax
mov dword [esi + 0x18], eax
mov eax, dword [esi + 8]
xor eax, ecx
mov dword [esi + 0x1c], ecx
mov ecx, dword [esi + 0xc]
xor ecx, eax
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], ecx
lea eax, [esi + 0x28]
jmp 0x1020c600
mov ecx, dword [eax - 0x18]
xor ecx, dword [eax - 4]
mov edi, dword [eax - 0x14]
xor edi, ecx
mov dword [eax], ecx
mov dword [eax + 4], edi
mov edi, dword [eax + 4]
add eax, 0x18
mov ecx, edi
shr ecx, 8
mov ebp, edi
and ecx, 0xff
mov ecx, dword [ecx*4 + str.ccccwwww]
shr ebp, 0x10
and ebp, 0xff
mov ebp, dword [ebp*4 + str.ccccwwww]
and ecx, 0xff0000
and ebp, 0xff000000
xor ecx, ebp
mov ebp, edi
and edi, 0xff
mov edi, dword [edi*4 + str.ccccwwww]
shr ebp, 0x18
movzx ebp, byte [ebp*4 + str.ccccwwww]
xor ecx, ebp
and edi, 0xff00
xor ecx, edi
xor ecx, dword [eax - 0x28]
add ebx, 4
xor ecx, dword [ebx - 4]
mov dword [eax - 0x10], ecx
mov edi, dword [eax - 0x24]
xor edi, ecx
mov dword [eax - 0xc], edi
mov ecx, dword [eax - 0x20]
xor ecx, edi
mov dword [eax - 8], ecx
mov edi, dword [eax - 0x1c]
xor edi, ecx
mov dword [eax - 4], edi
cmp ebx, 0x10258318
jne 0x1020c600
mov eax, 0xc
mov dword [esp + 0x14], eax
jmp 0x1020c888
movzx ebx, byte [eax + 0x18]
movzx ebp, byte [eax + 0x19]
shl ebx, 8
xor ebx, ebp
movzx ebp, byte [eax + 0x1a]
shl ebx, 8
xor ebx, ebp
movzx ebp, byte [eax + 0x1b]
shl ebx, 8
xor ebx, ebp
mov dword [esi + 0x18], ebx
movzx ebx, byte [eax + 0x1c]
movzx ebp, byte [eax + 0x1d]
shl ebx, 8
xor ebx, ebp
movzx ebp, byte [eax + 0x1e]
movzx eax, byte [eax + 0x1f]
shl ebx, 8
xor ebx, ebp
shl ebx, 8
xor ebx, eax
mov dword [esi + 0x1c], ebx
cmp edi, 0x100
jne 0x1020c884
mov edi, ebx
mov ecx, dword [ecx]
mov eax, edi
shr eax, 0x10
and eax, 0xff
mov eax, dword [eax*4 + str.ccccwwww]
shr ebx, 8
xor eax, 0x1000000
and ebx, 0xff
mov ebx, dword [ebx*4 + str.ccccwwww]
and eax, 0xff000000
and ebx, 0xff0000
xor eax, ebx
mov ebx, edi
shr ebx, 0x18
movzx ebx, byte [ebx*4 + str.ccccwwww]
xor eax, ebx
and edi, 0xff
mov edi, dword [edi*4 + str.ccccwwww]
and edi, 0xff00
xor eax, edi
xor eax, dword [esi]
mov ebx, 0x102582fc
xor ecx, eax
mov dword [esi + 0x20], eax
mov eax, dword [esi + 8]
xor eax, ecx
mov dword [esi + 0x24], ecx
mov ecx, dword [esi + 0xc]
xor ecx, eax
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], ecx
lea eax, [esi + 0x30]
mov edi, dword [eax - 4]
mov ecx, edi
shr ecx, 0x10
and ecx, 0xff
mov ecx, dword [ecx*4 + str.ccccwwww]
mov ebp, edi
shr ebp, 8
and ecx, 0xff0000
and ebp, 0xff
mov ebp, dword [ebp*4 + str.ccccwwww]
and ebp, 0xff00
xor ecx, ebp
mov ebp, edi
and edi, 0xff
movzx edi, byte [edi*4 + str.ccccwwww]
shr ebp, 0x18
mov ebp, dword [ebp*4 + str.ccccwwww]
and ebp, 0xff000000
xor ecx, ebp
xor ecx, edi
xor ecx, dword [eax - 0x20]
mov edi, dword [eax - 0x1c]
xor edi, ecx
mov dword [eax], ecx
mov ecx, dword [eax - 0x18]
xor ecx, edi
mov dword [eax + 4], edi
mov edi, dword [eax - 0x14]
xor edi, ecx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edi
mov edi, dword [eax + 0xc]
add eax, 0x20
mov ecx, edi
shr ecx, 8
mov ebp, edi
and ecx, 0xff
mov ecx, dword [ecx*4 + str.ccccwwww]
shr ebp, 0x10
and ebp, 0xff
mov ebp, dword [ebp*4 + str.ccccwwww]
and ecx, 0xff0000
and ebp, 0xff000000
xor ecx, ebp
mov ebp, edi
and edi, 0xff
mov edi, dword [edi*4 + str.ccccwwww]
shr ebp, 0x18
movzx ebp, byte [ebp*4 + str.ccccwwww]
xor ecx, ebp
and edi, 0xff00
xor ecx, edi
xor ecx, dword [eax - 0x30]
add ebx, 4
xor ecx, dword [ebx - 4]
mov dword [eax - 0x10], ecx
mov edi, dword [eax - 0x2c]
xor edi, ecx
mov dword [eax - 0xc], edi
mov ecx, dword [eax - 0x28]
xor ecx, edi
mov dword [eax - 8], ecx
mov edi, dword [eax - 0x24]
xor edi, ecx
mov dword [eax - 4], edi
cmp ebx, 0x10258314
jne 0x1020c777
mov eax, 0xe
mov dword [esp + 0x14], eax
jmp 0x1020c888
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x1c]
mov dword [esi + 0x1e4], ecx
mov ecx, 0x3c
mov edi, edx
mov dword [esi + 0x1e0], eax
rep movsd dword es:[edi], dword [esi]
lea edi, [eax*4]
xor ebx, ebx
test edi, edi
jle 0x1020c8f5
lea esi, [edx + edi*4 + 8]
lea ecx, [edx + 8]
mov eax, dword [esi - 8]
mov ebp, dword [ecx - 8]
mov dword [ecx - 8], eax
mov dword [esi - 8], ebp
mov ebp, dword [esi - 4]
mov eax, dword [ecx - 4]
mov dword [ecx - 4], ebp
mov ebp, dword [esi]
mov dword [esi - 4], eax
mov eax, dword [ecx]
mov dword [ecx], ebp
mov ebp, dword [esi + 4]
mov dword [esi], eax
mov eax, dword [ecx + 4]
mov dword [ecx + 4], ebp
mov dword [esi + 4], eax
add ebx, 4
sub edi, 4
add ecx, 0x10
sub esi, 0x10
cmp ebx, edi
jl 0x1020c8b5
mov eax, dword [esp + 0x14]
cmp eax, 1
jle 0x1020cab0
lea esi, [eax - 1]
mov ecx, dword [edx + 0x10]
movzx ebx, byte [edx + 0x11]
mov ebx, dword [ebx*4 + str.ccccwwww]
add edx, 0x10
mov edi, ecx
shr edi, 0x18
mov edi, dword [edi*4 + str.ccccwwww]
and edi, 0xff
mov edi, dword [edi*4 + 0x10256ef8]
and ebx, 0xff
xor edi, dword [ebx*4 + 0x102576f8]
movzx ebx, byte [edx + 2]
mov ebx, dword [ebx*4 + str.ccccwwww]
and ebx, 0xff
xor edi, dword [ebx*4 + 0x102572f8]
movzx ebx, byte [edx + 5]
and ecx, 0xff
mov ecx, dword [ecx*4 + str.ccccwwww]
and ecx, 0xff
xor edi, dword [ecx*4 + 0x10257af8]
mov ecx, dword [edx + 4]
mov dword [edx], edi
mov ebx, dword [ebx*4 + str.ccccwwww]
mov edi, ecx
shr edi, 0x18
mov edi, dword [edi*4 + str.ccccwwww]
and edi, 0xff
mov edi, dword [edi*4 + 0x10256ef8]
and ebx, 0xff
xor edi, dword [ebx*4 + 0x102576f8]
movzx ebx, byte [edx + 6]
mov ebx, dword [ebx*4 + str.ccccwwww]
and ebx, 0xff
xor edi, dword [ebx*4 + 0x102572f8]
movzx ebx, byte [edx + 9]
and ecx, 0xff
mov ecx, dword [ecx*4 + str.ccccwwww]
and ecx, 0xff
xor edi, dword [ecx*4 + 0x10257af8]
mov ecx, dword [edx + 8]
mov dword [edx + 4], edi
mov ebx, dword [ebx*4 + str.ccccwwww]
mov edi, ecx
shr edi, 0x18
mov edi, dword [edi*4 + str.ccccwwww]
and edi, 0xff
mov edi, dword [edi*4 + 0x10256ef8]
and ebx, 0xff
xor edi, dword [ebx*4 + 0x102576f8]
movzx ebx, byte [edx + 0xa]
mov ebx, dword [ebx*4 + str.ccccwwww]
and ebx, 0xff
xor edi, dword [ebx*4 + 0x102572f8]
movzx ebx, byte [edx + 0xd]
and ecx, 0xff
mov ecx, dword [ecx*4 + str.ccccwwww]
and ecx, 0xff
xor edi, dword [ecx*4 + 0x10257af8]
mov ecx, dword [edx + 0xc]
mov dword [edx + 8], edi
mov ebx, dword [ebx*4 + str.ccccwwww]
mov edi, ecx
shr edi, 0x18
mov edi, dword [edi*4 + str.ccccwwww]
and edi, 0xff
mov edi, dword [edi*4 + 0x10256ef8]
and ebx, 0xff
xor edi, dword [ebx*4 + 0x102576f8]
movzx ebx, byte [edx + 0xe]
mov ebx, dword [ebx*4 + str.ccccwwww]
and ecx, 0xff
mov ecx, dword [ecx*4 + str.ccccwwww]
and ebx, 0xff
xor edi, dword [ebx*4 + 0x102572f8]
and ecx, 0xff
xor edi, dword [ecx*4 + 0x10257af8]
sub esi, 1
mov dword [edx + 0xc], edi
jne 0x1020c901
pop edi
pop esi
pop ebp
pop ebx
ret