joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14016cba0
Capabilities:
Connect to wmi namespace via wbemlocator

Disassembly:
mov r11, rsp
push rbp
push rsi
push rdi
sub rsp, 0x60
mov qword [r11 - 0x20], 0xfffffffffffffffe
mov qword [r11 + 8], rbx
mov rsi, rcx
xor bl, bl
xor ebp, ebp
mov qword [r11 + 0x20], rbp
mov qword [r11 + 0x18], rbp
lea rax, [r11 + 0x20]
mov qword [r11 - 0x58], rax
lea r9, [0x14030bf98]
xor edx, edx
lea r8d, [rbp + 1]
lea rcx, [0x14030c068]
call qword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jne 0x14016cd02
mov rcx, qword [rsp + 0x98]
mov rax, qword [rcx]
lea rdx, [rsp + 0x90]
mov qword [rsp + 0x40], rdx
mov qword [rsp + 0x38], rbp
mov qword [rsp + 0x30], rbp
mov dword [rsp + 0x28], ebp
mov qword [rsp + 0x20], rbp
xor r9d, r9d
xor r8d, r8d
lea rdx, str.root_subscription
call qword [rax + 0x18]
test eax, eax
jne 0x14016cd02
mov dword [rsp + 0x38], ebp
mov qword [rsp + 0x30], rbp
mov dword [rsp + 0x28], 3
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor r8d, r8d
lea edx, [rbp + 0xa]
mov rcx, qword [rsp + 0x90]
call qword [sym.imp.ole32.dll_CoSetProxyBlanket]
test eax, eax
jne 0x14016cd02
mov rdx, qword [rsi + 0x68]
lea rcx, [rsp + 0x50]
call fcn.14011d540
nop
mov rdx, qword [rax]
test rdx, rdx
je 0x14016cc86
mov rdx, qword [rdx]
jmp 0x14016cc89
mov rdx, rbp
mov rcx, qword [rsp + 0x90]
mov rax, qword [rcx]
mov qword [rsp + 0x20], rbp
xor r9d, r9d
xor r8d, r8d
call qword [rax + 0x80]
mov edi, eax
mov rbx, qword [rsp + 0x50]
test rbx, rbx
je 0x14016cce7
lock dec dword [rbx + 0x10]
jne 0x14016cce7
test rbx, rbx
je 0x14016cce7
mov rcx, qword [rbx]
test rcx, rcx
je 0x14016cccd
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov qword [rbx], rbp
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x14016ccdf
call fcn.1402b99fc
mov qword [rbx + 8], rbp
mov rcx, rbx
call fcn.1402177e0
test edi, edi
je 0x14016ccff
mov r8, qword [rsi + 0x68]
mov edx, edi
lea rcx, str.RepairWMI:__08X__ls_r_n
call fcn.1402ba358
test edi, edi
sete bl
mov rcx, qword [rsp + 0x90]
test rcx, rcx
je 0x14016cd15
mov rdx, qword [rcx]
call qword [rdx + 0x10]
mov rcx, qword [rsp + 0x98]
test rcx, rcx
je 0x14016cd28
mov rdx, qword [rcx]
call qword [rdx + 0x10]
movzx eax, bl
mov rbx, qword [rsp + 0x80]
add rsp, 0x60
pop rdi
pop rsi
pop rbp
ret
Function at 0x140170d40
Capabilities:
Print debug messages
Write file on windows

Disassembly:
test rdx, rdx
je 0x140170f74
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
push rbp
push rbx
push rsi
push rdi
push r14
lea rbp, [rsp - 0x37]
sub rsp, 0xb0
mov qword [rbp + 0xf], 0xfffffffffffffffe
mov rax, qword [0x140418a10]
xor rax, rsp
mov qword [rbp + 0x27], rax
mov ebx, ecx
lea rsi, [rbp + 0x77]
lea rcx, [rbp + 0x17]
call qword [sym.imp.KERNEL32.dll_GetSystemTime]
lea rax, str.INFO
lea rdi, str.WARN
cmp ebx, 2
cmovne rdi, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
movzx ecx, word [rbp + 0x25]
movzx edx, word [rbp + 0x23]
movzx r10d, word [rbp + 0x21]
movzx r11d, word [rbp + 0x1f]
movzx ebx, word [rbp + 0x1d]
movzx r9d, word [rbp + 0x19]
movzx r8d, word [rbp + 0x17]
mov qword [rsp + 0x50], rdi
mov dword [rsp + 0x48], eax
mov dword [rsp + 0x40], ecx
mov dword [rsp + 0x38], edx
mov dword [rsp + 0x30], r10d
mov dword [rsp + 0x28], r11d
mov dword [rsp + 0x20], ebx
lea rdx, str._4d__02d__02dT_02d:_02d:_02d._03dZ___5u___ls
lea rcx, [rbp - 1]
call fcn.1401ff700
nop
mov r8, rsi
mov rdx, qword [rbp + 0x6f]
lea rcx, [rbp - 0x19]
call fcn.1401ff7a0
nop
mov r8, qword [rbp - 1]
lea rcx, [rbp - 0x19]
call fcn.140200130
lea rdx, [0x1403490e4]
lea rcx, [rbp - 0x19]
call fcn.1401fd8b0
mov rcx, qword [rbp - 0x19]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
xor r14d, r14d
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], r14d
mov qword [rsp + 0x20], r14
mov r9d, dword [rbp - 0xd]
mov r8, qword [rbp - 0x19]
xor edx, edx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
movsxd rdi, eax
test eax, eax
jle 0x140170f3c
mov rcx, rdi
call fcn.1402b9c60
mov rbx, rax
test rax, rax
je 0x140170f3c
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], rax
mov r9d, dword [rbp - 0xd]
mov r8, qword [rbp - 0x19]
xor edx, edx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov esi, eax
mov ecx, dword [0x14042e328]
test cl, 1
jne 0x140170edc
or ecx, 1
mov dword [0x14042e328], ecx
lea rdx, str.LogsSophosClean.log
lea rcx, [0x14042e330]
call fcn.1400f2bd0
lea rcx, [0x140301bc0]
call fcn.1402bb344
nop
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 4
xor r9d, r9d
lea edx, [r9 + 4]
lea r8d, [r9 + 1]
mov rcx, qword [0x14042e330]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x140170f33
mov qword [rsp + 0x20], r14
lea r9, [rbp - 9]
mov r8d, esi
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rbx
call fcn.1402b9c20
nop
cmp dword [rbp - 0x11], 0
jle 0x140170f4c
mov rcx, qword [rbp - 0x19]
call fcn.1402b9c20
nop
cmp dword [rbp + 7], 0
jle 0x140170f5b
mov rcx, qword [rbp - 1]
call fcn.1402b9c20
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.1402b9610
add rsp, 0xb0
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x140170d49
Capabilities:
Print debug messages
Write file on windows

Disassembly:
test rdx, rdx
je 0x140170f74
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
push rbp
push rbx
push rsi
push rdi
push r14
lea rbp, [rsp - 0x37]
sub rsp, 0xb0
mov qword [rbp + 0xf], 0xfffffffffffffffe
mov rax, qword [0x140418a10]
xor rax, rsp
mov qword [rbp + 0x27], rax
mov ebx, ecx
lea rsi, [rbp + 0x77]
lea rcx, [rbp + 0x17]
call qword [sym.imp.KERNEL32.dll_GetSystemTime]
lea rax, str.INFO
lea rdi, str.WARN
cmp ebx, 2
cmovne rdi, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
movzx ecx, word [rbp + 0x25]
movzx edx, word [rbp + 0x23]
movzx r10d, word [rbp + 0x21]
movzx r11d, word [rbp + 0x1f]
movzx ebx, word [rbp + 0x1d]
movzx r9d, word [rbp + 0x19]
movzx r8d, word [rbp + 0x17]
mov qword [rsp + 0x50], rdi
mov dword [rsp + 0x48], eax
mov dword [rsp + 0x40], ecx
mov dword [rsp + 0x38], edx
mov dword [rsp + 0x30], r10d
mov dword [rsp + 0x28], r11d
mov dword [rsp + 0x20], ebx
lea rdx, str._4d__02d__02dT_02d:_02d:_02d._03dZ___5u___ls
lea rcx, [rbp - 1]
call fcn.1401ff700
nop
mov r8, rsi
mov rdx, qword [rbp + 0x6f]
lea rcx, [rbp - 0x19]
call fcn.1401ff7a0
nop
mov r8, qword [rbp - 1]
lea rcx, [rbp - 0x19]
call fcn.140200130
lea rdx, [0x1403490e4]
lea rcx, [rbp - 0x19]
call fcn.1401fd8b0
mov rcx, qword [rbp - 0x19]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
xor r14d, r14d
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], r14d
mov qword [rsp + 0x20], r14
mov r9d, dword [rbp - 0xd]
mov r8, qword [rbp - 0x19]
xor edx, edx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
movsxd rdi, eax
test eax, eax
jle 0x140170f3c
mov rcx, rdi
call fcn.1402b9c60
mov rbx, rax
test rax, rax
je 0x140170f3c
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], rax
mov r9d, dword [rbp - 0xd]
mov r8, qword [rbp - 0x19]
xor edx, edx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov esi, eax
mov ecx, dword [0x14042e328]
test cl, 1
jne 0x140170edc
or ecx, 1
mov dword [0x14042e328], ecx
lea rdx, str.LogsSophosClean.log
lea rcx, [0x14042e330]
call fcn.1400f2bd0
lea rcx, [0x140301bc0]
call fcn.1402bb344
nop
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 4
xor r9d, r9d
lea edx, [r9 + 4]
lea r8d, [r9 + 1]
mov rcx, qword [0x14042e330]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x140170f33
mov qword [rsp + 0x20], r14
lea r9, [rbp - 9]
mov r8d, esi
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rbx
call fcn.1402b9c20
nop
cmp dword [rbp - 0x11], 0
jle 0x140170f4c
mov rcx, qword [rbp - 0x19]
call fcn.1402b9c20
nop
cmp dword [rbp + 7], 0
jle 0x140170f5b
mov rcx, qword [rbp - 1]
call fcn.1402b9c20
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.1402b9610
add rsp, 0xb0
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x140171370
Capabilities:
Set registry value
Terminate process

Disassembly:
push rbx
sub rsp, 0x60
lea r8, str.SophosClean.exe
lea rdx, str.Starting__ls...
mov ecx, 1
call fcn.140170d40
mov rbx, qword [0x14042bc80]
lea rdx, [0x140348ca0]
lea rcx, [rbx + 0x40]
xor r8d, r8d
call fcn.1400ce190
lea rdx, str._clean__quiet
mov rcx, rbx
mov byte [rbx + 0xe8], 0
call fcn.1402b2230
test al, al
mov rax, qword [0x14042bc80]
jne 0x140171404
movups xmm0, xmmword [rax + 0x40]
movups xmm1, xmmword [rax + 0x50]
lea r8, [rsp + 0x40]
lea rdx, str.An_error_occurred:__ls
mov ecx, 2
movaps xmmword [rsp + 0x40], xmm0
movaps xmmword [rsp + 0x50], xmm1
call fcn.140170d40
mov ecx, 0x1388
call qword [sym.imp.KERNEL32.dll_Sleep]
xor al, al
add rsp, 0x60
pop rbx
ret
mov r9d, dword [rax + 0xa0]
lea r8, str.SophosClean.exe
lea rdx, str._ls_started__PID__u_.
mov ecx, 1
call fcn.140170d40
xor ecx, ecx
call fcn.1401721a0
mov rcx, qword [0x14042bc90]
lea rax, [rsp + 0x70]
mov rdx, qword [rcx + 0x20]
mov rcx, qword [rcx + 8]
mov r9d, 4
xor r8d, r8d
mov dword [rsp + 0x28], 4
mov dword [rsp + 0x70], 0
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rax, qword [0x14042bc80]
mov rbx, qword [rax + 0xa8]
mov rax, qword [0x14042bc78]
lea r8, str.SophosClean.exe
lea rdx, str.Waiting_for__ls_to_finish...
mov ecx, 1
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rbx
call fcn.140170d40
xor r8d, r8d
lea rdx, [rsp + 0x30]
lea ecx, [r8 + 2]
or r9d, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
test eax, eax
jne 0x14017152d
lea rdx, [rsp + 0x70]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov r9d, dword [rsp + 0x70]
lea r8, str.SophosClean.exe
lea rdx, str._ls_process_closed__exit_code__d_.
mov ecx, 1
call fcn.140170d40
mov edx, dword [rsp + 0x70]
test edx, edx
je 0x1401714eb
cmp edx, 5
jne 0x1401714fe
mov ecx, 1
call fcn.1401721a0
call fcn.140173b80
mov edx, dword [rsp + 0x70]
lea eax, [rdx + 1]
test eax, 0xfffffffd
jne 0x140171516
mov ecx, 1
call fcn.1401721a0
mov edx, dword [rsp + 0x70]
cmp edx, 5
jne 0x140171520
call fcn.140172060
call fcn.140171560
mov al, 1
add rsp, 0x60
pop rbx
ret
mov rax, qword [0x14042bc80]
lea rdx, str.Service_is_stopping._Terminating_PID__u.
mov ecx, 1
mov r8d, dword [rax + 0xa0]
call fcn.140170d40
or edx, 0xffffffff
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov al, 1
add rsp, 0x60
pop rbx
ret
Function at 0x140171560
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov r11, rsp
push rbx
sub rsp, 0x80
lea rax, [r11 + 0x18]
xor ebx, ebx
lea r9, [r11 - 0x58]
mov dword [rsp + 0x90], ebx
mov rcx, qword [0x14042bc90]
mov qword [r11 - 0x60], rax
mov rdx, qword [rcx + 0x20]
mov rcx, qword [rcx + 8]
lea rax, [r11 + 8]
xor r8d, r8d
mov dword [r11 + 8], ebx
mov dword [r11 + 0x18], 4
mov qword [r11 - 0x68], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1401715c2
cmp dword [rsp + 0x90], ebx
setne al
test al, al
jne 0x140171736
mov rcx, qword [0x14042bc90]
lea rax, [rsp + 0xa8]
lea r9, [rsp + 0x34]
mov rcx, qword [rcx + 8]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x98]
lea rdx, str.UIScan
xor r8d, r8d
mov dword [rsp + 0x98], ebx
mov dword [rsp + 0xa8], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140171736
cmp dword [rsp + 0x98], ebx
setne al
test al, al
je 0x140171736
lea r8, str.SophosClean.exe
lea rdx, str.Scan_finished__Set_UIScan_value_and_LastUIScanTime.
mov ecx, 1
mov qword [rsp + 0x78], rdi
call fcn.140170d40
lea rcx, [rsp + 0x50]
call fcn.1400eae80
cmp dword [rax + 0x10], 1
je 0x140171667
lea rdx, [rsp + 0x38]
mov rcx, rax
mov ebx, 1
call fcn.140170ce0
mov rdi, qword [rax + 8]
lea rcx, vtable.Core::DateTime.0
test bl, 1
mov rax, rcx
mov qword [rsp + 0x50], rcx
mov rcx, qword [0x14042bc90]
cmove rax, qword [rsp + 0x38]
lea rdx, str.UIScan
mov r9d, 4
mov qword [rsp + 0x38], rax
mov rcx, qword [rcx + 8]
lea rax, [rsp + 0x90]
xor r8d, r8d
mov dword [rsp + 0x28], 4
mov dword [rsp + 0x90], 0
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
movabs rcx, 0xfe624e212ac18000
add rcx, rdi
movabs rax, 0xd6bf94d5e57a42bd
mov r9d, 4
xor r8d, r8d
mov dword [rsp + 0x28], 4
imul rcx
add rdx, rcx
mov rcx, qword [0x14042bc90]
mov rcx, qword [rcx + 8]
sar rdx, 0x17
mov rax, rdx
shr rax, 0x3f
add rdx, rax
lea rax, [rsp + 0x98]
mov dword [rsp + 0x98], edx
lea rdx, str.LastUIScanTime
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rdi, qword [rsp + 0x78]
add rsp, 0x80
pop rbx
ret
Function at 0x140171aa0
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
mov qword [rsp + 8], rcx
push rbx
sub rsp, 0x60
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov rbx, rcx
xor eax, eax
mov dword [rsp + 0x20], eax
mov qword [rsp + 0x38], rax
lea edx, [rax + 0xc]
lea rcx, [rsp + 0x30]
call fcn.1401ff260
mov eax, dword [rsp + 0x38]
inc eax
movsxd rdx, eax
mov r9d, 0xc
lea r8, str.SophosClean
mov rcx, qword [rsp + 0x30]
call fcn.1402bd21c
mov edx, 0xc
lea rcx, [rsp + 0x30]
call fcn.140200570
nop
mov edx, 0x26
lea rcx, [rsp + 0x50]
call fcn.14020a8a0
nop
lea r8, [rsp + 0x30]
mov rdx, rax
mov rcx, rbx
call fcn.1400d2bd0
mov dword [rsp + 0x20], 1
cmp dword [rsp + 0x58], 0
jle 0x140171b38
mov rcx, qword [rsp + 0x50]
call fcn.1402b9c20
nop
cmp dword [rsp + 0x38], 0
jle 0x140171b49
mov rcx, qword [rsp + 0x30]
call fcn.1402b9c20
lea rdx, [rsp + 0x40]
mov rcx, rbx
call fcn.140201da0
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140171b7d
test al, 0x10
je 0x140171b7d
cmp dword [rsp + 0x48], 0
jle 0x140171b9c
mov rcx, qword [rsp + 0x40]
call fcn.1402b9c20
jmp 0x140171b9c
cmp dword [rsp + 0x48], 0
jle 0x140171b8e
mov rcx, qword [rsp + 0x40]
call fcn.1402b9c20
xor r8d, r8d
mov rdx, qword [rbx]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
mov rax, rbx
add rsp, 0x60
pop rbx
ret
Function at 0x140171f40
Capabilities:
Delete service
Stop service

Disassembly:
mov qword [rsp + 0x10], rbx
push rsi
sub rsp, 0x50
mov rax, qword [0x140418a10]
xor rax, rsp
mov qword [rsp + 0x40], rax
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
xor bl, bl
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rsi, rax
test rax, rax
je 0x140172040
lea rdx, str.Sophos_Clean_Service
mov r8d, 0x10020
mov rcx, rax
mov qword [rsp + 0x60], rdi
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rdi, rax
test rax, rax
jne 0x140171fb2
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x424
jne 0x140172032
mov bl, 1
jmp 0x140172032
lea r8, [rsp + 0x20]
mov edx, 1
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x140171ff7
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x426
je 0x140171ff7
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r8, [0x14035a9e8]
lea rdx, str._ls___failed__error__d_
mov r9d, eax
mov ecx, 2
call fcn.140170d40
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
je 0x140172008
mov bl, 1
jmp 0x140172029
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r8, [0x14035aa08]
lea rdx, str._ls___failed__error__d_
mov r9d, eax
mov ecx, 2
call fcn.140170d40
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rdi, qword [rsp + 0x60]
movzx eax, bl
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1402b9610
mov rbx, qword [rsp + 0x68]
add rsp, 0x50
pop rsi
ret
Function at 0x1401761c0
Capabilities:
Unmount volume via ioctl

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x60
mov rax, qword [0x140418a10]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov rbx, rcx
xor dil, dil
call fcn.1401764d0
mov eax, dword [0x140347f48]
movsd xmm0, qword [0x140347f40]
xor esi, esi
movsd qword [rsp + 0x48], xmm0
mov dword [rsp + 0x50], eax
movzx eax, word [0x140347f4c]
mov qword [rsp + 0x30], rsi
mov word [rsp + 0x54], ax
movzx eax, word [rbx + 8]
lea r8d, [rsi + 3]
lea rcx, [rsp + 0x48]
xor r9d, r9d
mov edx, 0x40100081
mov dword [rsp + 0x28], esi
mov word [rsp + 0x50], ax
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1401762f9
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov qword [rsp + 0x38], rsi
lea rax, [rsp + 0x40]
mov qword [rsp + 0x30], rax
xor r9d, r9d
xor r8d, r8d
mov edx, 0x90018
mov rcx, rbx
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x1401762f0
mov qword [rsp + 0x38], rsi
lea rax, [rsp + 0x40]
xor r9d, r9d
mov qword [rsp + 0x30], rax
xor r8d, r8d
mov edx, 0x90020
mov rcx, rbx
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x1401762f0
mov qword [rsp + 0x38], rsi
lea rax, [rsp + 0x40]
xor r9d, r9d
mov qword [rsp + 0x30], rax
xor r8d, r8d
mov edx, 0x2d4808
mov rcx, rbx
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
movzx edi, dil
mov ecx, 1
test eax, eax
cmovne edi, ecx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
movzx eax, dil
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1402b9610
mov rbx, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x80]
add rsp, 0x60
pop rdi
ret

