joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140030390
Capabilities:
Hash data with md5
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x430
mov rax, qword [0x14017c430]
xor rax, rsp
mov qword [rsp + 0x420], rax
mov rsi, rdx
xor eax, eax
mov rbx, rcx
mov dword [rcx], 0x67452301
mov dword [rcx + 4], 0xefcdab89
mov dword [rcx + 8], 0x98badcfe
mov qword [rcx + 0x10], rax
mov dword [rcx + 0xc], 0x10325476
lea rdx, [0x14012e0a0]
mov rcx, rsi
call fcn.1400d8cfc
mov rdi, rax
test rax, rax
jne 0x140030403
lea rcx, str._s_cant_be_opened_n
mov rdx, rsi
call fcn.1400d8d08
jmp 0x140030440
lea rcx, [rsp + 0x20]
mov r9, rax
mov edx, 1
mov r8d, 0x400
call fcn.1400d8c04
test rax, rax
je 0x140030430
lea rdx, [rsp + 0x20]
mov r8d, eax
mov rcx, rbx
call fcn.140030180
mov rcx, rbx
call fcn.140030250
mov rcx, rdi
call fcn.1400d79b4
lea rax, [rbx + 0x68]
mov rcx, qword [rsp + 0x420]
xor rcx, rsp
call fcn.1400d4d90
lea r11, [rsp + 0x430]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret

Function at 0x140030820
Capabilities:
Check os version

Disassembly:
sub rsp, 0x158
mov rax, qword [0x14017c430]
xor rax, rsp
mov qword [rsp + 0x140], rax
lea rcx, [rsp + 0x20]
xor edx, edx
mov r8d, 0x114
call fcn.1400dd9f0
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x114
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x140030884
xor eax, eax
cmp dword [rsp + 0x24], 6
sete al
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.1400d4d90
add rsp, 0x158
ret
xor al, al
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.1400d4d90
add rsp, 0x158
ret
Function at 0x140030a10
Capabilities:
Acquire debug privileges

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x30
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov qword [rsp + 0x48], rbx
mov rbx, rcx
xor edi, edi
mov qword [rcx], rdi
xor eax, eax
mov qword [rcx + 0x10], rax
mov qword [rcx + 0x18], rax
mov qword [rcx + 0x20], rax
mov byte [rcx + 0x28], al
mov qword [rcx + 0x30], rdi
mov qword [rcx + 0x38], rdi
mov dword [rcx + 0x40], send
mov dword [rcx + 0x60], edi
mov dword [rcx + 0x64], 0xa
mov qword [rcx + 0x68], rdi
mov qword [rcx + 0x70], rdi
mov dword [rcx + 0x44], 0x3f400000
mov dword [rcx + 0x48], 0x3e800000
mov dword [rcx + 0x4c], 0x40100000
xor ecx, ecx
movss xmm1, dword [0x14013873c]
movss xmm0, dword [0x1401329f0]
comiss xmm1, xmm0
jbe 0x140030aa6
subss xmm1, xmm0
comiss xmm1, xmm0
jae 0x140030aa6
movabs rdx, 0x8000000000000000
mov rcx, rdx
jmp 0x140030ab0
movabs rdx, 0x8000000000000000
cvttss2si rax, xmm1
add rax, rcx
mov qword [rbx + 0x50], rax
xor ecx, ecx
movss xmm1, dword [0x140138738]
comiss xmm1, xmm0
jbe 0x140030ad7
subss xmm1, xmm0
comiss xmm1, xmm0
jae 0x140030ad7
mov rcx, rdx
cvttss2si rax, xmm1
add rax, rcx
cmp rax, 0x11
cmovb rax, rdi
mov qword [rbx + 0x58], rax
lea rcx, str.SeDebugPrivilege
call fcn.140030500
call fcn.140030820
test al, al
je 0x140030b52
lea rcx, str.kernel32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
lea rdx, str.QueryFullProcessImageNameW
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx], rax
test rax, rax
setne dil
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x140030b39
movzx eax, ax
or eax, 0x80070000
test edi, edi
jne 0x140030b52
mov dword [rsp + 0x20], eax
lea rdx, [0x140176950]
lea rcx, [rsp + 0x20]
call fcn.1400de560
mov byte [rbx + 0x28], 1
jmp 0x140030b5d
mov rax, rbx
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
Function at 0x140035530
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x50
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0x68], rbx
mov qword [rsp + 0x70], rsi
mov rbx, rcx
lea rsi, [0x140192a78]
mov qword [rsp + 0x38], rsi
mov byte [rsp + 0x40], 0
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [rsp + 0x40], 1
xor edi, edi
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], edi
mov r9, rbx
lea r8, [0x1400354e0]
xor edx, edx
xor ecx, ecx
call fcn.1400d86a0
mov rbx, rax
test rax, rax
setne dil
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x1400355a9
movzx eax, ax
or eax, 0x80070000
test edi, edi
jne 0x1400355b5
mov ecx, eax
call fcn.1400022b0
nop
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov byte [rsp + 0x40], 0
mov rax, rbx
jmp 0x1400355e1
mov rbx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret
Function at 0x14003ca40
Capabilities:
Get disk size

Disassembly:
mov rax, rsp
push rdi
push r12
push r13
sub rsp, 0x70
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
movzx edi, r8b
mov r12, rdx
mov rsi, rcx
xor bpl, bpl
lea rcx, [0x14017bd30]
mov rax, qword [0x14017bd30]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x40], rax
xor r13d, r13d
or rbx, 0xffffffffffffffff
test dil, dil
je 0x14003caaa
mov r8, rsi
lea rdx, str.._s
lea rcx, [rsp + 0x40]
call fcn.140016060
jmp 0x14003cad5
test rsi, rsi
jne 0x14003cab4
mov ecx, r13d
jmp 0x14003cac5
xor eax, eax
mov rcx, rbx
mov rdi, rsi
repne scasw ax, word [rdi]
not rcx
dec rcx
mov r8d, ecx
mov rdx, rsi
lea rcx, [rsp + 0x40]
call fcn.140002120
mov rsi, r13
mov qword [rsp + 0x58], r13
mov qword [rsp + 0x60], r13
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0x80000000
lea r8d, [r9 + 3]
mov rdi, qword [rsp + 0x40]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateFileW]
cmp rax, 0xffffffffffffffff
jne 0x14003cb22
call fcn.1400163c0
test eax, eax
js 0x14003cb81
jmp 0x14003cb2a
mov rsi, rax
mov qword [rsp + 0x58], rax
xor eax, eax
mov qword [rsp + 0x48], rax
mov dword [rsp + 0xa8], r13d
mov qword [rsp + 0x38], r13
lea rax, [rsp + 0xa8]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 8
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, 0x7405c
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x14003cb81
mov rax, qword [rsp + 0x48]
mov qword [r12], rax
mov bpl, 1
test rsi, rsi
je 0x14003cb94
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x58], r13
lea rdx, [rdi - 0x18]
lock xadd dword [rdx + 0x10], ebx
dec ebx
test ebx, ebx
jg 0x14003cbac
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + VariantCopy]
movzx eax, bpl
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r13
pop r12
pop rdi
ret
Function at 0x14003d8e0
Capabilities:
Create thread
Unload minifilter driver

Disassembly:
push rdi
sub rsp, 0x40
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x60], rbp
mov qword [rsp + 0x68], rsi
mov rbp, rcx
lea rcx, str.SeLoadDriverPrivilege
call fcn.140030500
lea rcx, str.CaptureFileMonitor
call qword [sym.imp.FLTLIB.DLL_FilterUnload]
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rcx, str.CaptureFileMonitor
call qword [sym.imp.FLTLIB.DLL_FilterLoad]
mov esi, eax
cmp eax, 0x80070002
je 0x14003d9ff
mov edi, 3
mov ebx, edi
test esi, esi
je 0x14003d970
lea rcx, str.CaptureFileMonitor
call qword [sym.imp.FLTLIB.DLL_FilterLoad]
mov esi, eax
mov ecx, 0x1f4
call qword [sym.imp.KERNEL32.dll_Sleep]
dec ebx
jne 0x14003d946
test esi, esi
jne 0x14003d9ff
lea rax, [rbp + 0xb8]
xor r9d, r9d
mov qword [rsp + 0x28], rax
xor esi, esi
mov qword [rsp + 0x20], rsi
xor r8d, r8d
xor edx, edx
lea rcx, str.CaptureFileMonitorPort
call qword [sym.imp.FLTLIB.DLL_FilterConnectCommunicationPort]
test eax, eax
jne 0x14003d9ff
mov rcx, rbp
call fcn.14003e320
test al, al
jne 0x14003da06
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp eax, 0x15
je 0x14003d9c0
cmp eax, 0x57
jne 0x14003d9f7
nop word [rax + rax]
cmp ebx, 0x15
je 0x14003d9ca
cmp ebx, 0x57
jne 0x14003d9f7
mov rcx, rbp
call fcn.14003e320
test al, al
jne 0x14003da06
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp eax, 0x15
jne 0x14003d9e8
cmp edi, 1
je 0x14003da06
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
dec edi
jne 0x14003d9c0
mov rcx, rbp
call fcn.14003dad0
xor al, al
jmp 0x14003daaf
mov ecx, 0x28
call fcn.1400d5224
mov rbx, rax
mov qword [rsp + 0x58], rax
test rax, rax
je 0x14003da4b
lea rax, vtable.SecC::CBindCallback.0
mov qword [rbx], rax
mov qword [rbx + 8], rsi
mov dword [rbx + 0x10], esi
mov qword [rbx + 0x18], rsi
mov qword [rbx + 0x20], rsi
lea r8, [0x14003e020]
mov rdx, rbp
mov rcx, rbx
call fcn.140044d10
nop
jmp 0x14003da4e
mov rbx, rsi
mov rcx, rbx
call fcn.140035530
mov qword [rbp + 0xb0], rax
mov qword [rsp + 0x28], rsi
mov dword [rsp + 0x20], esi
lea r9, [rbp + 0x2a0]
lea r8, [0x1400943f0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rbp + 0x2b0], rax
mov qword [rsp + 0x28], rsi
mov dword [rsp + 0x20], esi
lea r9, [rbp + 0x1e8]
lea r8, [0x1400943f0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rbp + 0x1f8], rax
mov al, 1
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret
Function at 0x14003dad0
Capabilities:
Terminate thread
Unload minifilter driver

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
mov rcx, qword [rcx + 0xb8]
cmp rcx, 0xffffffffffffffff
je 0x14003daf7
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 0xb8], 0xffffffffffffffff
lea rcx, str.CaptureFileMonitor
call qword [sym.imp.FLTLIB.DLL_FilterUnload]
mov rcx, qword [rbx + 0xb0]
test rcx, rcx
je 0x14003dbaf
mov edx, 0x3e8
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0xffffffff
jne 0x14003db2f
mov ecx, 0x80004005
call fcn.1400022b0
int3
mov rcx, qword [rbx + 0xb0]
lea rdx, [rsp + 0x30]
mov qword [rsp + 0x38], rdi
mov dword [rsp + 0x30], 0
call qword [sym.imp.KERNEL32.dll_GetExitCodeThread]
xor edi, edi
test eax, eax
setne dil
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x14003db68
movzx eax, ax
or eax, 0x80070000
test edi, edi
mov rdi, qword [rsp + 0x38]
jne 0x14003db79
mov ecx, eax
call fcn.1400022b0
int3
cmp dword [rsp + 0x30], 0x103
jne 0x14003db92
mov rcx, qword [rbx + 0xb0]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateThread]
mov rcx, qword [rbx + 0xb0]
test rcx, rcx
je 0x14003dbaf
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 0xb0], 0
add rsp, 0x20
pop rbx
ret
Function at 0x14003eb30
Capabilities:
Get disk information
Get storage device properties

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x490
mov qword [rsp + 0x60], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
mov rax, qword [0x14017c430]
xor rax, rsp
mov qword [rsp + 0x480], rax
mov rbx, rcx
xor ebp, ebp
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
sub eax, 2
je 0x14003ecdf
dec eax
je 0x14003eb9b
dec eax
je 0x14003eb91
dec eax
jne 0x14003eb8a
lea eax, [rbp + 4]
jmp 0x14003ece4
mov eax, ebp
jmp 0x14003ece4
mov eax, 6
jmp 0x14003ece4
mov esi, 2
lea rcx, [0x14017bd30]
mov rax, qword [0x14017bd30]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x48], rax
mov r8, rbx
lea rdx, str.._s
lea rcx, [rsp + 0x48]
call fcn.140016060
mov rdi, rbp
mov qword [rsp + 0x50], rbp
mov qword [rsp + 0x58], rbp
mov qword [rsp + 0x30], rbp
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor edx, edx
lea r8d, [rsi + 1]
mov rbx, qword [rsp + 0x48]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateFileW]
cmp rax, 0xffffffffffffffff
jne 0x14003ec1c
call fcn.1400163c0
test eax, eax
js 0x14003ecac
jmp 0x14003ec24
mov rdi, rax
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x68], rbp
mov dword [rsp + 0x40], ebp
mov byte [rsp + 0x80], 0
xor edx, edx
mov r8d, 0x3ff
lea rcx, [rsp + 0x81]
call fcn.1400dd9f0
mov dword [rsp + 0x84], 0x400
mov qword [rsp + 0x38], rbp
lea rax, [rsp + 0x40]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 0x400
lea rax, [rsp + 0x80]
mov qword [rsp + 0x20], rax
mov r9d, recv
lea r8, [rsp + 0x68]
mov edx, 0x2d1400
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x14003ecac
mov eax, dword [rsp + 0x9c]
cmp eax, 4
je 0x14003eca7
cmp eax, 7
jne 0x14003ecac
mov esi, 3
test rdi, rdi
je 0x14003ecbf
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x50], rbp
lea rdx, [rbx - 0x18]
or ecx, 0xffffffff
lock xadd dword [rdx + 0x10], ecx
dec ecx
test ecx, ecx
jg 0x14003ecdb
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rinet_addr + 8]
mov eax, esi
jmp 0x14003ece4
mov eax, 3
mov rcx, qword [rsp + 0x480]
xor rcx, rsp
call fcn.1400d4d90
lea r11, [rsp + 0x490]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x1400424a0
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 0x20], rbx
push rdi
sub rsp, 0x40
xor edi, edi
lea rcx, [0x140182ca0]
xor r9d, r9d
mov qword [rax - 0x18], rdi
mov dword [rax - 0x20], 0x80
xor r8d, r8d
mov edx, 0xc0000000
mov dword [rax - 0x28], 2
mov dword [rax + 0x10], edi
mov dword [rax + 8], edi
mov dword [rax + 0x18], 2
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x140042508
lea rcx, str.CreateEmptyLog1
call fcn.1400015a0
or rax, rbx
mov rbx, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret
lea r9, [rsp + 0x50]
lea rdx, [rsp + 0x58]
mov r8d, 4
mov rcx, rax
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [rsp + 0x50], 4
je 0x140042551
lea rcx, str.CreateEmptyLog2
call fcn.1400015a0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
or rax, 0xffffffffffffffff
mov rbx, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret
lea r9, [rsp + 0x50]
lea rdx, [rsp + 0x60]
mov r8d, 4
mov rcx, rbx
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [rsp + 0x50], 4
je 0x14004257f
lea rcx, str.CreateEmptyLog3
jmp 0x140042534
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov rax, rbx
mov rbx, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret
Function at 0x140042a30
Capabilities:
Check if file exists

