Function at 0x4871f0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
sub esp, 0x254
mov eax, dword [0x49a040]
xor eax, esp
mov dword [esp + 0x24c], eax
push ebx
push ebp
push esi
push edi
push 0x2c
mov dword [esp + 0x24], 0
call fcn.0042c39e
add esp, 4
xor ebx, ebx
mov dword [eax], eax
mov dword [eax + 4], eax
lea esi, [ebx + 0x36]
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [esp + 0x1c], eax
mov edx, str.Zatlat
call fcn.00405ba0
push eax
call fcn.00405db0
mov eax, ebx
mov byte [esp + ebx + 0x5c], bl
xor edx, edx
add esp, 4
div esi
mov al, byte [edx + 0x4e63b0]
mov byte [esp + ebx + 0x158], al
inc ebx
cmp ebx, 0x100
jl 0x487231
xor esi, esi
xor edi, edi
nop dword [eax + eax]
mov dl, byte [esp + esi + 0x58]
movzx eax, byte [esp + esi + 0x158]
add edi, eax
movzx ecx, dl
add edi, ecx
and edi, 0x800000ff
jns 0x487293
dec edi
or edi, 0xffffff00
inc edi
mov al, byte [esp + edi + 0x58]
mov byte [esp + esi + 0x58], al
inc esi
mov byte [esp + edi + 0x58], dl
cmp esi, 0x100
jl 0x487270
xor edi, edi
xor eax, eax
xor ebp, ebp
mov dword [esp + 0x14], ebp
inc edi
and edi, 0x800000ff
jns 0x4872c3
dec edi
or edi, 0xffffff00
inc edi
mov bl, byte [esp + edi + 0x58]
movzx esi, bl
add eax, esi
mov dword [esp + 0x3c], edi
and eax, 0x800000ff
jns 0x4872de
dec eax
or eax, 0xffffff00
inc eax
push 0
push 0
push 0
mov dword [esp + 0x24], eax
call dword [sym.imp.USER32.dll_OffsetRect]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], 0
movzx eax, byte [esp + ecx + 0x58]
mov byte [esp + edi + 0x58], al
mov byte [esp + ecx + 0x58], bl
lea ecx, [esp + 0x58]
movzx eax, byte [esp + edi + 0x58]
add eax, esi
movzx eax, al
add eax, ecx
lea ecx, [esp + 0x30]
push eax
push 0
call fcn.00407ef0
lea eax, [esp + 0x14]
mov dword [esp + 0x24], 0
push eax
push 0
lea ecx, [esp + 0x2c]
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], 0
call fcn.00407d00
xorps xmm0, xmm0
mov dword [esp + 0x50], 1
movups xmmword [esp + 0x40], xmm0
push 1
mov dword [esp + 0x58], 0xf
mov word [esp + 0x44], 0x30
call fcn.00402cf0
push eax
call fcn.00405db0
add esp, 4
lea eax, [esp + 0x40]
cmp dword [esp + 0x54], 0xf
cmova eax, dword [esp + 0x40]
push eax
call fcn.004567a9
mov edi, dword [esp + 0x28]
add esp, 4
mov esi, dword [esp + 0x30]
mov ecx, dword [edi + eax*4]
movzx eax, byte [esi + eax]
push 3
xor byte [ecx + 0x49ab00], al
call fcn.00402cf0
push eax
call fcn.00405db0
mov ecx, dword [esp + 0x58]
add esp, 4
cmp ecx, 0xf
jbe 0x4873fc
mov edx, dword [esp + 0x40]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4873f2
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4874f7
push ecx
push edx
call fcn.0042c3ce
add esp, 8
mov dword [esp + 0x50], 0
mov dword [esp + 0x54], 0xf
mov byte [esp + 0x40], 0
test edi, edi
je 0x48745d
mov eax, dword [esp + 0x2c]
mov ecx, edi
sub eax, edi
and eax, 0xfffffffc
cmp eax, 0x1000
jb 0x48743b
mov edi, dword [ecx - 4]
add eax, 0x23
sub ecx, edi
add ecx, 0xfffffffc
cmp ecx, 0x1f
ja 0x4874f7
push eax
push edi
call fcn.0042c3ce
add esp, 8
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], 0
test esi, esi
je 0x4874a3
mov ecx, dword [esp + 0x38]
mov eax, esi
sub ecx, esi
cmp ecx, 0x1000
jb 0x487481
mov esi, dword [eax - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4874f7
push ecx
push esi
call fcn.0042c3ce
add esp, 8
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], 0
inc ebp
mov dword [esp + 0x14], ebp
cmp ebp, 0x4b400
jge 0x4874bd
mov edi, dword [esp + 0x3c]
mov eax, dword [esp + 0x18]
jmp 0x4872b2
mov eax, dword [esp + 0x1c]
push dword [eax + 4]
lea eax, [esp + 0x20]
push eax
mov ecx, eax
call fcn.004080a0
push 0x2c
push dword [esp + 0x20]
call fcn.0042c3ce
mov ecx, dword [esp + 0x264]
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0042c38b
add esp, 0x254
ret
call fcn.00456c11
int3