Function at 0x140001240
Capabilities:
Check if file exists
Encode data using xor
Get file attributes
Terminate process
Write file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r12
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0x100
movaps xmmword [rax - 0x28], xmm6
movaps xmmword [rax - 0x38], xmm7
movaps xmmword [rax - 0x48], xmm8
mov rax, qword [0x140005028]
xor rax, rsp
mov qword [rbp + 7], rax
movsd xmm0, qword [str.C_JN]
movsd qword [rbp - 0x29], xmm0
movzx eax, byte [0x1400034a8]
mov byte [rbp - 0x29], 0x74
xor byte [rbp - 0x28], 0x38
xor byte [rbp - 0x27], 0x39
xor byte [rbp - 0x26], 0x3a
xor byte [rbp - 0x25], 0x3b
xor byte [rbp - 0x24], 0x3c
xor byte [rbp - 0x23], 0x3d
xor byte [rbp - 0x22], 0x3e
xor al, 0x3f
mov byte [rbp - 0x21], al
xorps xmm0, xmm0
movups xmmword [rbp - 0x19], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 9], xmm1
lea rax, [rbp - 0x29]
mov rdi, 0xffffffffffffffff
mov r8, rdi
inc r8
cmp byte [rax + r8], 0
jne 0x1400012d4
lea rdx, [rbp - 0x29]
lea rcx, [rbp - 0x19]
call fcn.140001da0
nop
movsd xmm0, qword [str.sJVJUQ_9A]
movsd qword [rbp - 0x29], xmm0
movzx ecx, word [0x140003460]
mov word [rbp - 0x21], cx
movzx eax, byte [0x140003462]
mov byte [rbp - 0x29], 0x44
xor byte [rbp - 0x28], 0x38
xor byte [rbp - 0x27], 0x39
xor byte [rbp - 0x26], 0x3a
xor byte [rbp - 0x25], 0x3b
xor byte [rbp - 0x24], 0x3c
xor byte [rbp - 0x23], 0x3d
xor byte [rbp - 0x22], 0x3e
xor cl, 0x3f
mov byte [rbp - 0x21], cl
xor byte [rbp - 0x20], 0x40
xor al, 0x41
mov byte [rbp - 0x1f], al
movups xmm0, xmmword [0x140003468]
movups xmmword [rbp - 0x79], xmm0
movups xmm1, xmmword [0x140003478]
movups xmmword [rbp - 0x69], xmm1
movups xmm0, xmmword [0x140003488]
movups xmmword [rbp - 0x59], xmm0
mov eax, dword [0x140003498]
mov dword [rbp - 0x49], eax
xor ebx, ebx
mov r8d, ebx
lea r15d, [rbx + 5]
lea r12d, [rbx + 0x1f]
mov r14d, dword [0x140005008]
cmp r14d, 2
jl 0x1400014cb
movdqa xmm5, xmmword [0x1400034d0]
movdqa xmm4, xmmword [0x140003520]
movd xmm6, r15d
movdqa xmm7, xmmword [0x1400034f0]
movd xmm8, r12d
movdqa xmm0, xmmword [str.7777777777777777]
movdqa xmmword [rbp - 0x39], xmm0
lea rcx, [rbp - 0x75]
mov edx, dword [rbp - 0x39]
nop dword [rax + rax]
movd xmm2, r8d
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, xmm6
movdqa xmm0, xmm1
psrld xmm0, xmm8
paddd xmm0, xmm1
pmulld xmm0, xmm7
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x140003500]
packuswb xmm2, xmm2
movd xmm0, edx
paddb xmm2, xmm0
movd xmm0, dword [rcx - 4]
xorps xmm2, xmm0
movd dword [rcx - 4], xmm2
lea eax, [r8 + 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, xmm6
movdqa xmm0, xmm1
psrld xmm0, xmm8
paddd xmm0, xmm1
pmulld xmm0, xmm7
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x140003500]
packuswb xmm2, xmm2
movd xmm0, edx
paddb xmm2, xmm0
movd xmm0, dword [rcx]
xorps xmm2, xmm0
movd dword [rcx], xmm2
add r8d, 8
lea rcx, [rcx + 8]
cmp r8d, 0x30
jl 0x1400013c0
cmp r8d, 0x34
jge 0x140001513
movsxd rax, r8d
lea r9, [rbp - 0x79]
add r9, rax
nop word [rax + rax]
mov eax, 0x92492493
imul r8d
add edx, r8d
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x38
movzx eax, r8b
sub al, cl
add al, 0x37
xor byte [r9], al
inc r8d
lea r9, [r9 + 1]
cmp r8d, 0x34
jl 0x1400014e0
lea rcx, [rbp - 0x79]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rsi, rax
test rax, rax
je 0x140001588
lea rdx, [rbp - 0x29]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14000154e
mov r9d, r15d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call rax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x1400015b7
lea rdx, str.Could_not_locate_the_function:
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.140001b90
mov rcx, rax
lea rdx, [rbp - 0x29]
call fcn.140001b90
lea rdx, [0x140001d60]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x1400015b7
lea rdx, str.Could_not_load_the_DLL:
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.140001b90
mov rcx, rax
lea rdx, [rbp - 0x79]
call fcn.140001b90
lea rdx, [0x140001d60]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
lea rcx, [rbp - 0x19]
cmp qword [rbp - 1], 0x10
cmovae rcx, qword [rbp - 0x19]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x1400015d8
test al, 0x10
jne 0x1400015d8
mov al, 1
jmp 0x1400015da
xor al, al
test al, al
jne 0x1400018fb
lea rdx, [rbp - 0x29]
call fcn.140001ab0
mov r11, rax
cmp byte [rax + 7], bl
je 0x140001743
cmp r14d, 2
jl 0x140001709
movdqa xmm4, xmmword [0x140003520]
movd xmm5, r15d
movd xmm6, r12d
movdqa xmm2, xmmword [0x1400034d0]
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, xmm5
movdqa xmm0, xmm1
psrld xmm0, xmm6
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x1400034f0]
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x140003500]
packuswb xmm2, xmm2
mov eax, dword [str.7777777777777777]
movd xmm0, eax
paddb xmm2, xmm0
movd xmm0, dword [r11]
xorps xmm2, xmm0
movd dword [r11], xmm2
movdqa xmm3, xmmword [0x1400034e0]
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, xmm5
movdqa xmm0, xmm1
psrld xmm0, xmm6
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x1400034f0]
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x140003500]
packuswb xmm2, xmm2
movd xmm0, eax
paddb xmm2, xmm0
movd xmm0, dword [r11 + 4]
xorps xmm2, xmm0
movd dword [r11 + 4], xmm2
jmp 0x140001743
mov r9, r11
mov r8d, ebx
nop
mov eax, 0x92492493
imul r8d
add edx, r8d
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x38
movzx eax, r8b
sub al, cl
add al, 0x37
xor byte [r9], al
inc r8d
lea r9, [r9 + 1]
cmp r8d, 8
jl 0x140001710
lea rdx, [rbp - 0x79]
call fcn.140001a80
mov r10, rax
cmp byte [rax + 0x12], bl
je 0x1400018de
cmp r14d, 2
jl 0x1400018a8
movdqa xmm5, xmmword [0x1400034d0]
movdqa xmm4, xmmword [0x140003520]
movd xmm6, r15d
movdqa xmm7, xmmword [0x1400034f0]
movd xmm8, r12d
movdqa xmm0, xmmword [str.7777777777777777]
movdqa xmmword [rbp - 0x39], xmm0
mov rcx, rax
mov edx, dword [rbp - 0x39]
nop word [rax + rax]
movd xmm2, ebx
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, xmm6
movdqa xmm0, xmm1
psrld xmm0, xmm8
paddd xmm0, xmm1
pmulld xmm0, xmm7
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x140003500]
packuswb xmm2, xmm2
movd xmm0, edx
paddb xmm2, xmm0
movd xmm0, dword [rcx]
xorps xmm2, xmm0
movd dword [rcx], xmm2
lea eax, [rbx + 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, xmm6
movdqa xmm0, xmm1
psrld xmm0, xmm8
paddd xmm0, xmm1
pmulld xmm0, xmm7
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x140003500]
packuswb xmm2, xmm2
movd xmm0, edx
paddb xmm2, xmm0
movd xmm0, dword [rcx + 4]
xorps xmm2, xmm0
movd dword [rcx + 4], xmm2
add ebx, 8
mov eax, ebx
lea rcx, [rcx + 8]
cmp ebx, 0x10
jl 0x1400017a0
cmp eax, 0x13
jge 0x1400018de
movsxd r9, ebx
add r9, r10
nop
mov eax, 0x92492493
imul ebx
add edx, ebx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x38
movzx eax, bl
sub al, cl
add al, 0x37
xor byte [r9], al
inc ebx
lea r9, [r9 + 1]
cmp ebx, 0x13
jl 0x1400018b0
mov r9d, 0x30
mov r8, r11
mov rdx, r10
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
movsd xmm0, qword [0x140003448]
movsd qword [rbp - 0x29], xmm0
movzx eax, byte [0x140003450]
mov byte [rbp - 0x29], 0x74
xor byte [rbp - 0x28], 0x38
xor byte [rbp - 0x27], 0x39
xor byte [rbp - 0x26], 0x3a
xor byte [rbp - 0x25], 0x3b
xor byte [rbp - 0x24], 0x3c
xor byte [rbp - 0x23], 0x3d
xor byte [rbp - 0x22], 0x3e
xor al, 0x3f
mov byte [rbp - 0x21], al
xorps xmm0, xmm0
movups xmmword [rbp - 0x79], xmm0
mov qword [rbp - 0x69], rbx
mov qword [rbp - 0x61], rbx
lea rax, [rbp - 0x29]
inc rdi
cmp byte [rax + rdi], bl
jne 0x140001947
mov r8, rdi
lea rdx, [rbp - 0x29]
lea rcx, [rbp - 0x79]
call fcn.140001da0
lea rcx, [rbp - 0x79]
cmp qword [rbp - 0x61], 0x10
cmovae rcx, qword [rbp - 0x79]
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 2
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x1400019c4
mov qword [rsp + 0x20], rbx
lea r9, [rbp - 0x29]
mov r8d, 7
lea rdx, str.fsafsaf
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdx, qword [rbp - 0x61]
cmp rdx, 0x10
jb 0x140001a02
inc rdx
mov rcx, qword [rbp - 0x79]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400019fc
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, r12
jbe 0x1400019fc
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140002088
nop
mov rdx, qword [rbp - 1]
cmp rdx, 0x10
jb 0x140001a40
inc rdx
mov rcx, qword [rbp - 0x19]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001a3b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001a3b
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140002088
xor eax, eax
mov rcx, qword [rbp + 7]
xor rcx, rsp
call fcn.140001eb0
lea r11, [rsp + 0x100]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov r12, qword [r11 + 0x38]
movaps xmm6, xmmword [r11 - 0x10]
movaps xmm7, xmmword [r11 - 0x20]
movaps xmm8, xmmword [r11 - 0x30]
mov rsp, r11
pop r15
pop r14
pop rbp
ret