Function at 0x140012640
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x208]
sub rsp, 0x2e0
mov qword [rbp - 0x28], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x1400971b0]
xor rax, rsp
mov qword [rbp + 0x1d0], rax
mov r13, rcx
lea rcx, [0x14009cca0]
cmp qword [0x14009ccb8], 0x10
cmovae rcx, qword [0x14009cca0]
xor edx, edx
call qword [sym.imp.USER32.dll_FindWindowA]
xor ebx, ebx
test rax, rax
je 0x1400126af
xor eax, eax
jmp 0x140012ebf
movdqa xmm0, xmmword [0x140085cc0]
movdqu xmmword [rbp + 0x190], xmm0
mov dword [rbp + 0xb0], 0xe93b68a8
mov word [rbp + 0xb4], 0xc724
mov byte [rbp + 0xb6], 0xaf
mov edx, 4
mov rax, qword gs:[0x58]
mov rcx, qword [rax]
mov eax, dword [rdx + rcx]
cmp dword [0x14009ca60], eax
jle 0x140012745
lea rcx, [0x14009ca60]
call fcn.14004a96c
cmp dword [0x14009ca60], 0xffffffff
jne 0x140012745
mov word [0x14009c966], 0x1af
mov eax, dword [rbp + 0xb0]
mov dword [0x14009c960], eax
movzx eax, word [rbp + 0xb4]
mov word [0x14009c964], ax
lea rcx, [0x14006ce5c]
call fcn.14004b0e0
lea rcx, [0x14009ca60]
call fcn.14004a90c
lea rdi, [0x14009c960]
cmp byte [0x14009c967], bl
je 0x14001277e
mov rdx, rbx
mov cl, dl
and cl, 7
shl cl, 3
movabs rax, 0xdfafb5419f490ddb
shr rax, cl
xor byte [rdx + rdi], al
inc rdx
cmp rdx, 7
jb 0x140012757
mov byte [0x14009c967], bl
call fcn.140012314
cmp qword [rax + 0x50], rbx
jne 0x140012792
call fcn.140012314
mov qword [rax + 0x50], rbx
call fcn.140012314
lea rdx, [r13 + 0x40]
mov rcx, rax
call fcn.140005cc8
mov word [rsp + 0x38], ax
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], 0x40100
mov dword [rsp + 0x20], 0x6cf0000
mov r9, rdi
lea r8, [rbp + 0x190]
mov rcx, r13
call fcn.14001b228
mov r14d, 3
mov ecx, 0x20
call fcn.14004ad38
mov r15, rax
mov qword [rbp - 0x20], rax
mov dword [rax + 8], 1
mov dword [rax + 0xc], 1
lea rax, vtable.std::_Ref_count_obj_class_std::thread_.0
mov qword [r15], rax
lea r12, [r15 + 0x10]
mov ecx, 8
call fcn.14004ad38
mov rdi, rax
mov qword [rax], r13
mov qword [rbp - 0x30], rax
xor edx, edx
lea r8d, [rdx + 0x28]
lea rcx, [rbp + 0xc8]
call fcn.14004cad0
lea rcx, [rbp + 0xd0]
call fcn.14002adac
test eax, eax
je 0x14001283f
mov ecx, eax
call fcn.14002b06c
xor eax, eax
mov qword [rbp + 0x100], rax
mov byte [rbp + 0x100], 1
mov rax, qword [rbp + 0xd0]
mov qword [rbp + 0x108], rax
mov edx, 1
lea rcx, [rbp + 0xd8]
call fcn.14002bc94
test eax, eax
je 0x140012879
mov ecx, eax
call fcn.14002b06c
xor eax, eax
mov qword [rbp + 0xf0], rax
mov byte [rbp + 0xf0], 1
mov rcx, qword [rbp + 0xd8]
mov qword [rbp + 0xf8], rcx
mov byte [rbp + 0xe0], bl
call fcn.14002bd18
test eax, eax
je 0x1400128ad
mov ecx, eax
call fcn.14002b06c
mov byte [rbp + 0xf0], bl
mov byte [rbp + 0x100], bl
lea rax, vtable.std::_LaunchPad_class_std::unique_ptr_class_std::tuple_class__lambda_026f8825ea9ec2c4f8537b48c0e1fcae____struct_std::default_delete_class_std::tuple_class__lambda_026f8825ea9ec2c4f8537b48c0e1fcae_____.0
mov qword [rbp + 0xc8], rax
mov qword [rbp - 0x30], rbx
mov qword [rbp + 0xe8], rdi
lea r8, [rbp + 0xc8]
lea rdx, [0x14000845c]
mov rcx, r12
call fcn.14002c22c
mov ecx, 1
cmp eax, 4
cmovne ecx, eax
test ecx, ecx
je 0x140012917
jmp 0x140012912
mov rdx, qword [rbp + 0xd8]
mov rcx, qword [rbp + 0xd0]
call fcn.14002ae10
test eax, eax
je 0x140012917
mov ecx, eax
call fcn.14002b06c
cmp byte [rbp + 0xe0], bl
je 0x1400128f9
mov rcx, qword [rbp + 0xe8]
test rcx, rcx
je 0x140012936
mov edx, 8
call fcn.14004a774
nop
mov rsi, qword [rbp + 0xd0]
mov rdi, qword [rbp + 0xd8]
mov rcx, rdi
call fcn.14002bd3c
test eax, eax
je 0x140012957
mov ecx, eax
call fcn.14002b06c
mov rcx, rdi
call fcn.14002bc54
mov rcx, rsi
call fcn.14002ad74
nop
mov qword [rbp + 0xb8], r12
mov qword [rbp + 0xc0], r15
lea rdx, [rbp + 0xb8]
lea rcx, [r13 + 0x1f8]
call fcn.140013b0c
nop
mov rcx, qword [rbp + 0xc0]
test rcx, rcx
je 0x1400129cd
or eax, 0xffffffff
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x1400129cd
mov rdi, qword [rbp + 0xc0]
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax]
or eax, 0xffffffff
lock xadd dword [rdi + 0xc], eax
cmp eax, 1
jne 0x1400129cd
mov rcx, qword [rbp + 0xc0]
mov rax, qword [rcx]
call qword [rax + 8]
nop
sub r14, 1
jne 0x1400127d5
lea rax, vtable.std::_Func_impl_no_alloc_class__lambda_bed558b18fa06c1db326a5cc9e074301___void__struct_HWND______ptr64__class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const____ptr64_.0
mov qword [rbp - 0x10], rax
mov qword [rbp - 8], r13
lea rax, [rbp - 0x10]
mov qword [rbp + 0x28], rax
lea rdi, [r13 + 0x240]
mov qword [rbp - 0x78], rbx
mov rax, qword [vtable.std::_Func_impl_no_alloc_class__lambda_bed558b18fa06c1db326a5cc9e074301___void__struct_HWND______ptr64__class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const____ptr64_.0]
lea rdx, [rsp + 0x50]
lea rcx, [rbp - 0x10]
call rax
mov rcx, rax
mov qword [rbp - 0x78], rax
lea rax, [rsp + 0x50]
cmp rcx, rax
je 0x140012a36
cmp qword [rdi + 0x38], rdi
je 0x140012a36
mov rax, rcx
mov rcx, qword [rdi + 0x38]
mov qword [rbp - 0x78], rcx
mov qword [rdi + 0x38], rax
jmp 0x140012b75
mov r8, rbx
mov qword [rbp + 0x148], rbx
test rcx, rcx
je 0x140012aa1
lea rax, [rsp + 0x50]
cmp rcx, rax
jne 0x140012a90
mov rax, qword [rcx]
lea rdx, [rbp + 0x110]
call qword [rax + 8]
mov r8, rax
mov qword [rbp + 0x148], rax
mov rcx, qword [rbp - 0x78]
test rcx, rcx
je 0x140012a8e
mov rax, qword [rcx]
lea rdx, [rsp + 0x50]
cmp rcx, rdx
setne dl
call qword [rax + 0x20]
mov rcx, rbx
mov qword [rbp - 0x78], rbx
mov r8, qword [rbp + 0x148]
jmp 0x140012aa1
mov r8, rcx
mov qword [rbp + 0x148], rcx
mov rcx, rbx
mov qword [rbp - 0x78], rbx
mov r9, qword [rdi + 0x38]
test r9, r9
je 0x140012af5
mov rcx, r9
cmp r9, rdi
jne 0x140012aed
mov rax, qword [r9]
lea rdx, [rsp + 0x50]
call qword [rax + 8]
mov rcx, rax
mov qword [rbp - 0x78], rax
mov r8, qword [rdi + 0x38]
test r8, r8
je 0x140012ae4
mov rax, qword [r8]
cmp r8, rdi
setne dl
mov rcx, r8
call qword [rax + 0x20]
mov qword [rdi + 0x38], rbx
mov rcx, qword [rbp - 0x78]
mov r8, qword [rbp + 0x148]
jmp 0x140012af5
mov qword [rbp - 0x78], rcx
mov qword [rdi + 0x38], rbx
test r8, r8
je 0x140012b56
lea rax, [rbp + 0x110]
cmp r8, rax
jne 0x140012b48
mov rax, qword [r8]
mov rdx, rdi
mov rcx, r8
call qword [rax + 8]
mov qword [rdi + 0x38], rax
mov r8, qword [rbp + 0x148]
test r8, r8
je 0x140012b42
mov rax, qword [r8]
lea rcx, [rbp + 0x110]
cmp r8, rcx
setne dl
mov rcx, r8
call qword [rax + 0x20]
mov r8, rbx
mov qword [rbp + 0x148], rbx
mov rcx, qword [rbp - 0x78]
jmp 0x140012b56
mov qword [rdi + 0x38], r8
mov r8, rbx
mov qword [rbp + 0x148], rbx
test r8, r8
je 0x140012b75
mov rax, qword [r8]
lea rcx, [rbp + 0x110]
cmp r8, rcx
setne dl
mov rcx, r8
call qword [rax + 0x20]
mov rcx, qword [rbp - 0x78]
test rcx, rcx
je 0x140012b8c
mov rax, qword [rcx]
lea rdx, [rsp + 0x50]
cmp rcx, rdx
setne dl
call qword [rax + 0x20]
nop
mov rcx, qword [rbp + 0x28]
test rcx, rcx
je 0x140012ba6
mov rax, qword [rcx]
lea rdx, [rbp - 0x10]
cmp rcx, rdx
setne dl
call qword [rax + 0x20]
nop
lea rax, vtable.std::_Func_impl_no_alloc_class__lambda_8a9e5071202d96c148f87863d87821a3___void___.0
mov qword [rbp + 0x30], rax
mov qword [rbp + 0x38], r13
lea rax, [rbp + 0x30]
mov qword [rbp + 0x68], rax
lea rdi, [r13 + 0xe8]
mov qword [rbp - 0x38], rbx
mov rax, qword [vtable.std::_Func_impl_no_alloc_class__lambda_8a9e5071202d96c148f87863d87821a3___void___.0]
lea rdx, [rbp - 0x70]
lea rcx, [rbp + 0x30]
call rax
mov rcx, rax
mov qword [rbp - 0x38], rax
lea rax, [rbp - 0x70]
cmp rcx, rax
je 0x140012c03
cmp qword [rdi + 0x38], rdi
je 0x140012c03
mov rax, rcx
mov rcx, qword [rdi + 0x38]
mov qword [rbp - 0x38], rcx
mov qword [rdi + 0x38], rax
jmp 0x140012d3f
mov r8, rbx
mov qword [rbp + 0x188], rbx
test rcx, rcx
je 0x140012c6c
lea rax, [rbp - 0x70]
cmp rcx, rax
jne 0x140012c5b
mov rax, qword [rcx]
lea rdx, [rbp + 0x150]
call qword [rax + 8]
mov r8, rax
mov qword [rbp + 0x188], rax
mov rcx, qword [rbp - 0x38]
test rcx, rcx
je 0x140012c59
mov rax, qword [rcx]
lea rdx, [rbp - 0x70]
cmp rcx, rdx
setne dl
call qword [rax + 0x20]
mov rcx, rbx
mov qword [rbp - 0x38], rbx
mov r8, qword [rbp + 0x188]
jmp 0x140012c6c
mov r8, rcx
mov qword [rbp + 0x188], rcx
mov rcx, rbx
mov qword [rbp - 0x38], rbx
mov r9, qword [rdi + 0x38]
test r9, r9
je 0x140012cbf
mov rcx, r9
cmp r9, rdi
jne 0x140012cb7
mov rax, qword [r9]
lea rdx, [rbp - 0x70]
call qword [rax + 8]
mov rcx, rax
mov qword [rbp - 0x38], rax
mov r8, qword [rdi + 0x38]
test r8, r8
je 0x140012cae
mov rax, qword [r8]
cmp r8, rdi
setne dl
mov rcx, r8
call qword [rax + 0x20]
mov qword [rdi + 0x38], rbx
mov rcx, qword [rbp - 0x38]
mov r8, qword [rbp + 0x188]
jmp 0x140012cbf
mov qword [rbp - 0x38], rcx
mov qword [rdi + 0x38], rbx
test r8, r8
je 0x140012d20
lea rax, [rbp + 0x150]
cmp r8, rax
jne 0x140012d12
mov rax, qword [r8]
mov rdx, rdi
mov rcx, r8
call qword [rax + 8]
mov qword [rdi + 0x38], rax
mov r8, qword [rbp + 0x188]
test r8, r8
je 0x140012d0c
mov rax, qword [r8]
lea rcx, [rbp + 0x150]
cmp r8, rcx
setne dl
mov rcx, r8
call qword [rax + 0x20]
mov r8, rbx
mov qword [rbp + 0x188], rbx
mov rcx, qword [rbp - 0x38]
jmp 0x140012d20
mov qword [rdi + 0x38], r8
mov r8, rbx
mov qword [rbp + 0x188], rbx
test r8, r8
je 0x140012d3f
mov rax, qword [r8]
lea rcx, [rbp + 0x150]
cmp r8, rcx
setne dl
mov rcx, r8
call qword [rax + 0x20]
mov rcx, qword [rbp - 0x38]
test rcx, rcx
je 0x140012d55
mov rax, qword [rcx]
lea rdx, [rbp - 0x70]
cmp rcx, rdx
setne dl
call qword [rax + 0x20]
nop
mov rcx, qword [rbp + 0x68]
test rcx, rcx
je 0x140012d6f
mov rax, qword [rcx]
lea rdx, [rbp + 0x30]
cmp rcx, rdx
setne dl
call qword [rax + 0x20]
nop
lea rdi, [r13 + 8]
mov esi, 0xfffffff0
mov edx, esi
mov rcx, qword [rdi]
call qword [sym.imp.USER32.dll_GetWindowLongA]
mov r8d, eax
and r8d, 0xfffaffff
cmp eax, r8d
je 0x140012d9d
mov edx, esi
mov rcx, qword [rdi]
call qword [sym.imp.USER32.dll_SetWindowLongA]
mov edx, esi
mov rcx, qword [rdi]
call qword [sym.imp.USER32.dll_GetWindowLongA]
mov r8d, eax
and r8d, 0xff34ffff
bts r8d, 0x1f
cmp eax, r8d
je 0x140012dc7
mov edx, esi
mov rcx, qword [rdi]
call qword [sym.imp.USER32.dll_SetWindowLongA]
mov esi, 0xffffffec
mov edx, esi
mov rcx, qword [rdi]
call qword [sym.imp.USER32.dll_GetWindowLongA]
mov r8d, eax
btr r8d, 0x12
bts r8d, 7
cmp eax, r8d
je 0x140012df4
mov edx, esi
mov rcx, qword [rdi]
call qword [sym.imp.USER32.dll_SetWindowLongA]
mov dword [rsp + 0x28], 1
mov dword [rsp + 0x20], 1
mov r9d, 1
xor r8d, r8d
xor edx, edx
mov rcx, qword [rdi]
call qword [sym.imp.USER32.dll_MoveWindow]
mov rcx, rdi
call fcn.140005ea0
mov edx, 5
mov rcx, qword [rdi]
call qword [sym.imp.USER32.dll_ShowWindow]
lea rax, vtable.std::_Func_impl_no_alloc_class__lambda_be928e7221cd91c69bc26983267081f4___long_long___int64___struct_HWND______ptr64__unsigned_int__unsigned_long_long_unsigned___int64___long_long___int64___int____ptr64_.0
mov qword [rbp + 0x70], rax
lea rax, [rbp + 0x70]
mov qword [rbp + 0xa8], rax
lea r8, [rbp + 0x70]
mov edx, 2
mov rcx, r13
call fcn.140006320
nop
mov rcx, qword [rbp + 0xa8]
test rcx, rcx
je 0x140012e73
mov rax, qword [rcx]
lea rdx, [rbp + 0x70]
cmp rcx, rdx
setne dl
call qword [rax + 0x20]
nop
xor edx, edx
lea r8d, [rdx + 0x30]
lea rcx, [rbp + 0x1a0]
call fcn.14004cad0
jmp 0x140012ea6
cmp eax, 0xffffffff
je 0x140012ebf
lea rcx, [rbp + 0x1a0]
call qword [sym.imp.USER32.dll_TranslateMessage]
lea rcx, [rbp + 0x1a0]
call qword [sym.imp.USER32.dll_DispatchMessageA]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, [rbp + 0x1a0]
call qword [sym.imp.USER32.dll_GetMessageA]
test eax, eax
jne 0x140012e87
mov rcx, qword [rbp + 0x1d0]
xor rcx, rsp
call fcn.14004a750
lea r11, [rsp + 0x2e0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret