Function at 0x18000a280
Capabilities:
Get session user name
Get user security identifier
Open clipboard
Write clipboard data

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x380]
sub rsp, 0x480
mov rax, qword [0x1801e6a40]
xor rax, rsp
mov qword [rbp + 0x370], rax
lea rdx, [rsp + 0x54]
mov dword [rsp + 0x54], 0x101
lea rcx, [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_GetUserNameW]
mov ecx, 0x44
mov dword [rsp + 0x40], 0x44
call qword [sym.imp.ucrtbased.dll_malloc]
lea r9, [rsp + 0x40]
mov dword [rsp + 0x50], 0x100
mov rdi, rax
lea rdx, [rsp + 0x60]
lea rax, [rsp + 0x58]
mov r8, rdi
mov qword [rsp + 0x30], rax
xor ecx, ecx
lea rax, [rsp + 0x50]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x170]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
test eax, eax
jne 0x18000a414
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x18000a4d2
mov rcx, rdi
call qword [sym.imp.ucrtbased.dll_free]
mov ecx, dword [rsp + 0x40]
call qword [sym.imp.ucrtbased.dll_malloc]
lea r9, [rsp + 0x40]
xor ecx, ecx
mov rdi, rax
lea rdx, [rsp + 0x60]
lea rax, [rsp + 0x58]
mov r8, rdi
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x170]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
test eax, eax
je 0x18000a4d2
lea rdx, [rsp + 0x48]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_ConvertSidToStringSidW]
test eax, eax
je 0x18000a4d2
xor ecx, ecx
call qword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x18000a4d2
call qword [sym.imp.USER32.dll_EmptyClipboard]
mov rax, qword [rsp + 0x48]
mov rbx, 0xffffffffffffffff
mov rdx, rbx
cmp word [rax + rdx*2 + 2], 0
lea rdx, [rdx + 1]
jne 0x18000a3c0
lea rdx, [rdx*2 + 2]
mov ecx, 2
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov rsi, rax
test rax, rax
je 0x18000a4c1
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
test rax, rax
je 0x18000a4c1
mov r8, qword [rsp + 0x48]
cmp word [r8 + rbx*2 + 2], 0
lea rbx, [rbx + 1]
jne 0x18000a402
jmp 0x18000a49d
lea rdx, [rsp + 0x48]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_ConvertSidToStringSidW]
test eax, eax
je 0x18000a4d2
xor ecx, ecx
call qword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x18000a4d2
call qword [sym.imp.USER32.dll_EmptyClipboard]
mov rax, qword [rsp + 0x48]
mov rbx, 0xffffffffffffffff
mov rdx, rbx
nop
cmp word [rax + rdx*2 + 2], 0
lea rdx, [rdx + 1]
jne 0x18000a450
lea rdx, [rdx*2 + 2]
mov ecx, 2
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov rsi, rax
test rax, rax
je 0x18000a4c1
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
test rax, rax
je 0x18000a4c1
mov r8, qword [rsp + 0x48]
nop word [rax + rax]
cmp word [r8 + rbx*2 + 2], 0
lea rbx, [rbx + 1]
jne 0x18000a490
lea rdx, [rbx + 1]
mov rcx, rax
call qword [sym.imp.ucrtbased.dll_wcscpy_s]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov rdx, rsi
mov ecx, reloc.WS2_32.dll_listen
call qword [sym.imp.USER32.dll_SetClipboardData]
call qword [sym.imp.USER32.dll_CloseClipboard]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, rdi
call qword [sym.imp.ucrtbased.dll_free]
mov rcx, qword [rbp + 0x370]
xor rcx, rsp
call fcn.180111e20
lea r11, [rsp + 0x480]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret