Function at 0x100335d0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
xor eax, eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x14], 0xffffffff
cmp dword [edi + 4], eax
je 0x10033635
mov ecx, dword [edi + 4]
mov eax, dword [ecx]
mov edx, dword [eax + 0x4c]
call edx
mov esi, eax
mov dword [ebp - 4], esi
test esi, esi
je 0x10033621
mov eax, dword [esi + 0xc]
mov dword [ebp - 0x14], eax
mov eax, dword [edi]
test eax, eax
je 0x1003363c
mov cl, byte [eax + 0x24]
fld qword [eax + 0x28]
fstp dword [ebp - 0xc]
mov byte [ebp - 0x2d], cl
jmp 0x1003364d
mov dword [ebp - 4], eax
mov esi, eax
jmp 0x10033621
movss xmm0, dword [0x10255c48]
mov byte [ebp - 0x2d], 0
movss dword [ebp - 0xc], xmm0
mov ebx, dword [ebp + 0x10]
mov eax, dword [ebx + 0x2a4]
mov cl, 8
mov byte [ebp - 0x2f], 4
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x2a], cl
test esi, esi
jne 0x1003367c
add eax, 8
or byte [ebp - 0x30], 1
mov cl, 0xc
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x2a], cl
mov dword [ebp - 0x14], 0xffffffff
mov eax, dword [edi + 0x1c]
neg esi
sbb esi, esi
add esi, 3
cdq
idiv esi
movzx edx, cl
mov esi, edx
mov dword [ebp + 0x10], edx
mov edi, eax
imul esi, edi
add esi, dword [ebp - 0x24]
mov dword [ebp - 0x28], edi
cmp dword [ebx + 0x2a0], esi
jge 0x100336f1
mov eax, dword [ebx + 0x28c]
lea ecx, [ebx + 0x290]
mov dword [ebx + 0x2a0], esi
push esi
cmp eax, ecx
jne 0x100336df
call fcn.10231473
mov edx, dword [ebx + 0x2a4]
push edx
lea ecx, [ebx + 0x290]
push ecx
push eax
mov dword [ebx + 0x28c], eax
call fcn.10230070
add esp, 0x10
jmp 0x100336ee
push eax
call fcn.102313c6
add esp, 8
mov dword [ebx + 0x28c], eax
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 8]
mov dword [ebx + 0x2a4], esi
mov ecx, dword [eax + 0x14]
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0x24]
lea ecx, [eax + ecx*4]
mov eax, dword [ebx + 0x28c]
add eax, dword [ebp - 0x24]
test edi, edi
jle 0x1003372a
mov dword [ebp - 8], edi
mov esi, dword [ecx]
mov dword [eax], esi
mov esi, dword [ecx + 4]
mov dword [eax + 4], esi
add ecx, 8
add eax, edx
dec dword [ebp - 8]
jne 0x10033716
cmp dword [ebp - 4], 0
jne 0x10033784
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x14]
mov ecx, dword [ebp + 0xc]
lea eax, [edx + edi*2]
mov edx, dword [ecx + 0x24]
mov ecx, dword [ebx + 0x28c]
add ecx, dword [ebp - 0x1c]
lea eax, [edx + eax*4]
xor edx, edx
mov dword [ebp + 8], eax
test edi, edi
jle 0x10033784
mov eax, dword [ebp + 8]
mov eax, dword [eax + edx*4]
mov esi, eax
sar esi, 0x10
mov edi, eax
and edi, 0xff
and esi, 0xff
shl edi, 0x10
or esi, edi
and eax, 0xff00ff00
or esi, eax
mov dword [ecx], esi
add ecx, dword [ebp + 0x10]
inc edx
cmp edx, dword [ebp - 0x28]
jl 0x10033754
mov eax, dword [ebx + 0x284]
cmp dword [ebx + 0x288], eax
jl 0x100337f3
mov ecx, dword [ebx]
lea esi, [ebx + 4]
cmp ecx, esi
jne 0x100337bf
push 0x500
call fcn.10231473
mov ecx, 0xa0
mov edi, eax
mov dword [ebx], eax
rep movsd dword es:[edi], dword [esi]
add esp, 4
mov dword [ebx + 0x284], 0x20
jmp 0x100337f3
test eax, eax
je 0x100337ce
lea edx, [eax + eax]
mov dword [ebx + 0x284], edx
jmp 0x100337d8
mov dword [ebx + 0x284], 0x10
mov eax, dword [ebx + 0x284]
lea eax, [eax + eax*4]
add eax, eax
add eax, eax
add eax, eax
push eax
push ecx
call fcn.102313c6
add esp, 8
mov dword [ebx], eax
mov eax, dword [ebx + 0x288]
mov edx, dword [ebx]
lea ecx, [eax + eax*4]
lea edi, [edx + ecx*8]
mov ecx, 0xa
lea esi, [ebp - 0x30]
rep movsd dword es:[edi], dword [esi]
inc dword [ebx + 0x288]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret