Function at 0x1000b3ab
Capabilities:
Encode data using xor
Encrypt data using aes
Encrypt data using rc4 ksa
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push esi
mov esi, ecx
cmp byte [esi + 4], 0
je 0x1000b645
mov eax, dword [esi + 0x3cc]
cmp eax, 0x10
jne 0x1000b3d9
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.1000aff6
jmp 0x1000b640
cdq
and edx, 3
xor ecx, ecx
push ebx
push edi
lea edi, [edx + eax]
sar edi, 2
cmp edi, 6
setne cl
xor eax, eax
mov dword [ebp - 0x24], edi
inc ecx
cmp edi, 4
cmove ecx, eax
shl ecx, 5
mov eax, dword [ecx + 0x100947a8]
mov edx, dword [ecx + 0x100947b0]
mov ecx, dword [ecx + 0x100947b8]
mov dword [ebp - 0xc], ecx
lea ecx, [esi + 0x454]
mov dword [ebp - 8], eax
mov dword [ebp - 4], edx
mov dword [ebp - 0x10], ecx
mov ebx, ecx
test edi, edi
jle 0x1000b46c
mov edx, dword [ebp + 8]
mov dword [ebp - 0x14], edi
lea edi, [esi + 8]
movzx eax, byte [edx]
shl eax, 0x18
mov dword [ebx], eax
movzx eax, byte [edx + 1]
shl eax, 0x10
or dword [ebx], eax
movzx eax, byte [edx + 2]
shl eax, 8
or dword [ebx], eax
movzx eax, byte [edx + 3]
or dword [ebx], eax
mov eax, dword [edi]
mov ecx, ebx
add ebx, 4
xor dword [ecx], eax
dec dword [ebp - 0x14]
lea edx, [edx + 4]
lea edi, [edi + 4]
jne 0x1000b42f
mov edi, dword [ebp - 0x24]
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 0x1000b563
lea ecx, [esi + 0x28]
mov dword [ebp - 0x24], ecx
test edi, edi
jle 0x1000b528
lea ebx, [esi + 0x434]
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp - 0xc]
mov ebx, edx
sub ebx, eax
sub ecx, eax
mov dword [ebp + 8], eax
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x1c], edi
add eax, ebx
cdq
idiv edi
mov eax, dword [ebp - 0x28]
add eax, dword [ebp + 8]
mov ecx, dword [esi + edx*4 + 0x454]
cdq
idiv edi
sar ecx, 8
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x100943a0]
movzx eax, byte [esi + edx*4 + 0x454]
xor ecx, dword [eax*4 + 0x100937a0]
mov eax, dword [ebp + 8]
cdq
idiv edi
movsx eax, word [esi + edx*4 + 0x456]
mov edx, dword [ebp - 0x18]
and eax, 0xff
xor ecx, dword [eax*4 + 0x10093ba0]
movzx eax, byte [edx + 0x23]
xor ecx, dword [eax*4 + 0x10095600]
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
dec dword [ebp - 0x1c]
mov dword [ebp - 0x18], edx
mov dword [ebp + 8], eax
jne 0x1000b4aa
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.1004e760
mov ecx, dword [ebp - 0x24]
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 4]
add esp, 0xc
inc ebx
add ecx, 0x20
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x24], ecx
cmp ebx, dword [esi + 0x3d0]
jl 0x1000b484
xor ebx, ebx
mov dword [ebp - 0x24], ebx
test edi, edi
jle 0x1000b63e
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 + 8]
mov eax, dword [ebp - 0x10]
mov ecx, ebx
movzx eax, byte [eax + 3]
sar ecx, 0x18
xor cl, byte [eax + 0x10095100]
mov eax, dword [ebp + 8]
add dword [ebp - 0x10], 4
mov byte [eax], cl
inc eax
mov dword [ebp + 8], eax
mov eax, dword [ebp - 4]
add eax, edx
cdq
idiv edi
mov eax, ebx
sar eax, 0x10
movsx ecx, word [esi + edx*4 + 0x456]
mov edx, dword [ebp + 8]
and ecx, 0xff
xor al, byte [ecx + 0x10095100]
mov byte [edx], al
mov eax, dword [ebp - 4]
inc edx
mov dword [ebp + 8], edx
cdq
idiv edi
mov eax, ebx
sar eax, 8
mov ecx, dword [esi + edx*4 + 0x454]
sar ecx, 8
and ecx, 0xff
xor al, byte [ecx + 0x10095100]
mov ecx, dword [ebp + 8]
mov byte [ecx], al
mov eax, dword [ebp - 0xc]
inc ecx
mov dword [ebp + 8], ecx
mov ecx, dword [ebp - 4]
add eax, ecx
cdq
idiv edi
movzx eax, byte [esi + edx*4 + 0x454]
mov edx, dword [ebp + 8]
mov al, byte [eax + 0x10095100]
xor al, bl
mov ebx, dword [ebp - 0x24]
mov byte [edx], al
inc edx
inc ebx
inc ecx
mov dword [ebp + 8], edx
mov edx, dword [ebp - 8]
mov dword [ebp - 0x24], ebx
mov dword [ebp - 4], ecx
cmp ebx, edi
jl 0x1000b584
pop edi
pop ebx
pop esi
leave
ret 8
push 0x1009eb08
lea ecx, [ebp - 0x34]
call fcn.1004c06f
push 0x10098cb0
lea eax, [ebp - 0x34]
push eax
call fcn.10053a9b
int3