Function at 0x404540
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 0x44a969
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 [0x463a98]
mov ecx, 0x463f68
push 0x4591bb
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x24], eax
call fcn.0041a7c0
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x404728
nop dword [eax]
dec eax
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x1c]
inc eax
and eax, 0x800000ff
jns 0x4045e6
dec eax
or eax, 0xffffff00
inc eax
mov cl, byte [eax + 0x4673d0]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x20]
movzx edx, cl
add eax, edx
and eax, 0x800000ff
jns 0x404605
dec eax
or eax, 0xffffff00
inc eax
mov esi, dword [ebp - 0x1c]
mov dword [ebp - 0x20], eax
movzx eax, byte [eax + 0x4673d0]
push 1
mov byte [esi + 0x4673d0], al
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0xf
mov byte [ebp - 0x58], 0
mov byte [eax + 0x4673d0], cl
mov eax, esi
lea ecx, [ebp - 0x58]
movzx eax, byte [eax + 0x4673d0]
add eax, edx
movzx eax, al
movzx eax, byte [eax + 0x4673d0]
mov byte [ebp - 0x11], al
lea eax, [ebp - 0x11]
push eax
call fcn.0041a7c0
push 0x463f68
push ecx
lea ecx, [ebp - 0x58]
mov dword [ebp - 4], 1
call fcn.0041b6b0
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 [0x463f7c]
movq qword [ebp - 0x30], xmm1
movups xmmword [ebp - 0x40], xmm0
cmp ecx, 0x10
jb 0x4046d6
mov eax, dword [0x463f68]
inc ecx
cmp ecx, 0x1000
jb 0x4046c3
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4048cd
mov eax, edx
push ecx
push eax
call fcn.0041f5bc
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 [0x463f78], xmm1
movups xmmword [0x463f68], xmm0
cmp edx, 0x10
jb 0x40471d
mov ecx, dword [ebp - 0x58]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x404713
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4048cd
push edx
push ecx
call fcn.0041f5bc
add esp, 8
mov eax, dword [ebp - 0x24]
test eax, eax
jne 0x4045d0
mov eax, dword [0x463f7c]
mov esi, 0x463f68
mov edx, dword [0x463f68]
cmp eax, 0x10
mov ecx, 0x463a88
cmovae esi, edx
cmp dword [0x463a9c], 0x10
cmovae ecx, dword [0x463a88]
sub ecx, esi
mov dword [ebp - 0x24], ecx
nop word [eax + eax]
cmp eax, 0x10
mov ecx, 0x463f68
mov eax, dword [0x463f78]
cmovae ecx, edx
add eax, ecx
cmp esi, eax
je 0x4048b8
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.0041a7c0
push edi
push ecx
lea ecx, [ebp - 0x58]
mov dword [ebp - 4], 2
call fcn.0041b6b0
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 0x404843
mov ecx, dword [edi + 0x14]
cmp ecx, 0x10
jb 0x404828
mov eax, dword [edi]
inc ecx
cmp ecx, 0x1000
jb 0x404815
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4048cd
mov eax, edx
push ecx
push eax
call fcn.0041f5bc
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 0x404873
mov edx, dword [ebp - 0x5c]
cmp edx, 0x10
jb 0x404873
mov ecx, dword [ebp - 0x70]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x404869
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4048cd
push edx
push ecx
call fcn.0041f5bc
add esp, 8
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x44]
cmp edx, 0x10
jb 0x4048a7
mov ecx, dword [ebp - 0x58]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40489d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4048cd
push edx
push ecx
call fcn.0041f5bc
add esp, 8
mov eax, dword [0x463f7c]
inc esi
mov edx, dword [0x463f68]
jmp 0x404760
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.00438cc7
int3