Function at 0x4f18f0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x578
mov eax, dword [0x6a56e8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
mov dword [ebp - 0x564], esi
push 1
push 0
mov dword [ebp - 0x530], edi
mov ecx, dword [edi + 0x10]
call fcn.004f26b0
mov ebx, dword [ebp + 0xc]
push ebx
push esi
push dword [edi + 0xc]
call fcn.00543ad0
mov ecx, dword [edi + 0xc]
push 0x18
push eax
mov dword [ecx + eax*4], ebx
mov ecx, dword [edi + 0x10]
call fcn.004f26b0
xor eax, eax
xor edi, edi
cmp eax, 0x100
jae 0x4f22d4
mov byte [ebp + eax - 0x11c], 0
inc eax
cmp eax, 0x100
jb 0x4f1950
xor eax, eax
cmp eax, 0x10
jae 0x4f22d4
mov byte [ebp + eax - 0x1c], 0
inc eax
cmp eax, 0x10
jb 0x4f196b
xor ecx, ecx
test ebx, ebx
je 0x4f1991
nop dword [eax]
movzx eax, byte [esi + ecx]
inc ecx
mov byte [ebp + eax - 0x11c], 1
cmp ecx, ebx
jb 0x4f1980
xor ecx, ecx
cmp byte [ebp + ecx - 0x11c], 0
je 0x4f19af
mov eax, ecx
mov byte [ebp + edi - 0x524], cl
shr eax, 4
inc edi
mov byte [ebp + eax - 0x1c], 1
inc ecx
cmp ecx, 0x100
jb 0x4f1993
mov ebx, dword [ebp - 0x530]
xor esi, esi
movzx eax, byte [ebp + esi - 0x1c]
mov ecx, dword [ebx + 0x10]
push 1
push eax
call fcn.004f26b0
inc esi
cmp esi, 0x10
jb 0x4f19c0
xor esi, esi
nop dword [eax + eax]
mov eax, esi
shr eax, 4
cmp byte [ebp + eax - 0x1c], 0
je 0x4f19ff
movzx eax, byte [ebp + esi - 0x11c]
mov ecx, dword [ebx + 0x10]
push 1
push eax
call fcn.004f26b0
inc esi
cmp esi, 0x100
jb 0x4f19e0
lea eax, [edi + 2]
mov ecx, 0x102
mov dword [ebp - 0x554], eax
lea edi, [ebp - 0x424]
mov eax, dword [ebx + 4]
xor esi, esi
mov dword [ebp - 0x544], eax
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, dword [ebx + 0xc]
xor edx, edx
mov bh, byte [ebp - 0x524]
mov dword [ebp - 0x54c], eax
mov dword [ebp - 0x55c], ecx
mov eax, dword [ecx + eax*4]
mov ecx, dword [ebp - 0x564]
mov bl, byte [eax + ecx - 1]
xor ecx, ecx
cmp bh, bl
je 0x4f1a5f
inc ecx
cmp byte [ebp + ecx - 0x524], bl
jne 0x4f1a55
mov dword [ebp - 0x560], ecx
cmp ecx, 8
jb 0x4f1abf
lea edi, [ebp - 0x524]
movzx eax, byte [edi + ecx - 1]
mov byte [edi + ecx], al
movzx eax, byte [edi + ecx - 2]
mov byte [edi + ecx - 1], al
movzx eax, byte [edi + ecx - 3]
mov byte [edi + ecx - 2], al
movzx eax, byte [edi + ecx - 4]
mov byte [edi + ecx - 3], al
movzx eax, byte [edi + ecx - 5]
mov byte [edi + ecx - 4], al
movzx eax, byte [edi + ecx - 6]
mov byte [edi + ecx - 5], al
movzx eax, byte [edi + ecx - 7]
mov byte [edi + ecx - 6], al
movzx eax, byte [edi + ecx - 8]
mov byte [edi + ecx - 7], al
sub ecx, 8
cmp ecx, 8
jae 0x4f1a70
test ecx, ecx
je 0x4f1ae3
nop dword [eax]
nop word [eax + eax]
mov al, byte [ebp + ecx - 0x525]
mov byte [ebp + ecx - 0x524], al
sub ecx, 1
jne 0x4f1ad0
mov ecx, dword [ebp - 0x560]
mov bh, bl
mov byte [ebp - 0x524], bh
test ecx, ecx
jne 0x4f1af8
inc edx
jmp 0x4f1b4a
test edx, edx
je 0x4f1b1b
mov edi, dword [ebp - 0x544]
dec edx
mov al, dl
and al, 1
mov byte [esi + edi], al
mov eax, edx
and eax, 1
inc esi
inc dword [ebp + eax*4 - 0x424]
shr edx, 1
jne 0x4f1b02
mov edi, dword [ebp - 0x544]
add edi, esi
inc esi
cmp ecx, 0xfe
jb 0x4f1b3e
mov byte [edi], 0xff
lea eax, [ecx + 2]
mov edi, dword [ebp - 0x544]
mov byte [esi + edi], al
inc esi
jmp 0x4f1b43
lea eax, [ecx + 1]
mov byte [edi], al
inc dword [ebp + ecx*4 - 0x420]
mov eax, dword [ebp - 0x54c]
mov ecx, dword [ebp - 0x55c]
inc eax
mov dword [ebp - 0x54c], eax
cmp eax, dword [ebp + 0xc]
jb 0x4f1a42
mov ecx, dword [ebp - 0x544]
test edx, edx
je 0x4f1b89
dec edx
mov al, dl
and al, 1
mov byte [esi + ecx], al
mov eax, edx
and eax, 1
inc esi
inc dword [ebp + eax*4 - 0x424]
shr edx, 1
jne 0x4f1b70
mov edx, dword [ebp - 0x554]
lea eax, [esi + 1]
mov dword [ebp - 0x558], eax
cmp edx, 0x100
jae 0x4f1ba8
lea eax, [edx - 1]
mov byte [esi + ecx], al
jmp 0x4f1bb6
mov byte [esi + ecx], 0xff
mov byte [eax + ecx], dl
inc eax
mov dword [ebp - 0x558], eax
inc dword [ebp + edx*4 - 0x428]
xorps xmm1, xmm1
xor eax, eax
xorps xmm2, xmm2
nop word [eax + eax]
movups xmm0, xmmword [ebp + eax*4 - 0x424]
paddd xmm1, xmm0
movups xmm0, xmmword [ebp + eax*4 - 0x414]
add eax, 8
paddd xmm2, xmm0
cmp eax, 0x100
jb 0x4f1bd0
paddd xmm1, xmm2
xor ecx, ecx
movaps xmm0, xmm1
xor edx, edx
psrldq xmm0, 8
paddd xmm1, xmm0
movups xmm0, xmm1
psrldq xmm0, 4
paddd xmm1, xmm0
movd ebx, xmm1
mov dword [ebp - 0x550], ebx
cmp eax, 0x102
jae 0x4f1c61
mov esi, 0x102
sub esi, eax
cmp esi, 2
jb 0x4f1c48
nop
add ecx, dword [ebp + eax*4 - 0x424]
add edx, dword [ebp + eax*4 - 0x420]
add eax, 2
cmp eax, 0x101
jb 0x4f1c30
cmp eax, 0x102
jae 0x4f1c56
add ebx, dword [ebp + eax*4 - 0x424]
lea eax, [edx + ecx]
add ebx, eax
mov dword [ebp - 0x550], ebx
mov edi, dword [ebp - 0x530]
mov ecx, dword [ebp - 0x550]
add ecx, 0x31
mov dword [ebp - 0x564], 2
mov dword [ebp - 0x560], 0xffffffff
mov esi, dword [edi + 0x10]
mov bl, byte [edi + 0x8cd8]
mov dword [ebp - 0x54c], 2
mov eax, dword [esi]
mov bh, byte [esi + 8]
mov byte [ebp - 0x545], bh
lea eax, [eax*8 + 8]
sub eax, dword [esi + 4]
mov dword [ebp - 0x55c], eax
mov eax, 0x51eb851f
mul ecx
mov ecx, dword [ebp - 0x55c]
mov eax, edx
mov edx, 2
shr eax, 4
mov dword [ebp - 0x574], eax
lea eax, [edi + 0x620]
mov dword [ebp - 0x570], eax
lea eax, [edi + 0x14]
mov dword [ebp - 0x568], eax
lea eax, [edi + 0x3680]
mov dword [ebp - 0x56c], eax
test bl, bl
je 0x4f1d24
mov eax, ecx
shr eax, 3
mov dword [esi], eax
mov eax, ecx
and eax, 7
mov ecx, 8
sub ecx, eax
cmp edx, 6
mov dword [esi + 4], ecx
mov eax, dword [edi + 0x10]
mov byte [eax + 8], bh
mov ebx, edx
cmova ebx, dword [ebp - 0x564]
mov dword [eax + 4], ecx
mov esi, dword [edi + 0x10]
jmp 0x4f1d65
mov eax, dword [ebp - 0x550]
cmp eax, 0xc8
jae 0x4f1d38
mov ebx, 2
jmp 0x4f1d65
cmp eax, 0x258
jae 0x4f1d46
mov ebx, 3
jmp 0x4f1d65
cmp eax, 0x4b0
jae 0x4f1d54
mov ebx, 4
jmp 0x4f1d65
mov ebx, 5
cmp eax, 0x960
jb 0x4f1d65
mov ebx, 6
push 3
push ebx
mov ecx, esi
mov dword [ebp - 0x52c], ebx
call fcn.004f26b0
mov ecx, dword [edi + 0x10]
push 0xf
push dword [ebp - 0x574]
call fcn.004f26b0
mov edx, dword [ebp - 0x530]
xor edi, edi
mov ecx, dword [ebp - 0x550]
add edx, 0xffffff12
imul eax, ebx, 0x102
mov dword [ebp - 0x534], ecx
mov dword [ebp - 0x53c], ebx
add eax, edx
mov dword [ebp - 0x538], eax
mov eax, ecx
xor edx, edx
div ebx
xor esi, esi
mov ecx, edi
test eax, eax
je 0x4f1dcd
add esi, dword [ebp + ecx*4 - 0x424]
inc ecx
cmp esi, eax
jb 0x4f1dc1
lea eax, [edi + 1]
cmp ecx, eax
jbe 0x4f1df1
mov eax, dword [ebp - 0x52c]
cmp ebx, eax
je 0x4f1df1
cmp ebx, 1
je 0x4f1df1
sub eax, ebx
test al, 1
je 0x4f1df1
dec ecx
sub esi, dword [ebp + ecx*4 - 0x424]
mov ebx, dword [ebp - 0x538]
xor eax, eax
nop dword [eax]
cmp eax, edi
jb 0x4f1e0c
cmp eax, ecx
jae 0x4f1e0c
xor dl, dl
jmp 0x4f1e0e
mov dl, 1
mov byte [ebx + eax], dl
inc eax
cmp eax, dword [ebp - 0x554]
jb 0x4f1e00
mov ebx, dword [ebp - 0x53c]
mov edi, ecx
mov ecx, dword [ebp - 0x534]
dec ebx
sub dword [ebp - 0x538], 0x102
sub ecx, esi
mov dword [ebp - 0x534], ecx
mov dword [ebp - 0x53c], ebx
test ebx, ebx
jne 0x4f1db3
mov dword [ebp - 0x540], 4
mov edi, dword [ebp - 0x570]
xor esi, esi
nop dword [eax + eax]
push 0x408
push 0
push edi
call fcn.00619ac0
inc esi
add esp, 0xc
add edi, 0x408
cmp esi, dword [ebp - 0x52c]
jb 0x4f1e60
mov eax, dword [ebp - 0x56c]
xor edi, edi
mov dword [ebp - 0x538], eax
nop dword [eax]
mov eax, dword [ebp - 0x544]
xor esi, esi
mov edx, dword [ebp - 0x558]
nop
movzx ecx, byte [edi + eax]
inc edi
cmp ecx, 0xff
jb 0x4f1eba
movzx eax, byte [edi + eax]
add ecx, eax
mov eax, dword [ebp - 0x544]
inc edi
mov dword [ebp + esi*4 - 0x4ec], ecx
inc esi
cmp esi, 0x32
jae 0x4f1ecb
cmp edi, edx
jb 0x4f1ea0
mov ebx, dword [ebp - 0x568]
mov dword [ebp - 0x53c], edi
or edi, 0xffffffff
mov dword [ebp - 0x534], 0
xor edx, edx
xor eax, eax
nop dword [eax + eax]
mov ecx, dword [ebp + eax*4 - 0x4ec]
inc eax
movzx ecx, byte [ecx + ebx]
add edx, ecx
cmp eax, esi
jb 0x4f1ef0
mov ecx, dword [ebp - 0x534]
mov eax, dword [ebp - 0x538]
cmp edx, edi
jae 0x4f1f1a
mov byte [eax], cl
mov edi, edx
mov al, cl
jmp 0x4f1f1c
mov al, byte [eax]
inc ecx
add ebx, 0x102
mov dword [ebp - 0x534], ecx
cmp ecx, dword [ebp - 0x52c]
jb 0x4f1ee4
inc dword [ebp - 0x538]
mov edi, dword [ebp - 0x53c]
movzx eax, al
imul edx, eax, 0x408
add edx, dword [ebp - 0x530]
xor ecx, ecx
nop
mov eax, dword [ebp + ecx*4 - 0x4ec]
inc ecx
inc dword [edx + eax*4 + 0x620]
cmp ecx, esi
jb 0x4f1f50
cmp edi, dword [ebp - 0x558]
jb 0x4f1e90
mov ebx, dword [ebp - 0x568]
xor edi, edi
mov esi, dword [ebp - 0x570]
nop dword [eax]
mov ecx, dword [ebp - 0x554]
xor eax, eax
cmp dword [esi + eax*4], 0
jne 0x4f1f95
mov dword [esi + eax*4], 1
inc eax
cmp eax, ecx
jb 0x4f1f88
push 0x10
push 0x102
push ebx
lea eax, [esi + 0x1830]
push eax
push esi
call fcn.005441a0
mov ecx, dword [ebp - 0x52c]
inc edi
add esi, 0x408
add ebx, 0x102
cmp edi, ecx
jb 0x4f1f80
sub dword [ebp - 0x540], 1
jne 0x4f1e53
xor eax, eax
mov byte [ebp + eax - 0xc], al
inc eax
cmp eax, ecx
jb 0x4f1fd5
mov al, byte [ebp - 0xc]
xor edi, edi
mov dword [ebp - 0x540], edi
nop dword [eax]
mov ecx, dword [ebp - 0x56c]
xor esi, esi
mov bl, byte [ecx + edi]
cmp al, bl
je 0x4f201e
mov edi, dword [ebp - 0x530]
mov ecx, dword [edi + 0x10]
push 1
push 1
call fcn.004f26b0
inc esi
cmp byte [ebp + esi - 0xc], bl
jne 0x4f2005
mov edi, dword [ebp - 0x540]
mov eax, dword [ebp - 0x530]
push 1
push 0
mov ecx, dword [eax + 0x10]
call fcn.004f26b0
test esi, esi
je 0x4f2041
mov al, byte [ebp + esi - 0xd]
mov byte [ebp + esi - 0xc], al
sub esi, 1
jne 0x4f2034
inc edi
mov al, bl
mov byte [ebp - 0xc], al
mov dword [ebp - 0x540], edi
cmp edi, dword [ebp - 0x574]
jb 0x4f1ff0
mov edi, dword [ebp - 0x568]
mov dword [ebp - 0x53c], 0
mov dword [ebp - 0x534], edi
nop dword [eax + eax]
mov eax, dword [ebp - 0x530]
movzx esi, byte [edi]
push 5
push esi
mov ecx, dword [eax + 0x10]
call fcn.004f26b0
xor eax, eax
mov dword [ebp - 0x540], eax
nop dword [eax]
movzx ebx, byte [edi + eax]
cmp esi, ebx
je 0x4f20dd
nop dword [eax + eax]
mov eax, dword [ebp - 0x530]
push 1
push 1
mov ecx, dword [eax + 0x10]
call fcn.004f26b0
cmp esi, ebx
lea eax, [esi - 1]
lea edi, [esi + 1]
cmovae edi, eax
sbb eax, eax
inc eax
push 1
push eax
mov eax, dword [ebp - 0x530]
mov ecx, dword [eax + 0x10]
call fcn.004f26b0
mov esi, edi
cmp edi, ebx
jne 0x4f20a0
mov edi, dword [ebp - 0x534]
mov eax, dword [ebp - 0x530]
push 1
push 0
mov ecx, dword [eax + 0x10]
call fcn.004f26b0
mov eax, dword [ebp - 0x540]
inc eax
mov dword [ebp - 0x540], eax
cmp eax, dword [ebp - 0x554]
jb 0x4f2090
mov ebx, dword [ebp - 0x53c]
add edi, 0x102
inc ebx
mov dword [ebp - 0x534], edi
mov dword [ebp - 0x53c], ebx
cmp ebx, dword [ebp - 0x52c]
jb 0x4f2070
mov eax, dword [ebp - 0x56c]
xor esi, esi
xor edi, edi
mov dword [ebp - 0x540], esi
xor ebx, ebx
mov dword [ebp - 0x53c], edi
xor ecx, ecx
mov dword [ebp - 0x52c], eax
nop dword [eax]
mov edx, dword [ebp - 0x544]
movzx edx, byte [ecx + edx]
inc ecx
mov dword [ebp - 0x538], ecx
cmp edx, 0xff
jb 0x4f2182
mov eax, dword [ebp - 0x544]
movzx eax, byte [ecx + eax]
add edx, eax
mov eax, dword [ebp - 0x52c]
inc ecx
mov dword [ebp - 0x538], ecx
test ebx, ebx
jne 0x4f21c6
movzx ecx, byte [eax]
mov ebx, 0x32
mov edi, dword [ebp - 0x530]
inc eax
mov dword [ebp - 0x52c], eax
imul eax, ecx, 0x102
lea esi, [edi + 0x14]
add edi, 0x1e50
add esi, eax
imul eax, ecx, 0x408
mov ecx, dword [ebp - 0x538]
mov dword [ebp - 0x540], esi
add edi, eax
mov dword [ebp - 0x53c], edi
mov eax, dword [edi + edx*4]
dec ebx
mov dword [ebp - 0x578], ebx
movzx ebx, byte [edx + esi]
mov edx, dword [ebp - 0x530]
mov dword [ebp - 0x534], eax
mov edi, dword [edx + 0x10]
test ebx, ebx
je 0x4f2247
mov esi, dword [edi + 4]
cmp ebx, esi
mov edx, esi
cmovb edx, ebx
sub ebx, edx
mov ecx, ebx
shr eax, cl
mov ecx, edx
mov ch, byte [edi + 8]
shl ch, cl
or ch, al
mov byte [ebp - 0x525], ch
mov byte [edi + 8], ch
mov ecx, ebx
shl eax, cl
sub dword [ebp - 0x534], eax
sub esi, edx
mov dword [edi + 4], esi
jne 0x4f2231
mov eax, dword [edi]
mov ecx, dword [edi + 0xc]
mov dl, byte [ebp - 0x525]
mov byte [ecx + eax], dl
inc dword [edi]
mov dword [edi + 4], 8
mov eax, dword [ebp - 0x534]
test ebx, ebx
jne 0x4f21e7
mov ecx, dword [ebp - 0x538]
mov esi, dword [ebp - 0x540]
mov ebx, dword [ebp - 0x578]
mov eax, dword [ebp - 0x52c]
mov edi, dword [ebp - 0x53c]
cmp ecx, dword [ebp - 0x558]
jb 0x4f2150
mov edi, dword [ebp - 0x530]
mov bl, byte [edi + 0x8cd8]
test bl, bl
je 0x4f22c1
mov esi, dword [edi + 0x10]
mov ecx, dword [ebp - 0x55c]
mov edx, dword [ebp - 0x54c]
mov eax, dword [esi]
lea eax, [eax*8 + 8]
sub eax, dword [esi + 4]
sub eax, ecx
cmp eax, dword [ebp - 0x560]
ja 0x4f22ab
cmp edx, 6
je 0x4f22c1
mov dword [ebp - 0x560], eax
mov dword [ebp - 0x564], edx
mov bh, byte [ebp - 0x545]
inc edx
mov dword [ebp - 0x54c], edx
cmp edx, 7
jbe 0x4f1cf0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.006158c5
mov esp, ebp
pop ebp
ret 8
call fcn.00615a2d
int3