Function at 0x4754d0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4deef0
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x5203c4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x1c], edi
push 0x100
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
call fcn.004a8c07
mov dword [edi], eax
mov dword [edi + 4], eax
add eax, 0x100
mov dword [edi + 8], eax
mov eax, dword [edi]
push 0x100
push 0
push eax
lea esi, [eax + 0x100]
call fcn.004ad7b0
add esp, 0x10
mov dword [edi + 4], esi
mov dword [ebp - 4], 0
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov byte [ebp - 4], 1
call fcn.00476b10
mov ecx, eax
test ecx, ecx
je 0x47573c
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x10], esi
mov eax, dword [ebp + 8]
mov byte [ebp - 4], 2
test eax, eax
je 0x47564c
test eax, 0xffff0000
jne 0x47564c
movzx ebx, ax
push 0
push ebx
call fcn.004763e0
add esp, 8
mov dword [ebp - 0x14], eax
test eax, eax
je 0x475658
mov ecx, ebx
shr ecx, 4
push 6
inc ecx
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x475658
push ebx
push eax
push dword [ebp - 0x14]
call fcn.00478030
add esp, 0xc
mov dword [ebp - 0x14], eax
test eax, eax
je 0x475658
movzx ecx, word [eax]
add eax, 2
push 0
push 0
push 0
push 0
push ecx
push eax
push 0
push 3
mov dword [ebp - 0x18], eax
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov ebx, eax
test ebx, ebx
js 0x475746
mov ecx, dword [esi - 8]
mov edx, 1
sub edx, dword [esi - 4]
sub ecx, ebx
or ecx, edx
jge 0x475620
push ebx
lea ecx, [ebp - 0x10]
call fcn.004770c0
mov esi, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
push 0
push 0
push ebx
movzx eax, word [eax]
push esi
push eax
push dword [ebp - 0x18]
push 0
push 3
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
cmp ebx, dword [esi - 8]
jg 0x475746
mov dword [esi - 0xc], ebx
mov byte [ebx + esi], 0
jmp 0x475658
push eax
lea ecx, [ebp - 0x10]
call fcn.00477d90
mov esi, dword [ebp - 0x10]
mov eax, dword [esi - 0xc]
add esi, 0xfffffff0
mov dword [ebp - 0x18], eax
or eax, 0xffffffff
mov byte [ebp - 4], 1
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x47567a
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
xor ecx, ecx
lea esp, [esp]
mov eax, dword [edi]
mov byte [ecx + eax], cl
inc ecx
cmp ecx, 0x100
jl 0x475680
xor ecx, ecx
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], ecx
lea ebx, [ebx]
mov eax, ecx
mov esi, dword [edi]
cdq
idiv dword [ebp - 0x18]
mov eax, dword [ebp + 8]
mov bl, byte [esi + ecx]
movsx eax, byte [edx + eax]
add eax, dword [ebp - 0x10]
movzx edx, bl
add edx, eax
and edx, 0x800000ff
jns 0x4756ca
dec edx
or edx, 0xffffff00
inc edx
mov ecx, dword [ebp - 0x14]
mov al, byte [esi + edx]
mov dword [ebp - 0x10], edx
mov byte [esi + ecx], al
inc ecx
mov byte [esi + edx], bl
mov dword [ebp - 0x14], ecx
cmp ecx, 0x100
jl 0x4756a0
lea ebx, [edi + 0xc]
cmp ebx, edi
je 0x475726
mov eax, dword [edi]
mov esi, dword [edi + 4]
mov ecx, dword [ebx]
sub esi, eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebx + 8]
sub eax, ecx
mov dword [ebp + 8], ecx
cmp esi, eax
jbe 0x475711
push esi
mov ecx, ebx
call fcn.00478130
mov ecx, dword [ebx]
mov dword [ebp + 8], ecx
push esi
push dword [ebp - 0x18]
push ecx
call fcn.004ad230
mov eax, dword [ebp + 8]
add esp, 0xc
add eax, esi
mov dword [ebx + 4], eax
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0x80004005
call fcn.00476460
push 0x80070057
call fcn.00476460
int3