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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp dword [0x1001fed8], 0
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
jne 0x1000101f
mov dword [0x1001fed8], 1
mov ecx, 0x1001ee22
mov dword [ebp - 8], ebx
sub dword [ebp - 8], ecx
push 4
mov dword [ebx + 0x200], 0xa
mov eax, ebx
pop edi
movzx edx, byte [ecx - 2]
movzx esi, byte [ecx - 1]
shl edx, 8
or edx, esi
movzx esi, byte [ecx]
shl edx, 8
or edx, esi
movzx esi, byte [ecx + 1]
shl edx, 8
or edx, esi
mov esi, dword [ebp - 8]
mov dword [esi + ecx], edx
add ecx, edi
cmp ecx, 0x1001ee32
jl 0x10001039
mov ecx, dword [ebx + 0x200]
sub ecx, 0xa
je 0x1000120a
dec ecx
dec ecx
je 0x10001173
dec ecx
dec ecx
jne 0x10001286
mov dword [ebp - 8], 0x10019888
mov esi, dword [eax + 0x1c]
mov ecx, esi
shr ecx, 0x10
movzx ecx, cl
movzx ecx, byte [ecx + str.cw]
shl ecx, 8
mov edx, esi
shr edx, 8
movzx edx, dl
movzx edx, byte [edx + str.cw]
xor ecx, edx
movzx edx, byte [eax + 0x1c]
movzx edx, byte [edx + str.cw]
shl ecx, 8
xor ecx, edx
shl ecx, 8
mov edx, esi
shr edx, 0x18
movzx edx, byte [edx + str.cw]
xor ecx, edx
xor ecx, dword [eax]
mov edx, dword [ebp - 8]
xor ecx, dword [edx]
lea edx, [eax + 0x20]
mov dword [edx], ecx
mov dword [ebp - 4], edx
mov edx, dword [eax + 4]
xor edx, ecx
mov ecx, dword [eax + 8]
xor ecx, edx
mov dword [eax + 0x24], edx
mov edx, dword [eax + 0xc]
xor edx, ecx
mov dword [eax + 0x28], ecx
mov ebx, edx
mov ecx, edx
shr ecx, 0x18
mov dword [eax + 0x2c], edx
movzx ecx, byte [ecx + str.cw]
shr ebx, 0x10
shr edx, 8
shl ecx, 8
add dword [ebp - 8], edi
movzx ebx, bl
movzx ebx, byte [ebx + str.cw]
movzx edx, dl
movzx edx, byte [edx + str.cw]
xor ecx, ebx
shl ecx, 8
xor ecx, edx
movzx edx, byte [eax + 0x2c]
movzx edx, byte [edx + str.cw]
shl ecx, 8
xor ecx, edx
xor ecx, dword [eax + 0x10]
mov edx, dword [eax + 0x14]
xor edx, ecx
mov dword [eax + 0x30], ecx
mov ecx, dword [eax + 0x18]
xor ecx, edx
xor esi, ecx
cmp dword [ebp - 8], 0x100198a4
mov dword [eax + 0x34], edx
mov dword [eax + 0x38], ecx
mov dword [eax + 0x3c], esi
mov eax, dword [ebp - 4]
jl 0x1000108d
mov ebx, dword [ebp + 8]
jmp 0x10001286
mov dword [ebp - 8], 0x10019888
mov esi, dword [eax + 0x14]
mov ecx, esi
shr ecx, 0x10
movzx ecx, cl
movzx ecx, byte [ecx + str.cw]
shl ecx, 8
mov edx, esi
shr edx, 8
movzx edx, dl
movzx edx, byte [edx + str.cw]
xor ecx, edx
movzx edx, byte [eax + 0x14]
movzx edx, byte [edx + str.cw]
shl ecx, 8
xor ecx, edx
shl ecx, 8
mov edx, esi
shr edx, 0x18
movzx edx, byte [edx + str.cw]
xor ecx, edx
mov edx, dword [ebp - 8]
xor ecx, dword [edx]
add dword [ebp - 8], edi
xor ecx, dword [eax]
lea edx, [eax + 0x18]
mov dword [edx], ecx
mov dword [ebp - 4], edx
mov edx, dword [eax + 4]
xor edx, ecx
mov ecx, dword [eax + 8]
xor ecx, edx
mov dword [eax + 0x1c], edx
mov edx, dword [eax + 0xc]
xor edx, ecx
mov dword [eax + 0x20], ecx
mov ecx, dword [eax + 0x10]
xor ecx, edx
xor esi, ecx
cmp dword [ebp - 8], 0x100198a8
mov dword [eax + 0x24], edx
mov dword [eax + 0x28], ecx
mov dword [eax + 0x2c], esi
mov eax, dword [ebp - 4]
jl 0x1000117a
jmp 0x10001286
mov dword [ebp - 8], 0x10019888
mov esi, dword [eax + 0xc]
mov ecx, esi
shr ecx, 0x10
movzx ecx, cl
movzx ecx, byte [ecx + str.cw]
mov edx, esi
shr edx, 8
movzx edx, dl
movzx edx, byte [edx + str.cw]
shl ecx, 8
xor ecx, edx
movzx edx, byte [eax + 0xc]
movzx edx, byte [edx + str.cw]
shl ecx, 8
xor ecx, edx
mov edx, esi
shr edx, 0x18
movzx edx, byte [edx + str.cw]
shl ecx, 8
xor ecx, edx
xor ecx, dword [eax]
mov edx, dword [ebp - 8]
xor ecx, dword [edx]
mov edx, dword [eax + 4]
add dword [ebp - 8], edi
xor edx, ecx
mov dword [eax + 0x10], ecx
mov ecx, dword [eax + 8]
xor ecx, edx
xor esi, ecx
mov dword [eax + 0x14], edx
mov dword [eax + 0x18], ecx
mov dword [eax + 0x1c], esi
add eax, 0x10
cmp dword [ebp - 8], 0x100198b0
jl 0x10001211
cmp dword [0x1001fedc], 0
jne 0x100012ec
and dword [ebp - 4], 0
mov edx, dword [ebp - 4]
movzx ecx, byte [edx + str.cw]
mov esi, dword [ecx*4 + 0x10018888]
inc dword [ebp - 4]
cmp dword [ebp - 4], 0x100
mov dword [edx*4 + 0x100206e0], esi
mov esi, dword [ecx*4 + 0x10018c88]
mov dword [edx*4 + 0x100202e0], esi
mov esi, dword [ecx*4 + 0x10019088]
mov ecx, dword [ecx*4 + 0x10019488]
mov dword [edx*4 + 0x1001fee0], esi
mov dword [edx*4 + 0x10020ae0], ecx
jl 0x10001293
xor edx, edx
inc edx
mov dword [0x1001fedc], edx
jmp 0x100012ef
xor edx, edx
inc edx
mov esi, dword [eax]
add eax, edi
lea ecx, [ebx + 0x100]
mov dword [ecx], esi
mov esi, dword [eax]
add ecx, edi
mov dword [ecx], esi
add eax, edi
mov esi, dword [eax]
add ecx, edi
mov dword [ecx], esi
add eax, edi
mov esi, dword [eax]
add ecx, edi
mov dword [ecx], esi
add ecx, edi
add eax, edi
mov dword [ebp - 4], edx
cmp dword [ebx + 0x200], edx
jle 0x1000142f
mov dword [ebp - 0xc], ebx
sub eax, 0x20
mov esi, dword [eax]
mov ebx, esi
shr ebx, 0x10
mov edx, esi
shr edx, 0x18
mov edx, dword [edx*4 + 0x100206e0]
movzx esi, bl
xor edx, dword [esi*4 + 0x100202e0]
mov ebx, dword [eax]
shr ebx, 8
movzx esi, bl
xor edx, dword [esi*4 + 0x1001fee0]
movzx esi, byte [eax]
xor edx, dword [esi*4 + 0x10020ae0]
add eax, edi
mov dword [ecx], edx
mov esi, dword [eax]
mov ebx, esi
shr ebx, 0x10
mov edx, esi
shr edx, 0x18
mov edx, dword [edx*4 + 0x100206e0]
movzx esi, bl
xor edx, dword [esi*4 + 0x100202e0]
mov ebx, dword [eax]
shr ebx, 8
movzx esi, bl
xor edx, dword [esi*4 + 0x1001fee0]
movzx esi, byte [eax]
xor edx, dword [esi*4 + 0x10020ae0]
add ecx, edi
mov dword [ecx], edx
add eax, edi
mov esi, dword [eax]
mov ebx, esi
shr ebx, 0x10
mov edx, esi
shr edx, 0x18
mov edx, dword [edx*4 + 0x100206e0]
movzx esi, bl
xor edx, dword [esi*4 + 0x100202e0]
mov ebx, dword [eax]
shr ebx, 8
movzx esi, bl
xor edx, dword [esi*4 + 0x1001fee0]
movzx esi, byte [eax]
xor edx, dword [esi*4 + 0x10020ae0]
add ecx, edi
mov dword [ecx], edx
add eax, edi
mov esi, dword [eax]
mov ebx, esi
shr ebx, 0x10
mov edx, esi
shr edx, 0x18
mov edx, dword [edx*4 + 0x100206e0]
movzx esi, bl
xor edx, dword [esi*4 + 0x100202e0]
mov ebx, dword [eax]
shr ebx, 8
movzx esi, bl
xor edx, dword [esi*4 + 0x1001fee0]
movzx esi, byte [eax]
xor edx, dword [esi*4 + 0x10020ae0]
mov ebx, dword [ebp - 0xc]
add ecx, edi
mov dword [ecx], edx
add ecx, edi
add eax, edi
inc dword [ebp - 4]
mov edx, dword [ebp - 4]
cmp edx, dword [ebx + 0x200]
jl 0x10001324
sub eax, 0x20
mov edx, dword [eax]
mov dword [ecx], edx
add ecx, edi
add eax, edi
mov edx, dword [eax]
mov dword [ecx], edx
mov edx, dword [eax + edi]
mov dword [ecx + edi], edx
mov eax, dword [eax + edi + 4]
mov dword [ecx + edi + 4], eax
pop edi
pop esi
pop ebx
leave
ret