joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140158360
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push rbp
push rsi
push rdi
mov rbp, rsp
sub rsp, 0x80
mov qword [rbp - 0x30], 0xfffffffffffffffe
mov qword [rsp + 0xb0], rbx
mov rax, qword [0x1403eaa10]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov rdi, rdx
mov rbx, rcx
lea rax, vtable.Core::ByteArray.0
mov qword [rbp - 0x50], rax
xor esi, esi
mov dword [rbp - 0x48], esi
mov qword [rbp - 0x40], rsi
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov qword [rbp - 0x38], rax
lea rdx, [rbp - 0x50]
mov rcx, rbx
call fcn.1401f2430
mov r11, qword [rbp - 0x40]
test al, al
je 0x1401584d1
mov eax, dword [rbp - 0x48]
cmp eax, 0x4000
jl 0x1401584d1
mov r10, r11
mov ecx, 0x5a4d
cmp word [r11], cx
jne 0x1401584d1
mov dword [rbp - 0x28], 0x6972645c
mov dword [rbp - 0x24], 0x73726576
mov dword [rbp - 0x20], 0x6374655c
mov dword [rbp - 0x1c], 0x736f685c
mov word [rbp - 0x18], 0x7374
mov byte [rbp - 0x16], sil
mov r9d, 0x1000
lea ebx, [rax - 0x400]
cmp ebx, r9d
jle 0x14015845e
nop
mov r8, r10
mov eax, esi
lea rdx, [rbp - 0x28]
nop dword [rax]
movzx ecx, byte [r8]
lea r8, [r8 + 1]
cmp cl, byte [rdx]
jne 0x140158453
cmp eax, 0x12
je 0x1401584d1
inc eax
inc rdx
movsxd rcx, eax
cmp rcx, 0x13
jb 0x140158430
inc r10
inc r9d
cmp r9d, ebx
jl 0x140158420
lea rax, [0x140323de0]
mov qword [rbp - 0x60], rax
mov qword [rbp - 0x58], rsi
lea rdx, [rbp - 0x60]
lea rcx, [rbp - 0x50]
call fcn.140158510
mov rcx, rdi
test al, al
je 0x1401584ae
mov edx, dword [rbp - 0x54]
call fcn.1401e9030
movsxd r9, dword [rbp - 0x54]
mov eax, dword [rdi + 8]
inc eax
movsxd rdx, eax
mov r8, qword [rbp - 0x60]
mov rcx, qword [rdi]
call fcn.14029b4d8
mov edx, dword [rbp - 0x54]
mov rcx, rdi
call fcn.1401ea290
jmp 0x1401584ba
mov rdx, qword [0x1403ec168]
call fcn.1401e7490
mov bl, 1
cmp dword [rbp - 0x58], 0
jle 0x1401584cb
mov rcx, qword [rbp - 0x60]
call fcn.140298600
mov r11, qword [rbp - 0x40]
jmp 0x1401584d3
xor bl, bl
test r11, r11
je 0x1401584e7
mov r8, r11
xor edx, edx
mov rcx, qword [rbp - 0x38]
call qword [sym.imp.KERNEL32.dll_HeapFree]
movzx eax, bl
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.140297ff0
mov rbx, qword [rsp + 0xb0]
add rsp, 0x80
pop rdi
pop rsi
pop rbp
ret
Function at 0x14015cac0
Capabilities:
Check os version
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
xor esi, esi
mov rdi, rcx
mov ebx, esi
call qword [sym.imp.KERNEL32.dll_GetVersion]
movzx ecx, al
shr ax, 8
movzx edx, al
cmp ecx, 5
jne 0x14015cb02
test al, al
jne 0x14015caf6
mov ebx, 0x15f
jmp 0x14015cb1d
cmp edx, 1
jne 0x14015cb1d
mov ebx, 0x15f
jmp 0x14015cb1d
cmp ecx, 6
jne 0x14015cb1d
test al, al
jne 0x14015cb12
mov ebx, 0x160
jmp 0x14015cb1d
mov eax, 0x161
cmp edx, 1
cmove ebx, eax
xor ecx, ecx
movzx edx, bx
lea r8d, [rcx + 0xa]
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rbx, rax
test rax, rax
je 0x14015cc7e
mov rdx, rax
xor ecx, ecx
mov qword [rsp + 0x30], rbp
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebp, eax
mov rax, qword [rdi + 0x90]
mov rcx, qword [rax + 8]
cmp ebp, dword [rcx + 8]
jne 0x14015cc7a
mov rdx, rbx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rbx, rax
test rax, rax
je 0x14015cc7a
mov rcx, rax
mov qword [rsp + 0x38], r14
call qword [sym.imp.KERNEL32.dll_LockResource]
mov r14, rax
mov rax, qword [rdi + 0x90]
mov rcx, qword [rax + 8]
test rcx, rcx
je 0x14015cba0
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
mov rcx, qword [rdi + 0x90]
call fcn.1402012c0
mov ecx, 0x10
call fcn.14029806c
mov ecx, 0x20
mov qword [rdi + 0x90], rax
mov qword [rax], rsi
call fcn.14029806c
test rax, rax
je 0x14015cbe0
mov r8d, ebp
mov rdx, r14
mov rcx, rax
call fcn.1400d13d0
mov rsi, rax
mov rax, qword [rdi + 0x90]
mov qword [rax + 8], rsi
mov rax, qword [rdi + 0xa0]
mov rcx, qword [rax + 8]
mov rax, qword [rdi + 0x90]
mov r8, qword [rcx + 0x10]
mov rcx, qword [rax + 8]
mov rdx, qword [rcx + 0x10]
add r8, 0x1b8
mov rcx, rbx
movups xmm0, xmmword [r8]
movups xmmword [rdx + 0x1b8], xmm0
movups xmm1, xmmword [r8 + 0x10]
movups xmmword [rdx + 0x1c8], xmm1
movups xmm0, xmmword [r8 + 0x20]
movups xmmword [rdx + 0x1d8], xmm0
movups xmm1, xmmword [r8 + 0x30]
movups xmmword [rdx + 0x1e8], xmm1
mov eax, dword [r8 + 0x40]
mov dword [rdx + 0x1f8], eax
movzx eax, word [r8 + 0x44]
mov word [rdx + 0x1fc], ax
call qword [sym.imp.KERNEL32.dll_FreeResource]
mov r14, qword [rsp + 0x38]
mov al, 1
mov rbp, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
xor al, al
jmp 0x14015cc65
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret

Function at 0x14015cc90
Capabilities:
Check os version

Disassembly:
push rbx
sub rsp, 0x20
xor ebx, ebx
call qword [sym.imp.KERNEL32.dll_GetVersion]
movzx edx, al
shr ax, 8
movzx ecx, al
cmp edx, 5
jne 0x14015ccc1
test al, al
je 0x14015ccb6
cmp ecx, 1
jne 0x14015cce0
mov eax, 0x15f
add rsp, 0x20
pop rbx
ret
cmp edx, 6
jne 0x14015cce0
test al, al
jne 0x14015ccd5
mov eax, 0x160
add rsp, 0x20
pop rbx
ret
mov eax, 0x161
cmp ecx, 1
cmove ebx, eax
mov eax, ebx
add rsp, 0x20
pop rbx
ret
Function at 0x14015dd20
Capabilities:
Contain obfuscated stackstrings
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x40
mov rax, qword [0x1403eaa10]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov rax, qword [rcx + 0x98]
test rax, rax
je 0x14015defd
mov rax, qword [rax + 8]
lea rdx, [rsp + 0x20]
mov r8d, 0xf
mov rbx, qword [rax + 0x10]
mov dword [rsp + 0x20], 0x414e4544
mov dword [rsp + 0x24], 0x445f494c
lea rcx, [rbx + 3]
mov dword [rsp + 0x28], 0x50415441
mov word [rsp + 0x2c], 0x454c
mov byte [rsp + 0x2e], 0x58
call fcn.1402a2dc0
test eax, eax
jne 0x14015dd99
mov al, 1
jmp 0x14015deff
xor edx, edx
mov rcx, rbx
lea edi, [rdx + 0x3b]
mov r8d, edx
mov r9d, edx
mov r10d, edx
mov r11d, edx
nop dword [rax]
movzx eax, byte [rcx]
lea rcx, [rcx + 4]
add r8d, eax
movzx eax, byte [rcx - 3]
add r11d, eax
movzx eax, byte [rcx - 2]
add r10d, eax
movzx eax, byte [rcx - 1]
add r9d, eax
dec rdi
jne 0x14015ddb0
lea eax, [r9 + r10]
add eax, r11d
add r8d, eax
cmp r8d, 0x67d9
je 0x14015dd92
mov r10d, edx
mov r11d, edx
mov r8d, edx
mov r9d, edx
mov edi, edx
mov esi, edx
mov ecx, 8
nop dword [rax]
movzx eax, byte [rbx + rcx]
add rcx, 2
add r10d, eax
not al
movzx eax, al
add r8d, eax
movzx eax, byte [rbx + rcx - 1]
add r11d, eax
not al
movzx eax, al
add r9d, eax
cmp rcx, 0x1b6
jl 0x14015de00
cmp rcx, 0x1b7
jge 0x14015de42
movzx edi, byte [rcx + rbx]
movzx eax, dil
not al
movzx esi, al
lea eax, [r11 + r10]
add eax, edi
cmp eax, 0xac47
jne 0x14015de60
lea eax, [r9 + r8]
add eax, esi
cmp eax, 0x1010a
je 0x14015dd92
mov r10d, edx
mov r9d, edx
mov r11d, edx
lea r8, [rbx + 8]
mov edi, 0x198
movzx ecx, byte [r8]
lea r8, [r8 + 1]
mov eax, ecx
add r11d, ecx
xor ecx, 0xaa
xor eax, 0x55
add r9d, ecx
add r10d, eax
dec rdi
jne 0x14015de72
cmp r11d, 0xaab2
jne 0x14015deb2
cmp r10d, 0xc0f6
jne 0x14015deb2
cmp r9d, 0xd572
je 0x14015dd92
mov r8d, edx
mov r9d, edx
mov r10d, 0x1a0
nop
movzx ecx, byte [rbx]
lea rbx, [rbx + 1]
mov eax, ecx
add r9d, ecx
xor ecx, 0xaa
xor eax, 0x55
add r8d, ecx
add edx, eax
dec r10
jne 0x14015dec0
cmp r9d, 0xabf8
jne 0x14015defd
cmp edx, 0xc6a0
jne 0x14015defd
cmp r8d, 0xd7c0
je 0x14015dd92
xor al, al
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.140297ff0
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
Function at 0x14015dff0
Capabilities:
Encode data using xor

