Function at 0x14004a260
Capabilities:
Encode data using xor
Get common file path
Set console window title
Terminate process

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x268]
sub rsp, 0x350
movaps xmmword [rax - 0x28], xmm6
mov rax, qword [0x14016e080]
xor rax, rsp
mov qword [rbp + 0x230], rax
xor edi, edi
mov qword [0x1401707d8], rdi
mov byte [0x1401707e0], dil
mov qword [0x140170530], rdi
mov word [0x140170538], di
mov byte [0x14017053a], dil
xorps xmm0, xmm0
xor eax, eax
movups xmmword [0x1401707f0], xmm0
movups xmmword [0x140170800], xmm0
movups xmmword [0x140170810], xmm0
movups xmmword [0x140170820], xmm0
mov byte [0x140170830], al
mov dword [0x140170528], eax
movups xmmword [0x140170540], xmm0
mov qword [0x140170550], rax
mov dword [0x140170558], eax
mov byte [0x14017055c], al
movups xmm0, xmmword [str.VA_VT_V]
movups xmmword [rsp + 0x50], xmm0
psrldq xmm0, 0xf
movd eax, xmm0
test al, al
je 0x14004a49e
cmp dword [reloc.WS2_32.dll_accept], 2
jl 0x14004a467
movdqa xmm5, xmmword [0x140152220]
mov edx, edi
movdqa xmm4, xmmword [0x140152ae0]
movdqa xmm6, xmmword [0x140152250]
movdqa xmm0, xmmword [0x1401524f0]
movdqa xmmword [rbp - 0x50], xmm0
lea rcx, [rsp + 0x54]
mov r8d, dword [rbp - 0x50]
nop dword [rax]
movd xmm2, edx
pshufd xmm2, xmm2, 0
paddd xmm2, xmm5
movdqa xmm1, xmm2
punpckldq xmm1, xmm2
pmuldq xmm1, xmm4
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm4
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
psrad xmm1, 5
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x1401522f0]
packuswb xmm2, xmm2
movd xmm0, r8d
paddb xmm2, xmm0
movd xmm0, dword [rcx - 4]
xorps xmm2, xmm0
movd dword [rcx - 4], xmm2
lea eax, [rdx + 4]
movd xmm3, eax
pshufd xmm3, xmm3, 0
paddd xmm3, xmm5
movdqa xmm1, xmm3
punpckldq xmm1, xmm3
pmuldq xmm1, xmm4
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm4
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm3
psrad xmm1, 5
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x1401522f0]
packuswb xmm2, xmm2
movd xmm0, r8d
paddb xmm2, xmm0
movd xmm0, dword [rcx]
xorps xmm2, xmm0
movd dword [rcx], xmm2
add edx, 8
lea rcx, [rcx + 8]
cmp edx, 0x10
jl 0x14004a360
jmp 0x14004a49e
lea r8, [rsp + 0x50]
mov ecx, edi
nop
mov eax, 0x8fb823ef
imul ecx
add edx, ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul edx, eax, 0x39
movzx eax, cl
sub al, dl
add al, 0x36
xor byte [r8], al
inc ecx
lea r8, [r8 + 1]
cmp ecx, 0x10
jl 0x14004a470
xorps xmm0, xmm0
movups xmmword [rbp], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 0x10], xmm1
lea rax, [rsp + 0x50]
mov rbx, 0xffffffffffffffff
mov r8, rbx
nop dword [rax]
inc r8
cmp byte [rax + r8], dil
jne 0x14004a4c0
lea rdx, [rsp + 0x50]
lea rcx, [rbp]
call fcn.1400026d0
nop
lea rcx, [rbp]
cmp qword [rbp + 0x18], 0xf
cmova rcx, qword [rbp]
call qword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
lea rcx, [0x140170560]
call fcn.1400d6220
cmp byte [0x140170770], 0
jne 0x14004a575
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
lea rdx, [rsp + 0x40]
call fcn.14004aa20
movzx edx, byte [rax + 0xa]
test dl, dl
je 0x14004a547
xor byte [rax], 0x36
xor byte [rax + 1], 0x37
xor byte [rax + 2], 0x38
xor byte [rax + 3], 0x39
xor byte [rax + 4], 0x3a
xor byte [rax + 5], 0x3b
xor byte [rax + 6], 0x3c
xor byte [rax + 7], 0x3d
xor byte [rax + 8], 0x3e
xor byte [rax + 9], 0x3f
xor dl, 0x40
mov byte [rax + 0xa], dl
mov rdx, rax
call fcn.14004c3a0
mov rcx, rax
lea rdx, [0x140170778]
call fcn.14004c570
mov ecx, 0x5dc
call qword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
lea rax, [rbp + 0x20]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 0x1a]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
xorps xmm0, xmm0
test eax, eax
js 0x14004a5ff
movups xmmword [rbp - 0x20], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x10], xmm1
lea rax, [rbp + 0x20]
nop word [rax + rax]
inc rbx
cmp word [rax + rbx*2], 0
jne 0x14004a5b0
mov r8, rbx
lea rdx, [rbp + 0x20]
lea rcx, [rbp - 0x20]
call fcn.14004c6a0
nop
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 - 0x40]
call fcn.14004c190
nop
lea rcx, [rbp - 0x20]
call fcn.14004bee0
jmp 0x14004a61f
movups xmmword [rbp - 0x40], xmm0
mov qword [rbp - 0x30], rdi
mov qword [rbp - 0x28], rdi
xor r8d, r8d
lea rdx, [0x14013b998]
lea rcx, [rbp - 0x40]
call fcn.1400026d0
nop
movabs rsi, 0x7fffffffffffffff
mov rax, rsi
mov rcx, qword [rbp - 0x30]
sub rax, rcx
cmp rax, 0xc
jb 0x14004a9e5
lea r9, [rbp - 0x40]
cmp qword [rbp - 0x28], 0xf
cmova r9, qword [rbp - 0x40]
mov qword [rsp + 0x30], ntohs
lea r14, str.Kayflock_V2
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], rcx
lea rcx, [rsp + 0x70]
call fcn.14004cea0
nop
mov rdi, qword [rbp - 0x80]
lea rbx, [rsp + 0x70]
cmp qword [rbp - 0x78], 0xf
cmova rbx, qword [rsp + 0x70]
call fcn.1401264d4
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x58], rdi
lea r8, [rsp + 0x50]
mov edx, eax
lea rcx, [rbp - 0x70]
call fcn.140049750
nop
lea rdx, [rbp - 0x70]
lea rcx, [rsp + 0x50]
call fcn.140049e80
movsd xmm0, qword [rax]
movsd qword [rsp + 0x40], xmm0
mov ecx, dword [rax + 8]
mov dword [rbp - 0x50], ecx
lea r15, [0x14016e2d0]
mov qword [rbp - 0x48], r15
movaps xmm0, xmmword [rbp - 0x50]
movdqa xmmword [rbp - 0x50], xmm0
mov eax, dword [rsp + 0x40]
test eax, eax
je 0x14004a98f
cmp eax, 1
sete bl
lea rcx, [rbp - 0x70]
call fcn.14004bee0
nop
lea rcx, [rsp + 0x70]
call fcn.140005f60
test bl, bl
je 0x14004a7b0
mov rax, rsi
mov rcx, qword [rbp - 0x30]
sub rax, rcx
cmp rax, 0xc
jb 0x14004a9eb
lea r9, [rbp - 0x40]
cmp qword [rbp - 0x28], 0xf
cmova r9, qword [rbp - 0x40]
mov qword [rsp + 0x30], ntohs
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], rcx
lea rcx, [rsp + 0x70]
call fcn.14004cea0
nop
mov rdi, qword [rbp - 0x80]
lea rbx, [rsp + 0x70]
cmp qword [rbp - 0x78], 0xf
cmova rbx, qword [rsp + 0x70]
call fcn.1401264d4
mov qword [rbp - 0x50], rbx
mov qword [rbp - 0x48], rdi
lea r8, [rbp - 0x50]
mov edx, eax
lea rcx, [rsp + 0x50]
call fcn.140049750
nop
lea rcx, [rsp + 0x50]
cmp qword [rsp + 0x68], 7
cmova rcx, qword [rsp + 0x50]
call fcn.140126734
mov rdx, rax
shr rax, 0x20
test eax, eax
jne 0x14004a9f1
lea rcx, [rsp + 0x50]
call fcn.14004bee0
nop
lea rcx, [rsp + 0x70]
call fcn.140005f60
mov rax, rsi
mov rcx, qword [rbp - 0x30]
sub rax, rcx
cmp rax, 0x14
jb 0x14004aa07
lea r9, [rbp - 0x40]
cmp qword [rbp - 0x28], 0xf
cmova r9, qword [rbp - 0x40]
mov qword [rsp + 0x30], reloc.WS2_32.dll_sendto
lea r14, str.Kayflock_V2configs
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], rcx
lea rcx, [rsp + 0x70]
call fcn.14004cea0
nop
mov rdi, qword [rbp - 0x80]
lea rbx, [rsp + 0x70]
cmp qword [rbp - 0x78], 0xf
cmova rbx, qword [rsp + 0x70]
call fcn.1401264d4
mov qword [rbp - 0x50], rbx
mov qword [rbp - 0x48], rdi
lea r8, [rbp - 0x50]
mov edx, eax
lea rcx, [rbp - 0x70]
call fcn.140049750
nop
lea rdx, [rbp - 0x70]
lea rcx, [rsp + 0x50]
call fcn.140049e80
movsd xmm0, qword [rax]
movsd qword [rsp + 0x40], xmm0
mov ecx, dword [rax + 8]
mov dword [rbp - 0x50], ecx
mov qword [rbp - 0x48], r15
movaps xmm0, xmmword [rbp - 0x50]
movdqa xmmword [rbp - 0x50], xmm0
mov eax, dword [rsp + 0x40]
test eax, eax
je 0x14004a99a
cmp eax, 1
sete bl
lea rcx, [rbp - 0x70]
call fcn.14004bee0
nop
lea rcx, [rsp + 0x70]
call fcn.140005f60
test bl, bl
je 0x14004a92a
mov rax, qword [rbp - 0x30]
sub rsi, rax
cmp rsi, 0x14
jb 0x14004aa0d
lea r9, [rbp - 0x40]
cmp qword [rbp - 0x28], 0xf
cmova r9, qword [rbp - 0x40]
mov qword [rsp + 0x30], reloc.WS2_32.dll_sendto
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], rax
lea rcx, [rsp + 0x70]
call fcn.14004cea0
nop
mov rdi, qword [rbp - 0x80]
lea rbx, [rsp + 0x70]
cmp qword [rbp - 0x78], 0xf
cmova rbx, qword [rsp + 0x70]
call fcn.1401264d4
mov qword [rbp - 0x50], rbx
mov qword [rbp - 0x48], rdi
lea r8, [rbp - 0x50]
mov edx, eax
lea rcx, [rsp + 0x50]
call fcn.140049750
nop
lea rcx, [rsp + 0x50]
cmp qword [rsp + 0x68], 7
cmova rcx, qword [rsp + 0x50]
call fcn.140126734
mov rdx, rax
shr rax, 0x20
test eax, eax
jne 0x14004a9a5
lea rcx, [rsp + 0x50]
call fcn.14004bee0
nop
lea rcx, [rsp + 0x70]
call fcn.140005f60
call fcn.1400550f0
lea rcx, str.Press_enter_to_close.
call fcn.140048f20
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_istream_char__struct_std::char_traits_char___std::cin]
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::basic_istream_char__struct_std::char_traits_char__::get_void____ptr64]
nop
lea rcx, [rbp - 0x40]
call fcn.140005f60
nop
lea rcx, [rbp]
call fcn.140005f60
xor eax, eax
mov rcx, qword [rbp + 0x230]
xor rcx, rsp
call fcn.140127050
lea r11, [rsp + 0x350]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
movaps xmm6, xmmword [r11 - 0x10]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
mov bl, 1
test ecx, ecx
jne 0x14004a9bb
jmp 0x14004a6e8
mov bl, 1
test ecx, ecx
jne 0x14004a9d0
jmp 0x14004a865
shr rdx, 0x20
lea r8, [rsp + 0x50]
lea rcx, str.create_directory
call fcn.140049db0
nop
lea r8, [rbp - 0x70]
lea rdx, [rbp - 0x50]
lea rcx, str.exists
call fcn.140049e20
nop
lea r8, [rbp - 0x70]
lea rdx, [rbp - 0x50]
lea rcx, str.exists
call fcn.140049e20
nop
call fcn.140002650
int3
call fcn.140002650
nop
shr rdx, 0x20
lea r8, [rsp + 0x50]
lea rcx, str.create_directory
call fcn.140049db0
nop
call fcn.140002650
int3
call fcn.140002650
int3