Function at 0x140176320
Capabilities:
Get disk information

Disassembly:
sub rsp, 0x178
mov rax, qword [0x140418a10]
xor rax, rsp
mov qword [rsp + 0x160], rax
movzx eax, byte [rcx + 8]
mov dword [rsp + 0x40], 0x5c3a5f
lea rdx, [rsp + 0x50]
mov byte [rsp + 0x40], al
xor eax, eax
lea rcx, [rsp + 0x40]
mov dword [rsp + 0x38], eax
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], rax
xor r9d, r9d
mov r8d, 0x105
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
test eax, eax
je 0x1401763aa
lea rdx, [rsp + 0x50]
lea rcx, str.HITMANPRO
call fcn.1402ba6d8
test eax, eax
jne 0x1401763aa
mov al, 1
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.1402b9610
add rsp, 0x178
ret
xor al, al
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.1402b9610
add rsp, 0x178
ret
Function at 0x1401765e0
Capabilities:
Delete drive layout via ioctl

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x40
xor ebx, ebx
xor r14b, r14b
mov rsi, rcx
cmp qword [rcx + 0x70], rbx
jne 0x140176631
mov qword [rsp + 0x30], rbx
lea r8d, [rbx + 3]
add rcx, 0x24
xor r9d, r9d
mov edx, 0x100003
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
cmp rax, 0xffffffffffffffff
je 0x140176631
mov qword [rsi + 0x70], rax
mov rcx, qword [rsi + 0x70]
mov qword [rsp + 0x38], rbx
lea rax, [rsp + 0x60]
mov qword [rsp + 0x30], rax
xor r9d, r9d
xor r8d, r8d
mov edx, 0x7c100
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
movzx ebx, word [rsi + 0x54]
mov ecx, ebx
call fcn.1402b9c60
mov r8d, ebx
xor edx, edx
mov rcx, rax
mov rdi, rax
call fcn.1402c22a0
lea rax, [rsp + 0x68]
mov ebp, 1
mov r9d, ebp
mov r8, rdi
xor edx, edx
mov rcx, rsi
mov qword [rsp + 0x20], rax
call fcn.1401768e0
movzx ebx, r14b
mov rcx, rdi
test al, al
cmovne ebx, ebp
call fcn.1402b9c20
mov rbp, qword [rsp + 0x78]
movzx eax, bl
mov rbx, qword [rsp + 0x70]
add rsp, 0x40
pop r14
pop rdi
pop rsi
ret

Function at 0x1401767f0
Capabilities:
Read file on windows

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rbp
mov qword [r11 + 0x18], rsi
push rdi
sub rsp, 0x60
movzx esi, word [rcx + 0x54]
xor ebx, ebx
mov rdi, rcx
xor ecx, ecx
mov eax, esi
mov qword [r11 - 0x28], rbx
mov qword [r11 - 0x20], rcx
mov qword [r11 - 0x18], rcx
mov qword [r11 - 0x10], rcx
imul esi, r9d
imul rax, rdx
mov dword [rsp + 0x50], eax
shr rax, 0x20
mov rbp, r8
mov dword [rsp + 0x54], eax
mov dword [r11 + 0x20], ebx
cmp qword [rdi + 0x70], rcx
jne 0x140176872
mov qword [r11 - 0x38], rbx
lea rcx, [rdi + 0x24]
lea r8d, [rbx + 3]
xor r9d, r9d
mov edx, 0x100003
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
cmp rax, 0xffffffffffffffff
je 0x140176872
mov qword [rdi + 0x70], rax
mov rcx, qword [rdi + 0x70]
lea rax, [rsp + 0x40]
lea r9, [rsp + 0x88]
mov r8d, esi
mov rdx, rbp
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov r8, qword [rsp + 0x90]
mov r9d, eax
test r8, r8
je 0x1401768b6
movzx ecx, word [rdi + 0x54]
mov eax, dword [rsp + 0x88]
xor edx, edx
div ecx
mov dword [r8], eax
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x80]
test r9d, r9d
setne al
add rsp, 0x60
pop rdi
ret
Function at 0x1401768e0
Capabilities:
Write file on windows

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rbp
mov qword [r11 + 0x18], rsi
push rdi
sub rsp, 0x60
movzx esi, word [rcx + 0x54]
xor ebx, ebx
mov rdi, rcx
xor ecx, ecx
mov eax, esi
mov qword [r11 - 0x28], rbx
mov qword [r11 - 0x20], rcx
mov qword [r11 - 0x18], rcx
mov qword [r11 - 0x10], rcx
imul esi, r9d
imul rax, rdx
mov dword [rsp + 0x50], eax
shr rax, 0x20
mov rbp, r8
mov dword [rsp + 0x54], eax
mov dword [r11 + 0x20], ebx
cmp qword [rdi + 0x70], rcx
jne 0x140176962
mov qword [r11 - 0x38], rbx
lea rcx, [rdi + 0x24]
lea r8d, [rbx + 3]
xor r9d, r9d
mov edx, 0x100003
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
cmp rax, 0xffffffffffffffff
je 0x140176962
mov qword [rdi + 0x70], rax
mov rcx, qword [rdi + 0x70]
lea rax, [rsp + 0x40]
lea r9, [rsp + 0x88]
mov r8d, esi
mov rdx, rbp
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov r8, qword [rsp + 0x90]
mov r9d, eax
test r8, r8
je 0x1401769a6
movzx ecx, word [rdi + 0x54]
mov eax, dword [rsp + 0x88]
xor edx, edx
div ecx
mov dword [r8], eax
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x80]
test r9d, r9d
setne al
add rsp, 0x60
pop rdi
ret
Function at 0x140177e90
Capabilities:
Delete file
Get file attributes
Set file attributes

Disassembly:
sub rsp, 0x2a8
mov rax, qword [0x140418a10]
xor rax, rsp
mov qword [rsp + 0x290], rax
cmp byte [0x14042bc36], 0
je 0x140177ecc
xor al, al
mov rcx, qword [rsp + 0x290]
xor rcx, rsp
call fcn.1402b9610
add rsp, 0x2a8
ret
mov qword [rsp + 0x2b0], rbx
mov qword [rsp + 0x2b8], rbp
lea rax, str.HitmanPro.lic
mov qword [rsp + 0x2c0], rsi
mov qword [rsp + 0x30], rax
lea rax, str.HitmanPro.key
xor ebp, ebp
mov qword [rsp + 0x2a0], rdi
mov sil, 1
mov qword [rsp + 0x38], rax
mov ebx, ebp
lea rdi, [rsp + 0x30]
mov rdx, qword [rdi]
lea rcx, [rsp + 0x20]
call fcn.1400f2bd0
mov rcx, qword [rsp + 0x20]
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp rax, 0xffffffffffffffff
je 0x140177f6f
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FindClose]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 1
je 0x140177f5b
mov rcx, qword [rsp + 0x20]
and eax, 0xfffffffe
mov edx, eax
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
movzx esi, sil
test eax, eax
cmove esi, ebp
cmp dword [rsp + 0x28], ebp
jle 0x140177f7f
mov rcx, qword [rsp + 0x20]
call fcn.1402b9c20
inc ebx
add rdi, 8
movsxd rcx, ebx
cmp rcx, 2
jb 0x140177f10
mov rdi, qword [rsp + 0x2a0]
mov rbp, qword [rsp + 0x2b8]
mov rbx, qword [rsp + 0x2b0]
movzx eax, sil
mov rsi, qword [rsp + 0x2c0]
mov rcx, qword [rsp + 0x290]
xor rcx, rsp
call fcn.1402b9610
add rsp, 0x2a8
ret