Function at 0x405140
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44aa09
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ebx
sub esp, 0x60
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x18], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0xf
mov byte [edi], 0
xor eax, eax
mov dword [ebp - 4], 0
push 0
mov dword [ebp - 0x20], eax
mov esi, 1
mov eax, dword [0x464a98]
mov ecx, 0x464f68
push 0x45a1bb
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x24], eax
call fcn.0041b460
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x405328
nop dword [eax]
dec eax
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x1c]
inc eax
and eax, 0x800000ff
jns 0x4051e6
dec eax
or eax, 0xffffff00
inc eax
mov cl, byte [eax + 0x4683d0]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x20]
movzx edx, cl
add eax, edx
and eax, 0x800000ff
jns 0x405205
dec eax
or eax, 0xffffff00
inc eax
mov esi, dword [ebp - 0x1c]
mov dword [ebp - 0x20], eax
movzx eax, byte [eax + 0x4683d0]
push 1
mov byte [esi + 0x4683d0], al
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0xf
mov byte [ebp - 0x58], 0
mov byte [eax + 0x4683d0], cl
mov eax, esi
lea ecx, [ebp - 0x58]
movzx eax, byte [eax + 0x4683d0]
add eax, edx
movzx eax, al
movzx eax, byte [eax + 0x4683d0]
mov byte [ebp - 0x11], al
lea eax, [ebp - 0x11]
push eax
call fcn.0041b460
push 0x464f68
push ecx
lea ecx, [ebp - 0x58]
mov dword [ebp - 4], 1
call fcn.0041c350
or dword [ebp - 0x18], 2
movups xmm0, xmmword [eax]
movq xmm1, qword [eax + 0x10]
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
mov ecx, dword [0x464f7c]
movq qword [ebp - 0x30], xmm1
movups xmmword [ebp - 0x40], xmm0
cmp ecx, 0x10
jb 0x4052d6
mov eax, dword [0x464f68]
inc ecx
cmp ecx, 0x1000
jb 0x4052c3
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4054cd
mov eax, edx
push ecx
push eax
call fcn.0042026c
movups xmm0, xmmword [ebp - 0x40]
add esp, 8
movq xmm1, qword [ebp - 0x30]
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x44]
movq qword [0x464f78], xmm1
movups xmmword [0x464f68], xmm0
cmp edx, 0x10
jb 0x40531d
mov ecx, dword [ebp - 0x58]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x405313
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4054cd
push edx
push ecx
call fcn.0042026c
add esp, 8
mov eax, dword [ebp - 0x24]
test eax, eax
jne 0x4051d0
mov eax, dword [0x464f7c]
mov esi, 0x464f68
mov edx, dword [0x464f68]
cmp eax, 0x10
mov ecx, 0x464a88
cmovae esi, edx
cmp dword [0x464a9c], 0x10
cmovae ecx, dword [0x464a88]
sub ecx, esi
mov dword [ebp - 0x24], ecx
nop word [eax + eax]
cmp eax, 0x10
mov ecx, 0x464f68
mov eax, dword [0x464f78]
cmovae ecx, edx
add eax, ecx
cmp esi, eax
je 0x4054b8
mov eax, dword [ebp - 0x24]
lea ecx, [ebp - 0x58]
push 1
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0xf
mov al, byte [eax + esi]
xor al, byte [esi]
mov byte [ebp - 0x11], al
lea eax, [ebp - 0x11]
push eax
mov byte [ebp - 0x58], 0
call fcn.0041b460
push edi
push ecx
lea ecx, [ebp - 0x58]
mov dword [ebp - 4], 2
call fcn.0041c350
or dword [ebp - 0x18], 4
movups xmm0, xmmword [eax]
movq xmm1, qword [eax + 0x10]
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
lea eax, [ebp - 0x70]
movq qword [ebp - 0x30], xmm1
movq qword [ebp - 0x60], xmm1
movups xmmword [ebp - 0x40], xmm0
movups xmmword [ebp - 0x70], xmm0
cmp edi, eax
je 0x405443
mov ecx, dword [edi + 0x14]
cmp ecx, 0x10
jb 0x405428
mov eax, dword [edi]
inc ecx
cmp ecx, 0x1000
jb 0x405415
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4054cd
mov eax, edx
push ecx
push eax
call fcn.0042026c
movups xmm0, xmmword [ebp - 0x40]
add esp, 8
movq xmm1, qword [ebp - 0x30]
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0xf
mov byte [edi], 0
movups xmmword [edi], xmm0
movq qword [edi + 0x10], xmm1
jmp 0x405473
mov edx, dword [ebp - 0x5c]
cmp edx, 0x10
jb 0x405473
mov ecx, dword [ebp - 0x70]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x405469
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4054cd
push edx
push ecx
call fcn.0042026c
add esp, 8
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x44]
cmp edx, 0x10
jb 0x4054a7
mov ecx, dword [ebp - 0x58]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40549d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4054cd
push edx
push ecx
call fcn.0042026c
add esp, 8
mov eax, dword [0x464f7c]
inc esi
mov edx, dword [0x464f68]
jmp 0x405360
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.00439967
int3