Function at 0x140108ca0
Capabilities:
Check if file exists
Check os version
Copy file
Create process on windows
Get common file path
Get file attributes
Persist via lnk shortcut
Persist via run registry key
Print debug messages
Set registry value

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0xac8]
sub rsp, 0xba0
mov qword [rbp], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov rax, qword [0x1403eaa10]
xor rax, rsp
mov qword [rbp + 0xa90], rax
xor r13b, r13b
xor r12b, r12b
mov eax, dword [0x1403fe608]
lea rbx, vtable.Core::Win32::RegistryKey.0
test al, 1
jne 0x140108d1d
or eax, 1
mov dword [0x1403fe608], eax
mov qword [0x1403fe5e0], rbx
mov qword [0x1403fe5e8], 0xffffffff80000002
lea rcx, [0x1402de040]
call fcn.140299c6c
xor r14d, r14d
mov qword [rbp - 0x40], r14
lea rax, [rbp - 0x40]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, str.SOFTWAREHitman_Pro
mov rcx, qword [0x1403fe5e8]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea r15, [0x140323de0]
or rsi, 0xffffffffffffffff
test eax, eax
jne 0x140109134
lea ecx, [rsi + 0x11]
call fcn.14029806c
mov r15, rax
test rax, rax
je 0x14010912d
mov rax, qword [rbp - 0x40]
mov qword [r15], rbx
mov qword [r15 + 8], rax
lea rax, [0x140323de0]
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x78], r14
lea r8, [rsp + 0x70]
lea rdx, [0x14032c188]
mov rcx, r15
call fcn.1400d5720
test al, al
je 0x14010910e
mov r12b, 1
xor dil, dil
xor ecx, ecx
call fcn.1400f3b20
mov rbx, rax
test rax, rax
je 0x140108e45
lea rax, [0x140323de0]
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], r14
lea r8, [rsp + 0x50]
lea rdx, [0x14032c188]
mov rcx, rbx
call fcn.1400d5720
test al, al
je 0x140108e1a
mov eax, dword [rsp + 0x5c]
cmp dword [rsp + 0x7c], eax
jne 0x140108e1a
mov rax, qword [rsp + 0x70]
mov r8, qword [rsp + 0x50]
sub r8, rax
movzx edx, word [rax]
movzx ecx, word [rax + r8]
sub edx, ecx
jne 0x140108e16
add rax, 2
test ecx, ecx
jne 0x140108e02
test edx, edx
je 0x140108e1d
mov dil, 1
mov rax, qword [rbx]
mov edx, 1
mov rcx, rbx
call qword [rax]
nop
cmp dword [rsp + 0x58], 0
jle 0x140108e3c
mov rcx, qword [rsp + 0x50]
call fcn.140298600
test dil, dil
je 0x14010910e
mov eax, dword [0x1403fe608]
test al, 1
jne 0x140108e7d
or eax, 1
mov dword [0x1403fe608], eax
lea rax, vtable.Core::Win32::RegistryKey.0
mov qword [0x1403fe5e0], rax
mov qword [0x1403fe5e8], 0xffffffff80000002
lea rcx, [0x1402de040]
call fcn.140299c6c
lea rdx, [0x140329c48]
lea rcx, [0x1403fe5e0]
call fcn.1400ec430
mov rbx, rax
test rax, rax
je 0x140108ee8
xor r8d, r8d
mov rdx, rax
mov rcx, r15
call fcn.1400ecc50
test al, al
je 0x140108edb
mov eax, dword [rsp + 0x7c]
add eax, eax
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
lea rdx, [0x14032c188]
mov rcx, qword [rbx + 8]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov r13b, 1
mov rax, qword [rbx]
mov edx, 1
mov rcx, rbx
call qword [rax]
xor edx, edx
lea rcx, [rbp - 0x80]
call fcn.1400f3760
nop
mov edx, 0x23
lea rcx, [rsp + 0x60]
call fcn.1401f44e0
nop
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x1401090e7
mov rax, rsi
inc rax
cmp word [rcx + rax*2], 0
jne 0x140108f15
test rax, rax
je 0x1401090e7
mov qword [rsp + 0x58], r14
mov edx, 0xa
lea rcx, [rsp + 0x50]
call fcn.1401e9030
mov eax, dword [rsp + 0x58]
inc eax
movsxd rdx, eax
mov r9d, 0xa
lea r8, [0x14032c1d0]
mov rcx, qword [rsp + 0x50]
call fcn.14029b4d8
mov edx, 0xa
lea rcx, [rsp + 0x50]
call fcn.1401ea290
nop
lea r8, [rsp + 0x50]
lea rdx, [rsp + 0x60]
lea rcx, [rbp - 0x50]
call fcn.1400d1690
mov rbx, rax
mov edx, dword [rax + 0xc]
lea rcx, [rsp + 0x60]
call fcn.1401e9030
movsxd r9, dword [rbx + 0xc]
mov eax, dword [rsp + 0x68]
inc eax
movsxd rdx, eax
mov r8, qword [rbx]
mov rcx, qword [rsp + 0x60]
call fcn.14029b4d8
mov edx, dword [rbx + 0xc]
lea rcx, [rsp + 0x60]
call fcn.1401ea290
nop
cmp dword [rbp - 0x48], 0
jle 0x140108fc7
mov rcx, qword [rbp - 0x50]
call fcn.140298600
nop
cmp dword [rsp + 0x58], 0
jle 0x140108fd8
mov rcx, qword [rsp + 0x50]
call fcn.140298600
lea rax, vtable.Core::Array_class_Core::String_.0
mov qword [rbp - 0x18], rax
mov dword [rbp - 0x10], r14d
mov qword [rbp - 8], r14
mov qword [rsp + 0x58], r14
mov ebx, 1
mov edx, ebx
lea rcx, [rsp + 0x50]
call fcn.1401e9030
mov eax, dword [rsp + 0x58]
inc eax
movsxd rdx, eax
mov r9d, ebx
lea r8, [0x14032967c]
mov rcx, qword [rsp + 0x50]
call fcn.14029b4d8
mov edx, ebx
lea rcx, [rsp + 0x50]
call fcn.1401ea290
nop
lea r8, [rbp - 0x18]
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x60]
call fcn.1400ed950
nop
cmp dword [rsp + 0x58], 0
jle 0x140109050
mov rcx, qword [rsp + 0x50]
call fcn.140298600
mov r14, qword [rbp - 8]
mov eax, dword [rbp - 0x10]
test eax, eax
jle 0x1401090be
mov rbx, r14
mov edi, eax
mov r8, rbx
lea rdx, [rsp + 0x60]
lea rcx, [rbp - 0x70]
call fcn.1400d1690
nop
mov r8, rbx
lea rdx, [rbp - 0x80]
lea rcx, [rbp - 0x50]
call fcn.1400d1690
mov r8d, 1
mov rdx, qword [rbp - 0x50]
mov rcx, qword [rbp - 0x70]
call qword [sym.imp.KERNEL32.dll_CopyFileW]
cmp dword [rbp - 0x48], 0
jle 0x1401090a6
mov rcx, qword [rbp - 0x50]
call fcn.140298600
nop
cmp dword [rbp - 0x68], 0
jle 0x1401090b5
mov rcx, qword [rbp - 0x70]
call fcn.140298600
add rbx, 0x10
dec rdi
jne 0x140109060
test r14, r14
je 0x1401090e4
lea r9, [fcn.140005d80]
mov r8d, dword [r14 - 8]
mov edx, 0x10
mov rcx, r14
call fcn.140298fa4
lea rcx, [r14 - 8]
call fcn.1402983dc
xor r14d, r14d
call fcn.1400d2c40
nop
cmp dword [rsp + 0x68], 0
jle 0x1401090ff
mov rcx, qword [rsp + 0x60]
call fcn.140298600
nop
cmp dword [rbp - 0x78], 0
jle 0x14010910e
mov rcx, qword [rbp - 0x80]
call fcn.140298600
mov rax, qword [r15]
mov edx, 1
mov rcx, r15
call qword [rax]
nop
cmp dword [rsp + 0x78], 0
jle 0x14010912d
mov rcx, qword [rsp + 0x70]
call fcn.140298600
lea r15, [0x140323de0]
call fcn.140106b90
test al, al
jne 0x140109241
mov word [rbp + 0x290], r14w
xor edx, edx
mov r8d, 0x7fe
lea rcx, [rbp + 0x292]
call fcn.1402a04b0
mov qword [rbp - 0x38], r15
mov qword [rbp - 0x30], 0
lea rdi, [0x1403fe1b0]
cmp word [0x1403fe1b0], 0
jne 0x14010918b
mov r8d, 0x104
mov rdx, rdi
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov rbx, rsi
nop
inc rbx
cmp word [rdi + rbx*2], 0
jne 0x140109190
mov qword [rbp - 0x58], 0
test ebx, ebx
jne 0x1401091ac
mov qword [rbp - 0x60], r15
jmp 0x1401091ce
mov edx, ebx
lea rcx, [rbp - 0x60]
call fcn.1401e9030
movsxd r9, ebx
mov eax, dword [rbp - 0x58]
inc eax
movsxd rdx, eax
mov r8, rdi
mov rcx, qword [rbp - 0x60]
call fcn.14029b4d8
mov edx, ebx
lea rcx, [rbp - 0x60]
call fcn.1401ea290
nop
mov qword [rbp - 0x28], r15
mov qword [rbp - 0x20], 0
lea rdx, [rbp - 0x28]
lea rcx, [0x14032bd30]
call fcn.140108650
test al, al
je 0x140109248
mov eax, dword [rbp - 0x1c]
cmp dword [rbp - 0x54], eax
jne 0x140109248
mov rdx, qword [rbp - 0x28]
mov rcx, qword [rbp - 0x60]
call fcn.14029848c
test eax, eax
jne 0x140109248
cmp dword [rbp - 0x20], eax
jle 0x140109222
mov rcx, qword [rbp - 0x28]
call fcn.140298600
nop
cmp dword [rbp - 0x58], 0
jle 0x140109232
mov rcx, qword [rbp - 0x60]
call fcn.140298600
nop
cmp dword [rbp - 0x30], 0
jle 0x140109241
mov rcx, qword [rbp - 0x38]
call fcn.140298600
xor al, al
jmp 0x140109872
test r12b, r12b
je 0x14010979d
xor r15b, r15b
lea rax, [0x140323de0]
mov qword [rbp - 0x50], rax
mov qword [rbp - 0x48], 0
lea rdx, [rbp - 0x50]
lea rcx, str.HitmanPro35
call fcn.140108650
test al, al
je 0x14010978e
lea rdx, [rbp - 0x50]
lea rcx, [rbp - 0x70]
call fcn.1400d1ab0
movsxd rax, dword [rbp - 0x64]
cmp dword [rbp - 0x54], eax
jl 0x1401092b4
mov r8, rax
mov rdx, qword [rbp - 0x70]
mov rcx, qword [rbp - 0x60]
call fcn.14029a350
test eax, eax
movzx r15d, r15b
mov eax, 1
cmove r15d, eax
cmp dword [rbp - 0x68], 0
jle 0x1401092c3
mov rcx, qword [rbp - 0x70]
call fcn.140298600
xor r12b, r12b
xor r14b, r14b
xor dil, dil
lea rax, [rbp + 0x80]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 0x17]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jne 0x140109429
xor eax, eax
mov qword [rsp + 0x58], rax
lea edx, [rax + 0xe]
lea rcx, [rsp + 0x50]
call fcn.1401e9030
mov eax, dword [rsp + 0x58]
inc eax
movsxd rdx, eax
mov r9d, 0xe
lea r8, str.Hitman_Pro_3.5
mov rcx, qword [rsp + 0x50]
call fcn.14029b4d8
mov edx, 0xe
lea rcx, [rsp + 0x50]
call fcn.1401ea290
nop
lea rax, [rbp + 0x80]
mov rbx, rsi
inc rbx
cmp word [rax + rbx*2], 0
jne 0x140109340
xor eax, eax
mov qword [rsp + 0x78], rax
test ebx, ebx
jne 0x140109363
lea rax, [0x140323de0]
mov qword [rsp + 0x70], rax
jmp 0x14010938c
mov edx, ebx
lea rcx, [rsp + 0x70]
call fcn.1401e9030
movsxd r9, ebx
mov eax, dword [rsp + 0x78]
inc eax
movsxd rdx, eax
lea r8, [rbp + 0x80]
mov rcx, qword [rsp + 0x70]
call fcn.14029b4d8
mov edx, ebx
lea rcx, [rsp + 0x70]
call fcn.1401ea290
nop
lea r8, [rsp + 0x50]
lea rdx, [rsp + 0x70]
lea rcx, [rbp - 0x80]
call fcn.1400d1690
nop
cmp dword [rsp + 0x78], 0
jle 0x1401093bf
mov rcx, qword [rsp + 0x70]
call fcn.140298600
nop
cmp dword [rsp + 0x58], 0
jle 0x1401093d0
mov rcx, qword [rsp + 0x50]
call fcn.140298600
lea rdx, [rsp + 0x60]
lea rcx, [rbp - 0x80]
call fcn.1401ebac0
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140109408
test al, 0x10
je 0x140109408
cmp dword [rsp + 0x68], 0
jle 0x140109403
mov rcx, qword [rsp + 0x60]
call fcn.140298600
mov r12b, 1
jmp 0x14010941a
cmp dword [rsp + 0x68], 0
jle 0x14010941a
mov rcx, qword [rsp + 0x60]
call fcn.140298600
nop
cmp dword [rbp - 0x78], 0
jle 0x140109429
mov rcx, qword [rbp - 0x80]
call fcn.140298600
lea rax, [rbp + 0x80]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 0x19]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jne 0x140109557
xor eax, eax
mov qword [rsp + 0x58], rax
lea edx, [rax + 0x12]
lea rcx, [rsp + 0x50]
call fcn.1401e9030
mov eax, dword [rsp + 0x58]
inc eax
movsxd rdx, eax
mov r9d, 0x12
lea r8, str.Hitman_Pro_3.5.lnk
mov rcx, qword [rsp + 0x50]
call fcn.14029b4d8
mov edx, 0x12
lea rcx, [rsp + 0x50]
call fcn.1401ea290
nop
lea rax, [rbp + 0x80]
mov rbx, rsi
nop dword [rax]
inc rbx
cmp word [rax + rbx*2], 0
jne 0x1401094a0
xor eax, eax
mov qword [rsp + 0x78], rax
test ebx, ebx
jne 0x1401094c3
lea rax, [0x140323de0]
mov qword [rsp + 0x70], rax
jmp 0x1401094ec
mov edx, ebx
lea rcx, [rsp + 0x70]
call fcn.1401e9030
movsxd r9, ebx
mov eax, dword [rsp + 0x78]
inc eax
movsxd rdx, eax
lea r8, [rbp + 0x80]
mov rcx, qword [rsp + 0x70]
call fcn.14029b4d8
mov edx, ebx
lea rcx, [rsp + 0x70]
call fcn.1401ea290
nop
lea r8, [rsp + 0x50]
lea rdx, [rsp + 0x70]
lea rcx, [rbp - 0x80]
call fcn.1400d1690
nop
cmp dword [rsp + 0x78], 0
jle 0x14010951f
mov rcx, qword [rsp + 0x70]
call fcn.140298600
nop
cmp dword [rsp + 0x58], 0
jle 0x140109530
mov rcx, qword [rsp + 0x50]
call fcn.140298600
lea rcx, [rbp - 0x80]
call fcn.1401f2230
movzx r14d, r14b
test al, al
mov eax, 1
cmovne r14d, eax
cmp dword [rbp - 0x78], 0
jle 0x140109557
mov rcx, qword [rbp - 0x80]
call fcn.140298600
call qword [sym.imp.KERNEL32.dll_GetVersion]
cmp al, 6
jb 0x140109569
call fcn.1400f2e80
movzx edi, al
call fcn.1400ecf00
xor ebx, ebx
mov qword [rbp - 0x40], rbx
lea rdx, [rbp - 0x40]
mov qword [rsp + 0x20], rdx
mov r9d, 0x20019
xor r8d, r8d
lea rdx, str.SOFTWAREMicrosoftWindowsCurrentVersionRun
mov rcx, qword [rax + 8]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1401095d7
lea ecx, [rbx + 0x10]
call fcn.14029806c
mov rcx, rax
test rax, rax
je 0x1401095d7
mov rax, qword [rbp - 0x40]
lea rdx, vtable.Core::Win32::RegistryKey.0
mov qword [rcx], rdx
mov qword [rcx + 8], rax
lea rdx, str.HitmanPro35
call fcn.1400ec9b0
movzx edi, dil
test eax, eax
mov eax, 1
cmovne edi, eax
lea rax, [0x140323de0]
mov qword [rbp - 0x70], rax
mov qword [rbp - 0x68], rbx
lea r9, [rbp - 0x70]
movzx r8d, r14b
movzx edx, r12b
movzx ecx, dil
call fcn.140107ae0
test al, al
je 0x14010977c
mov edx, 0x23
lea rcx, [rsp + 0x60]
call fcn.1401f44e0
nop
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x14010976f
inc rsi
cmp word [rcx + rsi*2], 0
jne 0x140109621
test rsi, rsi
je 0x14010976f
mov qword [rsp + 0x58], rbx
mov edx, 0xa
lea rcx, [rsp + 0x50]
call fcn.1401e9030
mov eax, dword [rsp + 0x58]
inc eax
movsxd rdx, eax
mov r9d, 0xa
lea r8, [0x14032c1d0]
mov rcx, qword [rsp + 0x50]
call fcn.14029b4d8
mov edx, 0xa
lea rcx, [rsp + 0x50]
call fcn.1401ea290
nop
lea r8, [rsp + 0x50]
lea rdx, [rsp + 0x60]
lea rcx, [rbp - 0x80]
call fcn.1400d1690
mov rbx, rax
mov edx, dword [rax + 0xc]
lea rcx, [rsp + 0x60]
call fcn.1401e9030
movsxd r9, dword [rbx + 0xc]
mov eax, dword [rsp + 0x68]
inc eax
movsxd rdx, eax
mov r8, qword [rbx]
mov rcx, qword [rsp + 0x60]
call fcn.14029b4d8
mov edx, dword [rbx + 0xc]
lea rcx, [rsp + 0x60]
call fcn.1401ea290
nop
cmp dword [rbp - 0x78], 0
jle 0x1401096d3
mov rcx, qword [rbp - 0x80]
call fcn.140298600
nop
cmp dword [rsp + 0x58], 0
jle 0x1401096e4
mov rcx, qword [rsp + 0x50]
call fcn.140298600
mov dl, 1
lea rcx, [rsp + 0x60]
call fcn.1400ed320
test r15b, r15b
je 0x14010976a
mov rax, qword [rbp - 0x60]
mov qword [rsp + 0x20], rax
mov r9, qword [rbp - 0x70]
lea r8, str.__s___upgraded:__s_
mov edx, 0x400
lea rcx, [rbp + 0x290]
call fcn.14029b4b4
lea rdx, [rbp - 0x70]
lea rcx, [rbp - 0x80]
call fcn.1400d1ab0
mov rbx, rax
mov edx, dword [rax + 0xc]
lea rcx, [rbp - 0x38]
call fcn.1401e9030
movsxd r9, dword [rbx + 0xc]
mov eax, dword [rbp - 0x30]
inc eax
movsxd rdx, eax
mov r8, qword [rbx]
mov rcx, qword [rbp - 0x38]
call fcn.14029b4d8
mov edx, dword [rbx + 0xc]
lea rcx, [rbp - 0x38]
call fcn.1401ea290
nop
cmp dword [rbp - 0x78], 0
jle 0x14010976a
mov rcx, qword [rbp - 0x80]
call fcn.140298600
mov rcx, qword [rsp + 0x60]
cmp dword [rsp + 0x68], 0
jle 0x14010977c
call fcn.140298600
nop
cmp dword [rbp - 0x68], 0
jle 0x14010978b
mov rcx, qword [rbp - 0x70]
call fcn.140298600
xor r14d, r14d
cmp dword [rbp - 0x48], 0
jle 0x14010979d
mov rcx, qword [rbp - 0x50]
call fcn.140298600
cmp word [rbp + 0x290], 0
je 0x14010983f
lea rcx, [rbp + 0x290]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
xor edx, edx
lea r8d, [rdx + 0x60]
lea rcx, [rbp + 0x18]
call fcn.1402a04b0
mov qword [rbp - 0x18], r14
xor eax, eax
mov qword [rbp - 0x10], rax
mov qword [rbp - 8], rax
mov dword [rbp + 0x10], 0x68
lea rax, [rbp - 0x18]
mov qword [rsp + 0x48], rax
lea rax, [rbp + 0x10]
mov qword [rsp + 0x40], rax
mov rax, qword [rbp - 0x38]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], r14d
mov eax, 1
mov dword [rsp + 0x20], eax
xor r9d, r9d
xor r8d, r8d
lea rdx, [rbp + 0x290]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x14010983f
mov rcx, qword [rbp - 0x10]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp - 0x18]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor ecx, ecx
call fcn.14029bc30
nop
cmp dword [rbp - 0x20], 0
jle 0x14010984f
mov rcx, qword [rbp - 0x28]
call fcn.140298600
nop
cmp dword [rbp - 0x58], 0
jle 0x14010985f
mov rcx, qword [rbp - 0x60]
call fcn.140298600
nop
cmp dword [rbp - 0x30], 0
jle 0x14010986e
mov rcx, qword [rbp - 0x38]
call fcn.140298600
movzx eax, r13b
mov rcx, qword [rbp + 0xa90]
xor rcx, rsp
call fcn.140297ff0
lea r11, [rsp + 0xba0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret