Function at 0x471390
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x20
mov dword [ebp - 0x24], edx
cmp dword [ebp + 8], 0
js 0x471907
mov eax, dword [ebp - 0x24]
movzx eax, word [eax + 2]
xor edx, edx
test ax, ax
sete dl
mov dword [ebp - 0x10], ecx
mov esi, 0x8a
mov ecx, 7
cmove ecx, esi
mov dword [ebp - 0x14], ecx
mov esi, dword [ebp - 0x10]
mov ecx, 4
sub ecx, edx
mov dword [ebp - 0x1c], ecx
mov edi, 0xffffffff
xor ebx, ebx
xor ecx, ecx
jmp 0x4713f8
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp + 8]
mov ebx, eax
add eax, 1
cmp ebx, edx
mov ebx, eax
mov eax, dword [ebp - 0x28]
je 0x471907
mov edx, eax
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x20], ebx
movzx eax, word [eax + ebx*4 + 6]
mov ebx, edx
mov dword [ebp - 0x18], ecx
add ecx, 1
cmp ecx, dword [ebp - 0x14]
mov dword [ebp - 0x28], eax
jge 0x471419
cmp ebx, eax
je 0x4713e0
cmp ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x2c], ebx
jge 0x4714d0
mov edi, ecx
mov ecx, dword [esi + 0x170c]
jmp 0x471445
add ecx, dword [ebp - 0x14]
mov dword [esi + 0x170c], ecx
add edi, 0xffffffff
mov ebx, dword [ebp - 0x2c]
je 0x4718c9
movzx edx, word [esi + ebx*4 + 0xace]
mov eax, 0x10
mov dword [ebp - 0x14], edx
sub eax, edx
movzx edx, word [esi + ebx*4 + 0xacc]
mov ebx, edx
shl ebx, cl
or bx, word [esi + 0x1708]
mov word [esi + 0x1708], bx
cmp ecx, eax
jle 0x471430
mov eax, dword [esi + 8]
mov dword [ebp - 0x18], eax
mov ecx, dword [esi + 0x14]
lea eax, [ecx + 1]
mov dword [esi + 0x14], eax
mov eax, dword [ebp - 0x18]
mov byte [eax + ecx], bl
movzx eax, byte [esi + 0x1709]
mov byte [ebp - 0x18], al
mov ecx, dword [esi + 8]
mov ebx, dword [esi + 0x14]
lea eax, [ebx + 1]
mov dword [esi + 0x14], eax
movzx eax, byte [ebp - 0x18]
mov byte [ecx + ebx], al
mov ebx, dword [esi + 0x170c]
mov cl, 0x10
sub cl, bl
shr edx, cl
mov word [esi + 0x1708], dx
mov eax, dword [ebp - 0x14]
lea ecx, [eax + ebx]
add ecx, 0xfffffff0
jmp 0x471433
test ebx, ebx
je 0x4714ea
cmp ebx, edi
jne 0x471587
mov ebx, dword [esi + 0x170c]
mov dword [ebp - 0x18], ecx
jmp 0x4716b8
cmp dword [ebp - 0x18], 9
jg 0x47161c
movzx ecx, word [esi + 0xb12]
mov ebx, dword [esi + 0x170c]
mov eax, 0x10
mov dword [ebp - 0x14], ecx
sub eax, ecx
movzx edi, word [esi + 0xb10]
mov edx, edi
mov ecx, ebx
shl edx, cl
or dx, word [esi + 0x1708]
mov word [esi + 0x1708], dx
cmp ebx, eax
jle 0x4717bf
mov eax, dword [esi + 8]
mov ecx, dword [esi + 0x14]
lea esi, [ecx + 1]
mov ebx, dword [ebp - 0x10]
mov dword [ebx + 0x14], esi
mov byte [eax + ecx], dl
mov eax, dword [ebp - 0x10]
mov al, byte [eax + 0x1709]
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx + 8]
mov edx, dword [ebp - 0x10]
mov edx, dword [edx + 0x14]
lea esi, [edx + 1]
mov ebx, dword [ebp - 0x10]
mov dword [ebx + 0x14], esi
mov esi, dword [ebp - 0x10]
mov byte [ecx + edx], al
mov edx, dword [esi + 0x170c]
mov cl, 0x10
sub cl, dl
mov eax, dword [ebp - 0x14]
lea ebx, [eax + edx]
add ebx, 0xfffffff0
shr edi, cl
mov word [esi + 0x1708], di
mov edx, edi
jmp 0x4717c2
movzx edx, word [esi + ebx*4 + 0xace]
mov ecx, ebx
mov ebx, dword [esi + 0x170c]
mov eax, 0x10
mov dword [ebp - 0x14], edx
sub eax, edx
movzx edi, word [esi + ecx*4 + 0xacc]
mov edx, edi
mov ecx, ebx
shl edx, cl
or dx, word [esi + 0x1708]
mov word [esi + 0x1708], dx
cmp ebx, eax
jle 0x4716af
mov eax, dword [esi + 8]
mov ecx, dword [esi + 0x14]
lea esi, [ecx + 1]
mov ebx, dword [ebp - 0x10]
mov dword [ebx + 0x14], esi
mov byte [eax + ecx], dl
mov eax, dword [ebp - 0x10]
mov al, byte [eax + 0x1709]
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx + 8]
mov edx, dword [ebp - 0x10]
mov edx, dword [edx + 0x14]
lea esi, [edx + 1]
mov ebx, dword [ebp - 0x10]
mov dword [ebx + 0x14], esi
mov esi, dword [ebp - 0x10]
mov byte [ecx + edx], al
mov edx, dword [esi + 0x170c]
mov cl, 0x10
sub cl, dl
shr edi, cl
mov word [esi + 0x1708], di
mov eax, dword [ebp - 0x14]
lea ebx, [eax + edx]
add ebx, 0xfffffff0
jmp 0x4716b2
movzx ecx, word [esi + 0xb16]
mov ebx, dword [esi + 0x170c]
mov eax, 0x10
mov dword [ebp - 0x14], ecx
sub eax, ecx
movzx edi, word [esi + 0xb14]
mov edx, edi
mov ecx, ebx
shl edx, cl
or dx, word [esi + 0x1708]
mov word [esi + 0x1708], dx
cmp ebx, eax
jle 0x47183c
mov eax, dword [esi + 8]
mov ecx, dword [esi + 0x14]
lea esi, [ecx + 1]
mov ebx, dword [ebp - 0x10]
mov dword [ebx + 0x14], esi
mov byte [eax + ecx], dl
mov eax, dword [ebp - 0x10]
mov al, byte [eax + 0x1709]
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx + 8]
mov edx, dword [ebp - 0x10]
mov edx, dword [edx + 0x14]
lea esi, [edx + 1]
mov ebx, dword [ebp - 0x10]
mov dword [ebx + 0x14], esi
mov esi, dword [ebp - 0x10]
mov byte [ecx + edx], al
mov edx, dword [esi + 0x170c]
mov cl, 0x10
sub cl, dl
mov eax, dword [ebp - 0x14]
lea ebx, [eax + edx]
add ebx, 0xfffffff0
shr edi, cl
mov word [esi + 0x1708], di
mov edx, edi
jmp 0x47183f
add ebx, dword [ebp - 0x14]
mov dword [esi + 0x170c], ebx
movzx ecx, word [esi + 0xb0e]
mov eax, 0x10
mov dword [ebp - 0x14], ecx
sub eax, ecx
movzx edi, word [esi + 0xb0c]
mov edx, edi
mov ecx, ebx
shl edx, cl
or dx, word [esi + 0x1708]
mov word [esi + 0x1708], dx
cmp ebx, eax
jle 0x47173e
mov eax, dword [esi + 8]
mov ecx, dword [esi + 0x14]
lea esi, [ecx + 1]
mov ebx, dword [ebp - 0x10]
mov dword [ebx + 0x14], esi
mov byte [eax + ecx], dl
mov eax, dword [ebp - 0x10]
mov al, byte [eax + 0x1709]
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx + 8]
mov edx, dword [ebp - 0x10]
mov edx, dword [edx + 0x14]
lea esi, [edx + 1]
mov ebx, dword [ebp - 0x10]
mov dword [ebx + 0x14], esi
mov esi, dword [ebp - 0x10]
mov byte [ecx + edx], al
mov edx, dword [esi + 0x170c]
mov cl, 0x10
sub cl, dl
mov eax, dword [ebp - 0x14]
lea ebx, [eax + edx]
add ebx, 0xfffffff0
shr edi, cl
mov word [esi + 0x1708], di
mov edx, edi
jmp 0x471741
add ebx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x18]
add eax, 0xfffd
movzx edi, ax
mov eax, edi
mov ecx, ebx
shl eax, cl
or edx, eax
mov dword [esi + 0x170c], ebx
mov word [esi + 0x1708], dx
cmp ebx, 0xf
jl 0x4717b7
mov eax, dword [esi + 8]
mov ecx, dword [esi + 0x14]
lea esi, [ecx + 1]
mov ebx, dword [ebp - 0x10]
mov dword [ebx + 0x14], esi
mov byte [eax + ecx], dl
mov eax, dword [ebp - 0x10]
mov al, byte [eax + 0x1709]
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx + 8]
mov edx, dword [ebp - 0x10]
mov edx, dword [edx + 0x14]
lea esi, [edx + 1]
mov ebx, dword [ebp - 0x10]
mov dword [ebx + 0x14], esi
mov esi, dword [ebp - 0x10]
mov byte [ecx + edx], al
mov ebx, dword [esi + 0x170c]
mov cl, 0x10
sub cl, bl
shr edi, cl
mov word [esi + 0x1708], di
add ebx, 0xfffffff2
jmp 0x4718c0
add ebx, 2
jmp 0x4718c0
add ebx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x18]
add eax, 0xfffe
movzx edi, ax
mov eax, edi
mov ecx, ebx
shl eax, cl
or edx, eax
mov dword [esi + 0x170c], ebx
mov word [esi + 0x1708], dx
cmp ebx, 0xe
jl 0x4718b2
mov eax, dword [esi + 8]
mov ecx, dword [esi + 0x14]
lea esi, [ecx + 1]
mov ebx, dword [ebp - 0x10]
mov dword [ebx + 0x14], esi
mov byte [eax + ecx], dl
mov eax, dword [ebp - 0x10]
mov al, byte [eax + 0x1709]
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx + 8]
mov edx, dword [ebp - 0x10]
mov edx, dword [edx + 0x14]
lea esi, [edx + 1]
mov ebx, dword [ebp - 0x10]
mov dword [ebx + 0x14], esi
mov esi, dword [ebp - 0x10]
mov byte [ecx + edx], al
mov ebx, dword [esi + 0x170c]
mov cl, 0x10
sub cl, bl
shr edi, cl
mov word [esi + 0x1708], di
add ebx, 0xfffffff3
jmp 0x4718c0
add ebx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x18]
add eax, 0xfff6
movzx edi, ax
mov eax, edi
mov ecx, ebx
shl eax, cl
or edx, eax
mov dword [esi + 0x170c], ebx
mov word [esi + 0x1708], dx
cmp ebx, 0xa
jl 0x4718b7
mov eax, dword [esi + 8]
mov ecx, dword [esi + 0x14]
lea esi, [ecx + 1]
mov ebx, dword [ebp - 0x10]
mov dword [ebx + 0x14], esi
mov byte [eax + ecx], dl
mov eax, dword [ebp - 0x10]
mov al, byte [eax + 0x1709]
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx + 8]
mov edx, dword [ebp - 0x10]
mov edx, dword [edx + 0x14]
lea esi, [edx + 1]
mov ebx, dword [ebp - 0x10]
mov dword [ebx + 0x14], esi
mov esi, dword [ebp - 0x10]
mov byte [ecx + edx], al
mov ebx, dword [esi + 0x170c]
mov cl, 0x10
sub cl, bl
shr edi, cl
mov word [esi + 0x1708], di
add ebx, 0xfffffff7
jmp 0x4718c0
add ebx, 3
jmp 0x4718c0
add ebx, 7
nop word [eax + eax]
mov dword [esi + 0x170c], ebx
mov ebx, dword [ebp - 0x2c]
xor ecx, ecx
mov eax, dword [ebp - 0x28]
test ax, ax
je 0x4718ec
xor edx, edx
cmp ebx, eax
sete dl
mov eax, 4
sub eax, edx
mov dword [ebp - 0x1c], eax
xor edx, 7
mov dword [ebp - 0x14], edx
jmp 0x4718fa
mov dword [ebp - 0x14], 0x8a
mov dword [ebp - 0x1c], 3
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x20]
mov edi, ebx
jmp 0x4713e6
add esp, 0x20
pop esi
pop edi
pop ebx
pop ebp
ret