Function at 0x1071fae
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov ebp, dword [esp + 0x50]
cmp byte [esi + 0x24], 0
mov ebx, dword [esp + 0x28]
mov eax, dword [ebx + ebp]
mov ebx, dword [ebx]
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ebx
je 0x1071f85
add eax, edx
lea eax, [eax + edx*2 - 3]
mov dword [esp + 0x10], eax
lea eax, [ebx + edx - 1]
mov dword [esp + 0x14], eax
mov eax, dword [esi + 0x20]
lea edx, [edx + edx*2 + 3]
lea ebx, [eax + edx*2]
mov eax, dword [esp + 0x10]
mov dword [esp + 0x38], 0xffffffff
mov dword [esp + 0x80], 0xfffffffd
mov byte [esi + 0x24], 0
jmp 0x1071f9f
mov ebx, dword [esi + 0x20]
mov dword [esp + 0x38], 1
mov dword [esp + 0x80], 3
mov byte [esi + 0x24], 1
mov edx, dword [esp + 0x40]
xor esi, esi
xor ebp, ebp
mov dword [esp + 0x34], edi
mov dword [esp + 0x30], edi
xor byte [ecx - 0x76d3db84], cl
je 0x1071fda
and al, 0x89
je 0x1071fde
and byte [ecx - 0x76e3db8c], cl
push esp
and al, 0x3c
test edx, edx
jbe 0x1072144
jmp 0x1071fd4
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x80]
movsx edx, word [ebx + edx*2]
lea edx, [edx + esi + 8]
movzx esi, byte [eax]
sar edx, 4
mov edx, dword [ecx + edx*4]
add edx, esi
mov esi, dword [esp + 0x18]
movzx esi, byte [edx + esi]
mov edx, dword [esp + 0x80]
movsx edx, word [ebx + edx*2 + 2]
lea edx, [edx + edi + 8]
movzx edi, byte [eax + 1]
movzx eax, byte [eax + 2]
sar edx, 4
mov edx, dword [ecx + edx*4]
add edx, edi
mov edi, dword [esp + 0x18]
movzx edi, byte [edx + edi]
mov edx, dword [esp + 0x80]
movsx edx, word [ebx + edx*2 + 4]
lea edx, [edx + ebp + 8]
sar edx, 4
mov ecx, dword [ecx + edx*4]
mov edx, dword [esp + 0x18]
add ecx, eax
movzx ebp, byte [ecx + edx]
mov ecx, edi
sar ecx, 2
mov dword [esp + 0x5c], ecx
mov edx, ebp
sar edx, 3
shl ecx, 5
add ecx, edx
mov dword [esp + 0x58], edx
mov edx, dword [esp + 0x54]
mov eax, esi
sar eax, 3
mov edx, dword [edx + eax*4]
cmp word [edx + ecx*2], 0
lea ecx, [edx + ecx*2]
mov dword [esp + 0x60], ecx
jne 0x107208a
mov ecx, dword [esp + 0x58]
mov edx, dword [esp + 0x74]
push ecx
mov ecx, dword [esp + 0x60]
push eax
push edx
call fcn.01071cc0
mov ecx, dword [esp + 0x6c]
add esp, 0xc
movzx eax, word [ecx]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x64]
dec eax
mov byte [ecx], al
movzx ecx, byte [eax + edx]
mov edx, dword [esp + 0x68]
sub esi, ecx
movzx ecx, byte [eax + edx]
mov edx, dword [esp + 0x6c]
movzx eax, byte [eax + edx]
mov edx, dword [esp + 0x1c]
sub edi, ecx
sub ebp, eax
mov ecx, esi
lea eax, [esi + esi]
add esi, eax
add edx, esi
mov word [ebx], dx
mov edx, dword [esp + 0x2c]
add esi, eax
add edx, esi
mov dword [esp + 0x1c], edx
mov edx, dword [esp + 0x20]
add esi, eax
mov dword [esp + 0x2c], ecx
mov ecx, edi
lea eax, [edi + edi]
add edi, eax
add edx, edi
mov word [ebx + 2], dx
mov edx, dword [esp + 0x30]
add edi, eax
add edx, edi
add edi, eax
lea eax, [ebp + ebp]
mov dword [esp + 0x20], edx
mov edx, dword [esp + 0x24]
mov dword [esp + 0x30], ecx
mov ecx, ebp
add ebp, eax
add edx, ebp
mov word [ebx + 4], dx
mov edx, dword [esp + 0x34]
add ebp, eax
add edx, ebp
mov dword [esp + 0x34], ecx
mov ecx, dword [esp + 0x38]
add dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x44]
add ebp, eax
mov eax, dword [esp + 0x80]
add dword [esp + 0x10], eax
sub dword [esp + 0x3c], 1
mov dword [esp + 0x24], edx
lea ebx, [ebx + eax*2]
jne 0x1071fd0
mov edx, dword [esp + 0x40]
movzx eax, word [esp + 0x1c]
add dword [esp + 0x28], 4
mov esi, dword [esp + 0x48]
mov word [ebx], ax
movzx eax, word [esp + 0x20]
mov word [ebx + 2], ax
movzx eax, word [esp + 0x24]
xor edi, edi
sub dword [esp + 0x4c], 1
mov word [ebx + 4], ax
jne 0x1071f31
pop ebp
pop ebx
pop edi
pop esi
add esp, 0x60
ret