Function at 0x10010220
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100de878
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x1011d068]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x3c], edi
push dword [ebp + 0x10]
xorps xmm0, xmm0
lea eax, [ebp - 0x30]
push 0x1010168c
push 0x1f
push eax
movups xmmword [ebp - 0x30], xmm0
movups xmmword [ebp - 0x20], xmm0
call fcn.10010130
mov eax, dword [ebp + 0x10]
add esp, 0x10
mov ecx, eax
mov edx, 0x55
shr ecx, 8
mov esi, 0xff
test ecx, ecx
movzx eax, al
cmove ecx, edx
test eax, eax
mov dword [ebp - 0x34], ecx
mov ecx, 0xaa
cmove eax, ecx
xor ecx, ecx
mov dword [ebp - 0x38], eax
nop dword [eax]
xor edx, edx
mov eax, ecx
div esi
inc dl
mov byte [edi + ecx], dl
inc ecx
cmp ecx, 0x100
jb 0x100102a0
mov ecx, dword [ebp + 0xc]
xor esi, esi
mov edx, dword [ebp - 0x38]
nop dword [eax]
cmp dword [ebp + 8], 0
je 0x100102e9
test ecx, ecx
je 0x100102e9
xor edx, edx
mov eax, esi
div ecx
mov ecx, dword [ebp + 8]
movzx eax, byte [edi + esi]
movzx ecx, byte [edx + ecx]
mov edx, dword [ebp - 0x38]
imul ecx, eax
add cl, byte [ebp - 0x38]
mov byte [edi + esi], cl
jmp 0x100102ff
movzx eax, byte [edi + esi]
movzx ecx, dl
imul ecx, eax
movzx eax, cl
imul eax, eax, 0xcc
mov byte [edi + esi], al
mov ecx, dword [ebp + 0xc]
inc esi
cmp esi, 0x100
jb 0x100102c0
xor esi, esi
nop dword [eax]
cmp byte [edi + esi], 0
jne 0x10010337
lea eax, [ebp - 0x30]
push eax
call fcn.100c5fd3
imul eax, eax, 0x33
add esp, 4
add eax, 0x22
and eax, 0x8000007f
jns 0x10010334
dec eax
or eax, 0xffffff80
inc eax
mov byte [edi + esi], al
inc esi
cmp esi, 0x100
jb 0x10010310
xor esi, esi
add edi, 0xff
mov dword [ebp - 0x38], edi
nop dword [eax + eax]
mov eax, 0xaaaaaaab
mov ecx, esi
mul esi
shr edx, 1
lea eax, [edx + edx*2]
sub ecx, eax
cmp ecx, 1
jne 0x10010372
mov edx, dword [ebp - 0x3c]
mov al, byte [edi]
mov cl, byte [edx + esi]
mov byte [edx + esi], al
mov byte [edi], cl
inc esi
dec edi
cmp esi, 0x100
jb 0x10010350
mov edx, dword [ebp - 0x34]
xor esi, esi
cmp dword [ebp + 8], 0
je 0x100103b0
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x100103b0
xor edx, edx
mov edi, dword [ebp - 0x3c]
mov eax, esi
div ecx
mov ecx, dword [ebp + 8]
movzx eax, byte [edi + esi]
movzx ecx, byte [edx + ecx]
mov edx, dword [ebp - 0x34]
imul ecx, eax
add cl, byte [ebp - 0x34]
mov byte [edi + esi], cl
jmp 0x100103c9
mov edi, dword [ebp - 0x3c]
movzx ecx, dl
movzx eax, byte [edi + esi]
imul ecx, eax
movzx eax, cl
imul eax, eax, 0x99
mov byte [edi + esi], al
inc esi
cmp esi, 0x100
jb 0x10010381
xor eax, eax
mov dword [ebp - 0x3c], eax
cmp byte [edi + eax], 0
lea esi, [edi + eax]
jne 0x10010408
lea eax, [ebp - 0x30]
push eax
call fcn.100c5fd3
mov ecx, dword [ebp - 0x3c]
add esp, 4
movzx eax, al
movzx ecx, cl
imul eax, ecx
movzx eax, al
imul eax, eax, 0xe6
and al, 0x7f
mov byte [esi], al
mov eax, dword [ebp - 0x3c]
inc eax
mov dword [ebp - 0x3c], eax
cmp eax, 0x100
jb 0x100103d7
xor esi, esi
mov eax, 0xcccccccd
mov ecx, esi
mul esi
shr edx, 2
lea eax, [edx + edx*4]
mov edx, dword [ebp - 0x38]
sub ecx, eax
cmp ecx, 3
jne 0x10010438
mov al, byte [edx]
mov cl, byte [edi + esi]
mov byte [edi + esi], al
mov byte [edx], cl
inc esi
dec edx
mov dword [ebp - 0x38], edx
cmp esi, 0x100
jb 0x10010415
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0
call fcn.10010d50
mov dword [ebp - 0x48], eax
mov dword [ebp - 4], 0
lea eax, [ebp - 0x40]
push dword [ebp - 0x3c]
push edi
push ecx
push eax
lea ecx, [ebp - 0x48]
call fcn.10010e80
lea edx, [edi + 1]
mov dword [ebp - 0x38], 1
mov dword [ebp - 0x34], edx
mov esi, dword [ebp - 0x48]
mov ecx, esi
mov eax, dword [esi + 4]
cmp byte [eax + 0xd], 0
jne 0x100104cd
mov dl, byte [edx]
cmp byte [eax + 0xe], dl
jae 0x1001049a
mov eax, dword [eax + 8]
jmp 0x1001049e
mov ecx, eax
mov eax, dword [eax]
cmp byte [eax + 0xd], 0
je 0x10010490
cmp ecx, esi
je 0x100104ca
cmp dl, byte [ecx + 0xe]
jb 0x100104ca
mov ecx, dword [ebp - 0x38]
movzx eax, dl
mov edx, dword [ebp - 0x34]
movzx ecx, byte [edi + ecx - 1]
imul ecx, eax
movzx eax, cl
imul eax, eax, 0x17
add al, 0xb
mov byte [edx], al
jmp 0x100104cd
mov edx, dword [ebp - 0x34]
mov eax, dword [esi + 4]
mov ecx, esi
cmp byte [eax + 0xd], 0
jne 0x1001051b
mov dl, byte [edx]
nop word [eax + eax]
cmp byte [eax + 0xe], dl
jae 0x100104ea
mov eax, dword [eax + 8]
jmp 0x100104ee
mov ecx, eax
mov eax, dword [eax]
cmp byte [eax + 0xd], 0
je 0x100104e0
cmp ecx, esi
je 0x1001051b
cmp dl, byte [ecx + 0xe]
jb 0x1001051b
mov ecx, dword [ebp - 0x38]
movzx eax, dl
mov edx, dword [ebp - 0x34]
movzx ecx, byte [edi + ecx - 1]
imul ecx, eax
mov al, cl
shl al, 5
sub al, cl
add al, 0xd
mov byte [edx], al
jmp 0x1001051e
mov edx, dword [ebp - 0x34]
mov eax, dword [esi + 4]
mov ecx, esi
cmp byte [eax + 0xd], 0
jne 0x1001055c
mov dl, byte [edx]
nop dword [eax + eax]
cmp byte [eax + 0xe], dl
jae 0x1001053a
mov eax, dword [eax + 8]
jmp 0x1001053e
mov ecx, eax
mov eax, dword [eax]
cmp byte [eax + 0xd], 0
je 0x10010530
cmp ecx, esi
je 0x1001055c
cmp dl, byte [ecx + 0xe]
jb 0x1001055c
movzx eax, dl
mov edx, dword [ebp - 0x34]
imul eax, eax, 0x43
add al, 0x53
mov byte [edx], al
jmp 0x1001055f
mov edx, dword [ebp - 0x34]
mov eax, dword [esi + 4]
mov ecx, esi
cmp byte [eax + 0xd], 0
jne 0x100105a3
mov dl, byte [edx]
nop dword [eax]
cmp byte [eax + 0xe], dl
jae 0x1001057a
mov eax, dword [eax + 8]
jmp 0x1001057e
mov ecx, eax
mov eax, dword [eax]
cmp byte [eax + 0xd], 0
je 0x10010570
cmp ecx, esi
je 0x100105a3
cmp dl, byte [ecx + 0xe]
jb 0x100105a3
mov ecx, dword [ebp - 0x38]
movzx eax, dl
mov edx, dword [ebp - 0x34]
imul eax, eax, 0xb
add al, 0x35
add al, byte [edi + ecx - 1]
mov byte [edx], al
jmp 0x100105a6
mov edx, dword [ebp - 0x34]
push dword [ebp - 0x3c]
lea eax, [ebp - 0x40]
push edx
push ecx
push eax
lea ecx, [ebp - 0x48]
call fcn.10010e80
mov eax, dword [ebp - 0x38]
mov edx, dword [ebp - 0x34]
inc eax
inc edx
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], edx
cmp eax, 0x100
jb 0x10010480
xor eax, eax
mov dword [ebp - 0x38], eax
mov cl, byte [edi + eax]
lea esi, [edi + eax]
test cl, cl
jne 0x1001062a
lea eax, [ebp - 0x30]
push eax
call fcn.100c5fd3
mov ecx, dword [ebp - 0x38]
add esp, 4
movzx ecx, cl
movzx eax, al
imul eax, ecx
mov cl, al
shl cl, 3
sub cl, al
mov eax, dword [ebp - 0x38]
mov byte [esi], cl
test cl, cl
jne 0x1001062a
cmp dword [ebp + 8], 0
je 0x10010624
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x10010624
xor edx, edx
div ecx
mov ecx, dword [ebp + 8]
mov al, byte [edx + ecx]
mov byte [esi], al
test al, al
jne 0x10010627
mov byte [esi], 0x96
mov eax, dword [ebp - 0x38]
inc eax
mov dword [ebp - 0x38], eax
cmp eax, 0x100
jb 0x100105d5
mov dword [ebp - 4], 1
mov eax, dword [ebp - 0x48]
mov ecx, eax
mov dword [ebp - 0x3c], ecx
mov edi, dword [eax + 4]
mov esi, edi
cmp byte [edi + 0xd], 0
jne 0x10010676
nop
push dword [esi + 8]
lea ecx, [ebp - 0x48]
call fcn.10010d70
mov esi, dword [esi]
push 0x10
push edi
call fcn.100b6655
add esp, 8
mov edi, esi
cmp byte [esi + 0xd], 0
je 0x10010650
mov eax, dword [ebp - 0x48]
mov ecx, dword [ebp - 0x3c]
mov dword [eax + 4], ecx
mov eax, dword [ebp - 0x48]
push 0x10
mov dword [eax], ecx
mov eax, dword [ebp - 0x48]
mov dword [eax + 8], ecx
push dword [ebp - 0x48]
mov dword [ebp - 0x44], 0
call fcn.100b6655
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100b62b1
mov esp, ebp
pop ebp
ret