Disassembly:
cmp qword [rcx + 0x98], 0
jne 0x14015dff0
xor al, al
ret
push rbx
sub rsp, 0x20
mov rax, qword [rcx + 0x98]
xor r8d, r8d
mov rbx, rcx
mov rdx, qword [rax + 8]
mov r10d, r8d
mov r9d, r8d
mov rax, qword [rdx + 0x10]
mov r11d, 0x15b
add rax, 0x14
nop dword [rax + rax]
movzx edx, byte [rax]
inc rax
mov ecx, edx
add r8d, edx
xor edx, 0xaa
xor ecx, 0x55
add r9d, edx
add r10d, ecx
dec r11
jne 0x14015e020
cmp r8d, 0x97f4
jne 0x14015e0ef
cmp r10d, 0x9463
jne 0x14015e0ef
cmp r9d, 0xc542
jne 0x14015e0ef
lea rcx, [rbx + 0x78]
lea rdx, str.Win64_Bootkit.MBR.Gapz
call fcn.1401e7490
mov rax, qword [rbx + 0x98]
mov rcx, qword [rax + 8]
mov rdx, qword [rcx + 0x10]
movzx eax, byte [rdx + 0x13]
movzx ecx, byte [rdx + 0x12]
shl rax, 8
add rcx, rax
movzx eax, byte [rdx + 0x11]
shl rcx, 8
add rax, rcx
movzx ecx, byte [rdx + 0x10]
shl rax, 8
add rcx, rax
movzx eax, byte [rdx + 0xf]
shl rcx, 8
add rax, rcx
movzx ecx, byte [rdx + 0xe]
shl rax, 8
add rcx, rax
movzx eax, byte [rdx + 0xd]
shl rcx, 8
add rcx, rax
movzx eax, byte [rdx + 0xc]
mov dword [rbx + 0x88], 1
shl rcx, 8
add rcx, rax
mov al, 1
mov qword [rbx + 0xa8], rcx
add rsp, 0x20
pop rbx
ret
xor al, al
add rsp, 0x20
pop rbx
ret

Function at 0x14015e100
Capabilities:
Move file