Disassembly:
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x68], rbx
mov qword [rsp + 0x70], rbp
mov rsi, rdx
mov r14, rcx
mov eax, dword [rdx + 0x44]
cmp eax, 6
je 0x140042a68
cmp eax, 7
je 0x140042a68
cmp eax, 8
jne 0x140042a76
cmp dword [rdx + 0x98], 3
jne 0x140042a76
mov r12b, 1
jmp 0x140042a79
xor r12b, r12b
cmp eax, 6
je 0x140042a88
cmp eax, 7
je 0x140042a88
cmp eax, 8
jne 0x140042a93
cmp dword [rdx + 0x58], 3
jne 0x140042a93
mov bpl, 1
jmp 0x140042a96
xor bpl, bpl
cmp byte [rcx + 0x2d7d], 0
je 0x140042b92
movzx eax, bpl
xor al, r12b
je 0x140042b92
mov r13, qword [rdx + 0x38]
lea rcx, [0x14017bd30]
mov rax, qword [0x14017bd30]
call qword [rax + 0x18]
lea rdi, [rax + 0x18]
mov qword [rsp + 0x60], rdi
or rbx, 0xffffffffffffffff
test r13, r13
je 0x140042b16
test r13, 0xffffffffffff0000
jne 0x140042b03
movzx r13d, r13w
mov ecx, r13d
call fcn.140002830
test rax, rax
je 0x140042b2d
mov r8d, r13d
mov rdx, rax
lea rcx, [rsp + 0x60]
call fcn.1400029f0
jmp 0x140042b28
xor eax, eax
mov rcx, rbx
mov rdi, r13
repne scasw ax, word [rdi]
not rcx
dec rcx
jmp 0x140042b18
xor ecx, ecx
mov r8d, ecx
mov rdx, r13
lea rcx, [rsp + 0x60]
call fcn.140002120
mov rdi, qword [rsp + 0x60]
mov rcx, rdi
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x140042b7a
mov rcx, rdi
call qword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x140042b7a
test r12b, r12b
je 0x140042b5f
lea rcx, [r14 + 0x1e8]
mov r8, qword [rsi + 0x28]
mov rdx, rdi
call fcn.140095820
test bpl, bpl
je 0x140042b78
lea rcx, [r14 + 0x2a0]
mov r8, qword [rsi + 0x28]
mov rdx, rdi
call fcn.140096ac0
nop
jmp 0x140042b7a
lea rdx, [rdi - 0x18]
lock xadd dword [rdx + 0x10], ebx
dec ebx
test ebx, ebx
jg 0x140042b92
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + VariantCopy]
mov rbx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x70]
add rsp, 0x30
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret
Function at 0x140047630
Capabilities:
Create thread

