Function at 0x100515a8
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
add byte [eax], al
lea eax, [ebp - 0xd4]
push 1
push eax
call 0x1011ed9d
add esp, 0x10
jmp 0x100515d5
cmp dword [ebp - 0xd4], 0x20534444
jne 0x10051bea
cmp dword [ebp - 0xd0], 0x7c
jne 0x10051bea
mov eax, dword [ebp - 0xcc]
and eax, 0x1007
cmp eax, 0x1007
jne 0x10051bea
cmp dword [ebp - 0x88], 0x20
jne 0x10051bea
mov edx, dword [ebp - 0x84]
test dl, 0x44
je 0x10051bea
mov eax, dword [ebp - 0x68]
test eax, 0x1000
je 0x10051bea
mov edi, dword [ebp - 0xc4]
mov esi, edx
mov ecx, dword [ebp - 0xc8]
and edx, 1
shr esi, 2
and esi, 1
mov dword [ebx], edi
mov dword [ebx + 4], ecx
mov dword [ebx + 8], 4
test eax, 0x400000
je 0x1005166f
cmp dword [ebp - 0xb8], 1
mov dword [ebp - 0xfc], 1
ja 0x10051679
mov dword [ebp - 0xfc], 0
mov eax, dword [ebp - 0x64]
xor ecx, ecx
cmp edi, dword [ebp - 0xc8]
sete cl
shr eax, 9
and ecx, eax
lea eax, [ecx*4 + 1]
add eax, ecx
lea ecx, [edi + 3]
mov dword [ebp - 0xd8], eax
mov eax, dword [ebp - 0xc8]
add eax, 3
shr ecx, 2
shr eax, 2
imul eax, ecx
mov dword [ebp - 0x100], ecx
mov ecx, dword [ebp - 0x10c]
mov dword [ebp - 0xec], eax
mov eax, dword [ebp - 0xe0]
mov dword [eax], edi
mov eax, dword [ebx + 4]
mov dword [ecx], eax
xor ecx, ecx
mov eax, dword [ebx + 8]
mov dword [ecx], eax
test esi, esi
je 0x10051a88
mov esi, dword [ebp - 0x80]
shr esi, 0x18
mov dword [ebp - 0xf8], esi
cmp esi, 0x31
jb 0x10051bea
cmp esi, 0x35
ja 0x10051bea
mov eax, dword [ebx + 4]
imul eax, dword [ebx]
imul eax, dword [ebp - 0xd8]
shl eax, 2
push eax
mov dword [ebp - 0xdc], eax
call 0x10124491
mov ecx, dword [ebp - 0xd8]
mov edi, eax
xor eax, eax
mov dword [ebp - 0xe8], edi
add esp, 4
mov dword [ebp - 0xe4], eax
test ecx, ecx
je 0x10051bdf
nop dword [eax]
xor ecx, ecx
mov dword [ebp - 0xe0], ecx
cmp dword [ebp - 0xec], ecx
jle 0x10051979
mov eax, ecx
mov esi, 4
cdq
idiv dword [ebp - 0x100]
mov eax, ecx
mov dword [ebp - 0xf0], esi
mov edi, edx
mov ecx, dword [ebp - 0xf8]
cdq
idiv dword [ebp - 0x100]
shl edi, 2
shl eax, 2
mov dword [ebp - 0xf4], eax
cmp ecx, 0x31
jne 0x100517d6
mov ecx, dword [ebx + 0x10]
test ecx, ecx
je 0x100517b2
push ecx
push 8
lea eax, [ebp - 0x10]
push 1
push eax
call str._attack2
add esp, 0x10
lea edx, [ebp - 0x10]
lea ecx, [ebp - 0x54]
call 0x100a1b59
jmp 0x100518b4
mov edx, dword [ebx + 0x14]
mov eax, dword [edx]
mov ecx, dword [edx + 4]
mov dword [ebp - 0x10], eax
lea eax, [edx + 8]
mov dword [ebp - 0xc], ecx
lea edx, [ebp - 0x10]
lea ecx, [ebp - 0x54]
mov dword [ebx + 0x14], eax
call fcn.100a1b7d
jmp 0x100518b4
mov eax, dword [ebx + 0x10]
cmp ecx, 0x34
jae 0x10051845
test eax, eax
je 0x100517f5
push eax
push 8
lea eax, [ebp - 0x10]
push 1
push eax
call 0x1011efd5
add esp, 0x10
jmp 0x10051809
mov edx, dword [ebx + 0x14]
mov eax, dword [edx]
mov ecx, dword [edx + 4]
mov dword [ebp - 0x10], eax
lea eax, [edx + 8]
mov dword [ebp - 0xc], ecx
mov dword [ebx + 0x14], eax
xor edx, edx
nop dword [eax + eax]
mov eax, edx
movzx ecx, dl
sar eax, 3
and ecx, 7
movzx eax, byte [ebp + eax - 0x10]
shr eax, cl
and eax, 0xf
imul eax, eax, 0xff
add eax, 8
mov ecx, eax
shr ecx, 4
add ecx, eax
shr ecx, 4
mov byte [ebp + edx - 0x51], cl
add edx, esi
cmp edx, 0x3d
jl 0x10051810
jmp 0x1005187b
test eax, eax
je 0x1005185c
push eax
push 8
lea eax, [ebp - 0x10]
push 1
push eax
call 0x1011f03c
add esp, 0x10
jmp 0x10051870
mov edx, dword [ebx + 0x14]
mov eax, dword [edx]
mov ecx, dword [edx + 4]
mov dword [ebp - 0x10], eax
lea eax, [edx + 8]
mov dword [ebp - 0xc], ecx
mov dword [ebx + 0x14], eax
lea edx, [ebp - 0x10]
lea ecx, [ebp - 0x54]
call fcn.100a1e77
mov eax, dword [ebx + 0x10]
test eax, eax
je 0x10051895
push eax
push 8
lea eax, [ebp - 0x10]
push 1
push eax
call 0x1011f075
add esp, 0x10
jmp 0x100518a9
mov edx, dword [ebx + 0x14]
mov eax, dword [edx]
mov ecx, dword [edx + 4]
mov dword [ebp - 0x10], eax
lea eax, [edx + 8]
mov dword [ebx + 0x14], eax
mov dword [ebp - 0xc], ecx
lea edx, [ebp - 0x10]
lea ecx, [ebp - 0x54]
call fcn.100a2040
mov ecx, dword [ebx]
lea eax, [edi + 4]
cmp eax, ecx
jbe 0x100518c1
mov esi, ecx
sub esi, edi
mov eax, dword [ebp - 0xf4]
mov edx, dword [ebx + 4]
add eax, 4
cmp eax, edx
jbe 0x100518e3
sub edx, dword [ebp - 0xf4]
mov dword [ebp - 0xf0], edx
test edx, edx
jle 0x10051954
jmp 0x100518e9
mov edx, dword [ebp - 0xf0]
lea eax, [ecx*4]
mov dword [ebp - 0x104], eax
lea ebx, [esi*4]
mov eax, ecx
lea esi, [ebp - 0x54]
invalid
scasd eax, dword es:[edi]