Function at 0x401d50
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1b8c
call fcn.0042c420
mov eax, dword [0x44f6f0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
push ebx
push esi
push edi
push 0x1370
mov dword [ebp - 0x1b80], eax
lea eax, [ebp - 0x1374]
push 0
push eax
mov dword [ebp - 0x1b78], ecx
mov dword [ebp - 0x1b8c], edx
call fcn.0042aad0
add esp, 0xc
push 0x440228
lea ecx, [ebp - 0x1374]
push ecx
call dword [0x440020]
mov esi, dword [0x44001c]
lea edx, [ebp - 0x1374]
push edx
call esi
lea eax, [ebp - 0x1374]
push eax
call esi
lea ecx, [ebp - 0x1374]
push ecx
call esi
lea edx, [ebp - 0x1374]
push edx
call esi
lea eax, [ebp - 0x1374]
push eax
call esi
lea ecx, [ebp - 0x1374]
push ecx
call esi
lea edx, [ebp - 0x1374]
push edx
xor edi, edi
call esi
lea eax, [ebp - 0x1374]
push eax
call esi
lea ecx, [ebp - 0x1374]
push ecx
call esi
lea edx, [ebp - 0x1374]
push edx
call esi
xor ebx, ebx
mov eax, dword [ebp - 0x1b78]
push eax
mov dword [ebp + ebx*4 - 0x1774], ebx
call fcn.00420c90
mov ecx, eax
xor edx, edx
mov eax, ebx
div ecx
mov eax, dword [ebp - 0x1b78]
add esp, 4
movzx ecx, byte [edx + eax]
lea edx, [ebp - 0x1374]
push edx
mov dword [ebp + ebx*4 - 0x1b74], ecx
call esi
lea eax, [ebp - 0x1374]
push eax
call esi
lea ecx, [ebp - 0x1374]
push ecx
call esi
lea edx, [ebp - 0x1374]
push edx
call esi
inc ebx
cmp ebx, 0x100
jl 0x401e11
lea eax, [ebp - 0x1374]
push eax
call esi
lea ecx, [ebp - 0x1374]
push ecx
call esi
lea edx, [ebp - 0x1374]
push edx
call esi
lea eax, [ebp - 0x1374]
push eax
call esi
xor eax, eax
jmp 0x401ea0
mov edx, dword [ebp + eax - 0x1774]
mov ecx, dword [ebp + eax - 0x1b74]
add ecx, edx
add ecx, edi
and ecx, 0x800000ff
jns 0x401ec2
dec ecx
or ecx, 0xffffff00
inc ecx
mov edi, dword [ebp + ecx*4 - 0x1774]
mov dword [ebp + eax - 0x1774], edi
mov edi, dword [ebp + eax - 0x1b70]
mov dword [ebp + ecx*4 - 0x1774], edx
mov edx, dword [ebp + eax - 0x1770]
add edi, edx
add ecx, edi
and ecx, 0x800000ff
jns 0x401ef9
dec ecx
or ecx, 0xffffff00
inc ecx
mov edi, dword [ebp + ecx*4 - 0x1774]
mov dword [ebp + eax - 0x1770], edi
mov edi, dword [ebp + eax - 0x1b6c]
mov dword [ebp + ecx*4 - 0x1774], edx
mov edx, dword [ebp + eax - 0x176c]
add edi, edx
add ecx, edi
and ecx, 0x800000ff
jns 0x401f30
dec ecx
or ecx, 0xffffff00
inc ecx
mov edi, dword [ebp + ecx*4 - 0x1774]
mov dword [ebp + eax - 0x176c], edi
mov edi, dword [ebp + eax - 0x1b68]
mov dword [ebp + ecx*4 - 0x1774], edx
mov edx, dword [ebp + eax - 0x1768]
add edi, edx
add edi, ecx
and edi, 0x800000ff
jns 0x401f67
dec edi
or edi, 0xffffff00
inc edi
mov ecx, dword [ebp + edi*4 - 0x1774]
mov dword [ebp + eax - 0x1768], ecx
add eax, 0x10
mov dword [ebp + edi*4 - 0x1774], edx
cmp eax, 0x400
jl 0x401ea0
lea edx, [ebp - 0x1374]
push edx
call esi
lea eax, [ebp - 0x1374]
push eax
call esi
lea ecx, [ebp - 0x1374]
push ecx
call esi
lea edx, [ebp - 0x1374]
push edx
call esi
mov eax, dword [ebp - 0x1b80]
push eax
call fcn.00420c90
inc eax
push eax
call fcn.00429f4c
add esp, 8
lea ecx, [ebp - 0x1374]
push ecx
mov dword [ebp - 0x1b84], eax
xor ebx, ebx
xor edi, edi
call esi
lea edx, [ebp - 0x1374]
push edx
call esi
lea eax, [ebp - 0x1374]
push eax
call esi
lea ecx, [ebp - 0x1374]
push ecx
call esi
mov edx, dword [ebp - 0x1b80]
push edx
mov dword [ebp - 0x1b78], ebx
call fcn.00420c90
add esp, 4
test eax, eax
jle 0x4020eb
mov ecx, dword [ebp - 0x1b80]
mov eax, dword [ebp - 0x1b84]
sub eax, ecx
mov dword [ebp - 0x1b7c], ecx
mov dword [ebp - 0x1b88], eax
lea esp, [esp]
inc edi
and edi, 0x800000ff
jns 0x402041
dec edi
or edi, 0xffffff00
inc edi
mov eax, dword [ebp + edi*4 - 0x1774]
add ebx, eax
and ebx, 0x800000ff
jns 0x40205a
dec ebx
or ebx, 0xffffff00
inc ebx
mov edx, dword [ebp + ebx*4 - 0x1774]
mov dword [ebp + edi*4 - 0x1774], edx
mov dword [ebp + ebx*4 - 0x1774], eax
mov ecx, dword [ebp + edi*4 - 0x1774]
add eax, ecx
and eax, 0x800000ff
jns 0x402086
dec eax
or eax, 0xffffff00
inc eax
mov edx, dword [ebp - 0x1b7c]
mov cl, byte [edx]
movzx edx, cl
cmp dword [ebp + eax*4 - 0x1774], edx
mov edx, dword [ebp - 0x1b7c]
lea eax, [ebp + eax*4 - 0x1774]
jne 0x4020b2
mov eax, dword [ebp - 0x1b88]
mov byte [eax + edx], cl
jmp 0x4020bf
mov al, byte [eax]
xor al, cl
mov ecx, dword [ebp - 0x1b88]
mov byte [ecx + edx], al
mov eax, 1
add dword [ebp - 0x1b78], eax
add dword [ebp - 0x1b7c], eax
mov eax, dword [ebp - 0x1b80]
push eax
call fcn.00420c90
add esp, 4
cmp dword [ebp - 0x1b78], eax
jl 0x402030
lea ecx, [ebp - 0x1374]
push ecx
call esi
lea edx, [ebp - 0x1374]
push edx
call esi
lea eax, [ebp - 0x1374]
push eax
call esi
lea ecx, [ebp - 0x1374]
push ecx
call esi
mov eax, dword [ebp - 0x1b84]
mov edx, dword [ebp - 0x1b78]
mov ecx, dword [ebp - 0x1b8c]
mov byte [eax + edx], 0
push 0x1370
lea edx, [ebp - 0x1374]
push 0
push edx
mov dword [ecx], eax
call fcn.0042aad0
mov ecx, dword [ebp - 4]
add esp, 0xc
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042ab4a
mov esp, ebp
pop ebp
ret