Function at 0x42edb0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push edi
mov ecx, dword [edi + 0x94]
mov edx, dword [edi + 0x98]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + 0x2c]
mov esi, dword [edi + 0xd0]
mov dword [ebp - 8], ecx
mov ecx, dword [edi + 4]
mov eax, dword [edi + 0x90]
mov dword [ebp + 8], edx
mov edx, dword [edi + 0x28]
mov ebx, dword [ecx + 4]
mov dword [ebp - 4], edx
sub ebx, edx
mov edx, esi
and dl, 0x20
mov dword [ebp - 0x10], eax
mov eax, dword [edi + 0xc0]
neg dl
sbb edx, edx
mov dword [ebp - 0x1c], eax
mov eax, dword [edi + 0x34]
and edx, 0xfffffffe
inc edx
mov dword [ebp - 0x2c], eax
imul edx, dword [eax + 4]
mov eax, esi
and al, 0x10
neg al
sbb eax, eax
and al, 0xfe
inc eax
imul eax, dword [ebp - 4]
sub edx, eax
mov eax, dword [edi + 0xc]
imul eax, dword [ecx + 4]
mov dword [ebp - 0x18], edx
mov edx, dword [edi + 8]
add eax, edx
lea esi, [eax + eax*2]
mov eax, dword [ecx]
add esi, eax
mov dword [ebp - 0x20], esi
call fcn.00414930
mov edx, dword [ebp - 0x2c]
lea ecx, [eax + eax*2]
add esp, 4
mov eax, dword [edx]
add ecx, eax
mov eax, dword [edi + 0xd0]
mov edx, eax
mov dword [ebp - 0x24], ecx
and dl, 0x10
neg dl
sbb edx, edx
and edx, 0xfffffffe
inc edx
mov dword [ebp - 0x14], edx
mov edx, dword [0xc8b934]
test edx, edx
je 0x42efee
cmp dword [ebp - 0x1c], 0xffffffff
jne 0x42efee
cmp dword [ebp - 0x10], 0x80
jne 0x42f1dc
mov edx, dword [ebp - 0xc]
cmp edx, 0x80
mov edx, dword [ebp + 8]
jne 0x42f1df
cmp edx, 0x80
jne 0x42f1df
test eax, eax
jne 0x42f01a
mov eax, dword [ebp - 4]
mov dword [ebp - 0x2c], 0xffffffff
lea eax, [eax + eax*2]
mov dword [ebp - 0x1c], eax
cdq
and edx, 7
add eax, edx
sar eax, 3
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x1c]
and eax, 0x80000007
jns 0x42eedd
dec eax
or eax, 0xfffffff8
inc eax
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 8]
test eax, eax
mov dword [ebp + 8], 0
jle 0x42efe0
lea eax, [ebx + ebx*2]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
lea edx, [eax + eax*2]
mov dword [ebp - 0x10], edx
mov eax, dword [edi + 0xc]
mov edx, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
add eax, edx
cdq
inc ebx
idiv ebx
cmp edx, dword [0x6d1608]
je 0x42ef2b
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x42ef2b
mov eax, dword [ebp - 0x1c]
add esi, eax
add ecx, eax
jmp 0x42efbe
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x42ef9d
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x24]
mov ebx, dword [ebp - 0x20]
pxor mm3, mm3
movd mm4, dword [ebp - 0x2c]
punpcklbw mm4, mm3
movq mm0, qword [eax]
movq mm1, qword [ebx]
movq mm6, mm0
movq mm7, mm1
punpcklbw mm0, mm3
punpcklbw mm1, mm3
punpckhbw mm6, mm3
punpckhbw mm7, mm3
movq mm5, mm1
pxor mm5, mm4
pmullw mm1, mm1
pmullw mm0, mm5
paddusw mm0, mm1
movq mm5, mm7
pxor mm5, mm4
pmullw mm7, mm7
pmullw mm6, mm5
paddusw mm6, mm7
psrlw mm0, 8
psrlw mm6, 8
packuswb mm0, mm6
movq qword [ebx], mm0
add eax, 8
add ebx, 8
loop 0x42ef45
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], ebx
mov esi, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x28]
test eax, eax
jle 0x42efbe
xor edx, edx
xor ebx, ebx
mov dl, byte [esi]
mov bl, byte [ecx]
shl edx, 8
inc esi
inc ecx
mov dl, byte [edx + ebx + 0x4dd030]
dec eax
mov byte [esi - 1], dl
jne 0x42efa4
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
mov ebx, dword [ebp - 0x10]
add esi, edx
mov edx, dword [ebp - 8]
inc eax
add ecx, ebx
cmp eax, edx
mov dword [ebp + 8], eax
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x24], ecx
jl 0x42ef01
emms
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 0x10]
mov eax, 0x80
cmp edx, eax
jne 0x42f1dc
cmp dword [ebp - 0xc], eax
jne 0x42f1dc
cmp dword [ebp + 8], eax
jne 0x42f1dc
cmp dword [ebp - 0x1c], 0xffffffff
jne 0x42f0f4
mov eax, dword [ebp - 8]
xor edx, edx
test eax, eax
mov dword [ebp + 8], edx
jle 0x42f406
mov eax, dword [ebp + 0xc]
inc eax
mov dword [ebp - 0x24], eax
lea eax, [ebx + ebx*2]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
lea eax, [eax + eax*2]
mov dword [ebp - 0x10], eax
mov eax, dword [edi + 0xc]
add eax, edx
cdq
idiv dword [ebp - 0x24]
cmp edx, dword [0x6d1608]
je 0x42f06e
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x42f06e
mov edx, dword [ebp - 4]
lea eax, [edx + esi]
lea esi, [eax + edx*2]
mov eax, dword [ebp - 0x14]
imul eax, edx
add ecx, eax
lea ecx, [ecx + eax*2]
jmp 0x42f0cc
mov eax, dword [ebp - 4]
test eax, eax
jle 0x42f0cc
mov edx, dword [ebp - 0x14]
lea edx, [edx + edx*2]
mov dword [ebp - 0x18], edx
xor edx, edx
xor ebx, ebx
mov dl, byte [esi]
mov bl, byte [ecx]
shl edx, 8
add esi, 3
mov dl, byte [edx + ebx + 0x4dd030]
xor ebx, ebx
mov byte [esi - 3], dl
mov bl, byte [ecx + 1]
xor edx, edx
mov dl, byte [esi - 2]
shl edx, 8
mov dl, byte [edx + ebx + 0x4dd030]
xor ebx, ebx
mov byte [esi - 2], dl
mov bl, byte [ecx + 2]
xor edx, edx
mov dl, byte [esi - 1]
shl edx, 8
mov dl, byte [edx + ebx + 0x4dd030]
mov ebx, dword [ebp - 0x18]
mov byte [esi - 1], dl
add ecx, ebx
dec eax
jne 0x42f07e
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp + 8]
mov ebx, dword [ebp - 0x10]
add esi, eax
mov eax, dword [ebp - 8]
inc edx
add ecx, ebx
cmp edx, eax
mov dword [ebp + 8], edx
jl 0x42f040
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 8]
xor edx, edx
test eax, eax
mov dword [ebp + 8], edx
jle 0x42f406
mov eax, dword [ebp + 0xc]
inc eax
mov dword [ebp - 0x24], eax
lea eax, [ebx + ebx*2]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
lea eax, [eax + eax*2]
mov dword [ebp - 0x10], eax
mov eax, dword [edi + 0xc]
add eax, edx
cdq
idiv dword [ebp - 0x24]
cmp edx, dword [0x6d1608]
je 0x42f148
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x42f148
mov edx, dword [ebp - 4]
lea eax, [edx + esi]
lea esi, [eax + edx*2]
mov eax, dword [ebp - 0x14]
imul eax, edx
add ecx, eax
lea ecx, [ecx + eax*2]
jmp 0x42f1b4
mov eax, dword [ebp - 4]
test eax, eax
jle 0x42f1b4
mov edx, dword [ebp - 0x14]
lea edx, [edx + edx*2]
mov dword [ebp - 0x18], edx
mov edx, dword [ecx]
mov ebx, dword [ebp - 0x1c]
and edx, 0xffffff
cmp edx, ebx
je 0x42f1a9
xor edx, edx
xor ebx, ebx
mov dl, byte [esi]
mov bl, byte [ecx]
shl edx, 8
mov dl, byte [edx + ebx + 0x4dd030]
xor ebx, ebx
mov byte [esi], dl
mov bl, byte [ecx + 1]
xor edx, edx
mov dl, byte [esi + 1]
shl edx, 8
mov dl, byte [edx + ebx + 0x4dd030]
mov byte [esi + 1], dl
xor edx, edx
mov dl, byte [esi + 2]
shl edx, 8
xor ebx, ebx
mov bl, byte [ecx + 2]
mov dl, byte [edx + ebx + 0x4dd030]
mov byte [esi + 2], dl
mov ebx, dword [ebp - 0x18]
add esi, 3
add ecx, ebx
dec eax
jne 0x42f158
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp + 8]
mov ebx, dword [ebp - 0x10]
add esi, eax
mov eax, dword [ebp - 8]
inc edx
add ecx, ebx
cmp edx, eax
mov dword [ebp + 8], edx
jl 0x42f11a
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x10]
shl eax, 8
add eax, 0x58e650
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0xc]
shl eax, 8
shl edx, 8
add eax, 0x58e650
add edx, 0x58e650
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x20], edx
xor edx, edx
cmp eax, 0xffffffff
mov eax, dword [ebp - 8]
mov dword [ebp + 8], edx
jne 0x42f30e
test eax, eax
jle 0x42f406
lea eax, [ebx + ebx*2]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
lea eax, [eax + eax*2]
mov dword [ebp - 0x10], eax
mov eax, dword [edi + 0xc]
mov ebx, dword [ebp + 0xc]
add eax, edx
inc ebx
cdq
idiv ebx
cmp edx, dword [0x6d1608]
je 0x42f266
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x42f266
mov edx, dword [ebp - 4]
lea eax, [edx + esi]
lea esi, [eax + edx*2]
mov eax, dword [ebp - 0x14]
imul eax, edx
add ecx, eax
lea ecx, [ecx + eax*2]
jmp 0x42f2e6
mov eax, dword [ebp - 4]
test eax, eax
jle 0x42f2e6
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x24], eax
lea edx, [edx + edx*2]
mov dword [ebp - 0x18], edx
mov ebx, dword [ebp - 0x20]
xor eax, eax
mov al, byte [ecx]
xor edx, edx
add esi, 3
mov dl, byte [eax + ebx]
xor eax, eax
mov al, byte [esi - 3]
mov ebx, dword [ebp - 0x28]
shl eax, 8
mov dl, byte [edx + eax + 0x4dd030]
xor eax, eax
mov byte [esi - 3], dl
mov al, byte [ecx + 1]
xor edx, edx
mov dl, byte [eax + ebx]
xor eax, eax
mov al, byte [esi - 2]
mov ebx, dword [ebp - 0x2c]
shl eax, 8
mov dl, byte [edx + eax + 0x4dd030]
xor eax, eax
mov byte [esi - 2], dl
mov al, byte [ecx + 2]
xor edx, edx
mov dl, byte [eax + ebx]
xor eax, eax
mov al, byte [esi - 1]
shl eax, 8
mov dl, byte [edx + eax + 0x4dd030]
mov eax, dword [ebp - 0x24]
mov byte [esi - 1], dl
mov edx, dword [ebp - 0x18]
add ecx, edx
dec eax
mov dword [ebp - 0x24], eax
jne 0x42f279
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp + 8]
mov ebx, dword [ebp - 0x10]
add esi, eax
mov eax, dword [ebp - 8]
inc edx
add ecx, ebx
cmp edx, eax
mov dword [ebp + 8], edx
jl 0x42f232
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
test eax, eax
jle 0x42f406
lea eax, [ebx + ebx*2]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
lea eax, [eax + eax*2]
mov dword [ebp - 0x10], eax
mov eax, dword [edi + 0xc]
mov ebx, dword [ebp + 0xc]
add eax, edx
inc ebx
cdq
idiv ebx
cmp edx, dword [0x6d1608]
je 0x42f359
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x42f359
mov edx, dword [ebp - 4]
lea eax, [edx + esi]
lea esi, [eax + edx*2]
mov eax, dword [ebp - 0x14]
imul eax, edx
add ecx, eax
lea ecx, [ecx + eax*2]
jmp 0x42f3ea
mov edx, dword [ebp - 4]
test edx, edx
jle 0x42f3ea
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x24], edx
lea eax, [eax + eax*2]
mov dword [ebp - 0x18], eax
mov edx, dword [ecx]
mov eax, dword [ebp - 0x1c]
and edx, 0xffffff
cmp edx, eax
je 0x42f3d9
mov ebx, dword [ebp - 0x20]
xor eax, eax
mov al, byte [ecx]
xor edx, edx
mov dl, byte [eax + ebx]
xor eax, eax
mov al, byte [esi]
mov ebx, dword [ebp - 0x28]
shl eax, 8
mov dl, byte [edx + eax + 0x4dd030]
xor eax, eax
mov byte [esi], dl
mov al, byte [ecx + 1]
xor edx, edx
mov dl, byte [eax + ebx]
xor eax, eax
mov al, byte [esi + 1]
mov ebx, dword [ebp - 0x2c]
shl eax, 8
mov dl, byte [edx + eax + 0x4dd030]
xor eax, eax
mov byte [esi + 1], dl
mov al, byte [ecx + 2]
xor edx, edx
mov dl, byte [eax + ebx]
xor eax, eax
mov al, byte [esi + 2]
shl eax, 8
mov dl, byte [edx + eax + 0x4dd030]
mov byte [esi + 2], dl
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x24]
add esi, 3
add ecx, edx
dec eax
mov dword [ebp - 0x24], eax
jne 0x42f370
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp + 8]
mov ebx, dword [ebp - 0x10]
add esi, eax
mov eax, dword [ebp - 8]
inc edx
add ecx, ebx
cmp edx, eax
mov dword [ebp + 8], edx
jl 0x42f325
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret