Function at 0x5f43c3
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffe0
mov ebx, eax
mov dword [esp + 4], ecx
mov dword [esp], edx
mov eax, dword [esp]
mov dl, byte [eax + 0x576d]
mov byte [ebx + 0x14a1], dl
mov ecx, dword [esp]
mov al, byte [ecx + 0x576e]
mov byte [ebx + 0x14a0], al
mov edx, dword [esp]
mov ecx, dword [edx + reloc.MSVCRT.dll___dllonexit]
mov dword [ebx + reloc.MSVCRT.dll___dllonexit], ecx
mov eax, dword [esp]
mov edx, dword [eax + reloc.MSVCRT.dll___dllonexit]
lea eax, reloc.MSVCRT.dll___dllonexit
mov dword [ebx + reloc.MSVCRT.dll___dllonexit], edx
mov edx, dword [esp]
add edx, 0x55c4
call fcn.005f7863
mov edx, dword [ebx + 0x20]
cmp edx, 0x400000
jae 0x5f4485
cmp edx, dword [ebx + reloc.MSVCRT.dll___dllonexit]
jbe 0x5f4458
mov eax, dword [ebx + reloc.MSVCRT.dll___dllonexit]
mov esi, 0x400000
sub esi, edx
jmp 0x5f4451
mov edx, dword [ebx]
lea ecx, [edx + eax]
mov cl, byte [ecx + esi]
mov byte [edx + eax], cl
inc eax
cmp eax, dword [ebx + 0x20]
jb 0x5f4445
jmp 0x5f4485
xor eax, eax
mov esi, dword [ebx + reloc.MSVCRT.dll___dllonexit]
sub esi, dword [ebx + 0x20]
jmp 0x5f4471
mov edx, dword [ebx]
lea ecx, [edx + eax]
mov cl, byte [ecx + esi]
mov byte [edx + eax], cl
inc eax
cmp eax, dword [ebx + 0x20]
jb 0x5f4465
xor eax, eax
mov dword [ebx + reloc.MSVCRT.dll___dllonexit], eax
mov byte [ebx + 0x14a1], 1
push 0x111
mov eax, dword [ebx]
push eax
add eax, dword [ebx + 0x20]
push eax
call fcn.00611097
add esp, 0xc
mov edx, dword [ebx + reloc.MSVCRT.dll___dllonexit]
mov dword [esp + 8], edx
cmp dword [esp + 4], 0
jne 0x5f4514
xor ecx, ecx
mov eax, dword [ebx + reloc.MSVCRT.dll___dllonexit]
inc eax
and eax, dword [ebx + 0x24]
mov dword [ebx + reloc.MSVCRT.dll___dllonexit], eax
jmp 0x5f4503
mov eax, ecx
mov ecx, dword [ebx]
mov edi, eax
movzx ecx, byte [ecx + edx + 2]
shl edi, 5
xor ecx, edi
and ecx, 0x7fff
mov eax, ecx
mov ecx, dword [ebx + 0x10]
mov esi, dword [ecx + eax*4]
mov ecx, dword [ebx + 0x10]
and esi, dword [ebx + 0x24]
mov dword [ecx + eax*4], edx
mov ecx, dword [ebx + reloc.MSVCRT.dll___dllonexit]
mov edx, dword [ebx + 0x14]
mov dword [edx + ecx*4], esi
mov ecx, eax
mov eax, dword [ebx + reloc.MSVCRT.dll___dllonexit]
inc eax
and eax, dword [ebx + 0x24]
mov dword [ebx + reloc.MSVCRT.dll___dllonexit], eax
mov edx, dword [ebx + reloc.MSVCRT.dll___dllonexit]
cmp edx, dword [esp + 8]
jne 0x5f44be
jmp 0x5f467f
mov eax, dword [ebx + reloc.MSVCRT.dll___dllonexit]
inc eax
and eax, dword [ebx + 0x24]
mov dword [ebx + reloc.MSVCRT.dll___dllonexit], eax
jmp 0x5f466f
lea edx, [eax + 1]
mov esi, dword [ebx]
and edx, dword [ebx + 0x24]
mov ecx, dword [ebx]
movzx edx, byte [esi + edx]
movzx ecx, byte [ecx + eax]
shl edx, 8
mov esi, eax
add edx, ecx
mov dword [esp + 0xc], edx
mov edx, dword [ebx]
mov edi, dword [ebx]
movzx edi, byte [edi + esi + 1]
movzx edx, byte [edx + esi + 2]
mov edi, dword [edi*4 + reloc.MSVCRT.dll___dllonexit]
shl edi, 3
mov edx, dword [edx*4 + reloc.MSVCRT.dll___dllonexit]
shl edx, 7
add edx, edi
mov edi, dword [ebx]
add edx, ecx
mov ecx, dword [ebx]
and edx, 0x3ffff
movzx ecx, byte [ecx + eax + 3]
mov ecx, dword [ecx*4 + reloc.MSVCRT.dll___dllonexit]
add ecx, edx
and ecx, 0x3ffff
mov dword [esp + 0x10], ecx
mov ecx, dword [ebx]
movzx ecx, byte [ecx + eax + 4]
mov edi, dword [ecx*4 + reloc.MSVCRT.dll___dllonexit]
mov ecx, dword [ebx + 0x10]
add edi, edi
add edi, dword [esp + 0x10]
and edi, dword [ebx + 0x1c]
mov ecx, dword [ecx + edi*4]
and ecx, dword [ebx + 0x24]
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0xc]
mov ebp, dword [ebx + 4]
and ecx, 0x3fff
lea ecx, [ebp + ecx]
push ecx
pop ecx
mov byte [ecx], al
mov ecx, dword [ebx + 8]
mov word [ecx + edx*2], ax
mov ecx, dword [esp + 0x10]
mov edx, dword [ebx + 0xc]
mov dword [edx + ecx*4], esi
mov edx, dword [ebx + 0x10]
mov dword [edx + edi*4], esi
mov edx, dword [esp + 0x14]
mov esi, dword [ebx]
mov ecx, dword [ebx]
movzx esi, byte [esi + edx + 1]
movzx ecx, byte [ecx + edx + 2]
mov esi, dword [esi*4 + reloc.MSVCRT.dll___dllonexit]
shl esi, 3
mov ecx, dword [ecx*4 + reloc.MSVCRT.dll___dllonexit]
shl ecx, 7
add ecx, esi
mov esi, dword [ebx]
movzx esi, byte [esi + edx]
add ecx, esi
and ecx, 0x3ffff
mov dword [esp + 0x18], ecx
mov ecx, dword [ebx]
movzx ecx, byte [ecx + edx + 3]
mov ecx, dword [ecx*4 + reloc.MSVCRT.dll___dllonexit]
add ecx, dword [esp + 0x18]
and ecx, 0x3ffff
mov dword [esp + 0x1c], ecx
mov ecx, dword [ebx]
movzx edx, byte [ecx + edx + 4]
mov edx, dword [edx*4 + reloc.MSVCRT.dll___dllonexit]
add edx, edx
add edx, dword [esp + 0x1c]
and edx, dword [ebx + 0x1c]
cmp edi, edx
je 0x5f4655
xor ecx, ecx
mov dword [esp + 0x14], ecx
mov edx, dword [ebx + 0x14]
mov ecx, dword [esp + 0x14]
mov dword [edx + eax*4], ecx
mov eax, dword [ebx + reloc.MSVCRT.dll___dllonexit]
inc eax
and eax, dword [ebx + 0x24]
mov dword [ebx + reloc.MSVCRT.dll___dllonexit], eax
mov eax, dword [ebx + reloc.MSVCRT.dll___dllonexit]
cmp eax, dword [esp + 8]
jne 0x5f4529
mov byte [ebx + 0x60a0], 0
mov edx, dword [esp]
lea edi, reloc.MSVCRT.dll___dllonexit
mov ecx, 0x12fc
lea esi, [edx + 0x10]
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp]
add eax, 0x10
call fcn.0060ada3
lea eax, reloc.MSVCRT.dll___dllonexit
call fcn.005f5d53
xor edx, edx
xor ecx, ecx
mov dword [ebx + reloc.MSVCRT.dll___dllonexit], edx
mov dword [ebx + reloc.MSVCRT.dll___dllonexit], ecx
mov byte [ebx + 0x97c], 1
add esp, 0x20
pop ebp
pop edi
pop esi
pop ebx
ret