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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push esi
mov esi, ecx
mov dword [ebp - 0x1c], esi
cmp byte [esi + 4], 0
je 0x10036b62
mov eax, dword [esi + 0x3cc]
cmp eax, 0x10
jne 0x100368e9
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.10036259
jmp 0x10036b5d
cdq
xor ecx, ecx
and edx, 3
push ebx
push edi
lea edi, [edx + eax]
sar edi, 2
cmp edi, 6
mov dword [ebp - 0x18], edi
setne cl
xor eax, eax
inc ecx
cmp edi, 4
cmove ecx, eax
shl ecx, 5
mov eax, dword [ecx + 0x101e54d4]
mov edx, dword [ecx + 0x101e54dc]
mov ecx, dword [ecx + 0x101e54e4]
mov dword [ebp - 0xc], ecx
lea ecx, [esi + 0x454]
mov dword [ebp - 8], eax
mov dword [ebp - 4], edx
mov dword [ebp - 0x10], ecx
test edi, edi
jle 0x1003698d
mov ebx, dword [ebp + 8]
lea eax, [esi + 0x1e8]
mov dword [ebp - 0x14], edi
mov esi, eax
mov edi, ecx
movzx eax, byte [ebx]
mov edx, edi
shl eax, 0x18
lea ebx, [ebx + 4]
mov dword [edi], eax
movzx ecx, byte [ebx - 3]
shl ecx, 0x10
or ecx, eax
mov dword [edi], ecx
movzx eax, byte [ebx - 2]
shl eax, 8
or eax, ecx
mov dword [edi], eax
movzx ecx, byte [ebx - 1]
or ecx, eax
mov dword [edi], ecx
add edi, 4
mov eax, dword [esi]
lea esi, [esi + 4]
xor eax, ecx
sub dword [ebp - 0x14], 1
mov dword [edx], eax
jne 0x10036944
mov esi, dword [ebp - 0x1c]
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 4]
xor ebx, ebx
inc ebx
mov dword [ebp - 0x20], ebx
cmp dword [esi + 0x3d0], ebx
jle 0x10036a83
lea ecx, [esi + 0x208]
mov dword [ebp - 0x24], ecx
test edi, edi
jle 0x10036a48
lea ebx, [esi + 0x434]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 0x18], ebx
mov ebx, edx
sub ebx, eax
mov dword [ebp + 8], eax
sub ecx, eax
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x28], ecx
add eax, ebx
cdq
idiv edi
mov eax, dword [esi + edx*4 + 0x454]
sar eax, 8
movzx ecx, al
mov eax, dword [ebp - 0x28]
add eax, dword [ebp + 8]
cdq
idiv edi
mov ecx, dword [ecx*4 + 0x101e6628]
movzx eax, byte [esi + edx*4 + 0x454]
xor ecx, dword [eax*4 + 0x101e6a28]
mov eax, dword [ebp + 8]
cdq
idiv edi
movsx eax, word [esi + edx*4 + 0x456]
mov edx, dword [ebp - 0x18]
movzx eax, al
xor ecx, dword [eax*4 + 0x101e5a28]
movzx eax, byte [edx + 0x23]
xor ecx, dword [eax*4 + 0x101e7648]
mov eax, dword [ebp - 0x14]
xor ecx, dword [eax]
add eax, 4
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 8]
mov dword [edx], ecx
add edx, 4
inc eax
mov dword [ebp - 0x18], edx
sub dword [ebp - 0x1c], 1
mov dword [ebp + 8], eax
jne 0x100369ce
mov ebx, dword [ebp - 0x20]
mov eax, edi
shl eax, 2
push eax
lea eax, [esi + 0x434]
push eax
lea eax, [esi + 0x454]
push eax
call fcn.100e1b00
mov ecx, dword [ebp - 0x24]
add esp, 0xc
mov eax, dword [ebp - 8]
inc ebx
mov edx, dword [ebp - 4]
add ecx, 0x20
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x24], ecx
cmp ebx, dword [esi + 0x3d0]
jl 0x100369a8
xor ebx, ebx
mov dword [ebp - 0x24], ebx
test edi, edi
jle 0x10036b5b
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
mov dword [ebp + 8], edx
mov edx, dword [ebp - 8]
sub edx, eax
sub dword [ebp - 0xc], eax
mov dword [ebp - 8], edx
mov eax, dword [esi + 0x3d0]
lea eax, [ebx + eax*8]
mov ebx, dword [esi + eax*4 + 0x1e8]
mov ecx, ebx
mov eax, dword [ebp - 0x10]
sar ecx, 0x18
add dword [ebp - 0x10], 4
movzx eax, byte [eax + 3]
xor cl, byte [eax + 0x101e7a48]
mov eax, dword [ebp + 8]
mov byte [eax], cl
inc eax
mov dword [ebp + 8], eax
mov ecx, ebx
mov eax, dword [ebp - 4]
add eax, edx
sar ecx, 0x10
cdq
idiv edi
movsx eax, word [esi + edx*4 + 0x456]
movzx eax, al
xor cl, byte [eax + 0x101e7a48]
mov eax, dword [ebp + 8]
mov byte [eax], cl
inc eax
mov dword [ebp + 8], eax
mov ecx, ebx
mov eax, dword [ebp - 4]
cdq
idiv edi
sar ecx, 8
mov eax, dword [esi + edx*4 + 0x454]
sar eax, 8
movzx eax, al
xor cl, byte [eax + 0x101e7a48]
mov eax, dword [ebp + 8]
mov byte [eax], cl
inc eax
mov ecx, dword [ebp - 4]
mov dword [ebp + 8], eax
mov eax, dword [ebp - 0xc]
add eax, ecx
cdq
idiv edi
movzx eax, byte [esi + edx*4 + 0x454]
mov edx, dword [ebp + 8]
mov al, byte [eax + 0x101e7a48]
xor al, bl
mov ebx, dword [ebp - 0x24]
mov byte [edx], al
inc edx
inc ebx
mov dword [ebp + 8], edx
mov edx, dword [ebp - 8]
inc ecx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 4], ecx
cmp ebx, edi
jl 0x10036aa4
pop edi
pop ebx
pop esi
leave
ret 8
push 0x1026eaec
lea ecx, [ebp - 0x2c]
call fcn.10035a13
push 0x1026b484
mov eax, ecx
push eax
call fcn.100e172b
int3