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.0042c387
add esp, 4
xor ebx, ebx
mov dword [eax], eax
mov dword [eax + 4], eax
lea esi, [ebx + 0x38]
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [esp + 0x1c], eax
mov edx, str.Zatlat
call fcn.00405b90
push eax
call fcn.00405da0
mov eax, ebx
mov byte [esp + ebx + 0x5c], bl
xor edx, edx
add esp, 4
div esi
mov al, byte [edx + 0x4e57b0]
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.00407ee0
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.00407cf0
xorps xmm0, xmm0
mov dword [esp + 0x50], 1
movups xmmword [esp + 0x40], xmm0
push 1
mov ecx, 0x4e67f0
mov dword [esp + 0x58], 0xf
mov word [esp + 0x44], 0x30
call fcn.00402cf0
push eax
call fcn.00405da0
add esp, 4
lea eax, [esp + 0x40]
cmp dword [esp + 0x54], 0xf
cmova eax, dword [esp + 0x40]
push eax
call fcn.00456789
add esp, 4
mov esi, eax
push 5
push ecx
push 1
push ecx
push 5
mov ecx, 0x4e67f0
call fcn.00402cf0
add esp, 4
mov ecx, eax
call fcn.00402cf0
add esp, 4
mov ecx, eax
call fcn.00402cf0
push eax
call fcn.00405da0
mov ebx, dword [esp + 0x28]
add esp, 4
mov edi, dword [esp + 0x30]
mov ecx, dword [ebx + esi*4]
movzx eax, byte [edi + esi]
push 3
xor byte [ecx + 0x49ab00], al
mov ecx, 0x4e67f0
call fcn.00402cf0
push eax
call fcn.00405da0
mov ecx, dword [esp + 0x58]
add esp, 4
cmp ecx, 0xf
jbe 0x487437
mov edx, dword [esp + 0x40]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x48742d
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x487532
push ecx
push edx
call fcn.0042c3b7
add esp, 8
mov dword [esp + 0x50], 0
mov dword [esp + 0x54], 0xf
mov byte [esp + 0x40], 0
test ebx, ebx
je 0x487498
mov eax, dword [esp + 0x2c]
mov ecx, ebx
sub eax, ebx
and eax, 0xfffffffc
cmp eax, 0x1000
jb 0x487476
mov ebx, dword [ecx - 4]
add eax, 0x23
sub ecx, ebx
add ecx, 0xfffffffc
cmp ecx, 0x1f
ja 0x487532
push eax
push ebx
call fcn.0042c3b7
add esp, 8
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], 0
test edi, edi
je 0x4874de
mov ecx, dword [esp + 0x38]
mov eax, edi
sub ecx, edi
cmp ecx, 0x1000
jb 0x4874bc
mov edi, dword [eax - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x487532
push ecx
push edi
call fcn.0042c3b7
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, 0x4a800
jge 0x4874f8
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.00408090
push 0x2c
push dword [esp + 0x20]
call fcn.0042c3b7
mov ecx, dword [esp + 0x264]
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0042c374
add esp, 0x254
ret
call fcn.00456bf1
int3