Disassembly:
sub rsp, 0x38
cmp qword [0x140183610], 0
jne 0x140047700
mov qword [rsp + 0x30], rbx
xor ebx, ebx
lea r9, str.instspy_ok
lea edx, [rbx + 1]
xor r8d, r8d
xor ecx, ecx
mov qword [0x140183608], rbx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov rcx, rax
mov qword [0x140183600], rax
call qword [sym.imp.KERNEL32.dll_SetEvent]
lea r9, str.instspy_kill
lea edx, [rbx + 1]
xor r8d, r8d
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
lea r8, [0x140047590]
xor r9d, r9d
mov qword [0x140183608], rax
lea rax, [rsp + 0x40]
xor edx, edx
mov qword [rsp + 0x28], rax
xor ecx, ecx
mov dword [rsp + 0x20], ebx
call qword [sym.imp.KERNEL32.dll_CreateThread]
lea ecx, [rbx + 3]
mov qword [0x140183610], rax
lea rax, [0x140182f80]
nop word [rax + rax]
mov qword [rax], rbx
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbx
add rax, 0x40
dec rcx
mov qword [rax - 0x28], rbx
mov qword [rax - 0x20], rbx
mov qword [rax - 0x18], rbx
mov qword [rax - 0x10], rbx
mov qword [rax - 8], rbx
jne 0x1400476d0
mov qword [rax], rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x38
ret
Function at 0x140047710
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
sub rsp, 0x50
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0x88], rbx
mov rbp, rcx
lea rcx, [0x14017bd30]
mov rax, qword [0x14017bd30]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x80], rax
lea rcx, [0x14017bd30]
mov rax, qword [0x14017bd30]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x40], rax
or edx, 0xffffffff
mov rcx, qword [0x140183600]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rdx, qword [rbp]
lea rcx, [rdx - 0x18]
mov rbx, qword [0x140183940]
add rbx, 0xffffffffffffffe8
or edi, 0xffffffff
cmp rcx, rbx
je 0x1400477e9
cmp dword [rbx + 0x10], 0
jl 0x1400477d9
mov rax, qword [rbx]
cmp qword [rcx], rax
jne 0x1400477d9
call fcn.140001d80
mov rsi, rax
mov ecx, edi
lock xadd dword [rbx + 0x10], ecx
dec ecx
test ecx, ecx
jg 0x1400477cc
mov rcx, qword [rbx]
mov r8, qword [rcx]
mov rdx, rbx
call qword [rinet_addr + 8]
lea rax, [rsi + 0x18]
mov qword [0x140183940], rax
jmp 0x1400477e9
mov r8d, dword [rdx - 0x10]
lea rcx, [0x140183940]
call fcn.140002120
mov ebx, dword [0x1401835f4]
call fcn.1400d6174
lea r8d, [rbx + 1]
lea rdx, str.Monitor__d_started_n
lea rcx, [rax + 0x30]
call fcn.1400d9b14
lea r11, [rsp + 0x78]
mov qword [rsp + 0x28], r11
mov dword [rsp + 0x20], 0
lea r9, [rsp + 0x38]
lea r8, [0x140047960]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
movsxd rcx, dword [0x1401835f4]
lea rdx, [0x140182f80]
mov qword [rdx + rcx*8], rax
test rax, rax
jne 0x14004785c
call fcn.1400d6174
lea rdx, str.Error._Thread_monitorInst_was_not_created._n
lea rcx, [rax + 0x30]
call fcn.1400d9b14
mov rcx, qword [0x140183600]
call qword [sym.imp.KERNEL32.dll_ResetEvent]
inc dword [0x1401835f4]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x80], rax
mov rdx, qword [rsp + 0x40]
add rdx, 0xffffffffffffffe8
mov eax, edi
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x14004789c
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + VariantCopy]
nop
mov rdx, qword [rsp + 0x38]
add rdx, 0xffffffffffffffe8
mov eax, edi
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x1400478bc
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + VariantCopy]
nop
mov rdx, qword [rbp]
sub rdx, 0x18
lock xadd dword [rdx + 0x10], edi
dec edi
test edi, edi
jg 0x1400478d8
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + VariantCopy]
mov rbx, qword [rsp + 0x88]
add rsp, 0x50
pop rdi
pop rsi
pop rbp
ret
Function at 0x14004b360
Capabilities:
Acquire debug privileges

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x50
mov rax, qword [0x14017c430]
xor rax, rsp
mov qword [rsp + 0x48], rax
xor ebx, ebx
mov edi, ecx
mov qword [rsp + 0x30], rbx
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rsp + 0x30]
lea edx, [rbx + 0x20]
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x14004b3fa
lea r8, [rsp + 0x3c]
lea rdx, str.SeDebugPrivilege
xor ecx, ecx
mov dword [rsp + 0x38], 1
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
mov rcx, qword [rsp + 0x30]
neg edi
lea r9d, [rbx + 0x10]
lea r8, [rsp + 0x38]
sbb eax, eax
xor edx, edx
mov qword [rsp + 0x28], rbx
and eax, 2
mov qword [rsp + 0x20], rbx
mov dword [rsp + 0x44], eax
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rsp + 0x30]
test eax, eax
sete bl
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1400d4d90
mov rbx, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret

Function at 0x14004f630
Capabilities:
Get disk information via ioctl

Disassembly:
mov r11, rsp
push rdi
sub rsp, 0x70
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov qword [r11 + 0x18], rbx
mov qword [r11 + 0x20], rsi
mov rax, qword [0x14017c430]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov rdi, rdx
xor esi, esi
mov qword [r11 - 0x38], rsi
mov qword [r11 - 0x48], rsi
mov dword [rsp + 0x28], esi
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor edx, edx
lea r8d, [rsi + 3]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
mov qword [rsp + 0x40], rax
cmp rax, 0xffffffffffffffff
jne 0x14004f693
or rcx, rax
jmp 0x14004f70b
xor eax, eax
mov qword [rsp + 0x58], rax
mov dword [rsp + 0x60], eax
mov dword [rdi], 0xffffffff
mov dword [rsp + 0x48], esi
mov qword [rsp + 0x38], rsi
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], send
lea rax, [rsp + 0x58]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, 0x2d1080
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x14004f703
mov eax, dword [rsp + 0x5c]
cmp eax, 0xffffffff
je 0x14004f703
mov dword [rdi], eax
test rbx, rbx
je 0x14004f6ff
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x40], rsi
mov al, 1
jmp 0x14004f718
test rbx, rbx
je 0x14004f716
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x40], rsi
xor al, al
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.1400d4d90
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x14004f740
Capabilities:
Get storage device properties

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x480
mov qword [rsp + 0x58], 0xfffffffffffffffe
mov qword [rsp + 0x4b0], rbx
mov rax, qword [0x14017c430]
xor rax, rsp
mov qword [rsp + 0x470], rax
mov rsi, rdx
xor dil, dil
xor ebp, ebp
mov ebx, ebp
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x50], rbp
mov qword [rsp + 0x30], rbp
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor edx, edx
lea r8d, [rbp + 3]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
cmp rax, 0xffffffffffffffff
jne 0x14004f7b7
call fcn.1400163c0
test eax, eax
js 0x14004f82f
jmp 0x14004f7bf
mov rbx, rax
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x60], rbp
mov dword [rsp + 0x40], ebp
mov byte [rsp + 0x70], 0
xor edx, edx
mov r8d, 0x3ff
lea rcx, [rsp + 0x71]
call fcn.1400dd9f0
mov dword [rsp + 0x74], 0x400
mov qword [rsp + 0x38], rbp
lea rax, [rsp + 0x40]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 0x400
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
mov r9d, recv
lea r8, [rsp + 0x60]
mov edx, 0x2d1400
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x14004f82f
movzx eax, byte [rsp + 0x78]
mov byte [rsi], al
mov dil, 1
test rbx, rbx
je 0x14004f842
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x48], rbp
movzx eax, dil
mov rcx, qword [rsp + 0x470]
xor rcx, rsp
call fcn.1400d4d90
mov rbx, qword [rsp + 0x4b0]
add rsp, 0x480
pop rdi
pop rsi
pop rbp
ret