Disassembly:
push rdi
sub rsp, 0x50
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x68], rsi
xor bl, bl
lea rdi, [rcx + 8]
mov rcx, rdi
call fcn.1401aba90
lea r8, str..hitmanpro
mov rdx, rdi
lea rcx, [rsp + 0x28]
call fcn.1401e7d40
nop
mov rdx, qword [rsp + 0x28]
mov rcx, qword [rdi]
call qword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x14015e1f4
mov rcx, rdi
call fcn.1401f21c0
mov rsi, rax
test rax, rax
je 0x14015e1f4
xor eax, eax
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x40], rax
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov qword [rsp + 0x48], rax
mov ebx, 0x13
mov edx, ebx
lea rcx, [rsp + 0x38]
call fcn.1401f1430
mov rdi, qword [rsp + 0x40]
test al, al
je 0x14015e1bc
mov eax, dword [rsp + 0x3c]
inc eax
movsxd rdx, eax
mov r9d, ebx
lea r8, str.127.0.0.1_localhost
mov rcx, rdi
call fcn.140299fc8
mov byte [rdi + 0x13], 0
mov dword [rsp + 0x38], ebx
jmp 0x14015e1c0
mov ebx, dword [rsp + 0x38]
mov rax, qword [rsi]
mov r8d, ebx
mov rdx, rdi
mov rcx, rsi
call qword [rax + 0x48]
mov rax, qword [rsi]
mov edx, 1
mov rcx, rsi
call qword [rax]
mov bl, 1
test rdi, rdi
je 0x14015e1f4
mov r8, rdi
xor edx, edx
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_HeapFree]
nop
cmp dword [rsp + 0x30], 0
jle 0x14015e205
mov rcx, qword [rsp + 0x28]
call fcn.140298600
movzx eax, bl
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret
Function at 0x14015f540
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, [0x1402e8a28]
xor edx, edx
lea r8d, [rbp + 1]
lea rcx, [0x1402e8af8]
call qword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jne 0x14015f6a2
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 0x14015f6a2
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 0x14015f6a2
mov rdx, qword [rsi + 0x68]
lea rcx, [rsp + 0x50]
call fcn.14011ce10
nop
mov rdx, qword [rax]
test rdx, rdx
je 0x14015f626
mov rdx, qword [rdx]
jmp 0x14015f629
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 0x14015f687
lock dec dword [rbx + 0x10]
jne 0x14015f687
test rbx, rbx
je 0x14015f687
mov rcx, qword [rbx]
test rcx, rcx
je 0x14015f66d
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov qword [rbx], rbp
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x14015f67f
call fcn.1402983dc
mov qword [rbx + 8], rbp
mov rcx, rbx
call fcn.1402012c0
test edi, edi
je 0x14015f69f
mov r8, qword [rsi + 0x68]
mov edx, edi
lea rcx, str.RepairWMI:__08X__ls_r_n
call fcn.140298d38
test edi, edi
sete bl
mov rcx, qword [rsp + 0x90]
test rcx, rcx
je 0x14015f6b5
mov rdx, qword [rcx]
call qword [rdx + 0x10]
mov rcx, qword [rsp + 0x98]
test rcx, rcx
je 0x14015f6c8
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 0x1401657a0
Capabilities:
Unmount volume via ioctl

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x60
mov rax, qword [0x1403eaa10]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov rbx, rcx
xor dil, dil
call fcn.140165ab0
mov eax, dword [0x1403232b8]
movsd xmm0, qword [0x1403232b0]
xor esi, esi
movsd qword [rsp + 0x48], xmm0
mov dword [rsp + 0x50], eax
movzx eax, word [0x1403232bc]
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 0x1401658d9
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 0x1401658d0
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 0x1401658d0
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.140297ff0
mov rbx, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x80]
add rsp, 0x60
pop rdi
ret

Function at 0x140165900
Capabilities:
Get disk information

