Function at 0x4d02f0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push 0xffffffffffffffff
push 0x6c1fd8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push ebx
push ebp
push esi
push edi
mov esi, ecx
lea ecx, [esp + 0x14]
mov dword [esp + 0x44], 0
mov byte [esp + 0x13], 0
call fcn.0061d780
mov ecx, dword [0x715d54]
mov eax, dword [0x715d50]
mov dx, word [0x715d58]
mov dword [esp + 0x24], ecx
push 4
lea ecx, [esp + 0x50]
mov byte [esp + 0x48], 1
mov dword [esp + 0x24], eax
mov word [esp + 0x2c], dx
call fcn.0061daa0
push 5
lea ecx, [esp + 0x50]
mov byte [esp + 0x1c], al
call fcn.0061daa0
mov ecx, dword [esp + 0x18]
mov ebp, 1
and ecx, 0xff
mov edx, ecx
shl edx, 6
sub edx, ecx
shl edx, 2
sub edx, ecx
lea ecx, [ecx + ecx*4]
mov bl, byte [edx*2 + 0x715e09]
lea ecx, [ecx + ecx*4]
shl ecx, 3
mov dl, byte [ecx + 0x6de188]
movzx di, dl
cmp di, bp
jl 0x4d03be
movsx edx, bp
cmp al, byte [edx + ecx + 0x6de188]
je 0x4d03b0
inc ebp
cmp bp, di
jle 0x4d039c
jmp 0x4d03be
movsx eax, bp
mov cl, byte [eax + ecx + 0x6de1ec]
mov byte [esp + 0x13], cl
mov al, byte [esi + 0x348]
test al, al
jne 0x4d03e4
mov edx, dword [esp + 0x18]
mov ecx, esi
push edx
mov byte [esi + 0x348], 1
call fcn.004cfea0
test ax, ax
je 0x4d0688
mov dword [esp + 0x18], 5
mov al, byte [0x72bd0c]
test al, al
jne 0x4d05f2
mov al, byte [esi + 0x349]
test al, al
jne 0x4d0438
shl bl, 1
xor ax, ax
push 0
mov al, bl
lea ecx, [esi + 0x2c0]
push eax
lea edx, [esp + 0x28]
push ecx
push edx
lea ecx, [esi + 0x350]
mov byte [esi + 0x349], 0xff
call fcn.00553730
test ax, ax
je 0x4d061e
dec dword [esp + 0x18]
mov al, byte [esi + 0x34a]
mov cl, byte [esp + 0x13]
cmp al, cl
jne 0x4d044e
test al, al
jne 0x4d0555
lea ebp, [esi + 0x2c0]
mov byte [esi + 0x34a], cl
push 0
mov ecx, ebp
call fcn.0061b060
mov ecx, dword [eax + 4]
test ecx, ecx
jne 0x4d046e
xor bl, bl
jmp 0x4d0476
mov ebx, dword [eax + 8]
sub ebx, ecx
sar ebx, 2
xor ax, ax
xor edi, edi
mov al, bl
test ax, ax
jle 0x4d04e6
movsx eax, di
push eax
push 0
mov ecx, ebp
call fcn.0061b060
mov ecx, eax
call fcn.00690c60
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push eax
call fcn.0061d790
lea ecx, [esp + 0x18]
call fcn.0061dab0
lea ecx, [esp + 0x14]
call fcn.0061dc40
cmp ax, 4
jle 0x4d04db
push 3
lea ecx, [esp + 0x18]
call fcn.0061daa0
cmp al, byte [esp + 0x13]
jne 0x4d04db
push 1
lea ecx, [esp + 0x18]
call fcn.0061daa0
cmp al, 5
je 0x4d04fe
xor ax, ax
inc edi
mov al, bl
cmp di, ax
jl 0x4d0482
cmp word [esp + 0x18], 0
mov byte [esi + 0x349], 0
je 0x4d0643
jmp 0x4d03ec
push 0
lea ecx, [esp + 0x18]
call fcn.0061daa0
xor ebx, ebx
lea ecx, [esp + 0x14]
push ebx
mov byte [esi + 0x2e4], al
call fcn.0061daa0
and eax, 0xff
add eax, 2
test eax, eax
jle 0x4d0555
xor ebp, ebp
inc ebx
lea ecx, [esp + 0x14]
push ebx
call fcn.0061daa0
mov byte [esi + ebp + 0x2e5], al
push 0
lea ecx, [esp + 0x18]
movsx ebp, bx
call fcn.0061daa0
and eax, 0xff
add eax, 2
cmp ebp, eax
jl 0x4d0529
push ecx
lea edx, [esp + 0x50]
mov ecx, esp
mov dword [esp + 0x20], esp
push edx
call fcn.0061d790
lea eax, [esp + 0x30]
mov ecx, esi
push eax
call fcn.004d09e0
mov edi, eax
mov eax, dword [edi + 8]
mov esi, dword [0x6dd1fc]
mov ebx, eax
mov byte [esp + 0x44], 4
cmp esi, ebx
jae 0x4d058a
mov ebx, esi
mov ebp, dword [esp + 0x50]
cmp ebp, edi
jne 0x4d06af
cmp dword [ebp + 8], ebx
jae 0x4d05a0
call fcn.006a6707
mov ecx, ebp
call fcn.00414b70
mov eax, dword [ebp + 8]
sub eax, ebx
cmp eax, esi
jae 0x4d05b2
mov esi, eax
test esi, esi
jbe 0x4d05e6
mov ecx, dword [ebp + 4]
sub eax, esi
add ebx, ecx
push eax
lea ecx, [ebx + esi]
push ecx
push ebx
call fcn.006a6c70
mov ebx, dword [ebp + 8]
add esp, 0xc
sub ebx, esi
mov ecx, ebp
push 0
push ebx
call fcn.00414230
test al, al
je 0x4d05e6
push ebx
mov ecx, ebp
call fcn.00414210
mov ecx, ebp
call fcn.00414b70
jmp 0x4d0756
lea edi, [esi + 0x2e4]
mov ebx, 0x64
call fcn.006a7255
cdq
mov ecx, 0xff
idiv ecx
inc edi
dec ebx
mov byte [edi - 1], dl
jne 0x4d05fd
push 0xf
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x4d0555
push 0
push 1
push ecx
mov ecx, esp
mov dword [esp + 0x5c], esp
push 6
push 0x7133ac
call fcn.0061d820
push ecx
mov byte [esp + 0x54], 2
mov ecx, esp
mov dword [esp + 0x2c], esp
jmp 0x4d0666
push 0
push 1
push ecx
mov ecx, esp
mov dword [esp + 0x5c], esp
push 6
push 0x7133ac
call fcn.0061d820
push ecx
mov byte [esp + 0x54], 3
mov ecx, esp
mov dword [esp + 0x2c], esp
push 6
push 0x71345c
call fcn.0061d820
mov ecx, 0x72bae0
mov byte [esp + 0x54], 1
call fcn.0061ef70
mov ecx, esi
call fcn.004d2df0
lea ecx, [esp + 0x14]
mov byte [esp + 0x44], 0
call fcn.0061d8c0
lea ecx, [esp + 0x4c]
mov dword [esp + 0x44], 0xffffffff
call fcn.0061d8c0
xor ax, ax
jmp 0x4d07ac
xor esi, esi
cmp ebx, esi
jbe 0x4d071d
cmp ebx, eax
jne 0x4d071d
mov eax, dword [edi + 4]
cmp eax, esi
jne 0x4d06c5
mov eax, 0x6dd1f8
cmp byte [eax - 1], 0xfe
jae 0x4d071d
mov eax, dword [ebp + 4]
cmp eax, esi
je 0x4d06ef
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x4d06e6
cmp al, 0xff
je 0x4d06e6
dec al
mov byte [ecx], al
jmp 0x4d06ef
push ecx
call fcn.006a64d0
add esp, 4
mov dword [ebp + 4], esi
mov dword [ebp + 8], esi
mov dword [ebp + 0xc], esi
mov eax, dword [edi + 4]
cmp eax, esi
jne 0x4d0704
mov eax, 0x6dd1f8
mov dword [ebp + 4], eax
mov ecx, dword [edi + 8]
mov dword [ebp + 8], ecx
mov edi, dword [edi + 0xc]
mov dword [ebp + 0xc], edi
mov cl, byte [eax - 1]
inc cl
mov byte [eax - 1], cl
jmp 0x4d0756
push 1
push ebx
mov ecx, ebp
call fcn.00414230
test al, al
je 0x4d0756
mov esi, dword [edi + 4]
test esi, esi
jne 0x4d0737
mov esi, 0x6dd1f8
mov edi, dword [ebp + 4]
mov ecx, ebx
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov dword [ebp + 8], ebx
mov ebp, dword [ebp + 4]
add ebp, ebx
mov byte [ebp], 0
mov eax, dword [esp + 0x30]
xor esi, esi
cmp eax, esi
je 0x4d077d
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x4d0774
cmp al, 0xff
je 0x4d0774
dec al
mov byte [ecx], al
jmp 0x4d077d
push ecx
call fcn.006a64d0
add esp, 4
lea ecx, [esp + 0x14]
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], esi
mov dword [esp + 0x38], esi
mov byte [esp + 0x44], 0
call fcn.0061d8c0
lea ecx, [esp + 0x4c]
mov dword [esp + 0x44], 0xffffffff
call fcn.0061d8c0
mov ax, 1
mov ecx, dword [esp + 0x3c]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x38
ret 8