Function at 0x570af0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x74
mov eax, dword [0x667710]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp + 0x14]
push ebx
push esi
movups xmm0, xmmword [eax]
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 0x14]
push edi
movups xmmword [ebp - 0x70], xmm0
push eax
movups xmm0, xmmword [edx]
mov edi, ecx
movups xmmword [ebp - 0x48], xmm0
call fcn.005726c0
cmp dword [edi + 0x6c], 0
mov ecx, dword [ebp - 0x3c]
je 0x570b5d
mov eax, dword [edi + 0x130]
cmp dword [eax - 8], 0
je 0x570b5d
mov eax, dword [edi + 0x134]
cmp dword [eax - 8], 0
je 0x570b5d
mov edx, dword [ebp - 8]
lea eax, [ecx + 1]
cmp dword [ebp - 0x44], edx
cmovg edx, dword [ebp - 0x44]
cmp eax, edx
cmovl edx, eax
mov dword [ebp - 0x30], edx
jmp 0x570b63
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x68]
sub eax, dword [ebp - 0x70]
mov ebx, dword [ebp - 0x64]
mov dword [ebp - 0x24], eax
mov eax, ebx
sub eax, dword [ebp - 0x6c]
mov dword [ebp - 0x20], eax
mov eax, dword [esi + 0x1c]
mov dword [ebp - 0x18], eax
test eax, eax
je 0x570ba9
lea ecx, [ebp - 0x60]
mov dword [ebp - 0x60], 0
push ecx
push dword [eax + 4]
call dword [sym.imp.gdiplus.dll_GdipGetImageWidth]
mov ecx, eax
test ecx, ecx
je 0x570ba1
mov eax, dword [ebp - 0x18]
mov dword [eax + 8], ecx
mov edx, dword [ebp - 0x60]
mov dword [ebp - 0x28], edx
jmp 0x570bbf
mov eax, dword [esi + 8]
test eax, eax
je 0x570bb8
mov edx, dword [eax + 4]
mov dword [ebp - 0x28], edx
jmp 0x570bbf
mov dword [ebp - 0x28], 0
mov eax, esi
mov ecx, 8
add ecx, eax
mov eax, dword [esi + 0x1c]
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x570bf4
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x18], 0
push ecx
push dword [eax + 4]
call dword [sym.imp.gdiplus.dll_GdipGetImageHeight]
mov ecx, eax
test ecx, ecx
je 0x570c05
mov eax, dword [ebp - 0x1c]
mov dword [eax + 8], ecx
jmp 0x570c05
mov eax, dword [ecx]
test eax, eax
je 0x570c05
push dword [eax + 8]
call fcn.00507370
add esp, 4
mov ecx, dword [edi + 0x78]
xor edx, edx
cmp dword [edi + 0x6c], edx
je 0x570c1e
mov eax, dword [ebp - 0x20]
div ecx
mov edx, eax
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x20], edx
jmp 0x570c29
mov eax, dword [ebp - 0x24]
div ecx
mov edx, dword [ebp - 0x20]
mov dword [ebp - 0x24], eax
test eax, eax
jle 0x57102a
test edx, edx
jle 0x57102a
movzx ecx, word [edi + 0x8c]
mov eax, ecx
shr eax, 8
mov dword [ebp - 0x38], eax
movzx eax, cl
mov ecx, dword [ebp - 0x38]
shl eax, 8
or ecx, eax
movzx eax, byte [edi + 0x8e]
shl ecx, 8
or ecx, eax
mov eax, ecx
mov dword [ebp - 0x38], ecx
shr eax, 8
mov dword [ebp - 0x54], eax
mov eax, ecx
shr eax, 0x10
cmp dword [esi + 0x1c], 0
mov dword [ebp - 0x50], eax
je 0x570c81
mov dword [ebp - 0x4c], 0
jmp 0x570c87
mov eax, dword [esi + 0xc]
mov dword [ebp - 0x4c], eax
cmp dword [edi + 0x6c], 0
je 0x570e50
mov edi, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x6c]
mov esi, dword [ebp - 0x30]
add ecx, edx
lea edx, [edi - 1]
cmp ecx, edx
mov dword [ebp - 0x24], edx
cmovge ecx, edx
cmp ecx, esi
jl 0x570d7f
mov eax, edi
mov edx, ecx
mov edi, dword [ebp - 0x4c]
sub eax, ecx
sub edx, dword [ebp - 0x6c]
dec eax
imul eax, dword [ebp - 0x28]
sub ecx, esi
shl edx, 8
inc ecx
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x18], ecx
lea ebx, [edi + eax*4]
mov edi, dword [ebp - 0x48]
mov dword [ebp - 0x1c], ebx
mov eax, edx
cdq
idiv dword [ebp - 0x20]
mov edx, ebx
mov esi, eax
cmp edi, dword [ebp - 0x40]
jge 0x570d4f
mov eax, dword [ebp - 0x50]
mov ecx, 0x100
movzx edi, al
sub ecx, esi
mov eax, dword [ebp - 0x54]
movzx ebx, al
mov eax, dword [ebp - 0x38]
movzx eax, al
imul eax, ecx
imul edi, ecx
imul ebx, ecx
mov ecx, dword [ebp - 0x40]
sub ecx, dword [ebp - 0x48]
mov dword [ebp - 0x34], eax
nop
movzx eax, byte [edx + 2]
lea edx, [edx + 4]
imul eax, esi
add eax, edi
shr eax, 8
mov byte [edx - 2], al
movzx eax, byte [edx - 3]
imul eax, esi
add eax, ebx
shr eax, 8
mov byte [edx - 3], al
movzx eax, byte [edx - 4]
imul eax, esi
add eax, dword [ebp - 0x34]
shr eax, 8
mov byte [edx - 4], al
sub ecx, 1
jne 0x570d10
mov ecx, dword [ebp - 0x18]
mov ebx, dword [ebp - 0x1c]
mov edi, dword [ebp - 0x48]
mov esi, dword [ebp - 0x28]
mov edx, dword [ebp - 0x2c]
sub edx, 0x100
mov dword [ebp - 0x2c], edx
lea eax, [esi*4]
add ebx, eax
sub ecx, 1
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ecx
jne 0x570cd5
mov edx, dword [ebp - 0x24]
mov ebx, dword [ebp - 0x64]
mov edi, dword [ebp - 0x3c]
mov eax, dword [ebp - 0x4c]
mov esi, ebx
sub esi, dword [ebp - 0x20]
sub ebx, edx
sub edi, edx
dec ebx
dec edi
shl ebx, 8
dec esi
imul edi, dword [ebp - 0x28]
mov dword [ebp - 0x2c], esi
lea ecx, [eax + edi*4]
mov edi, dword [ebp - 0x30]
cmp esi, edi
mov dword [ebp - 0x18], ecx
mov eax, edi
mov dword [ebp - 0x1c], ebx
cmovg eax, esi
cmp edx, eax
jl 0x57102a
mov eax, ebx
cdq
idiv dword [ebp - 0x20]
mov esi, eax
mov eax, dword [ebp - 0x48]
cmp eax, dword [ebp - 0x40]
jge 0x570e2c
mov eax, dword [ebp - 0x50]
mov edx, 0x100
movzx edi, al
sub edx, esi
mov eax, dword [ebp - 0x54]
movzx ebx, al
mov eax, dword [ebp - 0x38]
movzx eax, al
imul eax, edx
imul edi, edx
imul ebx, edx
mov edx, dword [ebp - 0x40]
sub edx, dword [ebp - 0x48]
mov dword [ebp - 0x34], eax
nop
movzx eax, byte [ecx + 2]
lea ecx, [ecx + 4]
imul eax, esi
add eax, edi
shr eax, 8
mov byte [ecx - 2], al
movzx eax, byte [ecx - 3]
imul eax, esi
add eax, ebx
shr eax, 8
mov byte [ecx - 3], al
movzx eax, byte [ecx - 4]
imul eax, esi
add eax, dword [ebp - 0x34]
shr eax, 8
mov byte [ecx - 4], al
sub edx, 1
jne 0x570df0
mov ebx, dword [ebp - 0x1c]
mov edi, dword [ebp - 0x30]
mov esi, dword [ebp - 0x28]
mov edx, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x18]
dec edx
mov dword [ebp - 0x24], edx
lea eax, [esi*4]
mov esi, dword [ebp - 0x2c]
add ecx, eax
add ebx, 0x100
jmp 0x570d9e
mov ebx, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x30]
mov edx, dword [ebp - 0x40]
mov esi, dword [ebp - 0x48]
cmp ecx, ebx
jge 0x57102a
mov ecx, dword [ebp - 0x48]
mov eax, ecx
sub eax, dword [ebp - 0x70]
mov esi, dword [ebp - 0x24]
add esi, dword [ebp - 0x70]
shl eax, 8
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x28]
neg eax
mov dword [ebp - 0x58], esi
shl eax, 2
mov dword [ebp - 0x5c], eax
mov eax, ebx
sub eax, dword [ebp - 0x30]
mov dword [ebp - 0x20], eax
lea eax, [eax*4 - 4]
imul eax, dword [ebp - 0x28]
add eax, dword [ebp - 0x4c]
mov dword [ebp - 0x2c], eax
nop
mov edi, dword [ebp - 0x34]
mov ebx, eax
cmp esi, edx
mov dword [ebp - 0x1c], edi
mov eax, edx
mov dword [ebp - 0x18], ecx
cmovl eax, esi
cmp ecx, eax
jge 0x570f23
mov eax, edi
mov edi, 0x100
cdq
idiv dword [ebp - 0x24]
movzx edx, byte [ebx + 2]
mov esi, eax
mov eax, dword [ebp - 0x50]
movzx ecx, al
sub edi, esi
mov eax, dword [ebp - 0x54]
imul ecx, edi
imul edx, esi
add edx, ecx
movzx ecx, al
movzx eax, byte [ebx + 1]
imul ecx, edi
imul eax, esi
shr edx, 8
mov byte [ebx + 2], dl
mov edx, dword [ebp - 0x40]
add ecx, eax
mov eax, dword [ebp - 0x38]
shr ecx, 8
mov byte [ebx + 1], cl
movzx ecx, byte [ebx]
imul ecx, esi
mov esi, dword [ebp - 0x58]
movzx eax, al
imul eax, edi
mov edi, dword [ebp - 0x1c]
add ecx, eax
shr ecx, 8
mov byte [ebx], cl
add ebx, 4
mov ecx, dword [ebp - 0x18]
inc ecx
add edi, 0x100
jmp 0x570ea5
mov eax, dword [ebp - 0x2c]
add eax, dword [ebp - 0x5c]
sub dword [ebp - 0x20], 1
mov ecx, dword [ebp - 0x48]
mov dword [ebp - 0x2c], eax
jne 0x570ea0
mov ebx, dword [ebp - 0x3c]
mov esi, ecx
mov ecx, dword [ebp - 0x30]
cmp ecx, ebx
jge 0x57102a
mov edi, dword [ebp - 0x68]
sub ebx, ecx
sub edi, dword [ebp - 0x24]
dec edi
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x30], edi
lea ecx, [ebx - 1]
imul ecx, dword [ebp - 0x28]
sub ecx, esi
mov dword [ebp - 0x2c], ecx
mov ebx, dword [ebp - 0x4c]
cmp edi, esi
mov eax, esi
cmovg eax, edi
add eax, ecx
cmp edi, dword [ebp - 0x48]
cmovg esi, edi
lea ebx, [ebx + eax*4]
cmp esi, edx
jge 0x571017
mov eax, dword [ebp - 0x50]
mov ecx, dword [ebp - 0x54]
movzx eax, al
mov dword [ebp - 0x5c], eax
movzx eax, cl
mov ecx, dword [ebp - 0x38]
mov dword [ebp - 0x58], eax
movzx eax, cl
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x68]
sub eax, esi
dec eax
shl eax, 8
sub edx, esi
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], edx
nop dword [eax]
cdq
lea ebx, [ebx + 4]
idiv dword [ebp - 0x24]
movzx edx, byte [ebx - 2]
mov edi, 0x100
mov esi, eax
sub edi, esi
imul edx, esi
mov ecx, edi
mov eax, edi
imul ecx, dword [ebp - 0x5c]
imul eax, dword [ebp - 0x58]
imul edi, dword [ebp - 0x34]
add edx, ecx
movzx ecx, byte [ebx - 3]
imul ecx, esi
shr edx, 8
mov byte [ebx - 2], dl
add ecx, eax
movzx eax, byte [ebx - 4]
imul eax, esi
shr ecx, 8
mov byte [ebx - 3], cl
add eax, edi
shr eax, 8
mov byte [ebx - 4], al
mov eax, dword [ebp - 0x18]
sub eax, 0x100
sub dword [ebp - 0x1c], 1
mov dword [ebp - 0x18], eax
jne 0x570fb0
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x40]
mov edi, dword [ebp - 0x30]
sub ecx, dword [ebp - 0x28]
sub dword [ebp - 0x20], 1
mov esi, dword [ebp - 0x48]
mov dword [ebp - 0x2c], ecx
jne 0x570f64
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004da623
mov esp, ebp
pop ebp
ret 0x10