Function at 0x180004170
Capabilities:
Copy file
Extract resource via kernel32 functions
Read clipboard data
Terminate process

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x40
cmp dword [rcx + 0x18], 0
mov rbx, rcx
jne 0x1800042fd
call fcn.18004de78
mov r9d, eax
mov eax, 0x55555556
imul r9d
mov r8d, edx
shr r8d, 0x1f
add edx, r8d
lea ecx, [rdx + rdx*2]
sub r9d, ecx
mov ecx, 1
inc r9d
mov dword [rbx + 0x18], r9d
call fcn.180047fa0
mov edx, dword [rbx + 0x18]
mov rdi, rax
sub edx, 1
je 0x1800042dd
sub edx, 1
je 0x1800041eb
cmp edx, 1
jne 0x1800042f0
mov edx, 0x3ec0
mov rcx, rax
call fcn.180005910
mov qword [rbx + 0x10], rax
jmp 0x1800042f0
mov r8d, 0x5a86
nop dword [rax]
nop word [rax + rax]
inc r8d
mov eax, 0x55555556
imul r8d
mov eax, edx
shr eax, 0x1f
add edx, eax
lea ecx, [rdx + rdx*2]
cmp r8d, ecx
jne 0x180004200
mov ecx, 0xfffe176c
lea r9d, [r8 - 0x460]
sub ecx, r8d
lea r11d, [r8 + 0x15fb]
mov eax, 0x55555556
lea r10d, [r8 + 0x19afd]
imul ecx
add r8d, 0x1d03e
mov eax, edx
shr eax, 0x1f
add edx, eax
lea edx, [rdx + rdx*2]
cmp ecx, edx
je 0x180004277
nop dword [rax]
nop word [rax + rax]
inc ecx
mov eax, 0x55555556
imul ecx
mov eax, edx
shr eax, 0x1f
add edx, eax
lea edx, [rdx + rdx*2]
cmp ecx, edx
jne 0x180004260
mov eax, 0x22fa
lea edx, [r11 + 0x339]
sub eax, r8d
add ecx, edx
add r9d, eax
mov eax, r9d
sub eax, ecx
add r10d, eax
cmp ecx, 0xfffe30a0
jne 0x1800042d1
cmp r10d, 0x21340
jne 0x1800042d1
cmp r9d, 0xfffe4e5c
jne 0x1800042d1
cmp r8d, 0x22ac5
jne 0x1800042d1
cmp edx, 0x73bb
jne 0x1800042d1
mov edx, 0x3ec0
mov rcx, rdi
call fcn.180005910
mov qword [rbx + 8], rax
jmp 0x1800042f0
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_ExitProcess]
mov edx, 0x3ec0
mov rcx, rdi
call fcn.180005910
mov qword [rbx], rax
nop dword [rax]
mov edx, 1
mov rcx, rdi
call fcn.180047eb4
mov edx, dword [0x1800d2fa0]
mov qword [rsp + 0x50], rsi
xor esi, esi
cmp edx, 0x87c10c2e
jne 0x180004421
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_OfferVirtualMemory]
mov dword [rsp + 0x30], esi
xor r9d, r9d
mov qword [rsp + 0x28], rsi
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetNamedPipeHandleStateW]
xor ecx, ecx
call qword [sym.imp.USER32.dll_IsWindowEnabled]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_InterlockedFlushSList]
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetPhysicalCursorPos]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CloseThreadpoolIo]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.USER32.dll_EndPaint]
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetClipboardData]
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_DefineDosDeviceW]
call qword [sym.imp.USER32.dll_GetDoubleClickTime]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_PowerCreateRequest]
call qword [sym.imp.KERNEL32.dll_SetFileApisToANSI]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_HeapLock]
call qword [sym.imp.KERNEL32.dll_GetLargePageMinimum]
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.USER32.dll_SetWindowLongW]
xor edx, edx
lea rcx, str.hab18yyLHLhy13o42VIq
call qword [sym.imp.KERNEL32.dll_LocaleNameToLCID]
xor r9d, r9d
mov qword [rsp + 0x20], rsi
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetCurrentConsoleFontEx]
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.USER32.dll_EnableScrollBar]
xor r9d, r9d
mov dword [rsp + 0x28], esi
xor r8d, r8d
mov qword [rsp + 0x20], rsi
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CopyFileExW]
xor ecx, ecx
call qword [sym.imp.USER32.dll_CopyIcon]
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov edx, dword [0x1800d2fa0]
mov ecx, dword [rbx + 0x18]
mov rdi, rsi
sub ecx, 1
je 0x180004442
sub ecx, 1
je 0x18000443c
cmp ecx, 1
jne 0x180004445
mov rdi, qword [rbx + 0x10]
jmp 0x180004445
mov rdi, qword [rbx + 8]
jmp 0x180004445
mov rdi, qword [rbx]
cmp edx, 0xc1a7e6f3
jne 0x180004575
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_IsValidLocale]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_DebugActiveProcess]
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetCPInfoExW]
xor r9d, r9d
mov dword [rsp + 0x28], esi
xor r8d, r8d
mov dword [rsp + 0x20], esi
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_RegisterWaitForSingleObject]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.USER32.dll_NotifyWinEvent]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_InitAtomTable]
xor r9d, r9d
mov qword [rsp + 0x20], rsi
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetTabbedTextExtentW]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_WriteProfileSectionW]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetConsoleAliasExesW]
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.USER32.dll_TranslateAcceleratorW]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.USER32.dll_MapDialogRect]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.USER32.dll_FindWindowW]
mov qword [rsp + 0x30], rsi
lea r8, str.TL6Ln45cSbuxGU7mI4
mov dword [rsp + 0x28], esi
lea rcx, str.XZmK8V4Ud4syksL2
xor r9d, r9d
mov qword [rsp + 0x20], rsi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_GetCalendarInfoEx]
mov dword [rsp + 0x38], esi
xor r9d, r9d
mov qword [rsp + 0x30], rsi
xor r8d, r8d
mov qword [rsp + 0x28], rsi
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_GetVolumeInformationByHandleW]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_LockResource]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetTimeZoneInformation]
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.USER32.dll_AdjustWindowRect]
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetConsoleAliasesW]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.USER32.dll_ReleaseDC]
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetClassNameW]
mov rsi, qword [rsp + 0x50]
mov rax, rdi
mov rbx, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret