Function at 0x140031180
Capabilities:
Encode data using xor
Get graphical window text

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x460]
sub rsp, 0x560
mov rax, qword [0x140098280]
xor rax, rsp
mov qword [rbp + 0x450], rax
xor edi, edi
mov rcx, qword [0x14009bd40]
call qword [sym.imp.USER32.dll_GetWindowTextLengthW]
xorps xmm0, xmm0
movups xmmword [rbp - 0x20], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x10], xmm1
lea ebx, [rax + 1]
movsxd r8, ebx
xor edx, edx
lea rcx, [rbp - 0x20]
call fcn.14004a1a0
nop
lea rdx, [rbp - 0x20]
cmp qword [rbp - 8], 7
cmova rdx, qword [rbp - 0x20]
mov r8d, ebx
mov rcx, qword [0x14009bd40]
call qword [sym.imp.USER32.dll_GetWindowTextW]
lea rdx, [rbp - 0x20]
cmp qword [rbp - 8], 7
cmova rdx, qword [rbp - 0x20]
mov rax, qword [rbp - 0x10]
lea r8, [rdx + rax*2]
lea rdx, [rbp - 0x20]
cmova rdx, qword [rbp - 0x20]
lea rcx, [rbp]
call fcn.1400488c0
nop
mov r8d, 0x104
lea rdx, [rbp + 0x340]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
xorps xmm0, xmm0
movups xmmword [rbp - 0x78], xmm0
mov qword [rbp - 0x68], rdi
mov qword [rbp - 0x60], rdi
lea rax, [rbp + 0x340]
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rax + r8], 0
jne 0x140031261
lea rdx, [rbp + 0x340]
lea rcx, [rbp - 0x78]
call fcn.1400053b0
nop
lea rbx, [rbp - 0x78]
mov rsi, qword [rbp - 0x78]
mov r14, qword [rbp - 0x60]
cmp r14, 0xf
cmova rbx, rsi
mov rdi, qword [rbp - 0x68]
test rdi, rdi
je 0x14003132a
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp + 0x240], xmm0
movups xmmword [rbp + 0x250], xmm0
movups xmmword [rbp + 0x260], xmm0
movups xmmword [rbp + 0x270], xmm0
movups xmmword [rbp + 0x280], xmm0
mov qword [rbp + 0x290], rax
mov dword [rbp + 0x298], eax
xor edx, edx
mov r8d, 0xa3
lea rcx, [rbp + 0x29d]
call fcn.140077e60
mov byte [rbp + 0x29c], 1
lea rcx, [rdi - 1]
mov rax, 0xffffffffffffffff
cmp rcx, rax
cmovb rax, rcx
add rax, rbx
movzx ecx, byte [rax]
cmp byte [rbp + rcx + 0x240], 0
jne 0x140031325
nop
cmp rax, rbx
je 0x14003132a
dec rax
movzx ecx, byte [rax]
cmp byte [rbp + rcx + 0x240], 0
je 0x140031310
sub rax, rbx
jmp 0x140031331
mov rax, 0xffffffffffffffff
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x50], xmm1
lea r8, [rax + 1]
cmp rdi, r8
cmovb r8, rdi
lea rdx, [rbp - 0x78]
cmp r14, 0xf
cmova rdx, rsi
lea rcx, [rsp + 0x40]
call fcn.1400053b0
mov rdx, qword [rbp - 0x60]
cmp rdx, 0xf
jbe 0x14003139e
inc rdx
mov rcx, qword [rbp - 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140031399
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140031c31
call fcn.1400529f0
movups xmm1, xmmword [rsp + 0x40]
movups xmmword [rbp - 0x78], xmm1
movups xmm0, xmmword [rsp + 0x50]
movups xmmword [rbp - 0x68], xmm0
movq rsi, xmm0
movabs rdx, 0x7fffffffffffffff
mov rax, rdx
sub rax, rsi
mov r12, qword [rbp + 0x10]
cmp rax, r12
jb 0x140031b7f
lea r13, [rbp - 0x78]
movq rcx, xmm1
psrldq xmm0, 8
movq rax, xmm0
cmp rax, 0xf
cmova r13, rcx
lea rax, [rbp]
mov r14, qword [rbp]
cmp qword [rbp + 0x18], 0xf
cmova rax, r14
mov qword [rsp + 0x30], rax
xorps xmm0, xmm0
movups xmmword [rbp - 0x40], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x30], xmm1
lea r15, [rsi + r12]
mov ebx, 0xf
lea rdi, [rbp - 0x40]
cmp r15, rbx
jbe 0x14003149d
mov rbx, r15
or rbx, 0xf
cmp rbx, rdx
jbe 0x140031460
mov rbx, rdx
movabs rax, 0x8000000000000000
add rax, 0x27
mov rcx, rax
call fcn.1400529f8
test rax, rax
je 0x140031c31
lea rdi, [rax + 0x27]
and rdi, 0xffffffffffffffe0
mov qword [rdi - 8], rax
jmp 0x140031499
mov eax, 0x16
cmp rbx, rax
cmovb rbx, rax
lea rcx, [rbx + 1]
test rcx, rcx
jne 0x140031479
xor edi, edi
jmp 0x140031499
cmp rcx, 0x1000
jb 0x140031491
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x140031b79
jmp 0x140031441
call fcn.1400529f8
mov rdi, rax
mov qword [rbp - 0x40], rdi
mov qword [rbp - 0x30], r15
mov qword [rbp - 0x28], rbx
mov r8, rsi
mov rdx, r13
mov rcx, rdi
call fcn.1400777c0
lea rcx, [rdi + rsi]
mov r8, r12
mov rdx, qword [rsp + 0x30]
call fcn.1400777c0
mov byte [rdi + r15], 0
xor edx, edx
mov r8d, 0x110
lea rcx, [rbp + 0x20]
call fcn.140077e60
lea rdx, [rbp - 0x40]
cmp qword [rbp - 0x28], 0xf
cmova rdx, qword [rbp - 0x40]
mov r8d, 0x20
lea rcx, [rbp + 0x20]
call fcn.140046190
mov rax, qword [rbp + 0x20]
movsxd rcx, dword [rax + 4]
lea r13, vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx + 0x20], r13
mov rax, qword [rbp + 0x20]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xb0]
mov dword [rbp + rcx + 0x1c], edx
lea r12, vtable.std::ios_base.0
xor ebx, ebx
cmp qword [rbp + 0xb0], rbx
jne 0x140031539
mov edi, 1
jmp 0x1400319d3
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp - 0x58], xmm0
mov qword [rbp - 0x48], rax
mov qword [rsp + 0x30], rbx
mov word [rsp + 0x38], 1
mov rax, qword [rbp + 0x20]
movsxd rcx, dword [rax + 4]
mov rax, qword [rbp + rcx + 0x68]
mov qword [rsp + 0x40], rax
test rax, rax
sete byte [rsp + 0x48]
mov byte [rsp + 0x49], bl
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x30], xmm0
movaps xmm1, xmmword [rsp + 0x40]
movdqa xmmword [rsp + 0x40], xmm1
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x40]
lea rcx, [rbp - 0x58]
call fcn.140049220
nop
lea rcx, [rbp + 0x30]
call fcn.140045f60
mov esi, 6
mov r15d, 2
test rax, rax
jne 0x1400315de
mov rax, qword [rbp + 0x20]
movsxd rcx, dword [rax + 4]
mov eax, esi
cmp qword [rbp + rcx + 0x68], 0
cmovne eax, r15d
or eax, dword [rbp + rcx + 0x30]
and eax, 0x17
mov dword [rbp + rcx + 0x30], eax
mov edx, dword [rbp + rcx + 0x34]
and edx, eax
jne 0x140031b85
xor edx, edx
mov r8d, pe_nt_image_headers64
lea rcx, [rbp + 0x130]
call fcn.140077e60
movsd xmm0, qword [0x14008a340]
movsd qword [rsp + 0x30], xmm0
mov ecx, dword [0x14008a348]
mov dword [rsp + 0x38], ecx
movzx eax, word [0x14008a34c]
mov word [rsp + 0x3c], ax
cmp byte [0x14008a34d], 0
je 0x1400317d3
mov r8d, ebx
cmp dword [0x1400982d8], r15d
jl 0x14003178a
movdqa xmm5, xmmword [0x14008c3f0]
movdqa xmm2, xmmword [0x14008c310]
movdqa xmm1, xmm2
punpckldq xmm1, xmm2
pmuldq xmm1, xmm5
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm5
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
psrad xmm1, 5
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmmword [str.9999]
psubd xmm2, xmm0
movdqa xmm4, xmmword [0x14008c3b0]
andps xmm2, xmm4
packuswb xmm2, xmm2
packuswb xmm2, xmm2
paddb xmm2, xmmword [0x14008c3d0]
movd xmm0, dword [0x14008a340]
xorps xmm2, xmm0
movd dword [rsp + 0x30], xmm2
movdqa xmm2, xmmword [0x14008c330]
movdqa xmm1, xmm2
punpckldq xmm1, xmm2
pmuldq xmm1, xmm5
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm5
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
psrad xmm1, 5
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmmword [str.9999]
psubd xmm2, xmm0
andps xmm2, xmm4
packuswb xmm2, xmm2
packuswb xmm2, xmm2
paddb xmm2, xmmword [0x14008c3d0]
movd xmm0, dword [rsp + 0x34]
xorps xmm2, xmm0
movd dword [rsp + 0x34], xmm2
movdqa xmm3, xmmword [0x14008c350]
movdqa xmm1, xmm3
punpckldq xmm1, xmm3
pmuldq xmm1, xmm5
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm5
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm3
psrad xmm1, 5
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmmword [str.9999]
psubd xmm3, xmm0
andps xmm3, xmm4
packuswb xmm3, xmm3
packuswb xmm3, xmm3
paddb xmm3, xmmword [0x14008c3d0]
movd xmm0, ecx
xorps xmm3, xmm0
movd dword [rsp + 0x38], xmm3
mov r8d, reloc.WS2_32.dll_inet_ntoa
mov eax, r8d
lea r9, [rsp + 0x30]
add r9, rax
nop word [rax + rax]
mov eax, 0x8fb823ef
imul r8d
add edx, r8d
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x39
movzx eax, r8b
sub al, cl
add al, 0x32
xor byte [r9], al
inc r8d
lea r9, [r9 + 1]
cmp r8d, 0xe
jl 0x1400317a0
mov r8d, r15d
lea rdx, [rsp + 0x30]
lea rcx, [rbp + 0x130]
call fcn.14003fb40
nop
cmp qword [rbp + 0x1b8], 0
jne 0x1400317fc
mov edi, 1
jmp 0x14003190c
mov rdi, rbx
mov rax, qword [rbp - 0x50]
cmp rax, qword [rbp - 0x58]
je 0x1400318c1
nop dword [rax]
lea rdx, [0x140089868]
lea rcx, [rbp + 0x130]
call fcn.140048a00
mov rbx, rax
mov rcx, qword [rax]
movsxd rdx, dword [rcx + 4]
or dword [rdx + rax + 0x18], 4
mov rcx, qword [rax]
movsxd rdx, dword [rcx + 4]
mov ecx, dword [rdx + rax + 0x18]
and ecx, 0xfffff9ff
bts ecx, 0xb
mov dword [rdx + rax + 0x18], ecx
mov rdx, r15
lea rcx, [rsp + 0x40]
call fcn.140051930
mov r8, qword [rax]
mov rcx, qword [rbx]
movsxd rcx, dword [rcx + 4]
add rcx, rbx
mov rdx, qword [rax + 8]
call r8
mov rax, qword [rbx]
movsxd rcx, dword [rax + 4]
mov byte [rcx + rbx + 0x58], gethostbyname
mov rax, qword [rbp - 0x58]
movzx edx, byte [rdi + rax]
mov rcx, rbx
call fcn.140042b50
mov rcx, rax
lea rdx, [0x140089864]
call fcn.140048a00
lea rax, [rdi + 1]
mov rdi, rax
test al, 0xf
jne 0x1400318ae
lea rcx, [rbp + 0x130]
call fcn.140048cb0
mov rax, qword [rbp - 0x50]
sub rax, qword [rbp - 0x58]
cmp rdi, rax
jb 0x140031810
xor ebx, ebx
lea rcx, [rbp + 0x138]
call fcn.140045f60
test rax, rax
jne 0x14003190a
mov rax, qword [rbp + 0x130]
movsxd rcx, dword [rax + 4]
cmp qword [rbp + rcx + 0x178], 0
cmovne esi, r15d
or esi, dword [rbp + rcx + 0x140]
and esi, 0x17
mov dword [rbp + rcx + 0x140], esi
mov eax, dword [rbp + rcx + 0x144]
and eax, esi
jne 0x140031bd9
mov edi, ebx
mov rax, qword [rbp + 0x130]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx + 0x130], rax
mov rax, qword [rbp + 0x130]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rbp + rcx + 0x12c], edx
lea rcx, [rbp + 0x138]
call fcn.1400409e0
mov rax, qword [rbp + 0x130]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx + 0x130], rax
mov rax, qword [rbp + 0x130]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x10]
mov dword [rbp + rcx + 0x12c], edx
mov qword [rbp + 0x1d8], r12
lea rcx, [rbp + 0x1d8]
call fcn.140051734
nop
mov rcx, qword [rbp - 0x58]
test rcx, rcx
je 0x1400319d3
mov rdx, qword [rbp - 0x48]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400319c2
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140031c2b
call fcn.1400529f0
mov qword [rbp - 0x58], rbx
mov qword [rbp - 0x50], rbx
mov qword [rbp - 0x48], rbx
mov rax, qword [rbp + 0x20]
movsxd rcx, dword [rax + 4]
mov qword [rbp + rcx + 0x20], r13
mov rax, qword [rbp + 0x20]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xb0]
mov dword [rbp + rcx + 0x1c], edx
lea rcx, [rbp + 0x30]
call fcn.1400409e0
mov rax, qword [rbp + 0x20]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_istream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx + 0x20], rax
mov rax, qword [rbp + 0x20]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x18]
mov dword [rbp + rcx + 0x1c], edx
mov qword [rbp + 0xd0], r12
lea rcx, [rbp + 0xd0]
call fcn.140051734
nop
mov rdx, qword [rbp - 0x28]
cmp rdx, 0xf
jbe 0x140031a6d
inc rdx
mov rcx, qword [rbp - 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140031a68
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140031c31
call fcn.1400529f0
movdqa xmm0, xmmword [0x14008c300]
movdqu xmmword [rbp - 0x30], xmm0
mov byte [rbp - 0x40], 0
mov rdx, qword [rbp - 0x60]
cmp rdx, 0xf
jbe 0x140031ab9
inc rdx
mov rcx, qword [rbp - 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140031ab4
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140031c37
call fcn.1400529f0
mov qword [rbp - 0x68], rbx
mov qword [rbp - 0x60], 0xf
mov byte [rbp - 0x78], 0
mov rax, qword [rbp + 0x18]
cmp rax, 0xf
jbe 0x140031b05
lea rdx, [rax + 1]
mov rax, r14
cmp rdx, 0x1000
jb 0x140031afc
add rdx, 0x27
mov r14, qword [r14 - 8]
sub rax, r14
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140031c3d
mov rcx, r14
call fcn.1400529f0
nop
mov rdx, qword [rbp - 8]
cmp rdx, 7
jbe 0x140031b41
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140031b3c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140031b73
call fcn.1400529f0
mov eax, edi
mov rcx, qword [rbp + 0x450]
xor rcx, rsp
call fcn.1400529d0
lea r11, [rsp + 0x560]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
call fcn.14005ffec
nop
call fcn.140001a30
nop
call fcn.140001bc0
nop
test dl, 4
je 0x140031b93
lea rbx, str.ios_base::badbit_set
jmp 0x140031ba8
test r15b, dl
lea rbx, str.ios_base::failbit_set
lea rax, str.ios_base::eofbit_set
cmove rbx, rax
mov edx, 1
lea rcx, [rsp + 0x40]
call fcn.140001d90
mov r8, rax
mov rdx, rbx
lea rcx, [rsp + 0x60]
call fcn.140003250
lea rdx, [0x140095ed8]
lea rcx, [rsp + 0x60]
call fcn.140054a1c
nop
test al, 4
je 0x140031be6
lea rbx, str.ios_base::badbit_set
jmp 0x140031bfa
test al, 2
lea rbx, str.ios_base::failbit_set
lea rax, str.ios_base::eofbit_set
cmove rbx, rax
mov edx, 1
lea rcx, [rsp + 0x40]
call fcn.140001d90
mov r8, rax
mov rdx, rbx
lea rcx, [rsp + 0x60]
call fcn.140003250
lea rdx, [0x140095ed8]
lea rcx, [rsp + 0x60]
call fcn.140054a1c
nop
call fcn.14005ffec
nop
call fcn.14005ffec
nop
call fcn.14005ffec
nop
call fcn.14005ffec
int3