Function at 0x426a00
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push eax
call fcn.00435d70
add esp, 4
test eax, eax
mov dword [ebp - 8], eax
jne 0x426a33
push eax
push eax
lea ecx, [ebp + 8]
push ecx
call fcn.00436b30
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp + 8]
push edx
call fcn.00435d70
add esp, 4
test eax, eax
mov dword [ebp - 0x18], eax
push 0
jne 0x426a61
lea eax, [ebp - 8]
push eax
lea ecx, [ebp + 8]
push ecx
call fcn.00436b30
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp + 8]
push edx
call fcn.0045c3e8
add esp, 8
test eax, eax
je 0x426a8e
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 8]
push ecx
lea edx, [ebp + 8]
push edx
call fcn.00436b30
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 8]
push 8
push eax
call fcn.004356e0
mov ecx, dword [ebp - 8]
mov edx, dword [ebp + 8]
push ecx
push edx
call fcn.00435fd0
push 0
push 0
push 0
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x3c]
push ecx
mov ecx, dword [ebp - 8]
lea edx, [ebp - 0x40]
push edx
mov edx, dword [ebp + 8]
lea eax, [ebp - 0x44]
push eax
push ecx
push edx
call fcn.00436d10
mov eax, dword [ebp - 0x38]
mov ebx, 3
add esp, 0x34
cmp eax, ebx
jne 0x426af0
mov edx, dword [ebp - 8]
lea eax, [ebp - 0x34]
push eax
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push ecx
push edx
push eax
call fcn.00436e30
add esp, 0x10
mov eax, dword [ebp - 0x3c]
cmp eax, 8
mov esi, eax
jge 0x426b06
mov ecx, dword [ebp + 8]
push ecx
call fcn.00436e70
add esp, 4
mov edx, dword [ebp - 8]
mov eax, dword [ebp + 8]
push 0x10
push edx
push eax
call fcn.00436cb0
add esp, 0xc
test eax, eax
je 0x426b28
mov ecx, dword [ebp + 8]
push ecx
call fcn.00437310
add esp, 4
cmp dword [ebp - 0x3c], 0x10
jne 0x426b3a
mov edx, dword [ebp + 8]
push edx
call fcn.00437300
add esp, 4
cmp dword [ebp - 0x38], 4
jne 0x426b4c
mov eax, dword [ebp + 8]
push eax
call fcn.00437320
add esp, 4
cmp dword [ebp - 0x38], 2
jne 0x426b65
mov ecx, dword [ebp + 8]
push 1
push 0xff
push ecx
call fcn.00436eb0
add esp, 0xc
mov edx, dword [ebp - 8]
mov eax, dword [ebp + 8]
push edx
push eax
call fcn.00436340
push 0
push 0
push 0
lea ecx, [ebp - 0x38]
push ecx
lea edx, [ebp - 0x3c]
push edx
mov edx, dword [ebp - 8]
lea eax, [ebp - 0x40]
push eax
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x44]
push ecx
push edx
push eax
call fcn.00436d10
mov cx, word [ebp - 0x44]
mov edi, dword [ebp + 0xc]
mov eax, dword [ebp - 8]
mov dx, word [ebp - 0x40]
mov word [edi + 8], cx
mov ecx, dword [ebp + 8]
push eax
push ecx
mov word [edi + 0xa], dx
call fcn.00436cf0
movzx edx, al
mov eax, dword [ebp - 0x38]
add esp, 0x34
test eax, eax
mov dword [ebp - 0x30], edx
jne 0x426c29
mov ecx, esi
mov eax, 1
shl eax, cl
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x34], eax
lea eax, [eax + eax*2]
push eax
call fcn.00411889
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x34]
add esp, 4
xor esi, esi
test eax, eax
jle 0x426c29
xor ecx, ecx
xor ebx, ebx
lea edi, [eax - 1]
mov eax, ebx
cdq
idiv edi
mov edx, dword [ebp - 0x2c]
inc esi
add ebx, 0xff
add ecx, 3
mov byte [ecx + edx - 1], al
mov edi, dword [ebp - 0x2c]
mov al, byte [ecx + edi - 1]
mov byte [ecx + edi - 2], al
mov edi, dword [ebp - 0x2c]
mov dl, byte [ecx + edi - 2]
mov byte [ecx + edi - 3], dl
mov eax, dword [ebp - 0x34]
cmp esi, eax
jl 0x426bf0
mov edi, dword [ebp + 0xc]
mov eax, dword [ebp - 0x40]
lea ecx, [eax*4]
push ecx
call fcn.00411889
mov edx, dword [ebp - 8]
mov ebx, eax
mov eax, dword [ebp + 8]
push edx
push eax
mov dword [ebp - 0x24], ebx
call fcn.00436cd0
mov esi, eax
mov ecx, esi
imul ecx, dword [ebp - 0x40]
push ecx
mov dword [ebp - 0x20], esi
call fcn.00411889
mov ecx, dword [ebp - 0x40]
mov dword [ebp - 0x28], eax
add esp, 0x10
xor eax, eax
test ecx, ecx
jbe 0x426c82
xor ecx, ecx
lea ecx, [ecx]
mov edx, dword [ebp - 0x28]
add edx, ecx
mov dword [ebx + eax*4], edx
mov edx, dword [ebp - 0x40]
inc eax
add ecx, esi
cmp eax, edx
jb 0x426c70
mov eax, dword [ebp + 8]
push ebx
push eax
call fcn.00436820
mov eax, dword [ebp - 0x38]
add esp, 8
cmp eax, 6
je 0x426ca0
cmp eax, 2
jne 0x426d3f
mov edx, dword [ebp - 0x40]
xor ecx, ecx
cmp edx, ecx
mov dword [ebp - 0x14], ecx
jbe 0x426d3f
mov dword [ebp - 0xc], ecx
cmp dword [ebp - 0x44], ecx
mov dword [ebp - 0x10], ecx
jbe 0x426d22
mov eax, dword [ebp - 0xc]
mov edi, edi
mov ecx, dword [ebp - 0x28]
mov dl, byte [eax + ecx]
lea esi, [eax + ecx + 1]
lea edi, [eax + ecx + 2]
lea ebx, [eax + ecx + 3]
mov byte [ebp - 1], dl
mov dl, byte [esi]
mov byte [ebp - 2], dl
mov dl, byte [edi]
mov byte [ebp - 3], dl
movzx edx, byte [ebx]
mov byte [eax + ecx], dl
movzx ecx, byte [ebp - 1]
imul ecx, edx
sar ecx, 8
mov byte [esi], cl
movzx ecx, byte [ebp - 2]
imul ecx, edx
sar ecx, 8
mov byte [edi], cl
movzx ecx, byte [ebp - 3]
imul ecx, edx
sar ecx, 8
mov byte [ebx], cl
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x44]
inc ecx
add eax, 4
cmp ecx, edx
mov dword [ebp - 0x10], ecx
jb 0x426cc0
mov esi, dword [ebp - 0x20]
mov edi, dword [ebp + 0xc]
xor ecx, ecx
mov eax, dword [ebp - 0x14]
mov ebx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x40]
inc eax
add ebx, esi
cmp eax, edx
mov dword [ebp - 0x14], eax
mov dword [ebp - 0xc], ebx
jb 0x426cb3
mov eax, dword [ebp - 0x38]
mov ebx, dword [ebp - 0x30]
imul ebx, dword [ebp - 0x44]
add ebx, 3
and ebx, 0xfffffffc
imul ebx, dword [ebp - 0x40]
cmp eax, 3
jne 0x426d8d
mov eax, dword [ebp - 0x34]
lea esi, [eax + eax*2]
dec al
add ebx, esi
push ebx
mov dword [ebp - 0x20], esi
mov byte [edi + 5], 3
mov byte [edi + 6], al
call fcn.00411889
mov ecx, esi
mov esi, dword [ebp - 0x2c]
mov edx, ecx
shr ecx, 2
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, edx
mov dword [ebp - 0x14], eax
add eax, ecx
jmp 0x426d9a
push ebx
mov byte [edi + 5], 5
call fcn.00411889
mov dword [ebp - 0x14], eax
add esp, 4
push eax
sub esp, 0x20
lea esi, [ebp - 0x44]
mov edi, esp
mov ecx, 8
rep movsd dword es:[edi], dword [esi]
call fcn.004269a0
add esp, 0x24
lea edx, [ebp - 0x18]
push edx
lea eax, [ebp - 8]
push eax
lea ecx, [ebp + 8]
push ecx
call fcn.00436b30
mov edx, dword [ebp - 0x24]
push edx
call fcn.004110a6
mov eax, dword [ebp - 0x38]
add esp, 0x10
cmp eax, 4
je 0x426de3
cmp eax, 6
je 0x426de3
xor eax, eax
jmp 0x426de8
mov eax, 1
test ebx, ebx
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x24], ebx
fild dword [ebp - 0x24]
mov byte [esi + 4], al
jge 0x426dfe
fadd qword [0x47c408]
fmul qword [0x47c400]
sub esp, 8
fadd qword [0x47c3f8]
fstp qword [esp]
call fcn.0045bfb0
call fcn.0041056c
push eax
mov dword [ebp - 0x1c], eax
call fcn.00411889
mov edi, dword [ebp - 0x14]
push 9
push ebx
push edi
lea ecx, [ebp - 0x1c]
push ecx
push eax
mov dword [esi + 0xc], eax
call fcn.00432120
push edi
call fcn.004110a6
mov edx, dword [ebp - 0x1c]
add esp, 0x24
pop edi
mov dword [esi], edx
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret