Function at 0x180038200
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, 0x690
mov qword [rsp + 0xd8], 0xfffffffffffffffe
mov qword [r11 + 0x20], rbx
mov rax, qword [0x180071080]
xor rax, rsp
mov qword [rsp + 0x680], rax
mov r13d, r9d
mov r12, r8
mov rbx, rdx
mov rbp, rcx
xor r14d, r14d
mov esi, r14d
mov dword [rsp + 0x50], r14d
lea r15, [0x1800763e0]
mov edi, 0x80
cmp word [0x1800763e0], r14w
jne 0x180038356
mov word [r11 - 0x568], r14w
xor edx, edx
lea r8d, [rdi + 0x7e]
lea rcx, [r11 - 0x566]
call fcn.18003e8c0
mov dword [rsp + 0x50], edi
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x160]
call qword [sym.imp.ADVAPI32.dll_GetUserNameW]
cmp eax, r14d
je 0x180038356
lea rdx, str.system
lea rcx, [rsp + 0x160]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
cmp eax, r14d
jne 0x180038342
lea r9, str.agentUser
lea r8, str.SoftwareWOW6432Nodeprojonepodlp_smpcache_
mov rdx, 0xffffffff80000002
lea rcx, [rsp + 0xe0]
call fcn.180020d88
cmp qword [rsp + 0xf8], r14
jne 0x180038302
mov r8d, edi
lea rdx, [rsp + 0x160]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_lstrcpynW]
jmp 0x180038328
lea rdx, [rsp + 0xe8]
cmp qword [rsp + 0x100], 8
cmovae rdx, qword [rsp + 0xe8]
mov r8d, edi
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_lstrcpynW]
cmp qword [rsp + 0x100], 8
jb 0x180038356
mov rcx, qword [rsp + 0xe8]
call fcn.18003c784
jmp 0x180038356
mov r8d, edi
lea rdx, [rsp + 0x160]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_lstrcpynW]
cmp byte [0x1800764e0], r14b
jne 0x1800383a5
lea rcx, [rsp + 0xb0]
call fcn.180039328
cmp qword [rax + 0x20], 0x10
jb 0x180038379
mov rdx, qword [rax + 8]
jmp 0x18003837d
lea rdx, [rax + 8]
mov r8d, edi
lea rcx, [0x1800764e0]
call qword [sym.imp.KERNEL32.dll_lstrcpynA]
cmp qword [rsp + 0xd0], 0x10
jb 0x1800383a5
mov rcx, qword [rsp + 0xb8]
call fcn.18003c784
cmp word [0x1800763e0], r14w
je 0x180038c83
cmp byte [0x1800764e0], r14b
je 0x180038c83
cmp rbp, r14
je 0x180038c7f
cmp byte [rbx + 8], 7
jne 0x180038c7f
mov r15d, 0xf
mov qword [rsp + 0x100], r15
mov qword [rsp + 0xf8], r14
mov byte [rsp + 0xe8], r14b
lea r8d, [r15 - 7]
lea rdx, str.i_action
lea rcx, [rsp + 0xe0]
call fcn.180005780
nop
mov qword [rsp + 0xd0], r15
mov qword [rsp + 0xc8], r14
mov byte [rsp + 0xb8], r14b
xor r8d, r8d
lea rdx, [0x18005c417]
lea rcx, [rsp + 0xb0]
call fcn.180005780
lea r9, [rsp + 0xb0]
lea r8, [rsp + 0xe0]
mov rdx, rbx
lea rcx, [rsp + 0x108]
call fcn.18001c834
nop
cmp qword [rsp + 0x100], 0x10
jb 0x180038472
mov rcx, qword [rsp + 0xe8]
call fcn.18003c784
mov qword [rsp + 0x100], r15
mov qword [rsp + 0xf8], r14
mov byte [rsp + 0xe8], r14b
lea rdx, str.replace
lea rcx, [rsp + 0x108]
call fcn.18001e1f4
cmp al, r14b
jne 0x1800384c0
lea rdx, str.delete
lea rcx, [rsp + 0x108]
call fcn.18001e1f4
cmp al, r14b
je 0x180038543
lea rdx, str.i_key_columns
mov rcx, rbx
call fcn.18002ae40
cmp byte [rax + 8], 4
jne 0x180038501
lea rdx, str.i_key_columns
mov rcx, rbx
call fcn.18002ae40
mov rcx, rax
lea rdx, [rsp + 0x60]
call fcn.180029c68
mov esi, 1
cmp qword [rax + 0x18], r14
je 0x180038501
mov dil, r14b
jmp 0x180038504
mov dil, 1
test sil, 1
je 0x18003851f
cmp qword [rsp + 0x80], 0x10
jb 0x18003851f
mov rcx, qword [rsp + 0x68]
call fcn.18003c784
cmp dil, r14b
je 0x180038543
cmp qword [rsp + 0x128], 0x10
jb 0x18003853c
mov rcx, qword [rsp + 0x110]
call fcn.18003c784
xor eax, eax
jmp 0x180038c85
lea rax, [rsp + 0x60]
mov qword [rsp + 0x50], rax
mov rdx, rbp
lea rcx, [rsp + 0x60]
call fcn.18002982c
mov rdi, rax
lea rdx, str.i_dt
mov rcx, rbx
call fcn.18002ae40
mov rcx, rax
mov rdx, rdi
call fcn.180029b60
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x50], rcx
lea rdx, [0x1800764e0]
lea rcx, [rsp + 0x60]
call fcn.18002982c
mov rdi, rax
lea rdx, str.client_unique
mov rcx, rbx
call fcn.18002ae40
mov rcx, rax
mov rdx, rdi
call fcn.180029b60
lea rbp, str.user_name
mov rdx, rbp
mov rcx, rbx
call fcn.18002ae40
cmp byte [rax + 8], r14b
jne 0x18003880a
mov qword [rsp + 0x180], r15
mov qword [rsp + 0x178], r14
mov byte [rsp + 0x168], r14b
mov qword [rsp + 0x1a8], r15
mov qword [rsp + 0x1a0], r14
mov byte [rsp + 0x190], r14b
mov dword [rsp + 0x1b0], r14d
mov qword [rsp + 0x1d8], r15
mov qword [rsp + 0x1d0], r14
mov byte [rsp + 0x1c0], r14b
mov qword [rsp + 0x200], r15
mov qword [rsp + 0x1f8], r14
mov byte [rsp + 0x1e8], r14b
mov qword [rsp + 0x228], r15
mov qword [rsp + 0x220], r14
mov byte [rsp + 0x210], r14b
mov qword [rsp + 0x250], r15
mov qword [rsp + 0x248], r14
mov byte [rsp + 0x238], r14b
lea rcx, [rsp + 0x160]
call fcn.1800395bc
cmp eax, r14d
je 0x180038727
cmp qword [rsp + 0x178], r14
je 0x180038727
lea rax, [rsp + 0x60]
mov qword [rsp + 0x50], rax
lea rdx, [rsp + 0x160]
lea rcx, [rsp + 0x60]
call fcn.1800298d4
mov rdi, rax
mov rdx, rbp
mov rcx, rbx
call fcn.18002ae40
mov rcx, rax
mov rdx, rdi
call fcn.180029b60
lea rdx, [rsp + 0x130]
mov qword [rsp + 0x50], rdx
mov byte [rsp + 0x138], 1
btr dword [rsp + 0x138], 8
mov qword [rsp + 0x140], r14
mov qword [rsp + 0x148], r14
mov qword [rsp + 0x150], r14
mov qword [rsp + 0x130], 1
lea rdx, str.i_user_data
mov rcx, rbx
call fcn.18002ae40
mov rcx, rax
lea rdx, [rsp + 0x130]
call fcn.180029b60
mov esi, 7
jmp 0x1800387fb
lea rax, [rsp + 0x88]
mov qword [rsp + 0x50], rax
mov esi, 7
mov qword [rsp + 0x150], rsi
mov qword [rsp + 0x148], r14
mov word [rsp + 0x138], r14w
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [0x1800763e0]
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
lea rdx, [0x1800763e0]
lea rcx, [rsp + 0x130]
call fcn.180005ca0
nop
lea rdx, [rsp + 0x130]
lea rcx, [rsp + 0x60]
call fcn.180001390
nop
mov rdx, rax
lea rcx, [rsp + 0x88]
call fcn.1800298d4
mov rdi, rax
mov rdx, rbp
mov rcx, rbx
call fcn.18002ae40
mov rcx, rax
mov rdx, rdi
call fcn.180029b60
nop
cmp qword [rsp + 0x80], 0x10
jb 0x1800387d0
mov rcx, qword [rsp + 0x68]
call fcn.18003c784
mov qword [rsp + 0x80], r15
mov qword [rsp + 0x78], r14
mov byte [rsp + 0x68], r14b
cmp qword [rsp + 0x150], 8
jb 0x1800387fb
mov rcx, qword [rsp + 0x138]
call fcn.18003c784
nop
lea rcx, [rsp + 0x160]
call fcn.180038cb0
jmp 0x18003880f
mov esi, 7
lea rdx, str.data_time
mov rcx, rbx
call fcn.18002ae40
cmp byte [rax + 8], r14b
jne 0x1800388f9
mov byte [rsp + 0x130], r14b
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.18002982c
mov rdi, rax
lea rdx, str.data_time
mov rcx, rbx
call fcn.18002ae40
mov rcx, rax
mov rdx, rdi
call fcn.180029b60
cmp r12, r14
je 0x180038c60
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], rsi
mov qword [rsp + 0x148], r14
mov word [rsp + 0x138], r14w
xor eax, eax
or rbp, 0xffffffffffffffff
mov rcx, rbp
mov rdi, rdx
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
lea rcx, [rsp + 0x130]
call fcn.180005ca0
nop
lea rdx, [rsp + 0x130]
lea rcx, [rsp + 0x60]
call fcn.180001390
nop
mov rdx, rax
lea rcx, [rsp + 0x88]
call fcn.1800298d4
mov rdi, rax
lea rdx, str.attach_name
mov rcx, rbx
call fcn.18002ae40
mov rcx, rax
mov rdx, rdi
call fcn.180029b60
nop
cmp qword [rsp + 0x80], 0x10
jb 0x1800389ae
mov rcx, qword [rsp + 0x68]
call fcn.18003c784
mov qword [rsp + 0x80], r15
mov qword [rsp + 0x78], r14
mov byte [rsp + 0x68], r14b
cmp qword [rsp + 0x150], 8
jb 0x1800389d8
mov rcx, qword [rsp + 0x138]
call fcn.18003c784
cmp r13d, r14d
je 0x180038ab3
lea rax, [rsp + 0x88]
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x150], rsi
mov qword [rsp + 0x148], r14
mov word [rsp + 0x138], r14w
xor eax, eax
mov rcx, rbp
mov rdi, r12
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
mov rdx, r12
lea rcx, [rsp + 0x130]
call fcn.180005ca0
nop
lea rdx, [rsp + 0x130]
lea rcx, [rsp + 0x60]
call fcn.180001390
nop
mov rdx, rax
lea rcx, [rsp + 0x88]
call fcn.1800298d4
mov rdi, rax
lea rdx, str.attachment
mov rcx, rbx
call fcn.18002ae40
mov rcx, rax
mov rdx, rdi
call fcn.180029b60
nop
cmp qword [rsp + 0x80], 0x10
jb 0x180038a80
mov rcx, qword [rsp + 0x68]
call fcn.18003c784
mov qword [rsp + 0x80], r15
mov qword [rsp + 0x78], r14
mov byte [rsp + 0x68], r14b
cmp qword [rsp + 0x150], 8
jb 0x180038c60
mov rcx, qword [rsp + 0x138]
call fcn.18003c784
jmp 0x180038c60
mov word [rsp + 0x260], r14w
mov edi, 0x206
mov r8, rdi
xor edx, edx
lea rcx, [rsp + 0x262]
call fcn.18003e8c0
lea rcx, [rsp + 0x260]
call fcn.180038040
cmp eax, r14d
jne 0x180038b04
cmp qword [rsp + 0x128], 0x10
jb 0x180038afd
mov rcx, qword [rsp + 0x110]
call fcn.18003c784
xor eax, eax
jmp 0x180038c85
lea rcx, [rsp + 0x260]
call fcn.18001ec68
mov word [rsp + 0x470], r14w
mov r8, rdi
xor edx, edx
lea rcx, [rsp + 0x472]
call fcn.18003e8c0
mov edx, 0x104
lea rcx, [rsp + 0x470]
call fcn.18001fab0
lea rdx, [rsp + 0x470]
lea rcx, [rsp + 0x260]
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
xor r8d, r8d
lea rdx, [rsp + 0x260]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CopyFileW]
cmp eax, r14d
jne 0x180038b8c
cmp qword [rsp + 0x128], 0x10
jb 0x180038b85
mov rcx, qword [rsp + 0x110]
call fcn.18003c784
xor eax, eax
jmp 0x180038c85
lea rax, [rsp + 0x88]
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x150], rsi
mov qword [rsp + 0x148], r14
mov word [rsp + 0x138], r14w
xor eax, eax
mov rcx, rbp
lea rdi, [rsp + 0x260]
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
lea rdx, [rsp + 0x260]
lea rcx, [rsp + 0x130]
call fcn.180005ca0
nop
lea rdx, [rsp + 0x130]
lea rcx, [rsp + 0x60]
call fcn.180001390
nop
mov rdx, rax
lea rcx, [rsp + 0x88]
call fcn.1800298d4
mov rdi, rax
lea rdx, str.attachment
mov rcx, rbx
call fcn.18002ae40
mov rcx, rax
mov rdx, rdi
call fcn.180029b60
nop
cmp qword [rsp + 0x80], 0x10
jb 0x180038c35
mov rcx, qword [rsp + 0x68]
call fcn.18003c784
mov qword [rsp + 0x80], r15
mov qword [rsp + 0x78], r14
mov byte [rsp + 0x68], r14b
cmp qword [rsp + 0x150], 8
jb 0x180038c60
mov rcx, qword [rsp + 0x138]
call fcn.18003c784
nop
cmp qword [rsp + 0x128], 0x10
jb 0x180038c78
mov rcx, qword [rsp + 0x110]
call fcn.18003c784
mov eax, 1
jmp 0x180038c85
xor eax, eax
jmp 0x180038c85
xor eax, eax
mov rcx, qword [rsp + 0x680]
xor rcx, rsp
call fcn.18003c160
mov rbx, qword [rsp + 0x6e8]
add rsp, 0x690
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret