Function at 0x691a40
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x3c
call fcn.0063cb10
mov eax, dword [0x906648]
xor eax, esp
mov dword [esp + 0x38], eax
cmp dword [esi + 0x10], 0
push ebp
mov ebp, dword [esp + 0x44]
mov dword [esp + 4], ebp
je 0x691a8e
push 0x141
push 0xa3e138
push 0x67
push 0x66
push 0x24
call fcn.00694210
add esp, 0x14
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x38]
xor ecx, esp
call fcn.0063c972
add esp, 0x3c
ret
cmp dword [esi + 4], 0
jne 0x691abe
push 0x146
push 0xa3e138
push 0x66
push 0x66
push 0x24
call fcn.00694210
add esp, 0x14
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x38]
xor ecx, esp
call fcn.0063c972
add esp, 0x3c
ret
cmp dword [esi], 0
jne 0x691aed
push 0x14b
push 0xa3e138
push 0x64
push 0x66
push 0x24
call fcn.00694210
add esp, 0x14
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x38]
xor ecx, esp
call fcn.0063c972
add esp, 0x3c
ret
push ebx
mov ebx, 0xfffffedf
sub ebx, esi
push edi
mov dword [esp + 0x10], ebx
jmp 0x691b04
mov ebx, dword [esp + 0x10]
cmp dword [esi + 8], 0
jne 0x691b1d
lea eax, [esi + 0x14]
push eax
lea eax, [esi + 0x130]
push eax
call fcn.006919c0
add esp, 8
lea eax, [esi + 0x18]
push eax
lea ecx, [esp + 0x38]
push ecx
lea eax, [esi + 0x130]
push eax
call fcn.006a0ac0
add esp, 0xc
lea eax, [esi + 0x121]
xor ecx, ecx
lea ecx, [ecx]
lea edi, [ebx + eax]
movzx edx, byte [esp + edi + 0x34]
xor dl, byte [eax - 1]
add eax, 4
mov byte [esp + edi + 0x24], dl
movzx edx, byte [esp + ecx + 0x35]
xor dl, byte [eax - 4]
add ecx, 4
mov byte [esp + ecx + 0x21], dl
movzx edx, byte [esp + ecx + 0x32]
xor dl, byte [eax - 3]
mov byte [esp + ecx + 0x22], dl
movzx edx, byte [esp + ecx + 0x33]
xor dl, byte [eax - 2]
mov byte [esp + ecx + 0x23], dl
lea edx, [ebx + eax]
cmp edx, 0x10
jl 0x691b40
lea eax, [esi + 0x18]
push eax
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x2c]
push ecx
call fcn.006a0ac0
add esp, 0xc
xor eax, eax
lea esp, [esp]
movzx edx, byte [esp + eax + 0x14]
movzx ecx, byte [esp + eax + 0x15]
xor dl, byte [esp + eax + 0x34]
xor cl, byte [esp + eax + 0x35]
mov byte [esp + eax + 0x24], dl
movzx edx, byte [esp + eax + 0x16]
xor dl, byte [esp + eax + 0x36]
mov byte [esp + eax + 0x25], cl
movzx ecx, byte [esp + eax + 0x17]
xor cl, byte [esp + eax + 0x37]
mov byte [esp + eax + 0x26], dl
mov byte [esp + eax + 0x27], cl
add eax, 4
cmp eax, 0x10
jl 0x691ba0
lea eax, [esi + 0x18]
push eax
lea eax, [esi + 0x120]
push eax
lea edx, [esp + 0x2c]
push edx
call fcn.006a0ac0
mov edx, dword [esi + 0xc]
mov ebx, dword [esp + 0x2c]
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x24]
mov edi, dword [esp + 0x20]
add esp, 0xc
test edx, edx
je 0x691c64
cmp dword [0x950e70], 0
je 0x691c2c
mov dword [esi + 0x140], edi
mov dword [esi + 0x144], ecx
mov dword [esi + 0x148], eax
mov dword [esi + 0x14c], ebx
lea eax, [esi + 0x140]
lea edi, [esp + 0x14]
mov ecx, 0x10
sub edi, eax
lea ecx, [ecx]
cmp ecx, 4
jb 0x691cb4
mov ebp, dword [edi + eax]
cmp ebp, dword [eax]
jne 0x691c54
sub ecx, 4
add eax, 4
jmp 0x691c40
mov eax, dword [esp + 0x1c]
mov ebp, dword [esp + 0xc]
mov edi, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov dword [esi + 0x140], edi
mov dword [esi + 0x144], ecx
mov dword [esi + 0x148], eax
mov dword [esi + 0x14c], ebx
test edx, edx
jne 0x691c90
mov dword [esi + 0xc], 1
cmp dword [esi + 8], edx
je 0x691b00
cmp dword [esp + 0x50], 0x10
jbe 0x691cec
mov dword [ebp], edi
mov dword [ebp + 4], ecx
mov dword [ebp + 8], eax
mov dword [ebp + 0xc], ebx
add ebp, 0x10
sub dword [esp + 0x50], 0x10
mov dword [esp + 0xc], ebp
jmp 0x691b00
push 0x160
push 0xa3e138
push 0x6a
push 0x66
push 0x24
call fcn.00694210
add esp, 0x14
mov dword [esi + 0x10], 1
call fcn.00693850
pop edi
pop ebx
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x38]
xor ecx, esp
call fcn.0063c972
add esp, 0x3c
ret
mov eax, dword [esp + 0x50]
push eax
lea ecx, [esp + 0x18]
push ecx
push ebp
call sub.VCRUNTIME140.dll_memcpy
mov ecx, dword [esp + 0x50]
add esp, 0xc
pop edi
pop ebx
pop ebp
xor ecx, esp
mov eax, 1
call fcn.0063c972
add esp, 0x3c
ret