Function at 0x18005cd24
Capabilities:
Copy file
Get session user name

Disassembly:
mov r11, rsp
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x590
mov qword [rsp + 0xd8], 0xfffffffffffffffe
mov qword [r11 + 0x20], rbx
mov rax, qword [0x180101090]
xor rax, rsp
mov qword [rsp + 0x580], rax
mov r13d, r9d
mov r12, r8
mov rbx, rdx
mov rbp, rcx
xor r15d, r15d
mov esi, r15d
mov dword [rsp + 0x50], r15d
lea r14, [0x18010d840]
mov edi, 0x80
cmp word [0x18010d840], r15w
jne 0x18005ce7a
mov word [r11 - 0x468], r15w
xor edx, edx
lea r8d, [rdi + 0x7e]
lea rcx, [r11 - 0x466]
call fcn.18009e990
mov dword [rsp + 0x50], edi
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x160]
call qword [sym.imp.ADVAPI32.dll_GetUserNameW]
cmp eax, r15d
je 0x18005ce7a
lea rdx, str.system
lea rcx, [rsp + 0x160]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
cmp eax, r15d
jne 0x18005ce66
lea r9, str.agentUser
lea r8, str.SoftwareWOW6432Nodeprojonepodlp_smpcache_
mov rdx, 0xffffffff80000002
lea rcx, [rsp + 0xe0]
call fcn.180053c64
cmp qword [rsp + 0xf8], r15
jne 0x18005ce26
mov r8d, edi
lea rdx, [rsp + 0x160]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_lstrcpynW]
jmp 0x18005ce4c
lea rdx, [rsp + 0xe8]
cmp qword [rsp + 0x100], 8
cmovae rdx, qword [rsp + 0xe8]
mov r8d, edi
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_lstrcpynW]
cmp qword [rsp + 0x100], 8
jb 0x18005ce7a
mov rcx, qword [rsp + 0xe8]
call fcn.18009a864
jmp 0x18005ce7a
mov r8d, edi
lea rdx, [rsp + 0x160]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_lstrcpynW]
cmp byte [0x18010d940], r15b
jne 0x18005cec9
lea rcx, [rsp + 0xb0]
call fcn.18007811c
cmp qword [rax + 0x20], 0x10
jb 0x18005ce9d
mov rdx, qword [rax + 8]
jmp 0x18005cea1
lea rdx, [rax + 8]
mov r8d, edi
lea rcx, [0x18010d940]
call qword [sym.imp.KERNEL32.dll_lstrcpynA]
cmp qword [rsp + 0xd0], 0x10
jb 0x18005cec9
mov rcx, qword [rsp + 0xb8]
call fcn.18009a864
cmp word [0x18010d840], r15w
je 0x18005d875
cmp byte [0x18010d940], r15b
je 0x18005d875
cmp rbp, r15
je 0x18005d871
mov r14d, 7
cmp byte [rbx + 8], r14b
jne 0x18005d871
lea edi, [r14 + 8]
mov qword [rsp + 0x100], rdi
mov qword [rsp + 0xf8], r15
mov byte [rsp + 0xe8], r15b
lea r8d, [r14 + 1]
lea rdx, str.i_action
lea rcx, [rsp + 0xe0]
call fcn.18000f0f0
nop
mov qword [rsp + 0xd0], rdi
mov qword [rsp + 0xc8], r15
mov byte [rsp + 0xb8], r15b
xor r8d, r8d
lea rdx, [0x1800cda5f]
lea rcx, [rsp + 0xb0]
call fcn.18000f0f0
lea r9, [rsp + 0xb0]
lea r8, [rsp + 0xe0]
mov rdx, rbx
lea rcx, [rsp + 0x108]
call fcn.180001940
nop
cmp qword [rsp + 0x100], 0x10
jb 0x18005cf9a
mov rcx, qword [rsp + 0xe8]
call fcn.18009a864
mov qword [rsp + 0x100], rdi
mov qword [rsp + 0xf8], r15
mov byte [rsp + 0xe8], r15b
lea rcx, [rsp + 0x110]
cmp qword [rsp + 0x128], 0x10
cmovae rcx, qword [rsp + 0x110]
mov r8, r14
mov rdi, qword [rsp + 0x120]
cmp rdi, r14
cmovb r8, rdi
lea rdx, str.replace
call fcn.1800a4090
movsxd rcx, eax
mov eax, r15d
cmp rdi, r14
setne al
or rdx, 0xffffffffffffffff
cmp rdi, r14
cmovb eax, edx
cmp rcx, r15
cmovne eax, ecx
cmp eax, r15d
je 0x18005d064
lea rcx, [rsp + 0x110]
cmp qword [rsp + 0x128], 0x10
cmovae rcx, qword [rsp + 0x110]
lea r14d, [rdx + 7]
mov r8, r14
cmp rdi, r14
cmovb r8, rdi
lea rdx, str.delete
call fcn.1800a4090
movsxd rcx, eax
mov eax, r15d
cmp rdi, r14
setne al
cmp rdi, r14
lea rdx, [r14 - 7]
cmovb eax, edx
cmp rcx, r15
cmovne eax, ecx
cmp eax, r15d
jne 0x18005d0e7
lea rdx, str.i_key_columns
mov rcx, rbx
call fcn.180067578
cmp byte [rax + 8], 4
jne 0x18005d0a5
lea rdx, str.i_key_columns
mov rcx, rbx
call fcn.180067578
mov rcx, rax
lea rdx, [rsp + 0x60]
call fcn.1800663b0
mov esi, 1
cmp qword [rax + 0x18], r15
je 0x18005d0a5
mov dil, r15b
jmp 0x18005d0a8
mov dil, 1
test sil, 1
je 0x18005d0c3
cmp qword [rsp + 0x80], 0x10
jb 0x18005d0c3
mov rcx, qword [rsp + 0x68]
call fcn.18009a864
cmp dil, r15b
je 0x18005d0e7
cmp qword [rsp + 0x128], 0x10
jb 0x18005d0e0
mov rcx, qword [rsp + 0x110]
call fcn.18009a864
xor eax, eax
jmp 0x18005d877
lea rax, [rsp + 0x60]
mov qword [rsp + 0x50], rax
mov rdx, rbp
lea rcx, [rsp + 0x60]
call fcn.180065f74
mov rdi, rax
lea rdx, str.i_dt
mov rcx, rbx
call fcn.180067578
mov rcx, rax
mov rdx, rdi
call fcn.1800662a8
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x50], rcx
lea rdx, [0x18010d940]
lea rcx, [rsp + 0x60]
call fcn.180065f74
mov rdi, rax
lea rdx, str.client_unique
mov rcx, rbx
call fcn.180067578
mov rcx, rax
mov rdx, rdi
call fcn.1800662a8
lea r14, str.user_name
mov rdx, r14
mov rcx, rbx
call fcn.180067578
cmp byte [rax + 8], r15b
jne 0x18005d3f9
mov esi, 0xf
mov qword [rsp + 0x180], rsi
mov qword [rsp + 0x178], r15
mov byte [rsp + 0x168], r15b
mov qword [rsp + 0x1a8], rsi
mov qword [rsp + 0x1a0], r15
mov byte [rsp + 0x190], r15b
mov dword [rsp + 0x1b0], r15d
mov qword [rsp + 0x1d8], rsi
mov qword [rsp + 0x1d0], r15
mov byte [rsp + 0x1c0], r15b
mov qword [rsp + 0x200], rsi
mov qword [rsp + 0x1f8], r15
mov byte [rsp + 0x1e8], r15b
mov qword [rsp + 0x228], rsi
mov qword [rsp + 0x220], r15
mov byte [rsp + 0x210], r15b
mov qword [rsp + 0x250], rsi
mov qword [rsp + 0x248], r15
mov byte [rsp + 0x238], r15b
mov qword [rsp + 0x278], rsi
mov qword [rsp + 0x270], r15
mov byte [rsp + 0x260], r15b
mov qword [rsp + 0x2a0], rsi
mov qword [rsp + 0x298], r15
mov byte [rsp + 0x288], r15b
mov qword [rsp + 0x2c8], rsi
mov qword [rsp + 0x2c0], r15
mov byte [rsp + 0x2b0], r15b
lea rcx, [rsp + 0x160]
call fcn.1800796c4
cmp eax, r15d
je 0x18005d316
cmp qword [rsp + 0x178], r15
je 0x18005d316
lea rax, [rsp + 0x60]
mov qword [rsp + 0x50], rax
lea rdx, [rsp + 0x160]
lea rcx, [rsp + 0x60]
call fcn.18006601c
mov rdi, rax
mov rdx, r14
mov rcx, rbx
call fcn.180067578
mov rcx, rax
mov rdx, rdi
call fcn.1800662a8
lea rdx, [rsp + 0x130]
mov qword [rsp + 0x50], rdx
mov byte [rsp + 0x138], 1
btr dword [rsp + 0x138], 8
mov qword [rsp + 0x140], r15
mov qword [rsp + 0x148], r15
mov qword [rsp + 0x150], r15
mov qword [rsp + 0x130], 1
lea rdx, str.i_user_data
mov rcx, rbx
call fcn.180067578
mov rcx, rax
lea rdx, [rsp + 0x130]
call fcn.1800662a8
lea ebp, [rsi - 8]
jmp 0x18005d3ea
lea rax, [rsp + 0x88]
mov qword [rsp + 0x50], rax
mov ebp, 7
mov qword [rsp + 0x150], rbp
mov qword [rsp + 0x148], r15
mov word [rsp + 0x138], r15w
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [0x18010d840]
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
lea rdx, [0x18010d840]
lea rcx, [rsp + 0x130]
call fcn.18000f510
nop
lea rdx, [rsp + 0x130]
lea rcx, [rsp + 0x60]
call fcn.180001590
nop
mov rdx, rax
lea rcx, [rsp + 0x88]
call fcn.18006601c
mov rdi, rax
mov rdx, r14
mov rcx, rbx
call fcn.180067578
mov rcx, rax
mov rdx, rdi
call fcn.1800662a8
nop
cmp qword [rsp + 0x80], 0x10
jb 0x18005d3bf
mov rcx, qword [rsp + 0x68]
call fcn.18009a864
mov qword [rsp + 0x80], rsi
mov qword [rsp + 0x78], r15
mov byte [rsp + 0x68], r15b
cmp qword [rsp + 0x150], 8
jb 0x18005d3ea
mov rcx, qword [rsp + 0x138]
call fcn.18009a864
nop
lea rcx, [rsp + 0x160]
call fcn.18005d8a4
jmp 0x18005d401
mov esi, 0xf
lea ebp, [rsi - 8]
lea rdx, str.data_time
mov rcx, rbx
call fcn.180067578
cmp byte [rax + 8], r15b
jne 0x18005d4eb
mov byte [rsp + 0x130], r15b
xor eax, eax
mov qword [rsp + 0x131], rax
mov qword [rsp + 0x139], rax
mov qword [rsp + 0x141], rax
mov dword [rsp + 0x149], eax
mov word [rsp + 0x14d], ax
mov byte [rsp + 0x14f], al
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx edx, word [rsp + 0x5c]
movzx eax, word [rsp + 0x5a]
movzx ecx, word [rsp + 0x58]
movzx edi, word [rsp + 0x56]
movzx r8d, word [rsp + 0x52]
movzx r9d, word [rsp + 0x50]
mov dword [rsp + 0x40], edx
mov dword [rsp + 0x38], eax
mov dword [rsp + 0x30], ecx
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], r8d
lea r8, str._04d__02d__02d__02d:_02d:_02d
mov edx, 0x20
lea rcx, [rsp + 0x130]
call qword [sym.imp.SHLWAPI.dll_wnsprintfA]
lea rcx, [rsp + 0x88]
mov qword [rsp + 0x50], rcx
lea rdx, [rsp + 0x130]
lea rcx, [rsp + 0x88]
call fcn.180065f74
mov rdi, rax
lea rdx, str.data_time
mov rcx, rbx
call fcn.180067578
mov rcx, rax
mov rdx, rdi
call fcn.1800662a8
cmp r12, r15
je 0x18005d852
lea rax, [rsp + 0x88]
mov qword [rsp + 0x50], rax
mov rcx, r12
call qword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
mov rdx, rax
mov qword [rsp + 0x150], rbp
mov qword [rsp + 0x148], r15
mov word [rsp + 0x138], r15w
xor eax, eax
or r14, 0xffffffffffffffff
mov rcx, r14
mov rdi, rdx
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
lea rcx, [rsp + 0x130]
call fcn.18000f510
nop
lea rdx, [rsp + 0x130]
lea rcx, [rsp + 0x60]
call fcn.180001590
nop
mov rdx, rax
lea rcx, [rsp + 0x88]
call fcn.18006601c
mov rdi, rax
lea rdx, str.attach_name
mov rcx, rbx
call fcn.180067578
mov rcx, rax
mov rdx, rdi
call fcn.1800662a8
nop
cmp qword [rsp + 0x80], 0x10
jb 0x18005d5a0
mov rcx, qword [rsp + 0x68]
call fcn.18009a864
mov qword [rsp + 0x80], rsi
mov qword [rsp + 0x78], r15
mov byte [rsp + 0x68], r15b
cmp qword [rsp + 0x150], 8
jb 0x18005d5ca
mov rcx, qword [rsp + 0x138]
call fcn.18009a864
cmp r13d, r15d
je 0x18005d6a5
lea rax, [rsp + 0x88]
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x150], rbp
mov qword [rsp + 0x148], r15
mov word [rsp + 0x138], r15w
xor eax, eax
mov rcx, r14
mov rdi, r12
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
mov rdx, r12
lea rcx, [rsp + 0x130]
call fcn.18000f510
nop
lea rdx, [rsp + 0x130]
lea rcx, [rsp + 0x60]
call fcn.180001590
nop
mov rdx, rax
lea rcx, [rsp + 0x88]
call fcn.18006601c
mov rdi, rax
lea rdx, str.attachment
mov rcx, rbx
call fcn.180067578
mov rcx, rax
mov rdx, rdi
call fcn.1800662a8
nop
cmp qword [rsp + 0x80], 0x10
jb 0x18005d672
mov rcx, qword [rsp + 0x68]
call fcn.18009a864
mov qword [rsp + 0x80], rsi
mov qword [rsp + 0x78], r15
mov byte [rsp + 0x68], r15b
cmp qword [rsp + 0x150], 8
jb 0x18005d852
mov rcx, qword [rsp + 0x138]
call fcn.18009a864
jmp 0x18005d852
mov word [rsp + 0x160], r15w
mov edi, 0x206
mov r8, rdi
xor edx, edx
lea rcx, [rsp + 0x162]
call fcn.18009e990
lea rcx, [rsp + 0x160]
call fcn.18005cb64
cmp eax, r15d
jne 0x18005d6f6
cmp qword [rsp + 0x128], 0x10
jb 0x18005d6ef
mov rcx, qword [rsp + 0x110]
call fcn.18009a864
xor eax, eax
jmp 0x18005d877
lea rcx, [rsp + 0x160]
call fcn.180050488
mov word [rsp + 0x370], r15w
mov r8, rdi
xor edx, edx
lea rcx, [rsp + 0x372]
call fcn.18009e990
mov edx, 0x104
lea rcx, [rsp + 0x370]
call fcn.1800516f0
lea rdx, [rsp + 0x370]
lea rcx, [rsp + 0x160]
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
xor r8d, r8d
lea rdx, [rsp + 0x160]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CopyFileW]
cmp eax, r15d
jne 0x18005d77e
cmp qword [rsp + 0x128], 0x10
jb 0x18005d777
mov rcx, qword [rsp + 0x110]
call fcn.18009a864
xor eax, eax
jmp 0x18005d877
lea rax, [rsp + 0x88]
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x150], rbp
mov qword [rsp + 0x148], r15
mov word [rsp + 0x138], r15w
xor eax, eax
mov rcx, r14
lea rdi, [rsp + 0x160]
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
lea rdx, [rsp + 0x160]
lea rcx, [rsp + 0x130]
call fcn.18000f510
nop
lea rdx, [rsp + 0x130]
lea rcx, [rsp + 0x60]
call fcn.180001590
nop
mov rdx, rax
lea rcx, [rsp + 0x88]
call fcn.18006601c
mov rdi, rax
lea rdx, str.attachment
mov rcx, rbx
call fcn.180067578
mov rcx, rax
mov rdx, rdi
call fcn.1800662a8
nop
cmp qword [rsp + 0x80], 0x10
jb 0x18005d827
mov rcx, qword [rsp + 0x68]
call fcn.18009a864
mov qword [rsp + 0x80], rsi
mov qword [rsp + 0x78], r15
mov byte [rsp + 0x68], r15b
cmp qword [rsp + 0x150], 8
jb 0x18005d852
mov rcx, qword [rsp + 0x138]
call fcn.18009a864
nop
cmp qword [rsp + 0x128], 0x10
jb 0x18005d86a
mov rcx, qword [rsp + 0x110]
call fcn.18009a864
mov eax, 1
jmp 0x18005d877
xor eax, eax
jmp 0x18005d877
xor eax, eax
mov rcx, qword [rsp + 0x580]
xor rcx, rsp
call fcn.180099fe0
mov rbx, qword [rsp + 0x5e8]
add rsp, 0x590
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret