Function at 0x401cce
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1b8c
call fcn.00424cc0
mov eax, dword [0x4476f0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
push 0x1370
mov dword [ebp - 0x1b88], eax
xor edi, edi
lea eax, [ebp - 0x1374]
push edi
push eax
mov dword [ebp - 0x1b8c], esi
call fcn.004231e0
lea eax, [ebp - 0x1374]
push 0x438200
push eax
call fcn.00424bd0
lea eax, [ebp - 0x1374]
push eax
call fcn.00424b30
lea eax, [ebp - 0x1374]
push eax
call fcn.00424b30
lea eax, [ebp - 0x1374]
push eax
call fcn.00424b30
lea eax, [ebp - 0x1374]
push eax
call fcn.00424b30
lea eax, [ebp - 0x1374]
push eax
call fcn.00424b30
lea eax, [ebp - 0x1374]
push eax
mov dword [ebp - 0x1b78], edi
call fcn.00424b30
lea eax, [ebp - 0x1374]
push eax
call fcn.00424b30
lea eax, [ebp - 0x1374]
push eax
call fcn.00424b30
lea eax, [ebp - 0x1374]
push eax
call fcn.00424b30
lea eax, [ebp - 0x1374]
push eax
call fcn.00424b30
add esp, 0x3c
push ebx
mov dword [ebp + edi*4 - 0x1774], edi
call fcn.0041ac3e
mov ecx, eax
xor edx, edx
mov eax, edi
div ecx
movzx eax, byte [edx + ebx]
mov dword [ebp + edi*4 - 0x1b74], eax
lea eax, [ebp - 0x1374]
push eax
call fcn.00424b30
lea eax, [ebp - 0x1374]
push eax
call fcn.00424b30
lea eax, [ebp - 0x1374]
push eax
call fcn.00424b30
lea eax, [ebp - 0x1374]
push eax
call fcn.00424b30
lea eax, [ebp - 0x1374]
push eax
call fcn.00424b30
add esp, 0x18
inc edi
cmp edi, 0x100
jl 0x401da3
lea eax, [ebp - 0x1374]
push eax
call fcn.00424b30
lea eax, [ebp - 0x1374]
push eax
call fcn.00424b30
lea eax, [ebp - 0x1374]
push eax
call fcn.00424b30
lea eax, [ebp - 0x1374]
push eax
call fcn.00424b30
lea eax, [ebp - 0x1374]
push eax
call fcn.00424b30
add esp, 0x14
xor edx, edx
mov ecx, dword [ebp + edx - 0x1b74]
lea eax, [ebp + edx - 0x1774]
mov edi, dword [eax]
add ecx, edi
add ecx, dword [ebp - 0x1b78]
and ecx, 0x800000ff
jns 0x401e74
dec ecx
or ecx, 0xffffff00
inc ecx
mov dword [ebp - 0x1b78], ecx
lea ecx, [ebp + ecx*4 - 0x1774]
mov ebx, dword [ecx]
add edx, 4
mov dword [eax], ebx
mov dword [ecx], edi
cmp edx, 0x400
jl 0x401e4c
lea eax, [ebp - 0x1374]
push eax
call fcn.00424b30
lea eax, [ebp - 0x1374]
push eax
call fcn.00424b30
lea eax, [ebp - 0x1374]
push eax
call fcn.00424b30
lea eax, [ebp - 0x1374]
push eax
call fcn.00424b30
lea eax, [ebp - 0x1374]
push eax
call fcn.00424b30
push esi
call fcn.0041ac3e
inc eax
push eax
call fcn.0042253e
mov ebx, eax
lea eax, [ebp - 0x1374]
xor edi, edi
push eax
mov dword [ebp - 0x1b84], ebx
mov dword [ebp - 0x1b78], edi
call fcn.00424b30
lea eax, [ebp - 0x1374]
push eax
call fcn.00424b30
lea eax, [ebp - 0x1374]
push eax
call fcn.00424b30
lea eax, [ebp - 0x1374]
push eax
call fcn.00424b30
lea eax, [ebp - 0x1374]
push eax
call fcn.00424b30
and dword [ebp - 0x1b7c], edi
push esi
call fcn.0041ac3e
add esp, 0x34
test eax, eax
jle 0x401fee
mov dword [ebp - 0x1b80], ebx
sub dword [ebp - 0x1b80], esi
inc edi
and edi, 0x800000ff
jns 0x401f5b
dec edi
or edi, 0xffffff00
inc edi
mov edx, dword [ebp - 0x1b78]
lea eax, [ebp + edi*4 - 0x1774]
mov ecx, dword [eax]
add edx, ecx
and edx, 0x800000ff
jns 0x401f7c
dec edx
or edx, 0xffffff00
inc edx
mov dword [ebp - 0x1b78], edx
lea edx, [ebp + edx*4 - 0x1774]
mov ebx, dword [edx]
mov dword [eax], ebx
mov dword [edx], ecx
mov eax, dword [eax]
add eax, ecx
and eax, 0x800000ff
jns 0x401fa1
dec eax
or eax, 0xffffff00
inc eax
mov cl, byte [esi]
movzx edx, cl
lea eax, [ebp + eax*4 - 0x1774]
cmp dword [eax], edx
jne 0x401fbc
mov eax, dword [ebp - 0x1b80]
mov byte [eax + esi], cl
jmp 0x401fc9
mov al, byte [eax]
xor al, cl
mov ecx, dword [ebp - 0x1b80]
mov byte [ecx + esi], al
push dword [ebp - 0x1b8c]
inc dword [ebp - 0x1b7c]
inc esi
call fcn.0041ac3e
pop ecx
cmp dword [ebp - 0x1b7c], eax
jl 0x401f4a
mov ebx, dword [ebp - 0x1b84]
lea eax, [ebp - 0x1374]
push eax
call fcn.00424b30
lea eax, [ebp - 0x1374]
push eax
call fcn.00424b30
lea eax, [ebp - 0x1374]
push eax
call fcn.00424b30
lea eax, [ebp - 0x1374]
push eax
call fcn.00424b30
lea eax, [ebp - 0x1374]
push eax
call fcn.00424b30
mov eax, dword [ebp - 0x1b7c]
mov byte [ebx + eax], 0
mov eax, dword [ebp - 0x1b88]
push 0x1370
mov dword [eax], ebx
lea eax, [ebp - 0x1374]
push 0
push eax
call fcn.004231e0
mov ecx, dword [ebp - 4]
add esp, 0x20
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042325a
leave
ret