Function at 0x140107840
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 [0x140415a10]
xor rax, rsp
mov qword [rbp + 0xa90], rax
xor r13b, r13b
xor r12b, r12b
mov eax, dword [0x140429a18]
lea rbx, vtable.Core::Win32::RegistryKey.0
test al, 1
jne 0x1401078bd
or eax, 1
mov dword [0x140429a18], eax
mov qword [0x1404299f0], rbx
mov qword [0x1404299f8], 0xffffffff80000002
lea rcx, [0x1402fedc0]
call fcn.1402b8a74
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 [0x1404299f8]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea r15, [0x140346ce0]
or rsi, 0xffffffffffffffff
test eax, eax
jne 0x140107cd4
lea ecx, [rsi + 0x11]
call fcn.1402b6dbc
mov r15, rax
test rax, rax
je 0x140107ccd
mov rax, qword [rbp - 0x40]
mov qword [r15], rbx
mov qword [r15 + 8], rax
lea rax, [0x140346ce0]
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x78], r14
lea r8, [rsp + 0x70]
lea rdx, [0x14034f418]
mov rcx, r15
call fcn.1400d8ae0
test al, al
je 0x140107cae
mov r12b, 1
xor dil, dil
xor ecx, ecx
call fcn.1400f1cf0
mov rbx, rax
test rax, rax
je 0x1401079e5
lea rax, [0x140346ce0]
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], r14
lea r8, [rsp + 0x50]
lea rdx, [0x14034f418]
mov rcx, rbx
call fcn.1400d8ae0
test al, al
je 0x1401079ba
mov eax, dword [rsp + 0x5c]
cmp dword [rsp + 0x7c], eax
jne 0x1401079ba
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 0x1401079b6
add rax, 2
test ecx, ecx
jne 0x1401079a2
test edx, edx
je 0x1401079bd
mov dil, 1
mov rax, qword [rbx]
mov edx, 1
mov rcx, rbx
call qword [rax]
nop
cmp dword [rsp + 0x58], 0
jle 0x1401079dc
mov rcx, qword [rsp + 0x50]
call fcn.1402b7350
test dil, dil
je 0x140107cae
mov eax, dword [0x140429a18]
test al, 1
jne 0x140107a1d
or eax, 1
mov dword [0x140429a18], eax
lea rax, vtable.Core::Win32::RegistryKey.0
mov qword [0x1404299f0], rax
mov qword [0x1404299f8], 0xffffffff80000002
lea rcx, [0x1402fedc0]
call fcn.1402b8a74
lea rdx, [0x14034ce18]
lea rcx, [0x1404299f0]
call fcn.1400ea630
mov rbx, rax
test rax, rax
je 0x140107a88
xor r8d, r8d
mov rdx, rax
mov rcx, r15
call fcn.1400eadd0
test al, al
je 0x140107a7b
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, [0x14034f418]
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.1400f1930
nop
mov edx, 0x23
lea rcx, [rsp + 0x60]
call fcn.1402081e0
nop
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x140107c87
mov rax, rsi
inc rax
cmp word [rcx + rax*2], 0
jne 0x140107ab5
test rax, rax
je 0x140107c87
mov qword [rsp + 0x58], r14
mov edx, 0xa
lea rcx, [rsp + 0x50]
call fcn.1401fcb40
mov eax, dword [rsp + 0x58]
inc eax
movsxd rdx, eax
mov r9d, 0xa
lea r8, str.Hitman_Pro
mov rcx, qword [rsp + 0x50]
call fcn.1402ba94c
mov edx, 0xa
lea rcx, [rsp + 0x50]
call fcn.1401fde50
nop
lea r8, [rsp + 0x50]
lea rdx, [rsp + 0x60]
lea rcx, [rbp - 0x50]
call fcn.1400d2ba0
mov rbx, rax
mov edx, dword [rax + 0xc]
lea rcx, [rsp + 0x60]
call fcn.1401fcb40
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.1402ba94c
mov edx, dword [rbx + 0xc]
lea rcx, [rsp + 0x60]
call fcn.1401fde50
nop
cmp dword [rbp - 0x48], 0
jle 0x140107b67
mov rcx, qword [rbp - 0x50]
call fcn.1402b7350
nop
cmp dword [rsp + 0x58], 0
jle 0x140107b78
mov rcx, qword [rsp + 0x50]
call fcn.1402b7350
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.1401fcb40
mov eax, dword [rsp + 0x58]
inc eax
movsxd rdx, eax
mov r9d, ebx
lea r8, [0x14034c84c]
mov rcx, qword [rsp + 0x50]
call fcn.1402ba94c
mov edx, ebx
lea rcx, [rsp + 0x50]
call fcn.1401fde50
nop
lea r8, [rbp - 0x18]
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x60]
call fcn.1400ebad0
nop
cmp dword [rsp + 0x58], 0
jle 0x140107bf0
mov rcx, qword [rsp + 0x50]
call fcn.1402b7350
mov r14, qword [rbp - 8]
mov eax, dword [rbp - 0x10]
test eax, eax
jle 0x140107c5e
mov rbx, r14
mov edi, eax
mov r8, rbx
lea rdx, [rsp + 0x60]
lea rcx, [rbp - 0x70]
call fcn.1400d2ba0
nop
mov r8, rbx
lea rdx, [rbp - 0x80]
lea rcx, [rbp - 0x50]
call fcn.1400d2ba0
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 0x140107c46
mov rcx, qword [rbp - 0x50]
call fcn.1402b7350
nop
cmp dword [rbp - 0x68], 0
jle 0x140107c55
mov rcx, qword [rbp - 0x70]
call fcn.1402b7350
add rbx, 0x10
dec rdi
jne 0x140107c00
test r14, r14
je 0x140107c84
lea r9, [fcn.140005eb0]
mov r8d, dword [r14 - 8]
mov edx, 0x10
mov rcx, r14
call fcn.1402b7cf4
lea rcx, [r14 - 8]
call fcn.1402b712c
xor r14d, r14d
call fcn.1400d4150
nop
cmp dword [rsp + 0x68], 0
jle 0x140107c9f
mov rcx, qword [rsp + 0x60]
call fcn.1402b7350
nop
cmp dword [rbp - 0x78], 0
jle 0x140107cae
mov rcx, qword [rbp - 0x80]
call fcn.1402b7350
mov rax, qword [r15]
mov edx, 1
mov rcx, r15
call qword [rax]
nop
cmp dword [rsp + 0x78], 0
jle 0x140107ccd
mov rcx, qword [rsp + 0x70]
call fcn.1402b7350
lea r15, [0x140346ce0]
call fcn.140105330
test al, al
jne 0x140107de1
mov word [rbp + 0x290], r14w
xor edx, edx
mov r8d, 0x7fe
lea rcx, [rbp + 0x292]
call fcn.1402bfa30
mov qword [rbp - 0x38], r15
mov qword [rbp - 0x30], 0
lea rdi, [0x1404295c0]
cmp word [0x1404295c0], 0
jne 0x140107d2b
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 0x140107d30
mov qword [rbp - 0x58], 0
test ebx, ebx
jne 0x140107d4c
mov qword [rbp - 0x60], r15
jmp 0x140107d6e
mov edx, ebx
lea rcx, [rbp - 0x60]
call fcn.1401fcb40
movsxd r9, ebx
mov eax, dword [rbp - 0x58]
inc eax
movsxd rdx, eax
mov r8, rdi
mov rcx, qword [rbp - 0x60]
call fcn.1402ba94c
mov edx, ebx
lea rcx, [rbp - 0x60]
call fcn.1401fde50
nop
mov qword [rbp - 0x28], r15
mov qword [rbp - 0x20], 0
lea rdx, [rbp - 0x28]
lea rcx, [0x14034ef90]
call fcn.1401071d0
test al, al
je 0x140107de8
mov eax, dword [rbp - 0x1c]
cmp dword [rbp - 0x54], eax
jne 0x140107de8
mov rdx, qword [rbp - 0x28]
mov rcx, qword [rbp - 0x60]
call fcn.1402b71dc
test eax, eax
jne 0x140107de8
cmp dword [rbp - 0x20], eax
jle 0x140107dc2
mov rcx, qword [rbp - 0x28]
call fcn.1402b7350
nop
cmp dword [rbp - 0x58], 0
jle 0x140107dd2
mov rcx, qword [rbp - 0x60]
call fcn.1402b7350
nop
cmp dword [rbp - 0x30], 0
jle 0x140107de1
mov rcx, qword [rbp - 0x38]
call fcn.1402b7350
xor al, al
jmp 0x140108412
test r12b, r12b
je 0x14010833d
xor r15b, r15b
lea rax, [0x140346ce0]
mov qword [rbp - 0x50], rax
mov qword [rbp - 0x48], 0
lea rdx, [rbp - 0x50]
lea rcx, str.HitmanPro35
call fcn.1401071d0
test al, al
je 0x14010832e
lea rdx, [rbp - 0x50]
lea rcx, [rbp - 0x70]
call fcn.1400d2fc0
movsxd rax, dword [rbp - 0x64]
cmp dword [rbp - 0x54], eax
jl 0x140107e54
mov r8, rax
mov rdx, qword [rbp - 0x70]
mov rcx, qword [rbp - 0x60]
call fcn.1402b9158
test eax, eax
movzx r15d, r15b
mov eax, 1
cmove r15d, eax
cmp dword [rbp - 0x68], 0
jle 0x140107e63
mov rcx, qword [rbp - 0x70]
call fcn.1402b7350
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 0x140107fc9
xor eax, eax
mov qword [rsp + 0x58], rax
lea edx, [rax + 0xe]
lea rcx, [rsp + 0x50]
call fcn.1401fcb40
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.1402ba94c
mov edx, 0xe
lea rcx, [rsp + 0x50]
call fcn.1401fde50
nop
lea rax, [rbp + 0x80]
mov rbx, rsi
inc rbx
cmp word [rax + rbx*2], 0
jne 0x140107ee0
xor eax, eax
mov qword [rsp + 0x78], rax
test ebx, ebx
jne 0x140107f03
lea rax, [0x140346ce0]
mov qword [rsp + 0x70], rax
jmp 0x140107f2c
mov edx, ebx
lea rcx, [rsp + 0x70]
call fcn.1401fcb40
movsxd r9, ebx
mov eax, dword [rsp + 0x78]
inc eax
movsxd rdx, eax
lea r8, [rbp + 0x80]
mov rcx, qword [rsp + 0x70]
call fcn.1402ba94c
mov edx, ebx
lea rcx, [rsp + 0x70]
call fcn.1401fde50
nop
lea r8, [rsp + 0x50]
lea rdx, [rsp + 0x70]
lea rcx, [rbp - 0x80]
call fcn.1400d2ba0
nop
cmp dword [rsp + 0x78], 0
jle 0x140107f5f
mov rcx, qword [rsp + 0x70]
call fcn.1402b7350
nop
cmp dword [rsp + 0x58], 0
jle 0x140107f70
mov rcx, qword [rsp + 0x50]
call fcn.1402b7350
lea rdx, [rsp + 0x60]
lea rcx, [rbp - 0x80]
call fcn.1401ff680
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140107fa8
test al, 0x10
je 0x140107fa8
cmp dword [rsp + 0x68], 0
jle 0x140107fa3
mov rcx, qword [rsp + 0x60]
call fcn.1402b7350
mov r12b, 1
jmp 0x140107fba
cmp dword [rsp + 0x68], 0
jle 0x140107fba
mov rcx, qword [rsp + 0x60]
call fcn.1402b7350
nop
cmp dword [rbp - 0x78], 0
jle 0x140107fc9
mov rcx, qword [rbp - 0x80]
call fcn.1402b7350
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 0x1401080f7
xor eax, eax
mov qword [rsp + 0x58], rax
lea edx, [rax + 0x12]
lea rcx, [rsp + 0x50]
call fcn.1401fcb40
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.1402ba94c
mov edx, 0x12
lea rcx, [rsp + 0x50]
call fcn.1401fde50
nop
lea rax, [rbp + 0x80]
mov rbx, rsi
nop dword [rax]
inc rbx
cmp word [rax + rbx*2], 0
jne 0x140108040
xor eax, eax
mov qword [rsp + 0x78], rax
test ebx, ebx
jne 0x140108063
lea rax, [0x140346ce0]
mov qword [rsp + 0x70], rax
jmp 0x14010808c
mov edx, ebx
lea rcx, [rsp + 0x70]
call fcn.1401fcb40
movsxd r9, ebx
mov eax, dword [rsp + 0x78]
inc eax
movsxd rdx, eax
lea r8, [rbp + 0x80]
mov rcx, qword [rsp + 0x70]
call fcn.1402ba94c
mov edx, ebx
lea rcx, [rsp + 0x70]
call fcn.1401fde50
nop
lea r8, [rsp + 0x50]
lea rdx, [rsp + 0x70]
lea rcx, [rbp - 0x80]
call fcn.1400d2ba0
nop
cmp dword [rsp + 0x78], 0
jle 0x1401080bf
mov rcx, qword [rsp + 0x70]
call fcn.1402b7350
nop
cmp dword [rsp + 0x58], 0
jle 0x1401080d0
mov rcx, qword [rsp + 0x50]
call fcn.1402b7350
lea rcx, [rbp - 0x80]
call fcn.140205f30
movzx r14d, r14b
test al, al
mov eax, 1
cmovne r14d, eax
cmp dword [rbp - 0x78], 0
jle 0x1401080f7
mov rcx, qword [rbp - 0x80]
call fcn.1402b7350
call qword [sym.imp.KERNEL32.dll_GetVersion]
cmp al, 6
jb 0x140108109
call fcn.1400f1050
movzx edi, al
call fcn.1400eb080
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 0x140108177
lea ecx, [rbx + 0x10]
call fcn.1402b6dbc
mov rcx, rax
test rax, rax
je 0x140108177
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.1400eab30
movzx edi, dil
test eax, eax
mov eax, 1
cmovne edi, eax
lea rax, [0x140346ce0]
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.140106660
test al, al
je 0x14010831c
mov edx, 0x23
lea rcx, [rsp + 0x60]
call fcn.1402081e0
nop
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x14010830f
inc rsi
cmp word [rcx + rsi*2], 0
jne 0x1401081c1
test rsi, rsi
je 0x14010830f
mov qword [rsp + 0x58], rbx
mov edx, 0xa
lea rcx, [rsp + 0x50]
call fcn.1401fcb40
mov eax, dword [rsp + 0x58]
inc eax
movsxd rdx, eax
mov r9d, 0xa
lea r8, str.Hitman_Pro
mov rcx, qword [rsp + 0x50]
call fcn.1402ba94c
mov edx, 0xa
lea rcx, [rsp + 0x50]
call fcn.1401fde50
nop
lea r8, [rsp + 0x50]
lea rdx, [rsp + 0x60]
lea rcx, [rbp - 0x80]
call fcn.1400d2ba0
mov rbx, rax
mov edx, dword [rax + 0xc]
lea rcx, [rsp + 0x60]
call fcn.1401fcb40
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.1402ba94c
mov edx, dword [rbx + 0xc]
lea rcx, [rsp + 0x60]
call fcn.1401fde50
nop
cmp dword [rbp - 0x78], 0
jle 0x140108273
mov rcx, qword [rbp - 0x80]
call fcn.1402b7350
nop
cmp dword [rsp + 0x58], 0
jle 0x140108284
mov rcx, qword [rsp + 0x50]
call fcn.1402b7350
mov dl, 1
lea rcx, [rsp + 0x60]
call fcn.1400eb4a0
test r15b, r15b
je 0x14010830a
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.1402ba928
lea rdx, [rbp - 0x70]
lea rcx, [rbp - 0x80]
call fcn.1400d2fc0
mov rbx, rax
mov edx, dword [rax + 0xc]
lea rcx, [rbp - 0x38]
call fcn.1401fcb40
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.1402ba94c
mov edx, dword [rbx + 0xc]
lea rcx, [rbp - 0x38]
call fcn.1401fde50
nop
cmp dword [rbp - 0x78], 0
jle 0x14010830a
mov rcx, qword [rbp - 0x80]
call fcn.1402b7350
mov rcx, qword [rsp + 0x60]
cmp dword [rsp + 0x68], 0
jle 0x14010831c
call fcn.1402b7350
nop
cmp dword [rbp - 0x68], 0
jle 0x14010832b
mov rcx, qword [rbp - 0x70]
call fcn.1402b7350
xor r14d, r14d
cmp dword [rbp - 0x48], 0
jle 0x14010833d
mov rcx, qword [rbp - 0x50]
call fcn.1402b7350
cmp word [rbp + 0x290], 0
je 0x1401083df
lea rcx, [rbp + 0x290]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
xor edx, edx
lea r8d, [rdx + 0x60]
lea rcx, [rbp + 0x18]
call fcn.1402bfa30
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 0x1401083df
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.1402bb0a4
nop
cmp dword [rbp - 0x20], 0
jle 0x1401083ef
mov rcx, qword [rbp - 0x28]
call fcn.1402b7350
nop
cmp dword [rbp - 0x58], 0
jle 0x1401083ff
mov rcx, qword [rbp - 0x60]
call fcn.1402b7350
nop
cmp dword [rbp - 0x30], 0
jle 0x14010840e
mov rcx, qword [rbp - 0x38]
call fcn.1402b7350
movzx eax, r13b
mov rcx, qword [rbp + 0xa90]
xor rcx, rsp
call fcn.1402b6d40
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