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

Disassembly:
sub esp, 0x38
push esi
mov esi, ecx
cmp byte [esi + 4], 0
je 0x1000ba61
mov eax, dword [esi + 0x3cc]
cmp eax, 0x10
jne 0x1000b7c4
push dword [esp + 0x44]
push dword [esp + 0x44]
call fcn.1000b3ec
jmp 0x1000ba5a
cdq
xor ecx, ecx
and edx, 3
push ebx
push ebp
push edi
lea edi, [edx + eax]
sar edi, 2
cmp edi, 6
mov dword [esp + 0x2c], edi
setne cl
xor eax, eax
inc ecx
cmp edi, 4
cmove ecx, eax
shl ecx, 5
mov ebp, dword [ecx + 0x100a72f8]
mov eax, dword [ecx + 0x100a7300]
mov edx, dword [ecx + 0x100a7308]
lea ecx, [esi + 0x454]
mov dword [esp + 0x28], ebp
mov ebx, ecx
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], ecx
test edi, edi
jle 0x1000b863
mov edx, dword [esp + 0x4c]
lea ebp, [esi + 8]
movzx eax, byte [edx]
mov ecx, ebx
shl eax, 0x18
lea edx, [edx + 4]
mov dword [ebx], eax
movzx eax, byte [edx - 3]
shl eax, 0x10
or dword [ebx], eax
movzx eax, byte [edx - 2]
shl eax, 8
or dword [ebx], eax
movzx eax, byte [edx - 1]
or dword [ebx], eax
add ebx, 4
mov eax, dword [ebp]
lea ebp, [ebp + 4]
xor dword [ecx], eax
sub edi, 1
jne 0x1000b81e
mov edi, dword [esp + 0x2c]
mov ebp, dword [esp + 0x28]
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
xor ebx, ebx
inc ebx
mov dword [esp + 0x2c], ebx
cmp dword [esi + 0x3d0], ebx
jle 0x1000b97a
lea ecx, [esi + 0x28]
mov dword [esp + 0x30], ecx
test edi, edi
jle 0x1000b93a
sub eax, ebp
mov dword [esp + 0x4c], ebp
mov dword [esp + 0x34], eax
lea ebx, [esi + 0x434]
mov eax, edx
mov dword [esp + 0x20], ebx
sub eax, ebp
mov dword [esp + 0x1c], ecx
mov ebp, dword [esp + 0x34]
mov ebx, eax
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x24], edi
add eax, ebp
cdq
idiv edi
mov eax, dword [esi + edx*4 + 0x454]
sar eax, 8
movzx ecx, al
mov eax, dword [esp + 0x4c]
add eax, ebx
cdq
idiv edi
mov ecx, dword [ecx*4 + 0x100a7c50]
movzx eax, byte [esi + edx*4 + 0x454]
xor ecx, dword [eax*4 + 0x100a7850]
mov eax, dword [esp + 0x4c]
cdq
idiv edi
movsx eax, word [esi + edx*4 + 0x456]
mov edx, dword [esp + 0x20]
movzx eax, al
xor ecx, dword [eax*4 + 0x100a6ef0]
movzx eax, byte [edx + 0x23]
xor ecx, dword [eax*4 + 0x100a8870]
mov eax, dword [esp + 0x1c]
xor ecx, dword [eax]
add eax, 4
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x4c]
mov dword [edx], ecx
add edx, 4
inc eax
mov dword [esp + 0x20], edx
sub dword [esp + 0x24], 1
mov dword [esp + 0x4c], eax
jne 0x1000b8b3
mov ebx, dword [esp + 0x2c]
mov ebp, dword [esp + 0x28]
mov eax, edi
shl eax, 2
push eax
lea eax, [esi + 0x434]
push eax
lea eax, [esi + 0x454]
push eax
call fcn.1005ce90
mov ecx, dword [esp + 0x3c]
add esp, 0xc
mov eax, dword [esp + 0x10]
inc ebx
mov edx, dword [esp + 0x14]
add ecx, 0x20
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ecx
cmp ebx, dword [esi + 0x3d0]
jl 0x1000b87d
xor ecx, ecx
mov dword [esp + 0x30], ecx
test edi, edi
jle 0x1000ba57
mov edx, dword [esp + 0x10]
sub ebp, edx
mov eax, dword [esp + 0x50]
sub dword [esp + 0x14], edx
mov dword [esp + 0x4c], eax
mov eax, dword [esi + 0x3d0]
lea eax, [ecx + eax*8]
mov ebx, dword [esi + eax*4 + 8]
mov ecx, ebx
mov eax, dword [esp + 0x18]
sar ecx, 0x18
add dword [esp + 0x18], 4
movzx eax, byte [eax + 3]
xor cl, byte [eax + str.cw]
mov eax, dword [esp + 0x4c]
mov byte [eax], cl
inc eax
mov dword [esp + 0x4c], eax
mov ecx, ebx
lea eax, [edx + ebp]
sar ecx, 0x10
cdq
idiv edi
movsx eax, word [esi + edx*4 + 0x456]
movzx eax, al
xor cl, byte [eax + str.cw]
mov eax, dword [esp + 0x4c]
mov byte [eax], cl
inc eax
mov dword [esp + 0x4c], eax
mov ecx, ebx
mov eax, dword [esp + 0x10]
cdq
idiv edi
sar ecx, 8
mov eax, dword [esi + edx*4 + 0x454]
sar eax, 8
movzx eax, al
xor cl, byte [eax + str.cw]
mov eax, dword [esp + 0x4c]
mov byte [eax], cl
mov ecx, eax
mov eax, dword [esp + 0x10]
add eax, dword [esp + 0x14]
cdq
idiv edi
movzx eax, byte [esi + edx*4 + 0x454]
mov edx, dword [esp + 0x10]
mov al, byte [eax + str.cw]
xor al, bl
mov byte [ecx + 1], al
add ecx, 2
mov dword [esp + 0x4c], ecx
mov ecx, dword [esp + 0x30]
inc ecx
inc edx
mov dword [esp + 0x30], ecx
mov dword [esp + 0x10], edx
cmp ecx, edi
jl 0x1000b99a
pop edi
pop ebp
pop ebx
pop esi
add esp, 0x38
ret 8
push str.Object_not_Initialized
lea ecx, [esp + 0x34]
call fcn.100011c0
push 0x100ae1e0
lea eax, [esp + 0x34]
push eax
call fcn.1005dcb9
int3