Function at 0x140018550
Capabilities:
Check if file exists
Delete file
Get file attributes

Disassembly:
push rbp
lea rbp, [rsp - 0xdf0]
sub rsp, 0xef0
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0xf00], rbx
mov rax, qword [0x14006a080]
xor rax, rsp
mov qword [rbp + 0xde0], rax
xor edx, edx
xor ecx, ecx
call fcn.140003ed0
mov rcx, rax
lea rdx, str.DecodeZip
call fcn.140005c50
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x5a0]
call fcn.140022630
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x7b0]
call fcn.140022630
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x9c0]
call fcn.140022630
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0xbd0]
call fcn.140022630
xor edx, edx
mov r8d, 0x208
lea rcx, [rsp + 0x70]
call fcn.140022630
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x180]
call fcn.140022630
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x390]
call fcn.140022630
lea rax, str.ROGLSLoader1.enc
mov qword [rsp + 0x20], rax
lea r9, [0x14006dab0]
lea r8, str._s_s
mov edx, 0x104
lea rcx, [rbp + 0x5a0]
call fcn.1400011b0
lea rax, str.ROGLSLoader1.tmp
mov qword [rsp + 0x20], rax
lea r9, [0x14006dab0]
lea r8, str._s_s
mov edx, 0x104
lea rcx, [rbp + 0x7b0]
call fcn.1400011b0
lea rax, str.ROGLSLoader1.dat
mov qword [rsp + 0x20], rax
lea r9, [0x14006dab0]
lea r8, str._s_s
mov edx, 0x104
lea rcx, [rbp + 0x9c0]
call fcn.1400011b0
lea rax, str.ROGLSLoader2.dat
mov qword [rsp + 0x20], rax
lea r9, [0x14006dab0]
lea r8, str._s_s
mov edx, 0x104
lea rcx, [rbp + 0xbd0]
call fcn.1400011b0
lea rdx, [rbp + 0x5a0]
lea rcx, [rsp + 0x70]
call fcn.140001d30
lea rdx, [rbp + 0x7b0]
lea rcx, [rbp + 0x180]
call fcn.140001d30
lea rdx, [rbp + 0x9c0]
lea rcx, [rbp + 0x390]
call fcn.140001d30
lea rcx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14001888f
test al, 0x10
jne 0x14001888f
xor eax, eax
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x60], rax
mov byte [rsp + 0x38], al
xor ebx, ebx
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x58], rbx
mov dword [rsp + 0x60], ebx
lea rcx, [rsp + 0x38]
call fcn.140013d60
lea r8, [rbp + 0x180]
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x38]
call fcn.140013af0
xor edx, edx
xor ecx, ecx
test eax, eax
jne 0x14001879a
call fcn.140003ed0
mov rcx, rax
lea rdx, str.decrypt_File_fail_
call fcn.140005c50
lea rcx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x140018859
call fcn.140003ed0
mov rcx, rax
lea rdx, str.decrypt_File_pass
call fcn.140005c50
lea rdx, [rbp + 0x390]
lea rcx, [rbp + 0x180]
call fcn.140016e70
xor edx, edx
xor ecx, ecx
test eax, eax
jne 0x1400187f7
call fcn.140003ed0
mov rcx, rax
lea rdx, str.decrypt_File_fail____
call fcn.140005c50
lea rcx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
lea rcx, [rbp + 0x180]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x140018859
call fcn.140003ed0
mov rcx, rax
lea rdx, str.decrypt_File_pass
call fcn.140005c50
lea rcx, [rbp + 0x180]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
lea rcx, [rbp + 0x390]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140018835
test al, 0x10
jne 0x140018835
mov ebx, 1
jmp 0x140018859
lea rcx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
xor edx, edx
xor ecx, ecx
call fcn.140003ed0
mov rcx, rax
lea rdx, str.target_file_unexit
call fcn.140005c50
nop
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x140018869
call qword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x14001887b
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x14001888b
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov eax, ebx
jmp 0x1400188c6
xor edx, edx
xor ecx, ecx
call fcn.140003ed0
mov rcx, rax
lea r8, [rsp + 0x70]
lea rdx, str.szEncodeRSA___S
call fcn.140005c50
xor edx, edx
xor ecx, ecx
call fcn.140003ed0
mov rcx, rax
lea rdx, str.download_file_unexit
call fcn.140005c50
xor eax, eax
mov rcx, qword [rbp + 0xde0]
xor rcx, rsp
call fcn.14001fab0
mov rbx, qword [rsp + 0xf00]
add rsp, 0xef0
pop rbp
ret