Function at 0x4245d0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
sub esp, 0x24c
mov eax, dword [0x659900]
xor eax, esp
mov dword [esp + 0x248], eax
mov eax, dword [esp + 0x250]
push ebx
push ebp
push esi
push edi
push 0x2c
mov dword [esp + 0x3c], eax
mov dword [esp + 0x20], 0
call fcn.00407197
mov esi, dword [esp + 0x270]
add esp, 4
mov edi, dword [esp + 0x268]
xor ebx, ebx
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [esp + 0x18], eax
nop word [eax + eax]
push str.Zatlat
push 0x65ac38
call fcn.00401160
push eax
call fcn.00401e70
mov eax, ebx
mov byte [esp + ebx + 0x64], bl
cdq
add esp, 0xc
idiv esi
mov al, byte [edx + edi]
mov byte [esp + ebx + 0x158], al
inc ebx
cmp ebx, 0x100
jl 0x424630
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 0x424693
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 0x424670
xor eax, eax
xor ebp, ebp
xor edi, edi
mov dword [esp + 0x10], ebp
cmp dword [esp + 0x264], eax
jle 0x4248d4
nop
inc edi
and edi, 0x800000ff
jns 0x4246d1
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 0x4246ec
dec eax
or eax, 0xffffff00
inc eax
push 0
push 0
push 0
mov dword [esp + 0x20], eax
call dword [sym.imp.USER32.dll_OffsetRect]
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x2c], 0
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], 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 + 0x2c]
push eax
push 0
call fcn.004014e0
lea eax, [esp + 0x10]
mov dword [esp + 0x20], 0
push eax
push 0
lea ecx, [esp + 0x28]
mov dword [esp + 0x2c], 0
mov dword [esp + 0x30], 0
call fcn.00401690
xorps xmm0, xmm0
mov dword [esp + 0x50], 1
movups xmmword [esp + 0x40], xmm0
push 1
mov ecx, 0x65ac38
mov dword [esp + 0x58], 0xf
mov word [esp + 0x44], 0x30
call fcn.00402b50
push eax
call fcn.00401e70
cmp dword [esp + 0x58], 0xf
lea eax, [esp + 0x44]
cmova eax, dword [esp + 0x44]
push eax
call fcn.0040c78e
mov esi, dword [esp + 0x28]
add esp, 8
mov edi, dword [esp + 0x2c]
mov edx, dword [esp + 0x38]
mov ecx, dword [esi + eax*4]
movzx eax, byte [edi + eax]
push 3
xor byte [ecx + edx], al
mov ecx, 0x65ac38
call fcn.00402b50
push eax
call fcn.00401e70
mov ecx, dword [esp + 0x58]
add esp, 4
cmp ecx, 0xf
jbe 0x424812
mov edx, dword [esp + 0x40]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x424808
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42490e
push ecx
push edx
call fcn.004071c7
add esp, 8
mov dword [esp + 0x50], 0
mov dword [esp + 0x54], 0xf
mov byte [esp + 0x40], 0
test esi, esi
je 0x424873
mov eax, dword [esp + 0x28]
mov ecx, esi
sub eax, esi
and eax, 0xfffffffc
cmp eax, 0x1000
jb 0x424851
mov esi, dword [ecx - 4]
add eax, 0x23
sub ecx, esi
add ecx, 0xfffffffc
cmp ecx, 0x1f
ja 0x42490e
push eax
push esi
call fcn.004071c7
add esp, 8
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 0
test edi, edi
je 0x4248b9
mov ecx, dword [esp + 0x34]
mov eax, edi
sub ecx, edi
cmp ecx, 0x1000
jb 0x424897
mov edi, dword [eax - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42490e
push ecx
push edi
call fcn.004071c7
add esp, 8
mov dword [esp + 0x2c], 0
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], 0
inc ebp
mov dword [esp + 0x10], ebp
cmp ebp, dword [esp + 0x264]
jge 0x4248d4
mov edi, dword [esp + 0x3c]
mov eax, dword [esp + 0x14]
jmp 0x4246c0
mov eax, dword [esp + 0x18]
push dword [eax + 4]
lea eax, [esp + 0x1c]
push eax
mov ecx, eax
call fcn.004019c0
push 0x2c
push dword [esp + 0x1c]
call fcn.004071c7
mov ecx, dword [esp + 0x260]
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004071da
add esp, 0x24c
ret
call fcn.0040bc0f
int3