Function at 0x140038840
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 [0x1400ac2c0]
xor rax, rsp
mov qword [rbp + 0x450], rax
xor edi, edi
mov rcx, qword [0x1400afe20]
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.140059af0
nop
lea rdx, [rbp - 0x20]
cmp qword [rbp - 8], 7
cmova rdx, qword [rbp - 0x20]
mov r8d, ebx
mov rcx, qword [0x1400afe20]
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.140058760
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 0x140038921
lea rdx, [rbp + 0x340]
lea rcx, [rbp - 0x78]
call fcn.140005560
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 0x1400389ea
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.140088570
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 0x1400389e5
nop
cmp rax, rbx
je 0x1400389ea
dec rax
movzx ecx, byte [rax]
cmp byte [rbp + rcx + 0x240], 0
je 0x1400389d0
sub rax, rbx
jmp 0x1400389f1
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.140005560
mov rdx, qword [rbp - 0x60]
cmp rdx, 0xf
jbe 0x140038a5e
inc rdx
mov rcx, qword [rbp - 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140038a59
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400392f1
call fcn.1400626b0
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 0x14003923f
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 0x140038b5d
mov rbx, r15
or rbx, 0xf
cmp rbx, rdx
jbe 0x140038b20
mov rbx, rdx
movabs rax, 0x8000000000000000
add rax, 0x27
mov rcx, rax
call fcn.1400626b8
test rax, rax
je 0x1400392f1
lea rdi, [rax + 0x27]
and rdi, 0xffffffffffffffe0
mov qword [rdi - 8], rax
jmp 0x140038b59
mov eax, 0x16
cmp rbx, rax
cmovb rbx, rax
lea rcx, [rbx + 1]
test rcx, rcx
jne 0x140038b39
xor edi, edi
jmp 0x140038b59
cmp rcx, 0x1000
jb 0x140038b51
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x140039239
jmp 0x140038b01
call fcn.1400626b8
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.140087ed0
lea rcx, [rdi + rsi]
mov r8, r12
mov rdx, qword [rsp + 0x30]
call fcn.140087ed0
mov byte [rdi + r15], 0
xor edx, edx
mov r8d, 0x110
lea rcx, [rbp + 0x20]
call fcn.140088570
lea rdx, [rbp - 0x40]
cmp qword [rbp - 0x28], 0xf
cmova rdx, qword [rbp - 0x40]
mov r8d, 0x20
lea rcx, [rbp + 0x20]
call fcn.1400555a0
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 0x140038bf9
mov edi, 1
jmp 0x140039093
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.140058aa0
nop
lea rcx, [rbp + 0x30]
call fcn.140055150
mov esi, 6
mov r15d, 2
test rax, rax
jne 0x140038c9e
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 0x140039245
xor edx, edx
mov r8d, pe_nt_image_headers64
lea rcx, [rbp + 0x130]
call fcn.140088570
movsd xmm0, qword [str.p__GgCOY]
movsd qword [rsp + 0x30], xmm0
mov ecx, dword [0x14009b8d8]
mov dword [rsp + 0x38], ecx
movzx eax, word [0x14009b8dc]
mov word [rsp + 0x3c], ax
cmp byte [0x14009b8dd], 0
je 0x140038e93
mov r8d, ebx
cmp dword [0x1400ac318], r15d
jl 0x140038e4a
movdqa xmm5, xmmword [0x14009e430]
movdqa xmm2, xmmword [0x14009e350]
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.3333]
psubd xmm2, xmm0
movdqa xmm4, xmmword [0x14009e3f0]
andps xmm2, xmm4
packuswb xmm2, xmm2
packuswb xmm2, xmm2
paddb xmm2, xmmword [0x14009e410]
movd xmm0, dword [str.p__GgCOY]
xorps xmm2, xmm0
movd dword [rsp + 0x30], xmm2
movdqa xmm2, xmmword [0x14009e370]
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.3333]
psubd xmm2, xmm0
andps xmm2, xmm4
packuswb xmm2, xmm2
packuswb xmm2, xmm2
paddb xmm2, xmmword [0x14009e410]
movd xmm0, dword [rsp + 0x34]
xorps xmm2, xmm0
movd dword [rsp + 0x34], xmm2
movdqa xmm3, xmmword [0x14009e390]
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.3333]
psubd xmm3, xmm0
andps xmm3, xmm4
packuswb xmm3, xmm3
packuswb xmm3, xmm3
paddb xmm3, xmmword [0x14009e410]
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, 0xa0a0a0a1
imul r8d
add edx, r8d
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x33
movzx eax, r8b
sub al, cl
add al, 0x34
xor byte [r9], al
inc r8d
lea r9, [r9 + 1]
cmp r8d, 0xe
jl 0x140038e60
mov r8d, r15d
lea rdx, [rsp + 0x30]
lea rcx, [rbp + 0x130]
call fcn.14004e2e0
nop
cmp qword [rbp + 0x1b8], 0
jne 0x140038ebc
mov edi, 1
jmp 0x140038fcc
mov rdi, rbx
mov rax, qword [rbp - 0x50]
cmp rax, qword [rbp - 0x58]
je 0x140038f81
nop dword [rax]
lea rdx, [0x14009b490]
lea rcx, [rbp + 0x130]
call fcn.140057bd0
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.1400615f0
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 [rax + rdi]
mov rcx, rbx
call fcn.140051a10
mov rcx, rax
lea rdx, [0x14009b48c]
call fcn.140057bd0
lea rax, [rdi + 1]
mov rdi, rax
test al, 0xf
jne 0x140038f6e
lea rcx, [rbp + 0x130]
call fcn.140057e80
mov rax, qword [rbp - 0x50]
sub rax, qword [rbp - 0x58]
cmp rdi, rax
jb 0x140038ed0
xor ebx, ebx
lea rcx, [rbp + 0x138]
call fcn.140055150
test rax, rax
jne 0x140038fca
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 0x140039299
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.140050570
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.14006133c
nop
mov rcx, qword [rbp - 0x58]
test rcx, rcx
je 0x140039093
mov rdx, qword [rbp - 0x48]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140039082
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400392eb
call fcn.1400626b0
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.140050570
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.14006133c
nop
mov rdx, qword [rbp - 0x28]
cmp rdx, 0xf
jbe 0x14003912d
inc rdx
mov rcx, qword [rbp - 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140039128
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400392f1
call fcn.1400626b0
movdqa xmm0, xmmword [0x14009e340]
movdqu xmmword [rbp - 0x30], xmm0
mov byte [rbp - 0x40], 0
mov rdx, qword [rbp - 0x60]
cmp rdx, 0xf
jbe 0x140039179
inc rdx
mov rcx, qword [rbp - 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140039174
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400392f7
call fcn.1400626b0
mov qword [rbp - 0x68], rbx
mov qword [rbp - 0x60], 0xf
mov byte [rbp - 0x78], 0
mov rax, qword [rbp + 0x18]
cmp rax, 0xf
jbe 0x1400391c5
lea rdx, [rax + 1]
mov rax, r14
cmp rdx, 0x1000
jb 0x1400391bc
add rdx, 0x27
mov r14, qword [r14 - 8]
sub rax, r14
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400392fd
mov rcx, r14
call fcn.1400626b0
nop
mov rdx, qword [rbp - 8]
cmp rdx, 7
jbe 0x140039201
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400391fc
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140039233
call fcn.1400626b0
mov eax, edi
mov rcx, qword [rbp + 0x450]
xor rcx, rsp
call fcn.140062690
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.14007025c
nop
call fcn.140001b30
nop
call fcn.140001cc0
nop
test dl, 4
je 0x140039253
lea rbx, str.ios_base::badbit_set
jmp 0x140039268
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.140001e90
mov r8, rax
mov rdx, rbx
lea rcx, [rsp + 0x60]
call fcn.140003380
lea rdx, [0x1400a9388]
lea rcx, [rsp + 0x60]
call fcn.1400646dc
nop
test al, 4
je 0x1400392a6
lea rbx, str.ios_base::badbit_set
jmp 0x1400392ba
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.140001e90
mov r8, rax
mov rdx, rbx
lea rcx, [rsp + 0x60]
call fcn.140003380
lea rdx, [0x1400a9388]
lea rcx, [rsp + 0x60]
call fcn.1400646dc
nop
call fcn.14007025c
nop
call fcn.14007025c
nop
call fcn.14007025c
nop
call fcn.14007025c
int3