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

Disassembly:
push ecx
push ebx
push ebp
mov ebp, ecx
mov ecx, dword [ebp + 0x28]
mov edx, dword [ebp + 0x2c]
push esi
push edi
mov dword [esp + 0x10], ebp
cmp ecx, 0x120c
jne 0x1003cb5d
mov eax, edx
jmp 0x1003cb7a
test edx, edx
je 0x1003cb70
mov edi, edx
xor al, al
push edx
rep stosb byte es:[edi], al
call fcn.101b47dc
add esp, 4
mov edi, 0x120c
call fcn.1001d530
mov ebx, dword [esp + 0x1c]
mov dword [ebp + 0x2c], eax
shr ebx, 2
mov dword [ebp + 0x28], 0x120c
mov dword [ebp + 0x24], 0xffffffff
lea eax, [ebx + 6]
mov dword [ebp + 0xc], eax
lea eax, [eax*4 + 4]
lea esi, [ebp + 0x10]
push eax
mov dword [ebp + 0x24], 0
call fcn.10030280
mov ecx, dword [esp + 0x1c]
mov edi, dword [ebp + 0x1c]
mov eax, dword [esp + 0x18]
push ecx
mov ecx, ebx
call fcn.1003d840
mov ecx, dword [edi + ebx*4 - 4]
mov edx, ecx
shr edx, 0x10
movzx eax, dl
movzx eax, byte [eax + 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 + ebx*4], eax
mov ecx, dword [edi + 4]
xor ecx, eax
mov dword [edi + ebx*4 + 4], ecx
mov eax, dword [edi + 8]
xor eax, ecx
mov dword [edi + ebx*4 + 8], eax
mov edx, dword [edi + 0xc]
xor edx, eax
mov dword [edi + ebx*4 + 0xc], edx
mov eax, dword [esi + 8]
mov ecx, dword [esi + 0xc]
lea edx, [ecx + eax*4]
lea eax, [edi + ebx*4 + 0x10]
mov dword [esp + 0x18], 0x1025f67c
cmp eax, edx
je 0x1003cd5f
lea ebx, [ebx]
mov eax, dword [esp + 0x1c]
cmp eax, 0x18
jne 0x1003cc6c
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 0x1003ccd5
cmp eax, 0x20
jne 0x1003ccd5
mov ecx, dword [edi + 0x2c]
mov edx, ecx
shr edx, 0x18
movzx eax, byte [edx + str.cw]
mov edx, ecx
shr edx, 0x10
movzx edx, dl
movzx edx, byte [edx + str.cw]
shl eax, 8
xor eax, edx
mov edx, ecx
shr edx, 8
movzx edx, dl
movzx edx, byte [edx + str.cw]
shl eax, 8
movzx ecx, cl
xor eax, edx
movzx edx, byte [ecx + str.cw]
mov ecx, dword [edi + 0x14]
shl eax, 8
xor eax, edx
xor eax, dword [edi + 0x10]
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 + ebx*4]
mov eax, dword [edi + ebx*4 - 4]
mov edx, eax
shr edx, 0x10
movzx ecx, dl
movzx edx, byte [ecx + str.cw]
mov ecx, eax
shr ecx, 8
movzx ecx, cl
movzx ecx, byte [ecx + str.cw]
shl edx, 8
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 + ebx*4], edx
mov eax, dword [edi + 4]
xor eax, edx
mov dword [edi + ebx*4 + 4], eax
mov ecx, dword [edi + 8]
xor ecx, eax
mov dword [edi + ebx*4 + 8], ecx
mov edx, dword [edi + 0xc]
xor edx, ecx
mov dword [edi + ebx*4 + 0xc], edx
mov eax, dword [esi + 8]
mov ecx, dword [esi + 0xc]
lea edx, [ecx + eax*4]
lea eax, [edi + ebx*4 + 0x10]
cmp eax, edx
jne 0x1003cc50
mov edx, dword [ebp + 4]
mov eax, dword [edx + 0x20]
mov esi, dword [ebp + 0x1c]
lea ecx, [ebp + 4]
call eax
test al, al
je 0x1003cdb8
mov cl, byte [0x102892c9]
test cl, cl
jne 0x1003cd80
call fcn.1003c910
xor eax, eax
mov edx, dword [esi + eax*4]
bswap edx
mov dword [esi + eax*4], edx
inc eax
cmp eax, 4
jb 0x1003cd82
mov eax, dword [ebp + 0xc]
shl eax, 4
add eax, esi
mov ecx, eax
sub ecx, eax
mov edx, 4
mov esi, dword [ecx + eax]
bswap esi
mov dword [eax], esi
add eax, 4
sub edx, 1
jne 0x1003cda1
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 0xc
mov cl, byte [0x102892ca]
test cl, cl
jne 0x1003cdc7
call fcn.1003c990
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 0xc]
lea ecx, [ecx*4 - 4]
mov ebp, 4
mov dword [esp + 0x1c], ecx
cmp ecx, ebp
jbe 0x1003d0b5
lea ecx, [esi + ecx*4 + 8]
lea eax, [esi + 0x18]
lea ecx, [ecx]
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*4 + 0x102872c0]
xor edi, dword [ebx*4 + 0x102876c0]
xor edi, dword [edx*4 + 0x10287ac0]
movzx edx, byte [eax - 8]
movzx edx, byte [edx + str.cw]
xor edi, dword [edx*4 + 0x10287ec0]
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*4 + 0x102872c0]
xor ebx, dword [edx*4 + 0x102876c0]
mov edx, dword [ecx - 8]
shr edx, 8
movzx edx, dl
movzx edx, byte [edx + str.cw]
xor ebx, dword [edx*4 + 0x10287ac0]
movzx edx, byte [ecx - 8]
movzx edx, byte [edx + str.cw]
xor ebx, dword [edx*4 + 0x10287ec0]
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*4 + 0x102872c0]
xor edi, dword [ebx*4 + 0x102876c0]
xor edi, dword [edx*4 + 0x10287ac0]
movzx edx, byte [eax - 4]
movzx edx, byte [edx + str.cw]
xor edi, dword [edx*4 + 0x10287ec0]
mov edx, dword [ecx - 4]
mov ebx, edx
shr edx, 0x10
shr ebx, 0x18
movzx ebx, byte [ebx + str.cw]
mov ebx, dword [ebx*4 + 0x102872c0]
movzx edx, dl
movzx edx, byte [edx + str.cw]
xor ebx, dword [edx*4 + 0x102876c0]
mov edx, dword [ecx - 4]
shr edx, 8
movzx edx, dl
movzx edx, byte [edx + str.cw]
xor ebx, dword [edx*4 + 0x10287ac0]
movzx edx, byte [ecx - 4]
movzx edx, byte [edx + str.cw]
xor ebx, dword [edx*4 + 0x10287ec0]
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*4 + 0x102872c0]
mov ebx, edx
shr ebx, 0x10
movzx ebx, bl
movzx ebx, byte [ebx + str.cw]
xor edi, dword [ebx*4 + 0x102876c0]
shr edx, 8
movzx edx, dl
movzx edx, byte [edx + str.cw]
xor edi, dword [edx*4 + 0x10287ac0]
movzx edx, byte [eax]
movzx edx, byte [edx + str.cw]
xor edi, dword [edx*4 + 0x10287ec0]
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*4 + 0x102872c0]
xor ebx, dword [edx*4 + 0x102876c0]
mov edx, dword [ecx]
shr edx, 8
movzx edx, dl
movzx edx, byte [edx + str.cw]
xor ebx, dword [edx*4 + 0x10287ac0]
movzx edx, byte [ecx]
movzx edx, byte [edx + str.cw]
xor ebx, dword [edx*4 + 0x10287ec0]
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*4 + 0x102872c0]
xor edi, dword [ebx*4 + 0x102876c0]
add eax, 0x10
xor edi, dword [edx*4 + 0x10287ac0]
movzx edx, byte [eax - 0xc]
movzx edx, byte [edx + str.cw]
xor edi, dword [edx*4 + 0x10287ec0]
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*4 + 0x102872c0]
xor ebx, dword [edx*4 + 0x102876c0]
mov edx, dword [ecx + 4]
shr edx, 8
movzx edx, dl
movzx edx, byte [edx + str.cw]
xor ebx, dword [edx*4 + 0x10287ac0]
movzx edx, byte [ecx + 4]
movzx edx, byte [edx + str.cw]
xor ebx, dword [edx*4 + 0x10287ec0]
mov edx, dword [esp + 0x1c]
mov dword [eax - 0xc], ebx
sub edx, 4
mov dword [ecx + 4], edi
sub ecx, 0x10
mov dword [esp + 0x1c], edx
cmp ebp, edx
jb 0x1003cdf0
mov eax, dword [esp + 0x10]
mov ecx, dword [esi + ebp*4]
mov ebx, ecx
mov edx, ecx
shr edx, 0x18
movzx edx, byte [edx + str.cw]
mov edx, dword [edx*4 + 0x102872c0]
shr ecx, 8
movzx ecx, cl
movzx ecx, byte [ecx + str.cw]
shr ebx, 0x10
movzx edi, bl
movzx edi, byte [edi + str.cw]
xor edx, dword [edi*4 + 0x102876c0]
xor edx, dword [ecx*4 + 0x10287ac0]
movzx ecx, byte [esi + ebp*4]
movzx ecx, byte [ecx + str.cw]
xor edx, dword [ecx*4 + 0x10287ec0]
mov ecx, dword [esi + ebp*4 + 4]
mov dword [esi + ebp*4], edx
mov ebx, ecx
mov edx, ecx
shr edx, 0x18
movzx edx, byte [edx + str.cw]
mov edx, dword [edx*4 + 0x102872c0]
shr ecx, 8
movzx ecx, cl
movzx ecx, byte [ecx + str.cw]
shr ebx, 0x10
movzx edi, bl
movzx edi, byte [edi + str.cw]
xor edx, dword [edi*4 + 0x102876c0]
xor edx, dword [ecx*4 + 0x10287ac0]
movzx ecx, byte [esi + ebp*4 + 4]
movzx ecx, byte [ecx + str.cw]
xor edx, dword [ecx*4 + 0x10287ec0]
mov ecx, dword [esi + ebp*4 + 8]
mov dword [esi + ebp*4 + 4], edx
mov ebx, ecx
mov edx, ecx
shr edx, 0x18
movzx edx, byte [edx + str.cw]
mov edx, dword [edx*4 + 0x102872c0]
shr ecx, 8
movzx ecx, cl
movzx ecx, byte [ecx + str.cw]
shr ebx, 0x10
movzx edi, bl
movzx edi, byte [edi + str.cw]
xor edx, dword [edi*4 + 0x102876c0]
xor edx, dword [ecx*4 + 0x10287ac0]
movzx ecx, byte [esi + ebp*4 + 8]
movzx ecx, byte [ecx + str.cw]
xor edx, dword [ecx*4 + 0x10287ec0]
mov ecx, dword [esi + ebp*4 + 0xc]
mov dword [esi + ebp*4 + 8], edx
mov ebx, ecx
mov edx, ecx
shr edx, 0x18
movzx edx, byte [edx + str.cw]
mov edx, dword [edx*4 + 0x102872c0]
shr ecx, 8
shr ebx, 0x10
movzx ecx, cl
movzx ecx, byte [ecx + str.cw]
movzx edi, bl
movzx edi, byte [edi + str.cw]
xor edx, dword [edi*4 + 0x102876c0]
xor edx, dword [ecx*4 + 0x10287ac0]
movzx ecx, byte [esi + ebp*4 + 0xc]
movzx ecx, byte [ecx + str.cw]
xor edx, dword [ecx*4 + 0x10287ec0]
mov dword [esi + ebp*4 + 0xc], edx
mov edx, dword [eax + 0xc]
mov ecx, dword [esi]
shl edx, 4
mov edx, dword [edx + esi]
bswap edx
mov dword [esi], edx
mov edx, dword [eax + 0xc]
bswap ecx
shl edx, 4
mov dword [edx + esi], ecx
mov edx, dword [eax + 0xc]
mov ecx, dword [esi + 4]
shl edx, 4
mov edx, dword [edx + esi + 4]
bswap edx
mov dword [esi + 4], edx
mov edx, dword [eax + 0xc]
shl edx, 4
bswap ecx
mov dword [edx + esi + 4], ecx
mov edx, dword [eax + 0xc]
mov ecx, dword [esi + 8]
shl edx, 4
mov edx, dword [edx + esi + 8]
bswap edx
mov dword [esi + 8], edx
mov edx, dword [eax + 0xc]
shl edx, 4
bswap ecx
mov dword [edx + esi + 8], ecx
mov edx, dword [eax + 0xc]
mov ecx, dword [esi + 0xc]
shl edx, 4
mov edx, dword [edx + esi + 0xc]
bswap edx
mov dword [esi + 0xc], edx
mov eax, dword [eax + 0xc]
pop edi
bswap ecx
shl eax, 4
mov dword [eax + esi + 0xc], ecx
pop esi
pop ebp
pop ebx
pop ecx
ret 0xc