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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [ebp + 8]
push ebx
mov ebx, ecx
mov dword [ebp - 0x10], eax
push esi
push edi
mov edi, dword [ebp + 0xc]
mov ecx, dword [ebx + 0x28]
mov edx, dword [ebx + 0x2c]
mov dword [ebp - 0x20], ebx
mov dword [ebp - 4], edi
cmp ecx, 0x120c
je 0x1012127d
test edx, edx
je 0x1012126e
mov edi, edx
xor al, al
rep stosb byte es:[edi], al
push edx
call fcn.101a02f0
mov edi, dword [ebp - 4]
add esp, 4
push 0x120c
call fcn.100f1120
add esp, 4
mov edx, eax
mov eax, edi
mov dword [ebx + 0x2c], edx
shr eax, 2
lea ecx, [ebx + 0x10]
mov dword [ebp - 0xc], eax
add eax, 6
mov dword [ebx + 0x28], 0x120c
mov dword [ebx + 0x24], 0xffffffff
mov dword [ebx + 0xc], eax
lea eax, [eax*4 + 4]
mov dword [ebx + 0x24], 0
push eax
mov dword [ebp - 0x1c], ecx
call fcn.10111870
mov al, byte [0x102775da]
mov esi, dword [ebx + 0x1c]
test al, al
jne 0x101212cc
call fcn.10129c10
mov al, byte [0x102775da]
cmp byte [0x102775e0], 0
je 0x1012131e
test al, al
jne 0x101212de
call fcn.10129c10
cmp byte [0x102775dd], 0
je 0x1012131e
push esi
push edi
push dword [ebp - 0x10]
call fcn.10176d50
mov eax, dword [ebx + 4]
lea ecx, [ebx + 4]
add esp, 0xc
mov eax, dword [eax + 0x20]
call eax
test al, al
jne 0x10121a99
push dword [ebx + 0xc]
push dword [ebx + 0x1c]
call fcn.10176cf0
add esp, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push dword [ebp - 4]
mov dword [ebp - 0x18], edi
mov edi, dword [ebp - 0xc]
push dword [ebp - 0x10]
shl edi, 2
push edi
push esi
mov dword [ebp - 8], 4
call fcn.101aa8ee
mov eax, dword [ebp - 4]
sub edi, eax
push edi
add eax, esi
push 0
push eax
call fcn.101a01b0
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.100f2d50
push eax
push esi
push esi
call fcn.1011f8b0
mov eax, dword [ebp - 0xc]
add esp, 0x30
shl eax, 2
mov ecx, dword [eax + esi - 4]
lea edi, [eax + esi]
mov dword [ebp - 0x10], eax
mov eax, ecx
shr eax, 0x10
movzx eax, al
mov dword [ebp - 8], 0x1020d244
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 [0x1020d240]
mov dword [edi], edx
mov eax, dword [esi + 4]
xor eax, edx
mov edx, dword [ebp - 0xc]
mov dword [edi + 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 - 0x28], eax
mov eax, dword [esi + 0xc]
xor eax, ecx
mov dword [esi + edx*4 + 0xc], eax
lea edx, [edx*4 + 0x10]
mov eax, dword [ebx + 0x1c]
mov ecx, dword [ebx + 0x18]
mov dword [ebp - 0x14], edx
lea ecx, [eax + ecx*4]
lea eax, [edx + esi]
cmp eax, ecx
je 0x10121540
mov edx, dword [ebp - 0x10]
lea ebx, [edx - 4]
lea eax, [edx + 4]
mov dword [ebp - 0x18], ebx
mov ebx, dword [ebp - 4]
mov dword [ebp - 0xc], eax
cmp ebx, 0x18
jne 0x1012143d
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 0x101214a6
cmp ebx, 0x20
jne 0x101214a6
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
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 eax, dword [ebp - 0x18]
mov esi, edi
mov edi, dword [ebp - 0x10]
add edi, esi
mov edx, dword [eax + esi]
mov eax, edx
shr eax, 0x10
movzx eax, al
movzx ecx, byte [eax + str.cw]
mov eax, edx
shr eax, 8
movzx eax, al
shl ecx, 8
movzx eax, byte [eax + str.cw]
xor ecx, eax
movzx eax, dl
shl ecx, 8
shr edx, 0x18
movzx eax, byte [eax + str.cw]
xor ecx, eax
movzx eax, byte [edx + str.cw]
shl ecx, 8
xor ecx, eax
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 8]
xor ecx, dword [eax]
add eax, 4
xor ecx, dword [esi]
mov dword [edi], ecx
mov dword [ebp - 8], eax
mov eax, dword [esi + 4]
xor eax, ecx
mov ecx, dword [ebp - 0xc]
mov dword [ecx + esi], 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 - 0x28]
mov dword [ecx + esi], eax
mov eax, dword [edx + 0xc]
mov ecx, dword [edx + 8]
lea ecx, [eax + ecx*4]
mov eax, dword [ebp - 0x14]
add eax, esi
cmp eax, ecx
jne 0x10121425
mov ebx, dword [ebp - 0x20]
mov eax, dword [ebx + 4]
lea ecx, [ebx + 4]
mov edi, dword [ebx + 0x1c]
mov dword [ebp - 0x1c], edi
mov eax, dword [eax + 0x20]
call eax
test al, al
je 0x10121585
cmp byte [0x10276dc0], 0
jne 0x10121563
call fcn.1011fef0
push 0x10
push edi
push edi
call fcn.1011f8b0
mov eax, dword [ebx + 0xc]
shl eax, 4
add eax, edi
push 0x10
push eax
push eax
call fcn.1011f8b0
add esp, 0x18
jmp 0x10121a6d
cmp byte [0x10276dc1], 0
jne 0x10121593
call fcn.1011fd90
mov eax, dword [ebx + 0xc]
mov esi, 4
mov dword [ebp - 8], esi
lea eax, [eax*4 - 4]
mov dword [ebp - 0x14], eax
cmp eax, esi
jbe 0x101218a4
mov ebx, eax
lea eax, [ebx + 2]
lea eax, [edi + eax*4]
mov dword [ebp - 0x14], eax
lea eax, [edi + 0x18]
mov edi, dword [ebp - 0x14]
mov dword [ebp - 4], 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 + 0x10276dcc]
movzx eax, byte [eax + str.cw]
xor esi, dword [eax*8 + 0x10276dc9]
movzx eax, dl
mov edx, dword [edi - 8]
movzx eax, byte [eax + str.cw]
xor esi, dword [eax*8 + 0x10276dca]
mov eax, dword [ebp - 4]
movzx eax, byte [eax - 8]
movzx eax, byte [eax + str.cw]
xor esi, dword [eax*8 + 0x10276dcb]
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 + 0x10276dcc]
movzx eax, byte [eax + str.cw]
xor ecx, dword [eax*8 + 0x10276dc9]
movzx eax, dl
movzx eax, byte [eax + str.cw]
xor ecx, dword [eax*8 + 0x10276dca]
movzx eax, byte [edi - 8]
movzx eax, byte [eax + str.cw]
xor ecx, dword [eax*8 + 0x10276dcb]
mov eax, dword [ebp - 4]
mov dword [eax - 8], ecx
mov dword [edi - 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 + 0x10276dcc]
movzx eax, byte [eax + str.cw]
xor esi, dword [eax*8 + 0x10276dc9]
movzx eax, dl
mov edx, dword [edi - 4]
movzx eax, byte [eax + str.cw]
xor esi, dword [eax*8 + 0x10276dca]
mov eax, dword [ebp - 4]
movzx eax, byte [eax - 4]
movzx eax, byte [eax + str.cw]
xor esi, dword [eax*8 + 0x10276dcb]
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 + 0x10276dcc]
movzx eax, byte [eax + str.cw]
xor ecx, dword [eax*8 + 0x10276dc9]
movzx eax, dl
movzx eax, byte [eax + str.cw]
xor ecx, dword [eax*8 + 0x10276dca]
movzx eax, byte [edi - 4]
movzx eax, byte [eax + str.cw]
xor ecx, dword [eax*8 + 0x10276dcb]
mov eax, dword [ebp - 4]
mov dword [eax - 4], ecx
mov dword [edi - 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 edi, [edi - 0x10]
movzx eax, al
sub ebx, 4
mov esi, dword [ecx*8 + 0x10276dcc]
shr edx, 8
movzx eax, byte [eax + str.cw]
xor esi, dword [eax*8 + 0x10276dc9]
movzx eax, dl
mov edx, dword [edi + 0x10]
movzx eax, byte [eax + str.cw]
xor esi, dword [eax*8 + 0x10276dca]
mov eax, dword [ebp - 4]
movzx eax, byte [eax]
movzx eax, byte [eax + str.cw]
xor esi, dword [eax*8 + 0x10276dcb]
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 + 0x10276dcc]
movzx eax, byte [eax + str.cw]
xor ecx, dword [eax*8 + 0x10276dc9]
movzx eax, dl
movzx eax, byte [eax + str.cw]
xor ecx, dword [eax*8 + 0x10276dca]
movzx eax, byte [edi + 0x10]
movzx eax, byte [eax + str.cw]
xor ecx, dword [eax*8 + 0x10276dcb]
mov eax, dword [ebp - 4]
mov dword [eax], ecx
mov dword [edi + 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 + 0x10276dcc]
movzx eax, byte [eax + str.cw]
xor esi, dword [eax*8 + 0x10276dc9]
movzx eax, dl
mov edx, dword [edi + 0x14]
movzx eax, byte [eax + str.cw]
xor esi, dword [eax*8 + 0x10276dca]
mov eax, dword [ebp - 4]
movzx eax, byte [eax + 4]
movzx eax, byte [eax + str.cw]
xor esi, dword [eax*8 + 0x10276dcb]
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 + 0x10276dcc]
movzx eax, byte [eax + str.cw]
xor ecx, dword [eax*8 + 0x10276dc9]
movzx eax, dl
movzx eax, byte [eax + str.cw]
xor ecx, dword [eax*8 + 0x10276dca]
movzx eax, byte [edi + 0x14]
movzx eax, byte [eax + str.cw]
xor ecx, dword [eax*8 + 0x10276dcb]
mov eax, dword [ebp - 4]
mov dword [eax + 4], ecx
add eax, 0x10
mov dword [edi + 0x14], esi
mov esi, dword [ebp - 8]
add esi, 4
mov dword [ebp - 4], eax
mov dword [ebp - 8], esi
cmp esi, ebx
jb 0x101215c4
mov ebx, dword [ebp - 0x20]
mov edi, dword [ebp - 0x1c]
mov edx, dword [edi + 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 + 0x10276dcc]
movzx eax, byte [eax + str.cw]
xor ecx, dword [eax*8 + 0x10276dc9]
movzx eax, dl
mov edx, dword [edi + esi*4 + 4]
movzx eax, byte [eax + str.cw]
xor ecx, dword [eax*8 + 0x10276dca]
movzx eax, byte [edi + esi*4]
movzx eax, byte [eax + str.cw]
xor ecx, dword [eax*8 + 0x10276dcb]
mov eax, edx
shr eax, 0x18
mov dword [edi + 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 + 0x10276dcc]
movzx eax, byte [eax + str.cw]
xor ecx, dword [eax*8 + 0x10276dc9]
movzx eax, dl
mov edx, dword [edi + esi*4 + 8]
movzx eax, byte [eax + str.cw]
xor ecx, dword [eax*8 + 0x10276dca]
movzx eax, byte [edi + esi*4 + 4]
movzx eax, byte [eax + str.cw]
xor ecx, dword [eax*8 + 0x10276dcb]
mov eax, edx
shr eax, 0x18
mov dword [edi + 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 + 0x10276dcc]
movzx eax, byte [eax + str.cw]
xor ecx, dword [eax*8 + 0x10276dc9]
movzx eax, dl
mov edx, dword [edi + esi*4 + 0xc]
movzx eax, byte [eax + str.cw]
xor ecx, dword [eax*8 + 0x10276dca]
movzx eax, byte [edi + esi*4 + 8]
movzx eax, byte [eax + str.cw]
xor ecx, dword [eax*8 + 0x10276dcb]
mov eax, edx
shr eax, 0x18
mov dword [edi + 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 + 0x10276dcc]
movzx eax, byte [eax + str.cw]
xor ecx, dword [eax*8 + 0x10276dc9]
movzx eax, dl
movzx eax, byte [eax + str.cw]
xor ecx, dword [eax*8 + 0x10276dca]
movzx eax, byte [edi + esi*4 + 0xc]
movzx eax, byte [eax + str.cw]
xor ecx, dword [eax*8 + 0x10276dcb]
mov dword [edi + esi*4 + 0xc], ecx
mov eax, dword [ebx + 0xc]
mov ecx, dword [edi]
add eax, eax
bswap ecx
mov eax, dword [edi + eax*8]
bswap eax
mov dword [edi], eax
mov eax, dword [ebx + 0xc]
add eax, eax
mov dword [edi + eax*8], ecx
mov eax, dword [ebx + 0xc]
mov ecx, dword [edi + 4]
add eax, eax
bswap ecx
mov eax, dword [edi + eax*8 + 4]
bswap eax
mov dword [edi + 4], eax
mov eax, dword [ebx + 0xc]
add eax, eax
mov dword [edi + eax*8 + 4], ecx
mov eax, dword [ebx + 0xc]
mov ecx, dword [edi + 8]
add eax, eax
bswap ecx
mov eax, dword [edi + eax*8 + 8]
bswap eax
mov dword [edi + 8], eax
mov eax, dword [ebx + 0xc]
add eax, eax
mov dword [edi + eax*8 + 8], ecx
mov eax, dword [ebx + 0xc]
mov ecx, dword [edi + 0xc]
add eax, eax
bswap ecx
mov eax, dword [edi + eax*8 + 0xc]
bswap eax
mov dword [edi + 0xc], eax
mov eax, dword [ebx + 0xc]
add eax, eax
mov dword [edi + eax*8 + 0xc], ecx
cmp byte [0x102775da], 0
jne 0x10121a7b
call fcn.10129c10
cmp byte [0x102775e0], 0
je 0x10121a99
mov ecx, dword [ebx + 0xc]
lea eax, [edi + 0x10]
dec ecx
shl ecx, 4
push ecx
push eax
push eax
call fcn.1011f8b0
add esp, 0xc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc