Function at 0x1005b500
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, 0x24
push ebx
mov ebx, eax
push edi
test ebx, ebx
jne 0x1005b52f
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x14], str.Empty_key
call fcn.10066dc7
push 0x10099a90
lea ecx, [ebp - 0x24]
push ecx
call fcn.1006752f
mov edi, 0x10
mov dword [esi + 0x3cc], edi
mov dword [esi + 0x3c8], edi
mov edx, dword [0x10097f68]
mov dword [esi + 0x3d4], edx
mov eax, dword [0x10097f6c]
mov dword [esi + 0x3d8], eax
mov ecx, dword [0x10097f70]
mov dword [esi + 0x3dc], ecx
mov edx, dword [0x10097f74]
mov dword [esi + 0x3e0], edx
mov eax, dword [esi + 0x3cc]
push eax
lea ecx, [esi + 0x3f4]
push 0x10097f68
push ecx
call fcn.10073cd0
mov eax, dword [esi + 0x3c8]
add esp, 0xc
cmp eax, edi
je 0x1005b5bd
cmp eax, 0x18
je 0x1005b5a5
mov dword [esi + 0x3d0], 0xe
jmp 0x1005b5e0
xor edx, edx
cmp dword [esi + 0x3cc], 0x20
sete dl
lea edx, [edx + edx + 0xc]
mov dword [esi + 0x3d0], edx
jmp 0x1005b5e0
mov eax, dword [esi + 0x3cc]
cmp eax, edi
jne 0x1005b5ce
mov eax, 0xa
jmp 0x1005b5da
xor ecx, ecx
cmp eax, 0x18
setne cl
lea eax, [ecx + ecx + 0xc]
mov dword [esi + 0x3d0], eax
mov eax, dword [esi + 0x3cc]
cdq
and edx, 3
lea edi, [edx + eax]
push 0x1e0
lea edx, [esi + 8]
push 0
sar edi, 2
push edx
mov dword [ebp - 0x10], edi
call fcn.1006b580
push 0x1e0
lea eax, [esi + 0x1e8]
push 0
push eax
call fcn.1006b580
mov eax, dword [esi + 0x3d0]
inc eax
imul eax, edi
mov dword [ebp - 8], eax
mov eax, dword [esi + 0x3c8]
cdq
and edx, 3
lea edi, [edx + eax]
sar edi, 2
add esp, 0x18
mov dword [ebp - 0x18], edi
lea ecx, [esi + 0x414]
mov eax, ebx
test edi, edi
jle 0x1005b670
mov edx, edi
movzx ebx, byte [eax]
shl ebx, 0x18
mov dword [ecx], ebx
movzx ebx, byte [eax + 1]
shl ebx, 0x10
or dword [ecx], ebx
movzx ebx, byte [eax + 2]
shl ebx, 8
or dword [ecx], ebx
movzx ebx, byte [eax + 3]
or dword [ecx], ebx
add eax, 4
add ecx, 4
dec edx
jne 0x1005b647
xor ebx, ebx
mov dword [ebp - 4], ebx
test edi, edi
jle 0x1005b6c2
lea eax, [esi + 0x414]
mov dword [ebp - 4], eax
cmp ebx, dword [ebp - 8]
jge 0x1005b6bf
mov eax, ebx
cdq
idiv dword [ebp - 0x10]
inc ebx
lea ecx, [edx + eax*8]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov dword [esi + ecx*4 + 8], eax
mov ecx, dword [esi + 0x3d0]
sub ecx, dword [ebp - 0x14]
mov eax, dword [ebp - 4]
lea edx, [edx + ecx*8]
mov ecx, dword [eax]
add eax, 4
mov dword [esi + edx*4 + 0x1e8], ecx
mov dword [ebp - 4], eax
cmp ebx, edi
jl 0x1005b682
mov dword [ebp - 4], ebx
cmp ebx, dword [ebp - 8]
jge 0x1005b84a
mov dword [ebp - 0xc], 0x100915c0
mov eax, dword [esi + edi*4 + 0x410]
mov edx, eax
sar edx, 0x10
and edx, 0xff
movsx ecx, byte [edx + 0x1008e3c0]
mov edx, dword [ebp - 0xc]
movsx edx, byte [edx]
xor ecx, edx
inc dword [ebp - 0xc]
mov edx, eax
sar edx, 8
and edx, 0xff
movzx edx, byte [edx + 0x1008e3c0]
shl ecx, 8
xor ecx, edx
mov edx, eax
and edx, 0xff
movzx edx, byte [edx + 0x1008e3c0]
sar eax, 0x18
shl ecx, 8
and eax, 0xff
movzx eax, byte [eax + 0x1008e3c0]
xor ecx, edx
shl ecx, 8
xor ecx, eax
xor dword [esi + 0x414], ecx
cmp edi, 8
je 0x1005b762
cmp edi, 1
jle 0x1005b7ee
lea eax, [esi + 0x418]
lea ecx, [edi - 1]
mov edx, dword [eax - 4]
xor dword [eax], edx
add eax, 4
dec ecx
jne 0x1005b752
jmp 0x1005b7ee
lea eax, [esi + 0x418]
mov ecx, 3
lea ecx, [ecx]
mov edx, dword [eax - 4]
xor dword [eax], edx
add eax, 4
dec ecx
jne 0x1005b770
mov eax, dword [esi + 0x420]
mov ecx, eax
sar ecx, 0x18
and ecx, 0xff
movsx edx, byte [ecx + 0x1008e3c0]
mov ecx, eax
sar ecx, 0x10
and ecx, 0xff
movzx ecx, byte [ecx + 0x1008e3c0]
shl edx, 8
xor edx, ecx
mov ecx, eax
sar ecx, 8
and ecx, 0xff
movzx ecx, byte [ecx + 0x1008e3c0]
shl edx, 8
and eax, 0xff
movzx eax, byte [eax + 0x1008e3c0]
xor edx, ecx
shl edx, 8
xor edx, eax
xor dword [esi + 0x424], edx
lea eax, [esi + 0x428]
mov ecx, 3
mov edx, dword [eax - 4]
xor dword [eax], edx
add eax, 4
dec ecx
jne 0x1005b7e3
mov dword [ebp - 0x14], 0
test edi, edi
jle 0x1005b841
lea ecx, [esi + 0x414]
nop
cmp ebx, dword [ebp - 8]
jge 0x1005b84a
mov eax, ebx
cdq
idiv dword [ebp - 0x10]
mov ebx, dword [ecx]
add ecx, 4
lea edi, [edx + eax*8]
mov dword [esi + edi*4 + 8], ebx
mov edi, dword [esi + 0x3d0]
mov ebx, dword [ebp - 4]
sub edi, eax
lea eax, [edx + edi*8]
mov edx, dword [ecx - 4]
mov edi, dword [ebp - 0x18]
mov dword [esi + eax*4 + 0x1e8], edx
mov eax, dword [ebp - 0x14]
inc eax
inc ebx
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], ebx
cmp eax, edi
jl 0x1005b800
cmp ebx, dword [ebp - 8]
jl 0x1005b6d2
mov eax, 1
mov dword [ebp - 0x14], eax
cmp dword [esi + 0x3d0], eax
jle 0x1005b8d5
lea ecx, [esi + 0x208]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0x10]
test edx, edx
jle 0x1005b8bd
mov edi, edi
mov eax, dword [ecx]
mov edi, eax
sar edi, 0x18
and edi, 0xff
mov edi, dword [edi*4 + 0x100905c0]
mov ebx, eax
sar ebx, 0x10
and ebx, 0xff
xor edi, dword [ebx*4 + 0x100909c0]
mov ebx, eax
sar ebx, 8
and ebx, 0xff
xor edi, dword [ebx*4 + 0x10090dc0]
and eax, 0xff
xor edi, dword [eax*4 + 0x100911c0]
add ecx, 4
dec edx
mov dword [ecx - 4], edi
jne 0x1005b870
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
inc eax
add ecx, 0x20
mov dword [ebp - 0x14], eax
mov dword [ebp - 0xc], ecx
cmp eax, dword [esi + 0x3d0]
jl 0x1005b867
pop edi
mov byte [esi + 4], 1
pop ebx
mov esp, ebp
pop ebp
ret