Disassembly:
sub rsp, 0x178
mov rax, qword [0x1403eaa10]
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 0x14016598a
lea rdx, [rsp + 0x50]
lea rcx, str.HITMANPRO
call fcn.1402990b8
test eax, eax
jne 0x14016598a
mov al, 1
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.140297ff0
add rsp, 0x178
ret
xor al, al
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.140297ff0
add rsp, 0x178
ret
Function at 0x140165bc0
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 0x140165c11
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 0x140165c11
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.140298640
mov r8d, ebx
xor edx, edx
mov rcx, rax
mov rdi, rax
call fcn.1402a04b0
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.140165ec0
movzx ebx, r14b
mov rcx, rdi
test al, al
cmovne ebx, ebp
call fcn.140298600
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 0x140165dd0
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 0x140165e52
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 0x140165e52
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 0x140165e96
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 0x140165ec0
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 0x140165f42
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 0x140165f42
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 0x140165f86
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 0x140167470
Capabilities:
Delete file
Get file attributes
Set file attributes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x2a0
mov rax, qword [0x1403eaa10]
xor rax, rsp
mov qword [rsp + 0x290], rax
lea rax, str.HitmanPro.lic
xor ebp, ebp
mov sil, 1
mov qword [rsp + 0x30], rax
lea rax, str.HitmanPro.key
mov ebx, ebp
mov qword [rsp + 0x38], rax
lea rdi, [rsp + 0x30]
nop dword [rax]
mov rdx, qword [rdi]
lea rcx, [rsp + 0x20]
call fcn.1400f3760
mov rcx, qword [rsp + 0x20]
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp rax, 0xffffffffffffffff
je 0x14016751f
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 0x14016750b
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 0x14016752f
mov rcx, qword [rsp + 0x20]
call fcn.140298600
inc ebx
add rdi, 8
movsxd rcx, ebx
cmp rcx, 2
jb 0x1401674c0
movzx eax, sil
mov rcx, qword [rsp + 0x290]
xor rcx, rsp
call fcn.140297ff0
lea r11, [rsp + 0x2a0]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x14016d460
Capabilities:
Get hostname

Disassembly:
push rbx
sub rsp, 0x90
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov rax, qword [0x1403eaa10]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov rbx, rcx
mov dword [rsp + 0x40], 0
mov dword [rsp + 0x30], 0x10
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_GetComputerNameW]
test eax, eax
je 0x14016d4f8
lea rax, vtable.Core::Text::ASCIIEncoding.0
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x20], 0x10
lea r9, [rsp + 0x50]
mov r8d, dword [rsp + 0x30]
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x38]
call fcn.1401ee460
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x20], eax
xor r9d, r9d
lea r8, [rsp + 0x50]
mov rdx, rbx
lea rcx, [rsp + 0x38]
call fcn.1401ee0e0
nop
jmp 0x14016d507
mov rdx, qword [0x1403ec168]
mov rcx, rbx
call fcn.1401e6fd0
mov rax, rbx
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.140297ff0
add rsp, 0x90
pop rbx
ret
Function at 0x14016f540
Capabilities:
Create thread

Disassembly:
mov rax, rsp
mov qword [rax + 8], rcx
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x40
mov qword [rax - 0x38], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rbp
mov rsi, r8
mov rbx, rdx
mov r14, rcx
lea rax, [0x140323de0]
mov qword [rcx + 8], rax
xor r12d, r12d
mov qword [rcx + 0x10], r12
mov qword [rcx + 0x28], r12
lea r15, vtable.Core::EventWaitHandle.0
mov qword [rcx + 0x20], r15
xor r9d, r9d
xor r8d, r8d
lea edx, [r12 + 1]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [r14 + 0x28], rax
lea rbp, vtable.Core::ManualResetEvent.0
mov qword [r14 + 0x20], rbp
lea rax, vtable.Core::Mutex.0
mov qword [r14 + 0x38], rax
lea rcx, [r14 + 0x40]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
nop
lea rax, vtable.Core::Queue_class_HitmanPro35::File____ptr64_.0
mov qword [r14 + 0x68], rax
mov dword [r14 + 0x70], r12d
mov qword [r14 + 0x78], r12
mov qword [r14 + 0x80], r12
mov qword [r14 + 0x90], r12
mov qword [r14 + 0x88], r15
xor r9d, r9d
xor r8d, r8d
lea edx, [r12 + 1]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [r14 + 0x90], rax
mov qword [r14 + 0x88], rbp
mov qword [r14], rbx
mov edx, dword [rsi + 0xc]
lea rcx, [r14 + 8]
call fcn.1401e9030
movsxd r9, dword [rsi + 0xc]
mov eax, dword [r14 + 0x10]
inc eax
movsxd rdx, eax
mov r8, qword [rsi]
mov rcx, qword [r14 + 8]
call fcn.14029b4d8
mov edx, dword [rsi + 0xc]
lea rcx, [r14 + 8]
call fcn.1401ea290
mov dword [r14 + 0x18], 0x2710
mov dword [r14 + 0x1c], 0xea60
lea rax, [rsp + 0x78]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], r12d
mov r9, r14
lea r8, [0x14016f7c0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [r14 + 0x30], rax
mov rax, r14
lea r11, [rsp + 0x40]
mov rbx, qword [r11 + 0x40]
mov rbp, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret