Function at 0x140008694
Capabilities:
Encode data using xor
Write file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 0x18], r8
mov qword [rax + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x80
mov qword [rbp - 0x30], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov r13, rcx
mov byte [rbp - 0x50], 0
lea rcx, [rbp - 0x28]
call fcn.14000454c
nop
add r13, 0x1718
mov qword [rbp - 0x40], r13
lea rax, [rbp - 0x50]
mov qword [rsp + 0x20], rax
lea rdx, [rbp - 0x28]
mov rcx, r13
call fcn.14000d704
test al, al
je 0x140008b00
mov rcx, r13
call fcn.14000d428
test al, al
je 0x140008b00
mov eax, dword [0x140047988]
mov ebx, 1
test bl, al
jne 0x140008746
or eax, ebx
mov dword [0x140047988], eax
lea rdx, str.FILEINSTALL
lea rcx, [0x140047990]
call fcn.14000454c
lea rcx, [0x14002c2f0]
call fcn.140017ac8
nop
mov eax, dword [0x140047988]
test al, 2
jne 0x140008779
or eax, 2
mov dword [0x140047988], eax
lea rdx, str.SCRIPTFULLPATH
lea rcx, [0x1400479b0]
call fcn.14000454c
lea rcx, [0x14002c2e4]
call fcn.140017ac8
nop
mov eax, dword [0x140047988]
test al, 4
jne 0x1400087a3
or eax, 4
mov dword [0x140047988], eax
mov rcx, qword [r13 + 0x30]
mov rax, qword [rcx]
mov rdx, qword [0x140047990]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov dword [0x1400479d0], eax
mov eax, dword [0x140047988]
test al, 8
jne 0x1400087d0
or eax, 8
mov dword [0x140047988], eax
lea rdx, str.___AUTOIT_SCRIPT_SOURCE___
lea rcx, [0x1400479d8]
call fcn.14000454c
lea rcx, [0x14002c2d8]
call fcn.140017ac8
nop
mov r14d, ebx
cmp r14d, dword [r13 + 0x48]
jg 0x1400087ee
test r14d, r14d
jle 0x1400087ee
movsxd rdi, r14d
shl rdi, 5
add rdi, qword [r13 + 0xc0]
jmp 0x1400087f0
xor edi, edi
add r14d, ebx
test rdi, rdi
je 0x14000889c
mov r12, qword [rdi + 0x10]
xor esi, esi
test r12, r12
je 0x1400087d3
mov rax, qword [rdi + 8]
mov rcx, qword [rax + rsi*8]
cmp word [rcx + 8], bx
jne 0x14000881f
mov eax, dword [0x1400479d0]
cmp dword [rcx], eax
je 0x14000883c
cmp word [rcx + 8], 0x31
jne 0x14000888b
mov rax, qword [rcx]
lea rdx, [0x140047990]
mov rcx, qword [rax]
call fcn.14000ac80
test al, al
je 0x14000888b
mov r15, qword [rdi + 8]
mov rax, qword [r15 + rsi*8 + 8]
cmp word [rax + 8], 0x47
jne 0x14000888b
mov r15, qword [r15 + rsi*8 + 0x10]
cmp word [r15 + 8], 0x32
jne 0x14000888b
mov rax, qword [r15]
lea rdx, [0x1400479b0]
mov rcx, qword [rax]
call fcn.14000ac80
test al, al
je 0x14000888b
mov edx, 0x36
mov rcx, r15
call fcn.140010668
lea rdx, [0x1400479d8]
mov rcx, r15
call fcn.1400105e8
add rsi, rbx
cmp rsi, r12
jb 0x140008807
jmp 0x1400087d3
lea rdx, [0x1400370d4]
mov rcx, qword [rbp + 0x50]
call fcn.140016604
mov rsi, rax
test rax, rax
jne 0x1400088c7
mov edx, 0xa036
mov rcx, qword [rbp + 0x40]
call fcn.140004c40
jmp 0x140008b00
mov r12, qword [rbp + 0x40]
mov eax, dword [r12 + 0x1760]
mov dword [rbp - 0x44], eax
mov r9, rsi
mov r8d, 4
mov rdx, rbx
lea rcx, [rbp - 0x44]
call fcn.140016f90
mov eax, dword [0x140047988]
mov ecx, 0x10
test cl, al
jne 0x140008928
or eax, ecx
mov dword [0x140047988], eax
lea rdx, str.INPUTBOX
lea rcx, [0x1400479f8]
call fcn.14000454c
lea rcx, [0x14002c2cc]
call fcn.140017ac8
nop
mov eax, dword [0x140047988]
mov ecx, 0x20
test cl, al
jne 0x140008950
or eax, ecx
mov dword [0x140047988], eax
mov rcx, qword [r13 + 0x30]
mov rax, qword [rcx]
mov rdx, qword [0x1400479f8]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov dword [0x140047a18], eax
mov r15d, ebx
cmp r15d, dword [r13 + 0x48]
jg 0x14000896e
test r15d, r15d
jle 0x14000896e
movsxd rdi, r15d
shl rdi, 5
add rdi, qword [r13 + 0xc0]
jmp 0x140008970
xor edi, edi
add r15d, ebx
mov dword [rbp - 0x48], r15d
test rdi, rdi
je 0x140008af6
mov rax, qword [rdi + 0x10]
xor r14d, r14d
test rax, rax
je 0x140008953
mov r13, rax
lea r15d, [r14 + 0x20]
mov rax, qword [rdi + 8]
mov rcx, qword [rax + r14*8]
mov al, byte [rcx + 8]
mov byte [rbp + 0x58], al
mov r9, rsi
mov r8, rbx
mov rdx, rbx
lea rcx, [rbp + 0x58]
call fcn.140016f90
mov rax, qword [rdi + 8]
mov rcx, qword [rax + r14*8]
cmp word [rcx + 8], 0xf
ja 0x1400089f4
cmp byte [r12 + 0x1808], 0
jne 0x1400089e4
cmp byte [rbp + 0x58], bl
jne 0x1400089e4
mov eax, dword [0x140047a18]
cmp dword [rcx], eax
jne 0x1400089e4
mov byte [r12 + 0x1808], bl
mov rcx, qword [rdi + 8]
mov r8d, 4
mov rcx, qword [rcx + r14*8]
jmp 0x140008a16
movzx eax, word [rcx + 8]
sub ax, 0x10
cmp ax, 0xf
jbe 0x140008a10
movzx eax, word [rcx + 8]
sub ax, r15w
cmp ax, 0xf
ja 0x140008a26
mov r8d, 8
mov rdx, rbx
mov r9, rsi
call fcn.140016f90
jmp 0x140008add
movzx eax, word [rcx + 8]
sub ax, 0x30
cmp ax, 0xf
ja 0x140008add
mov rax, qword [rcx]
mov rcx, qword [rax]
call fcn.140011ab4
mov r12, rax
mov rax, qword [rbp + 0x40]
cmp byte [rax + 0x1808], 0
jne 0x140008a81
cmp byte [rbp + 0x58], 0x31
jne 0x140008a81
mov rcx, qword [rdi + 8]
mov rdx, qword [rcx + r14*8]
mov rcx, qword [rdx]
lea rdx, [0x1400479f8]
mov rcx, qword [rcx]
call fcn.14000ac80
test al, al
je 0x140008a81
mov rax, qword [rbp + 0x40]
mov byte [rax + 0x1808], bl
mov rcx, r12
call fcn.1400165e8
mov dword [rbp - 0x4c], eax
mov r9, rsi
mov r8d, 4
mov rdx, rbx
lea rcx, [rbp - 0x4c]
call fcn.140016f90
xor edx, edx
mov ecx, dword [rbp - 0x4c]
test ecx, ecx
jle 0x140008abd
mov rax, r12
xor word [rax], cx
add edx, ebx
lea rax, [rax + 2]
mov ecx, dword [rbp - 0x4c]
cmp edx, ecx
jl 0x140008aad
lea eax, [rcx + rcx]
movsxd r8, eax
mov r9, rsi
mov rdx, rbx
mov rcx, r12
call fcn.140016f90
mov rcx, r12
call fcn.140017d1c
mov r12, qword [rbp + 0x40]
add r14, rbx
cmp r14, r13
jb 0x140008993
mov r15d, dword [rbp - 0x48]
mov r13, qword [rbp - 0x40]
jmp 0x140008953
mov rcx, rsi
call fcn.14001676c
jmp 0x140008b02
xor bl, bl
lea rcx, [rbp - 0x28]
call fcn.1400016b0
mov al, bl
mov rbx, qword [rsp + 0xc8]
add rsp, 0x80
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret