Function at 0x679b33
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x14
call fcn.00661273
mov eax, dword [esp + 0x28]
push ebx
push ebp
xor ecx, ecx
cmp dword [esp + 0x34], ecx
push esi
push edi
je 0x679db7
mov ch, byte [eax + 1]
movzx edx, byte [eax]
add eax, 1
mov dword [esp + 0x14], eax
add eax, 1
or edx, ecx
movzx ecx, byte [eax]
shl ecx, 0x10
or edx, ecx
movzx ecx, byte [eax + 1]
add eax, 1
shl ecx, 0x18
xor ebx, ebx
add eax, 1
mov bh, byte [eax + 1]
or edx, ecx
movzx ecx, byte [eax]
add eax, 1
mov esi, dword [esp + 0x2c]
mov edi, dword [esp + 0x28]
or ecx, ebx
xor ebx, ebx
mov bh, byte [eax + 2]
add eax, 1
mov bl, byte [eax]
shl ebx, 0x10
or ecx, ebx
mov ebx, dword [esp + 0x30]
add ebx, 0xfffffff8
mov dword [esp + 0x3c], ecx
js 0x679c95
lea ebp, [ebx + 8]
shr ebp, 3
mov eax, ebp
neg eax
lea ecx, [ebx + eax*8]
mov dword [esp + 0x30], ecx
lea ecx, [ecx]
movzx eax, byte [edi]
xor ecx, ecx
mov ch, byte [edi + 1]
add edi, 1
add edi, 1
add edi, 1
add edi, 1
xor ebx, ebx
mov bh, byte [edi + 1]
or eax, ecx
movzx ecx, byte [edi - 2]
shl ecx, 0x10
or eax, ecx
movzx ecx, byte [edi - 1]
shl ecx, 0x18
or eax, ecx
movzx ecx, byte [edi]
add edi, 1
or ecx, ebx
movzx ebx, byte [edi + 1]
add edi, 1
shl ebx, 0x10
or ecx, ebx
movzx ebx, byte [edi + 1]
add edi, 1
xor eax, edx
mov edx, dword [esp + 0x34]
shl ebx, 0x18
or ecx, ebx
xor ecx, dword [esp + 0x3c]
push 1
mov dword [esp + 0x20], eax
push edx
lea eax, [esp + 0x24]
push eax
add edi, 1
mov dword [esp + 0x2c], ecx
call fcn.00679613
mov eax, dword [esp + 0x28]
mov byte [esi], al
add esi, 1
mov ecx, eax
shr ecx, 8
mov byte [esi], cl
add esi, 1
mov ecx, eax
add esi, 1
shr ecx, 0x10
mov byte [esi - 1], cl
mov edx, eax
shr eax, 0x18
mov byte [esi], al
mov eax, dword [esp + 0x2c]
add esi, 1
mov byte [esi], al
add esi, 1
mov ebx, eax
shr ebx, 8
mov byte [esi], bl
add esi, 1
mov ebx, eax
shr ebx, 0x10
mov byte [esi], bl
mov ecx, eax
add esi, 1
shr eax, 0x18
mov byte [esi], al
add esp, 0xc
add esi, 1
sub ebp, 1
mov dword [esp + 0x3c], ecx
jne 0x679bc3
mov ebx, dword [esp + 0x30]
cmp ebx, 0xfffffff8
je 0x679d6d
lea ebp, [edi + ebx + 8]
add ebx, 7
xor eax, eax
xor edi, edi
cmp ebx, 7
ja 0x679d04
jmp dword [ebx*4 + 0x1002ebe8]
xor edi, edx
mov edx, dword [esp + 0x34]
xor eax, ecx
push 1
mov dword [esp + 0x24], eax
push edx
lea eax, [esp + 0x24]
push eax
mov dword [esp + 0x28], edi
call fcn.00679613
mov eax, dword [esp + 0x28]
mov byte [esi], al
add esi, 1
mov ecx, eax
shr ecx, 8
mov byte [esi], cl
add esi, 1
mov ecx, eax
shr ecx, 0x10
mov byte [esi], cl
add esi, 1
mov edx, eax
shr eax, 0x18
mov byte [esi], al
mov eax, dword [esp + 0x2c]
add esi, 1
mov byte [esi], al
mov ebx, eax
shr ebx, 8
add esi, 1
mov byte [esi], bl
mov ebx, eax
add esi, 1
shr ebx, 0x10
add esp, 0xc
mov ecx, eax
shr eax, 0x18
mov byte [esi], bl
mov byte [esi + 1], al
mov eax, dword [esp + 0x38]
mov esi, dword [esp + 0x14]
mov byte [eax], dl
mov eax, edx
shr eax, 8
mov byte [esi], al
add esi, 1
mov eax, edx
shr eax, 0x10
mov byte [esi], al
add esi, 1
shr edx, 0x18
mov byte [esi], dl
add esi, 1
mov byte [esi], cl
add esi, 1
mov edx, ecx
shr edx, 8
mov byte [esi], dl
add esi, 1
mov eax, ecx
shr eax, 0x10
pop edi
mov byte [esi], al
shr ecx, 0x18
mov byte [esi + 1], cl
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
mov ch, byte [eax + 1]
movzx ebx, byte [eax]
lea esi, [eax + 1]
movzx edx, byte [esi + 1]
mov dword [esp + 0x14], esi
add esi, 1
movzx eax, byte [esi + 1]
add esi, 1
or ebx, ecx
movzx ecx, byte [esi + 1]
add esi, 1
shl edx, 0x10
shl eax, 0x18
or ebx, edx
mov edi, dword [esp + 0x2c]
or ebx, eax
add esi, 1
xor edx, edx
mov dh, byte [esi]
xor eax, eax
mov ah, byte [esi + 2]
add esi, 1
or ecx, edx
mov al, byte [esi]
mov esi, dword [esp + 0x28]
shl eax, 0x10
or ecx, eax
mov eax, dword [esp + 0x30]
add eax, 0xfffffff8
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x30], eax
js 0x679f0f
lea ecx, [eax + 8]
shr ecx, 3
mov dword [esp + 0x18], ecx
neg ecx
lea ecx, [eax + ecx*8]
mov dword [esp + 0x30], ecx
lea ebx, [ebx]
movzx ebp, byte [esi]
add esi, 1
movzx eax, byte [esi + 1]
xor edx, edx
mov dh, byte [esi]
add esi, 1
movzx ecx, byte [esi + 1]
add esi, 1
shl eax, 0x10
or ebp, edx
or ebp, eax
movzx eax, byte [esi + 1]
add esi, 1
xor edx, edx
mov dh, byte [esi + 1]
add esi, 1
shl ecx, 0x18
or ebp, ecx
movzx ecx, byte [esi + 1]
add esi, 1
or eax, edx
movzx edx, byte [esi + 1]
add esi, 1
shl ecx, 0x10
or eax, ecx
shl edx, 0x18
or eax, edx
mov dword [esp + 0x10], eax
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x34]
push 0
push eax
lea ecx, [esp + 0x24]
push ecx
mov dword [esp + 0x28], ebp
add esi, 1
call fcn.00679613
mov ecx, dword [esp + 0x48]
xor ecx, dword [esp + 0x2c]
mov eax, ebx
xor eax, dword [esp + 0x28]
add edi, 1
mov byte [edi - 1], al
mov edx, eax
shr edx, 8
mov byte [edi], dl
add edi, 1
mov edx, eax
shr edx, 0x10
mov byte [edi], dl
add edi, 1
shr eax, 0x18
mov byte [edi], al
add edi, 1
mov byte [edi], cl
add edi, 1
mov eax, ecx
shr eax, 8
mov byte [edi], al
mov eax, dword [esp + 0x1c]
add edi, 1
mov edx, ecx
shr edx, 0x10
mov byte [edi], dl
add edi, 1
shr ecx, 0x18
mov byte [edi], cl
add esp, 0xc
add edi, 1
sub dword [esp + 0x18], 1
mov ebx, ebp
mov dword [esp + 0x3c], eax
jne 0x679e33
mov ecx, eax
mov eax, dword [esp + 0x30]
cmp eax, 0xfffffff8
je 0x679fef
movzx ebp, byte [esi]
add esi, 1
movzx edx, byte [esi + 1]
xor ecx, ecx
mov ch, byte [esi]
add esi, 1
movzx eax, byte [esi + 1]
add esi, 1
shl edx, 0x10
or ebp, ecx
or ebp, edx
shl eax, 0x18
or ebp, eax
movzx eax, byte [esi + 1]
add esi, 1
xor ecx, ecx
mov ch, byte [esi + 1]
add esi, 1
xor edx, edx
mov dh, byte [esi + 2]
add esi, 1
push 0
mov dword [esp + 0x20], ebp
or eax, ecx
lea ecx, [esp + 0x20]
mov dl, byte [esi]
shl edx, 0x10
or eax, edx
mov dword [esp + 0x14], eax
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x38]
push eax
push ecx
call fcn.00679613
mov ecx, dword [esp + 0x3c]
mov eax, dword [esp + 0x48]
xor ebx, dword [esp + 0x28]
xor eax, dword [esp + 0x2c]
lea edi, [edi + ecx + 8]
add ecx, 7
add esp, 0xc
cmp ecx, 7
ja 0x679fe3
jmp dword [ecx*4 + 0x1002ec08]
mov eax, dword [esp + 0x10]
mov ebx, ebp
mov dword [esp + 0x3c], eax
mov ecx, eax
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x14]
mov byte [edx], bl
mov edx, ebx
shr edx, 8
mov byte [eax], dl
add eax, 1
mov edx, ebx
shr edx, 0x10
mov byte [eax], dl
add eax, 1
shr ebx, 0x18
mov byte [eax], bl
add eax, 1
mov byte [eax], cl
mov edx, ecx
shr edx, 8
add eax, 1
mov byte [eax], dl
pop edi
mov edx, ecx
add eax, 1
pop esi
shr edx, 0x10
shr ecx, 0x18
pop ebp
mov byte [eax], dl
mov byte [eax + 1], cl
pop ebx
add esp, 0x14
ret