Function at 0x6ca942
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x54
push ebx
push esi
mov ebx, ecx
mov eax, dword [ebx + 4]
push edi
xor edi, edi
mov dword [esp + 0x48], ebx
cmp eax, edi
je 0x6ca962
mov esi, dword [eax + 0x4c]
jmp 0x6ca965
mov esi, dword [ebx + 0x30]
mov dword [esp + 0x40], esi
cmp esi, edi
je 0x6cb13a
cmp dword [esi + 0xb1c], edi
je 0x6cb13a
mov ecx, dword [esi + 0xb1c]
mov eax, dword [ecx]
push edi
call dword [eax + 0x24]
test al, al
je 0x6cb13a
mov ecx, dword [esi + 0xb1c]
mov eax, dword [ecx]
call dword [eax + 0x28]
mov ecx, dword [ebx + 8]
mov dword [esp + 0x18], eax
mov eax, dword [ecx]
call dword [eax + 0x28]
mov ecx, dword [esi + 0xb1c]
mov dword [esp + 0x14], eax
mov eax, dword [ecx]
call dword [eax + 0x2c]
mov ecx, dword [ebx + 8]
mov dword [esp + 0x28], eax
mov eax, dword [ecx]
call dword [eax + 0x2c]
cmp dword [ebp + 0xc], edi
mov dword [esp + 0x20], eax
jge 0x6ca9cf
mov dword [ebp + 0xc], edi
cmp dword [ebp + 0x10], edi
jge 0x6ca9d7
mov dword [ebp + 0x10], edi
mov eax, dword [esi + 0xb1c]
mov ecx, dword [eax + 8]
mov esi, dword [ebp + 0x14]
cmp ecx, esi
jge 0x6ca9e9
mov esi, ecx
mov eax, dword [eax + 4]
mov edx, dword [ebp + 0x18]
cmp eax, edx
jge 0x6ca9f5
mov edx, eax
mov eax, dword [ebx + 8]
mov ecx, dword [eax + 8]
cmp ecx, esi
jl 0x6caa01
mov ecx, esi
mov eax, dword [eax + 4]
cmp eax, edx
mov dword [ebp + 0x14], ecx
jl 0x6caa0d
mov eax, edx
mov dword [ebp + 0x18], eax
mov eax, dword [ebx + 0xc]
cmp eax, 0x7ffffff
je 0x6cb0b8
mov esi, dword [ebp + 0xc]
cmp esi, eax
jge 0x6caa2a
mov esi, eax
mov dword [ebp + 0xc], esi
mov eax, dword [ebx + 0x14]
cmp dword [ebp + 0x10], eax
jge 0x6caa35
mov dword [ebp + 0x10], eax
mov eax, dword [ebx + 0x10]
cmp dword [ebp + 0x14], eax
jl 0x6caa40
mov dword [ebp + 0x14], eax
mov eax, dword [ebx + 0x18]
cmp dword [ebp + 0x18], eax
jl 0x6caa4b
mov dword [ebp + 0x18], eax
mov edi, dword [esp + 0x40]
mov ecx, dword [edi + 0xb1c]
mov eax, dword [ecx]
call dword [eax + 0x14]
test al, al
je 0x6caa7a
mov eax, dword [edi + 0xb1c]
mov eax, dword [eax + 4]
sub eax, dword [ebp + 0x10]
dec eax
imul eax, dword [esp + 0x28]
add dword [esp + 0x18], eax
neg dword [esp + 0x28]
jmp 0x6caa86
mov eax, dword [esp + 0x28]
imul eax, dword [ebp + 0x10]
add dword [esp + 0x18], eax
mov ecx, dword [ebx + 8]
mov eax, dword [ecx + 0xc]
cmp eax, 4
je 0x6cae7e
cmp eax, 5
je 0x6cae7e
mov eax, dword [ecx]
call dword [eax + 0x14]
mov edi, dword [ebp + 0x10]
test al, al
je 0x6caac2
mov eax, dword [ebx + 8]
mov eax, dword [eax + 4]
sub eax, edi
dec eax
imul eax, dword [esp + 0x20]
add eax, dword [esp + 0x14]
neg dword [esp + 0x20]
jmp 0x6caacd
mov eax, dword [esp + 0x20]
imul eax, edi
add eax, dword [esp + 0x14]
mov ecx, dword [ebx + 8]
lea eax, [eax + esi*4]
mov dword [esp + 0x14], eax
mov eax, dword [ecx]
call dword [eax + 0x44]
test eax, eax
je 0x6cacb5
mov eax, esi
imul eax, eax, 3
add dword [esp + 0x18], eax
cmp byte [0x103a2501], 0
je 0x6cac50
mov eax, dword [ebp + 0x14]
sub eax, esi
cmp eax, 4
jle 0x6cac50
test byte [0x103a3af0], 1
jne 0x6cab30
or dword [0x103a3af0], 1
mov ecx, 0xff000000
movd xmm0, ecx
pshufd xmm3, xmm0, 0
movdqa xmmword [0x103a3ae0], xmm3
jmp 0x6cab38
movdqa xmm3, xmmword [0x103a3ae0]
test byte [0x103a3af0], 2
jne 0x6cab60
or dword [0x103a3af0], 2
mov ecx, 0xffffff
movd xmm0, ecx
pshufd xmm2, xmm0, 0
movdqa xmmword [0x103a3ad0], xmm2
jmp 0x6cab68
movdqa xmm2, xmmword [0x103a3ad0]
cmp edi, dword [ebp + 0x18]
jge 0x6cb0b8
dec eax
mov dword [esp + 0x1c], eax
mov eax, dword [ebp + 0x18]
sub eax, dword [ebp + 0x10]
mov dword [esp + 0x24], eax
mov edi, dword [ebp + 0xc]
sub dword [ebp + 0x14], 4
sub dword [esp + 0x1c], 4
cmp edi, dword [ebp + 0x14]
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
jge 0x6cabf9
mov edx, dword [esp + 0x1c]
shr edx, 2
inc edx
lea edi, [edi + edx*4]
movdqu xmm0, xmmword [eax]
movdqa xmm4, xmm0
movdqa xmm1, xmm0
psrldq xmm4, 3
punpckldq xmm1, xmm4
movdqa xmm4, xmm0
psrldq xmm0, 9
psrldq xmm4, 6
punpckldq xmm4, xmm0
punpcklqdq xmm1, xmm4
pand xmm1, xmm2
movdqa xmm0, xmm1
pslld xmm0, 0x10
pand xmm0, xmm3
pcmpeqb xmm0, xmm2
pxor xmm0, xmm3
por xmm0, xmm1
movdqu xmmword [ecx], xmm0
add eax, 0xc
add ecx, 0x10
dec edx
jne 0x6caba4
add dword [ebp + 0x14], 4
add dword [esp + 0x1c], 4
cmp edi, dword [ebp + 0x14]
jge 0x6cac31
mov esi, dword [ebp + 0x14]
sub esi, edi
cmp byte [eax + 1], 0
sete dl
dec dl
mov byte [ecx + 3], dl
mov dl, byte [eax]
mov byte [ecx], dl
mov dl, byte [eax + 1]
mov byte [ecx + 1], dl
mov dl, byte [eax + 2]
mov byte [ecx + 2], dl
add eax, 3
add ecx, 4
dec esi
jne 0x6cac0c
mov eax, dword [esp + 0x28]
add dword [esp + 0x18], eax
mov eax, dword [esp + 0x20]
add dword [esp + 0x14], eax
dec dword [esp + 0x24]
jne 0x6cab80
jmp 0x6cb0b8
cmp edi, dword [ebp + 0x18]
jge 0x6cb0b8
mov edi, dword [ebp + 0x18]
sub edi, dword [ebp + 0x10]
mov eax, dword [ebp + 0x14]
cmp dword [ebp + 0xc], eax
jge 0x6cac9d
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
mov esi, dword [ebp + 0x14]
inc ecx
add eax, 3
sub esi, dword [ebp + 0xc]
cmp byte [ecx], 0
sete dl
dec dl
mov byte [eax], dl
mov dl, byte [ecx - 1]
mov byte [eax - 3], dl
mov dl, byte [ecx]
mov byte [eax - 2], dl
mov dl, byte [ecx + 1]
mov byte [eax - 1], dl
add eax, 4
add ecx, 3
dec esi
jne 0x6cac79
mov eax, dword [esp + 0x28]
add dword [esp + 0x18], eax
mov eax, dword [esp + 0x20]
add dword [esp + 0x14], eax
dec edi
jne 0x6cac5f
jmp 0x6cb0b8
movzx ecx, byte [ebp + 0xb]
mov eax, ecx
shl eax, 8
cdq
mov esi, 0xff
idiv esi
movzx edx, byte [ebp + 0xa]
movzx esi, byte [ebp + 9]
shl ecx, 8
or ecx, edx
shl ecx, 8
or ecx, esi
shl ecx, 8
mov dword [esp + 0x2c], eax
movzx eax, byte [ebp + 8]
or ecx, eax
mov eax, esi
imul eax, eax, 7
add eax, edx
cdq
and edx, 7
add eax, edx
sar eax, 3
mov dword [esp + 0x44], ecx
mov ecx, dword [ebp + 0x18]
add eax, 0x100
cmp dword [ebp + 0x10], ecx
mov dword [esp + 0x4c], eax
jge 0x6cb0b8
mov esi, ecx
sub esi, dword [ebp + 0x10]
mov dword [esp + 0x3c], esi
mov edx, dword [ebp + 0xc]
cmp edx, dword [ebp + 0x14]
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x34], ecx
jge 0x6cae5e
mov edi, dword [esp + 0x18]
imul edx, edx, 3
lea edx, [edx + edi + 1]
mov dword [esp + 0x24], edx
mov edx, dword [ebp + 0x14]
sub edx, dword [ebp + 0xc]
mov dword [esp + 0x38], edx
mov edx, dword [esp + 0x24]
movzx edi, byte [edx]
mov edx, 0xff
sub edx, edi
imul edx, dword [esp + 0x2c]
shr edx, 8
test edx, edx
je 0x6cae48
cmp edx, 0xff
jne 0x6cad73
mov edx, dword [esp + 0x44]
jmp 0x6cae46
mov ecx, dword [ecx]
imul edx, eax
shr edx, 8
cmp edx, 0xff
mov dword [esp + 0x1c], 0xff
jg 0x6cad8f
mov dword [esp + 0x1c], edx
mov ebx, dword [esp + 0x1c]
movzx edx, byte [ebp + 0xa]
movzx esi, byte [ebp + 9]
imul edx, ebx
movzx edi, byte [ebp + 8]
imul esi, ebx
imul edi, ebx
mov eax, 0x100
sub eax, ebx
mov ebx, edx
sar ebx, 8
lea edx, [ebx + edx + 1]
mov ebx, ecx
shr ebx, 0x10
and ebx, 0xff
imul ebx, eax
and ebx, 0xffffff00
sar edx, 8
shl edx, 8
add edx, ebx
mov ebx, esi
sar ebx, 8
lea esi, [ebx + esi + 1]
mov ebx, ecx
shr ebx, 8
and ebx, 0xff
imul ebx, eax
sar esi, 8
mov dword [esp + 0x5c], eax
shl esi, 8
mov eax, 0xffffff00
and ebx, eax
add esi, ebx
shl edx, 8
or edx, esi
mov esi, edi
mov ebx, dword [esp + 0x48]
sar esi, 8
lea esi, [esi + edi + 1]
movzx edi, cl
imul edi, dword [esp + 0x5c]
shr ecx, 0x18
imul ecx, dword [esp + 0x5c]
and ecx, eax
mov eax, dword [esp + 0x1c]
sar esi, 8
shl eax, 8
shr edi, 8
add ecx, eax
mov eax, dword [esp + 0x4c]
add esi, edi
or edx, esi
mov esi, dword [esp + 0x3c]
shl ecx, 0x10
or edx, ecx
mov ecx, dword [esp + 0x34]
mov dword [ecx], edx
add dword [esp + 0x24], 3
add ecx, 4
dec dword [esp + 0x38]
mov dword [esp + 0x34], ecx
jne 0x6cad44
mov ecx, dword [esp + 0x28]
add dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x20]
add dword [esp + 0x14], ecx
dec esi
mov dword [esp + 0x3c], esi
jne 0x6cad17
jmp 0x6cb0b8
mov eax, dword [ecx]
call dword [eax + 0x14]
mov edi, dword [ebp + 0x10]
test al, al
je 0x6caea2
mov eax, dword [ebx + 8]
mov eax, dword [eax + 4]
sub eax, edi
dec eax
imul eax, dword [esp + 0x20]
add eax, dword [esp + 0x14]
neg dword [esp + 0x20]
jmp 0x6caead
mov eax, dword [esp + 0x20]
imul eax, edi
add eax, dword [esp + 0x14]
lea eax, [eax + esi*2]
mov dword [esp + 0x14], eax
movzx eax, byte [ebp + 0xb]
shl eax, 8
cdq
mov ecx, 0xff
idiv ecx
mov dword [esp + 0x48], eax
xor eax, eax
mov word [esp + 0x52], ax
mov word [esp + 0x50], ax
movzx ax, byte [ebp + 9]
shl ax, 8
mov word [esp + 0x4e], ax
movzx ax, byte [ebp + 8]
mov word [esp + 0x4c], ax
mov eax, dword [ebx + 8]
cmp dword [eax + 0xc], 4
lea eax, [esp + 0x4c]
push eax
jne 0x6caf00
call 0x5e7521
jmp 0x6caf05
call 0x5e7549
movzx eax, ax
mov dword [esp + 0x40], eax
movzx eax, byte [ebp + 9]
imul eax, eax, 7
pop ecx
movzx ecx, byte [ebp + 0xa]
add eax, ecx
cdq
and edx, 7
add eax, edx
sar eax, 3
add eax, 0x100
cmp edi, dword [ebp + 0x18]
mov dword [esp + 0x4c], eax
jge 0x6cb0b8
mov eax, dword [ebp + 0x18]
sub eax, dword [ebp + 0x10]
mov dword [esp + 0x34], eax
mov edx, dword [ebp + 0x14]
cmp dword [ebp + 0xc], edx
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x1c], ecx
jge 0x6cb09d
mov eax, dword [ebp + 0xc]
mov edx, dword [esp + 0x18]
imul eax, eax, 3
lea eax, [eax + edx + 1]
mov dword [esp + 0x24], eax
mov eax, dword [ebp + 0x14]
sub eax, dword [ebp + 0xc]
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x24]
movzx eax, byte [eax]
mov esi, 0xff
sub esi, eax
imul esi, dword [esp + 0x48]
shr esi, 8
test esi, esi
je 0x6cb084
cmp esi, 0xff
jne 0x6caf9f
mov ax, word [esp + 0x3c]
jmp 0x6cb081
mov eax, dword [ebx + 8]
mov eax, dword [eax + 0xc]
mov dword [esp + 0x44], eax
cmp eax, 4
lea eax, [esp + 0x2c]
push eax
movzx eax, word [ecx]
push eax
jne 0x6cafbe
call 0x5e7571
jmp 0x6cafc3
call 0x5e75b9
imul esi, dword [esp + 0x54]
shr esi, 8
cmp esi, 0xff
pop ecx
pop ecx
mov edx, 0xff
jg 0x6cafdc
mov edx, esi
movzx eax, word [esp + 0x32]
movzx esi, word [esp + 0x30]
mov ecx, 0x100
sub ecx, edx
imul eax, ecx
imul esi, ecx
sar eax, 8
add eax, edx
mov word [esp + 0x32], ax
movzx eax, byte [ebp + 0xa]
imul eax, edx
mov edi, eax
sar edi, 8
lea eax, [edi + eax + 1]
sar eax, 8
sar esi, 8
add esi, eax
movzx eax, byte [ebp + 9]
imul eax, edx
mov word [esp + 0x30], si
movzx esi, word [esp + 0x2e]
imul esi, ecx
mov edi, eax
sar edi, 8
lea eax, [edi + eax + 1]
sar eax, 8
sar esi, 8
add esi, eax
movzx eax, byte [ebp + 8]
imul eax, edx
movzx edx, word [esp + 0x2c]
imul edx, ecx
mov ecx, eax
sar ecx, 8
lea eax, [ecx + eax + 1]
sar eax, 8
sar edx, 8
add edx, eax
cmp dword [esp + 0x44], 4
lea eax, [esp + 0x2c]
mov word [esp + 0x2e], si
mov word [esp + 0x2c], dx
push eax
jne 0x6cb077
call 0x5e7521
jmp 0x6cb07c
call 0x5e7549
pop ecx
mov ecx, dword [esp + 0x1c]
mov word [ecx], ax
add dword [esp + 0x24], 3
inc ecx
inc ecx
dec dword [esp + 0x38]
mov dword [esp + 0x1c], ecx
jne 0x6caf6f
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x28]
add dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x20]
add dword [esp + 0x14], ecx
dec eax
mov dword [esp + 0x34], eax
jne 0x6caf3f
mov eax, dword [esp + 0x40]
mov ecx, dword [eax + 0xb1c]
mov eax, dword [ecx]
call dword [eax + 0x30]
lea esi, [ebx + 0xe8]
push dword [esi]
push dword [ebx + 0x2c]
call dword [0x1030407c]
and dword [esi], 0
cmp dword [ebx + 0xc], 0x7ffffff
je 0x6cb13a
mov ecx, dword [ebx + 8]
mov eax, dword [ecx]
call dword [eax + 0x44]
test eax, eax
je 0x6cb13a
mov ecx, dword [ebp + 0xc]
movzx esi, byte [ebp + 0xa]
mov dword [esp + 0x4c], ecx
mov ecx, dword [ebp + 0x14]
mov dword [esp + 0x50], ecx
mov ecx, dword [ebp + 0x10]
mov dword [esp + 0x54], ecx
mov ecx, dword [ebp + 0x18]
mov dword [esp + 0x58], ecx
movzx ecx, byte [ebp + 0xb]
mov edx, dword [eax]
shl ecx, 8
or ecx, esi
movzx esi, byte [ebp + 9]
shl ecx, 8
or ecx, esi
movzx esi, byte [ebp + 8]
shl ecx, 8
or ecx, esi
push 1
push ecx
lea ecx, [esp + 0x54]
push ecx
mov ecx, eax
call dword [edx + 0x2c]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14