Function at 0x100d7f00
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x20
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp + 8]
test eax, eax
js 0x100d8490
mov esi, edx
mov edx, eax
movzx ecx, word [esi + 2]
xor eax, eax
mov dword [ebp - 0x24], ecx
test ecx, ecx
sete al
mov dword [ebp - 0x2c], esi
mov ecx, 0x8a
mov esi, 7
cmove esi, ecx
mov dword [ebp - 0x14], esi
mov esi, 4
sub esi, eax
mov dword [ebp - 0x1c], esi
mov edi, 0xffffffff
xor eax, eax
xor ebx, ebx
jmp 0x100d7f74
mov eax, dword [ebp - 0x20]
mov ecx, edx
lea esi, [eax + 1]
mov edx, ecx
cmp eax, ecx
mov eax, esi
je 0x100d8490
mov esi, dword [ebp - 0x24]
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x2c]
movzx eax, word [ecx + eax*4 + 6]
mov dword [ebp - 0x18], ebx
inc ebx
cmp ebx, dword [ebp - 0x14]
mov dword [ebp - 0x24], eax
jge 0x100d7f92
cmp esi, eax
je 0x100d7f60
cmp ebx, dword [ebp - 0x1c]
mov dword [ebp - 0x28], esi
jge 0x100d8050
mov esi, dword [ebp - 0x10]
mov ecx, dword [esi + 0x170c]
movzx edx, word [esi + 0x1708]
jmp 0x100d7fc2
add ecx, edi
mov dword [esi + 0x170c], ecx
mov ebx, dword [ebp - 0x14]
dec ebx
je 0x100d8446
mov dword [ebp - 0x14], ebx
mov eax, dword [ebp - 0x28]
movzx edi, word [esi + eax*4 + 0xace]
movzx eax, word [esi + eax*4 + 0xacc]
mov ebx, eax
shl ebx, cl
or edx, ebx
mov ebx, 0x10
sub ebx, edi
mov word [esi + 0x1708], dx
cmp ecx, ebx
jle 0x100d7fb0
mov ecx, dword [esi + 8]
mov dword [ebp - 0x18], ecx
mov ebx, dword [esi + 0x14]
lea ecx, [ebx + 1]
mov dword [esi + 0x14], ecx
mov ecx, dword [ebp - 0x18]
mov byte [ecx + ebx], dl
movzx ecx, byte [esi + 0x1709]
mov byte [ebp - 0x18], cl
mov edx, dword [esi + 8]
mov ebx, dword [esi + 0x14]
lea ecx, [ebx + 1]
mov dword [esi + 0x14], ecx
movzx ecx, byte [ebp - 0x18]
mov byte [edx + ebx], cl
mov edx, dword [esi + 0x170c]
mov cl, 0x10
sub cl, dl
shr eax, cl
lea ecx, [edi + edx]
add ecx, 0xfffffff0
mov word [esi + 0x1708], ax
mov edx, eax
jmp 0x100d7fb2
test esi, esi
je 0x100d8076
cmp esi, edi
jne 0x100d811a
mov edi, dword [ebp - 0x10]
mov ecx, dword [edi + 0x170c]
mov eax, ebx
movzx ebx, word [edi + 0x1708]
mov dword [ebp - 0x18], eax
jmp 0x100d8246
mov edi, dword [ebp - 0x10]
mov ecx, dword [edi + 0x170c]
movzx ebx, word [edi + 0x1708]
cmp dword [ebp - 0x18], 9
jg 0x100d81b4
movzx edx, word [edi + 0xb12]
movzx eax, word [edi + 0xb10]
mov esi, eax
shl esi, cl
or ebx, esi
mov esi, 0x10
sub esi, edx
cmp ecx, esi
jle 0x100d8346
mov word [edi + 0x1708], bx
mov ecx, dword [edi + 8]
mov dword [ebp - 0x14], ecx
mov esi, dword [edi + 0x14]
lea edi, [esi + 1]
mov ecx, ebx
mov ebx, dword [ebp - 0x10]
mov dword [ebx + 0x14], edi
mov edi, dword [ebp - 0x14]
mov byte [edi + esi], cl
mov ecx, dword [ebp - 0x10]
movzx ecx, byte [ecx + 0x1709]
mov byte [ebp - 0x14], cl
mov esi, dword [ebp - 0x10]
mov esi, dword [esi + 8]
mov edi, dword [ebp - 0x10]
mov edi, dword [edi + 0x14]
lea ebx, [edi + 1]
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x14], ebx
movzx ecx, byte [ebp - 0x14]
mov byte [esi + edi], cl
mov edi, dword [ebp - 0x10]
mov ebx, dword [edi + 0x170c]
mov cl, 0x10
sub cl, bl
add edx, ebx
add edx, 0xfffffff0
shr eax, cl
mov ecx, edx
mov ebx, eax
jmp 0x100d8348
mov edi, dword [ebp - 0x10]
movzx edx, word [edi + esi*4 + 0xace]
mov ecx, dword [edi + 0x170c]
mov eax, esi
mov esi, 0x10
sub esi, edx
movzx eax, word [edi + eax*4 + 0xacc]
mov ebx, eax
shl ebx, cl
or bx, word [edi + 0x1708]
mov word [edi + 0x1708], bx
cmp ecx, esi
jle 0x100d823e
mov ecx, dword [edi + 8]
mov dword [ebp - 0x14], ecx
mov esi, dword [edi + 0x14]
lea edi, [esi + 1]
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x14], edi
mov ecx, dword [ebp - 0x14]
mov byte [ecx + esi], bl
mov ecx, dword [ebp - 0x10]
movzx ecx, byte [ecx + 0x1709]
mov byte [ebp - 0x14], cl
mov esi, dword [ebp - 0x10]
mov esi, dword [esi + 8]
mov edi, dword [ebp - 0x10]
mov edi, dword [edi + 0x14]
lea ebx, [edi + 1]
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x14], ebx
movzx ecx, byte [ebp - 0x14]
mov byte [esi + edi], cl
mov edi, dword [ebp - 0x10]
mov ebx, dword [edi + 0x170c]
mov cl, 0x10
sub cl, bl
add edx, ebx
add edx, 0xfffffff0
shr eax, cl
mov ecx, edx
mov ebx, eax
jmp 0x100d8240
movzx edx, word [edi + 0xb16]
movzx eax, word [edi + 0xb14]
mov esi, eax
shl esi, cl
or ebx, esi
mov esi, 0x10
sub esi, edx
cmp ecx, esi
jle 0x100d83b6
mov word [edi + 0x1708], bx
mov ecx, dword [edi + 8]
mov dword [ebp - 0x14], ecx
mov esi, dword [edi + 0x14]
lea edi, [esi + 1]
mov ecx, ebx
mov ebx, dword [ebp - 0x10]
mov dword [ebx + 0x14], edi
mov edi, dword [ebp - 0x14]
mov byte [edi + esi], cl
mov ecx, dword [ebp - 0x10]
movzx ecx, byte [ecx + 0x1709]
mov byte [ebp - 0x14], cl
mov esi, dword [ebp - 0x10]
mov esi, dword [esi + 8]
mov edi, dword [ebp - 0x10]
mov edi, dword [edi + 0x14]
lea ebx, [edi + 1]
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x14], ebx
movzx ecx, byte [ebp - 0x14]
mov byte [esi + edi], cl
mov edi, dword [ebp - 0x10]
mov ebx, dword [edi + 0x170c]
mov cl, 0x10
sub cl, bl
add edx, ebx
add edx, 0xfffffff0
shr eax, cl
mov ecx, edx
mov ebx, eax
jmp 0x100d83b8
add ecx, edx
mov dword [edi + 0x170c], ecx
movzx eax, word [edi + 0xb0e]
movzx esi, word [edi + 0xb0c]
mov dword [ebp - 0x1c], esi
mov edx, ecx
shl esi, cl
or ebx, esi
mov ecx, 0x10
mov dword [ebp - 0x14], eax
sub ecx, eax
cmp edx, ecx
jle 0x100d82c4
mov word [edi + 0x1708], bx
mov eax, dword [edi + 8]
mov esi, dword [edi + 0x14]
lea edi, [esi + 1]
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x14], edi
mov byte [eax + esi], bl
mov ecx, dword [ebp - 0x10]
movzx eax, byte [ecx + 0x1709]
mov esi, dword [ebp - 0x10]
mov esi, dword [esi + 8]
mov edi, dword [ebp - 0x10]
mov edi, dword [edi + 0x14]
lea ebx, [edi + 1]
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x14], ebx
mov byte [esi + edi], al
mov edi, dword [ebp - 0x10]
mov ebx, dword [edi + 0x170c]
mov cl, 0x10
sub cl, bl
mov edx, dword [ebp - 0x14]
add edx, ebx
add edx, 0xfffffff0
mov ebx, dword [ebp - 0x1c]
shr ebx, cl
mov ecx, edx
jmp 0x100d82c9
mov ecx, edx
add ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x18]
mov dword [edi + 0x170c], ecx
add edx, 0xfffd
cmp ecx, 0xf
jl 0x100d8333
movzx eax, dx
shl edx, cl
or ebx, edx
mov word [edi + 0x1708], bx
mov ecx, dword [edi + 8]
mov edx, dword [edi + 0x14]
lea esi, [edx + 1]
mov dword [edi + 0x14], esi
mov byte [ecx + edx], bl
movzx ecx, byte [edi + 0x1709]
mov edx, dword [edi + 8]
mov esi, dword [edi + 0x14]
lea edi, [esi + 1]
mov ebx, dword [ebp - 0x10]
mov dword [ebx + 0x14], edi
mov edi, dword [ebp - 0x10]
mov byte [edx + esi], cl
mov edx, dword [edi + 0x170c]
mov cl, 0x10
sub cl, dl
shr eax, cl
mov ecx, edx
mov word [edi + 0x1708], ax
add ecx, 0xfffffff2
jmp 0x100d8440
shl edx, cl
or ebx, edx
mov word [edi + 0x1708], bx
add ecx, 2
jmp 0x100d8440
add ecx, edx
mov dword [edi + 0x170c], ecx
mov edx, dword [ebp - 0x18]
add edx, 0xfffe
cmp ecx, 0xe
jl 0x100d841f
movzx eax, dx
shl edx, cl
or ebx, edx
mov word [edi + 0x1708], bx
mov ecx, dword [edi + 8]
mov edx, dword [edi + 0x14]
lea esi, [edx + 1]
mov dword [edi + 0x14], esi
mov byte [ecx + edx], bl
movzx ecx, byte [edi + 0x1709]
mov edx, dword [edi + 8]
mov esi, dword [edi + 0x14]
lea edi, [esi + 1]
mov ebx, dword [ebp - 0x10]
mov dword [ebx + 0x14], edi
mov edi, dword [ebp - 0x10]
mov byte [edx + esi], cl
mov edx, dword [edi + 0x170c]
mov cl, 0x10
sub cl, dl
shr eax, cl
mov ecx, edx
mov word [edi + 0x1708], ax
add ecx, 0xfffffff3
jmp 0x100d8440
add ecx, edx
mov dword [edi + 0x170c], ecx
mov edx, dword [ebp - 0x18]
add edx, 0xfff6
cmp ecx, 0xa
jl 0x100d842f
movzx eax, dx
shl edx, cl
or ebx, edx
mov word [edi + 0x1708], bx
mov ecx, dword [edi + 8]
mov edx, dword [edi + 0x14]
lea esi, [edx + 1]
mov dword [edi + 0x14], esi
mov byte [ecx + edx], bl
movzx ecx, byte [edi + 0x1709]
mov edx, dword [edi + 8]
mov esi, dword [edi + 0x14]
lea edi, [esi + 1]
mov ebx, dword [ebp - 0x10]
mov dword [ebx + 0x14], edi
mov edi, dword [ebp - 0x10]
mov byte [edx + esi], cl
mov edx, dword [edi + 0x170c]
mov cl, 0x10
sub cl, dl
shr eax, cl
mov ecx, edx
mov word [edi + 0x1708], ax
add ecx, 0xfffffff7
jmp 0x100d8440
shl edx, cl
or ebx, edx
mov word [edi + 0x1708], bx
add ecx, 3
jmp 0x100d8440
shl edx, cl
or ebx, edx
mov word [edi + 0x1708], bx
add ecx, 7
nop dword [eax]
mov dword [edi + 0x170c], ecx
xor ebx, ebx
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x100d8474
xor ecx, ecx
mov edi, dword [ebp - 0x28]
cmp edi, eax
sete cl
mov eax, 4
sub eax, ecx
mov dword [ebp - 0x1c], eax
xor ecx, 7
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 8]
mov eax, dword [ebp - 0x20]
jmp 0x100d7f65
mov dword [ebp - 0x14], 0x8a
mov dword [ebp - 0x1c], 3
mov ecx, dword [ebp + 8]
mov eax, dword [ebp - 0x20]
mov edi, dword [ebp - 0x28]
jmp 0x100d7f65
add esp, 0x20
pop esi
pop edi
pop ebx
pop ebp
ret