joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140001d5c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140001da6
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140001da6
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140001da6
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140001da6
cmp dword [rcx + 0x84], 0xe
jbe 0x140001da6
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140001da8
xor al, al
add rsp, 0x28
ret

Function at 0x140fdf058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x140fdf1df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x140fdf089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140fdf06f
add dl, dl
jne 0x140fdf096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140fdf0f6
xor eax, eax
add dl, dl
jne 0x140fdf0a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140fdf1ad
add dl, dl
jne 0x140fdf0b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140fdf0c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140fdf0d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140fdf0dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x140fdf0ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x140fdf07e
mov eax, 1
add dl, dl
jne 0x140fdf106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140fdf113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140fdf0fb
sub eax, ebx
mov ebx, 1
jne 0x140fdf14c
mov ecx, 1
add dl, dl
jne 0x140fdf12e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140fdf13b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140fdf123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140fdf07e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140fdf168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140fdf175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140fdf15d
cmp eax, 0x7d00
jae 0x140fdf19b
cmp eax, 0x500
jb 0x140fdf196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140fdf07e
cmp eax, 0x7f
ja 0x140fdf19e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140fdf07e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x140fdf1d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x140fdf07e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140014700
Capabilities:
Terminate process

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push r15
sub rsp, 0xb0
xor r14d, r14d
mov dword [rsp + 0x20], r14d
lea rcx, [rax - 0x78]
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetStartupInfoW]
nop
mov rax, qword gs:[0x30]
mov rbx, qword [rax + 8]
mov esi, r14d
xor eax, eax
lock cmpxchg qword [0x1400a3508], rbx
je 0x140014767
cmp rax, rbx
jne 0x14001475a
mov edi, 1
mov esi, edi
jmp 0x14001476c
mov ecx, 0x3e8
call qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_Sleep]
jmp 0x14001473f
mov edi, 1
mov eax, dword [0x1400a3510]
cmp eax, edi
jne 0x140014784
mov ebx, 0x1f
mov ecx, ebx
call sub.msvcrt.dll__amsg_exit
jmp 0x1400147fa
mov eax, dword [0x1400a3510]
test eax, eax
jne 0x1400147ef
mov dword [0x1400a3510], edi
lea r15, [0x140063a50]
lea rbx, [0x140063a38]
mov qword [rsp + 0x30], rbx
mov eax, r14d
mov dword [rsp + 0x24], eax
cmp rbx, r15
jae 0x1400147e1
test eax, eax
jne 0x1400147e5
cmp qword [rbx], r14
je 0x1400147d6
movabs r10, 0xd30527475e523070
mov rax, qword [rbx]
mov rcx, qword [0x140063988]
call rcx
mov dword [rsp + 0x24], eax
add rbx, 8
mov qword [rsp + 0x30], rbx
jmp 0x1400147ae
test eax, eax
je 0x1400147f5
mov eax, 0xff
jmp 0x14001495b
mov dword [0x1400a2830], edi
mov ebx, 0x1f
mov eax, dword [0x1400a3510]
cmp eax, edi
jne 0x140014821
lea rdx, [0x140063a30]
lea rcx, [0x1400639a0]
call sub.msvcrt.dll__initterm
mov dword [0x1400a3510], 2
test esi, esi
jne 0x14001482f
mov rax, r14
xchg qword [0x1400a3508], rax
cmp qword [0x1400a3528], r14
je 0x14001486c
lea rcx, [0x1400a3528]
call fcn.140014fe0
test eax, eax
je 0x14001486c
movabs r10, 0x99012e4578d92870
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
mov rax, qword [0x1400a3528]
mov r9, qword [0x140063988]
call r9
mov rax, qword [sym.imp.msvcrt.dll__wcmdln]
mov rcx, qword [rax]
test rcx, rcx
jne 0x140014885
mov eax, 0xff
jmp 0x14001495b
mov qword [rsp + 0x28], rcx
mov edx, dword [rsp + 0x20]
movzx eax, word [rcx]
cmp ax, 0x20
ja 0x14001490c
test ax, ax
je 0x1400148a0
test edx, edx
jne 0x14001490c
sub ax, di
cmp ax, bx
ja 0x1400148b6
add rcx, 2
mov qword [rsp + 0x28], rcx
movzx eax, word [rcx]
jmp 0x1400148a0
test byte [rsp + 0x7c], dil
movzx eax, word [rsp + 0x80]
mov r9d, 0xa
cmovne r9d, eax
mov r8, rcx
xor edx, edx
lea rcx, [0x140000000]
call fcn.14001f5c8
mov dword [0x1400a282c], eax
cmp dword [0x1400a2850], r14d
jne 0x1400148f5
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x1400a2830], r14d
jne 0x14001490a
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x1400a282c]
jmp 0x14001495b
cmp ax, 0x22
jne 0x140014920
mov eax, r14d
test edx, edx
sete al
mov edx, eax
mov dword [rsp + 0x20], eax
add rcx, 2
mov qword [rsp + 0x28], rcx
jmp 0x14001488e
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop r15
ret
sub rsp, 0x28
call fcn.140137000
add rsp, 0x28
jmp 0x140014700
Function at 0x140014ecc
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x140014f18
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140014f10
cmp dword [rcx + 0x3c], edx
jl 0x140014f10
cmp dword [rcx + 0x3c], 0x10000000
jae 0x140014f10
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp], rax
cmp dword [rax], 0x4550
cmovne rax, rdx
mov rdx, rax
mov qword [rsp], rax
jmp 0x140014f18
mov rax, rdx
add rsp, 0x18
ret

Function at 0x140015040
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140015068
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140015068
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140019e18
Capabilities:
Block operations on executable memory pages using arbitrary code guard

Disassembly:
push rsi
sub rsp, 0x30
mov esi, 4
mov dword [rsp + 0x40], 1
mov r8d, esi
lea rdx, [rsp + 0x40]
lea ecx, [rsi - 2]
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_1.dll_SetProcessMitigationPolicy]
nop dword [rax + rax]
mov r8d, esi
mov dword [rsp + 0x48], 1
lea rdx, [rsp + 0x48]
lea ecx, [rsi + 5]
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_1.dll_SetProcessMitigationPolicy]
nop dword [rax + rax]
mov r8d, esi
mov dword [rsp + 0x50], 3
lea rdx, [rsp + 0x50]
lea ecx, [rsi + 6]
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_1.dll_SetProcessMitigationPolicy]
nop dword [rax + rax]
lea ecx, [rsi + 4]
mov r8d, esi
lea rdx, [rsp + 0x58]
mov dword [rsp + 0x58], ecx
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_1.dll_SetProcessMitigationPolicy]
nop dword [rax + rax]
mov r8d, esi
mov dword [rsp + 0x20], 2
lea rdx, [rsp + 0x20]
lea ecx, [rsi + 9]
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_1.dll_SetProcessMitigationPolicy]
nop dword [rax + rax]
add rsp, 0x30
pop rsi
ret

Function at 0x14001a06c
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 8], rcx
push rbp
push rsi
push rdi
sub rsp, 0x60
xor ebx, ebx
lea rax, [r11 + 8]
mov qword [r11 - 0x20], rbx
mov rbp, rdx
mov qword [r11 - 0x28], rbx
xor r9d, r9d
mov qword [r11 - 0x30], rbx
xor r8d, r8d
mov qword [r11 - 0x38], rbx
xor edx, edx
mov qword [r11 - 0x40], rax
mov rcx, rbp
mov qword [r11 - 0x48], rbx
mov qword [r11 - 0x50], rbx
mov qword [r11 - 0x58], rbx
mov dword [r11 + 8], ebx
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryInfoKeyW]
nop dword [rax + rax]
test eax, eax
jne 0x14001a156
lea esi, [rbx + 1]
cmp dword [rsp + 0x80], esi
jne 0x14001a148
mov ecx, 0x2000
mov dword [rsp + 0x90], 0x1000
call qword [sym.imp.msvcrt.dll_malloc]
nop dword [rax + rax]
mov rdi, rax
test rax, rax
je 0x14001a156
mov qword [rsp + 0x38], rbx
lea r9, [rsp + 0x90]
mov qword [rsp + 0x30], rbx
mov r8, rax
mov qword [rsp + 0x28], rbx
xor edx, edx
mov rcx, rbp
mov qword [rsp + 0x20], rbx
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegEnumValueW]
nop dword [rax + rax]
test eax, eax
jne 0x14001a133
cmp word [rdi], bx
jne 0x14001a135
mov esi, ebx
mov rcx, rdi
call qword [sym.imp.msvcrt.dll_free]
nop dword [rax + rax]
mov eax, esi
jmp 0x14001a158
cmp dword [rsp + 0x80], ebx
seta bl
mov eax, ebx
jmp 0x14001a158
xor eax, eax
mov rbx, qword [rsp + 0x88]
add rsp, 0x60
pop rdi
pop rsi
pop rbp
ret
Function at 0x14001cde0
Capabilities:
Query or enumerate registry key

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x180]
sub rsp, 0x280
mov rax, qword [0x1400a2318]
xor rax, rsp
mov qword [rbp + 0x170], rax
mov rsi, rdx
mov rdi, rcx
and qword [rsp + 0x48], 0
and qword [rsp + 0x50], 0
and qword [rsp + 0x58], 0
mov r9d, 0x2001f
mov r8, rdx
mov rdx, qword [rcx]
lea rcx, [rsp + 0x48]
call fcn.14001c0f0
test eax, eax
mov ebx, eax
jne 0x14001cea4
mov dword [rsp + 0x40], pe_nt_image_headers64
lea rax, [rsp + 0x60]
mov qword [rsp + 0x38], rax
and qword [rsp + 0x30], 0
and qword [rsp + 0x28], 0
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x40]
lea r8, [rsp + 0x70]
xor edx, edx
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegEnumKeyExW]
nop dword [rax + rax]
lea rcx, [rsp + 0x48]
test eax, eax
jne 0x14001ce92
lea rdx, [rsp + 0x70]
call fcn.14001cde0
jmp 0x14001ce36
call fcn.140018cc4
mov rdx, rsi
mov rcx, rdi
call fcn.140019c70
mov ebx, eax
lea rcx, [rsp + 0x48]
call fcn.140018cc4
mov eax, ebx
mov rcx, qword [rbp + 0x170]
xor rcx, rsp
call fcn.1400149c0
mov rbx, qword [rsp + 0x2b0]
add rsp, 0x280
pop rdi
pop rsi
pop rbp
ret
Function at 0x14001ec80
Capabilities:
Print debug messages

Disassembly:
push rbx
sub rsp, 0x260
mov rax, qword [0x1400a2318]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov rbx, rcx
lea r8, str.CVdsServiceModule::Start__
mov edx, 0x5e
lea rcx, [rsp + 0x40]
call qword [sym.imp.vdsutil.dll_public:_void___cdecl_CVdsCallTracer::constructor_unsigned_long_int__char_const____ptr64____ptr64]
nop dword [rax + rax]
nop
mov qword [rsp + 0x20], rbx
lea rax, [0x14001f580]
mov qword [rsp + 0x28], rax
and qword [rsp + 0x30], 0
and qword [rsp + 0x38], 0
lea rcx, [rsp + 0x20]
call qword [sym.imp.api_ms_win_service_core_l1_1_0.dll_StartServiceCtrlDispatcherW]
nop dword [rax + rax]
test eax, eax
jne 0x14001ed25
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov r9d, eax
lea r8, str.Error_code_for_StartServiceCtrlDispatcher:__u._n
mov edx, pe_nt_image_headers64
lea rcx, [rsp + 0x50]
call fcn.140005bb0
lea rcx, [rsp + 0x50]
call qword [sym.imp.api_ms_win_core_debug_l1_1_0.dll_OutputDebugStringW]
nop dword [rax + rax]
nop
lea rcx, [rsp + 0x40]
call qword [sym.imp.vdsutil.dll_public:_void___cdecl_CVdsCallTracer::destructor_void____ptr64]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.1400149c0
add rsp, 0x260
pop rbx
ret

Function at 0x14001eea0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x20
cmp word [rdx], 0
mov rbp, rdx
mov rbx, rcx
jne 0x14001eecd
mov rax, rcx
jmp 0x14001ef63
cmp word [rbx], 0
je 0x14001ef61
mov rdi, rbx
mov rsi, rbp
cmp word [rsi], 0
je 0x14001ef5c
movzx ecx, word [rdi]
movzx eax, word [rsi]
cmp ecx, eax
jne 0x14001ef3f
mov rcx, rdi
call qword [sym.imp.USER32.dll_CharNextW]
nop dword [rax + rax]
mov rcx, rsi
mov r14, rax
call qword [sym.imp.USER32.dll_CharNextW]
nop dword [rax + rax]
sub rax, rsi
mov rcx, r14
sub rcx, rdi
xor rax, rcx
test rax, 0xfffffffffffffffe
jne 0x14001ef3f
cmp rdi, r14
jae 0x14001ef39
add rdi, 2
add rsi, 2
movzx edx, word [rsi]
movzx eax, word [rdi]
cmp eax, edx
jne 0x14001ef22
cmp word [rdi], 0
jne 0x14001eedd
cmp word [rsi], 0
je 0x14001ef5c
mov rcx, rbx
call qword [sym.imp.USER32.dll_CharNextW]
nop dword [rax + rax]
mov rbx, rax
jmp 0x14001eecd
mov rax, rbx
jmp 0x14001ef63
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
Function at 0x14001ef88
Capabilities:
Delete service
Stop service

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x60
mov rax, qword [0x1400a2318]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov rsi, rcx
lea r8, str.CVdsServiceModule::Uninstall__
mov edx, 0x5e
lea rcx, [rsp + 0x20]
call qword [sym.imp.vdsutil.dll_public:_void___cdecl_CVdsCallTracer::constructor_unsigned_long_int__char_const____ptr64____ptr64]
nop dword [rax + rax]
nop
mov rcx, rsi
call fcn.14001be34
cmp eax, 1
je 0x14001f0cf
xor edi, edi
test eax, eax
jns 0x14001eff9
lea rcx, [rsp + 0x20]
call qword [sym.imp.vdsutil.dll_public:_void___cdecl_CVdsCallTracer::destructor_void____ptr64]
nop dword [rax + rax]
xor eax, eax
jmp 0x14001f0e7
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
call qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_OpenSCManagerW]
nop dword [rax + rax]
mov rbp, rax
test rax, rax
jne 0x14001f028
lea edx, [rax + 0x68]
lea r8d, [rax + 0x10]
mov rcx, rsi
call fcn.140019d60
jmp 0x14001efe1
mov r8d, 0x10020
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_OpenServiceW]
nop dword [rax + rax]
mov r14, rax
test rax, rax
jne 0x14001f05d
mov rcx, rbp
call qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_CloseServiceHandle]
nop dword [rax + rax]
lea edx, [r14 + 0x6a]
jmp 0x14001f0bf
lea r8, [rsp + 0x30]
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_service_winsvc_l1_1_0.dll_ControlService]
nop dword [rax + rax]
mov rcx, r14
call qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_DeleteService]
nop dword [rax + rax]
mov ebx, eax
mov rcx, r14
call qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_CloseServiceHandle]
nop dword [rax + rax]
mov rcx, rbp
call qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_CloseServiceHandle]
nop dword [rax + rax]
lea rcx, [0x140066760]
call qword [sym.imp.vdsutil.dll_RemoveEventSource]
nop dword [rax + rax]
test ebx, ebx
jne 0x14001f0cf
lea edx, [rbx + 0x6b]
mov r8d, 0x10
mov rcx, rsi
call fcn.140019d60
jmp 0x14001f0d4
mov edi, 1
lea rcx, [rsp + 0x20]
call qword [sym.imp.vdsutil.dll_public:_void___cdecl_CVdsCallTracer::destructor_void____ptr64]
nop dword [rax + rax]
mov eax, edi
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.1400149c0
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x14001f400
Capabilities:
Get system information on windows

Disassembly:
push rbp
sub rsp, 0x90
lea rbp, [rsp + 0x20]
mov qword [rbp + 0x80], rbx
mov qword [rbp + 0x88], rsi
mov qword [rbp + 0x90], rdi
mov qword [rbp + 0x98], r14
mov rax, qword [0x1400a2318]
xor rax, rbp
mov qword [rbp + 0x68], rax
mov eax, dword [rsp]
sub rsp, 0x10
lea rsi, [rsp + 0x20]
mov eax, dword [rsi]
mov r8d, 0x30
lea rdx, [rbp + 8]
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_memory_l1_1_0.dll_VirtualQuery]
nop dword [rax + rax]
test rax, rax
je 0x14001f525
mov rdi, qword [rbp + 0x10]
lea rcx, [rbp + 0x38]
call qword [sym.imp.api_ms_win_core_sysinfo_l1_1_0.dll_GetSystemInfo]
nop dword [rax + rax]
mov eax, dword [rbp + 0x3c]
mov r14d, eax
lea ebx, [rax - 1]
not rbx
and rbx, rsi
lea rsi, [rdi + 0x2000]
sub rbx, rax
cmp rbx, rsi
jb 0x14001f525
mov r8d, 0x30
lea rdx, [rbp + 8]
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_memory_l1_1_0.dll_VirtualQuery]
nop dword [rax + rax]
test rax, rax
je 0x14001f525
add rdi, qword [rbp + 0x20]
test dword [rbp + 0x28], 0x1000
je 0x14001f49e
test dword [rbp + 0x2c], 0x100
mov rax, qword [rbp + 8]
je 0x14001f4dd
mov eax, 1
jmp 0x14001f527
cmp rbx, rax
jb 0x14001f525
cmp rax, rsi
mov r9d, 4
mov r8d, 0x1000
mov rdx, r14
cmovae rsi, rax
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_memory_l1_1_0.dll_VirtualAlloc]
nop dword [rax + rax]
lea r9, [rbp]
mov r8d, 0x104
mov rdx, r14
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_memory_l1_1_0.dll_VirtualProtect]
nop dword [rax + rax]
jmp 0x14001f527
xor eax, eax
mov rcx, qword [rbp + 0x68]
xor rcx, rbp
call fcn.1400149c0
mov rbx, qword [rbp + 0x80]
mov rsi, qword [rbp + 0x88]
mov rdi, qword [rbp + 0x90]
mov r14, qword [rbp + 0x98]
lea rsp, [rbp + 0x70]
pop rbp
ret
Function at 0x14001f5c8
Capabilities:
Accept command line arguments

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
sub rsp, 0x40
mov rax, qword [0x1400a2318]
xor rax, rsp
mov qword [rsp + 0x38], rax
xor r9d, r9d
mov rdi, r8
mov rbx, rcx
xor r8d, r8d
xor ecx, ecx
lea ebp, [r9 + 1]
mov edx, ebp
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapSetInformation]
nop dword [rax + rax]
test eax, eax
jne 0x14001f63f
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
lea r8, str._tMain__1__error_ld
xor edx, edx
mov r9d, eax
lea ecx, [rbp + 0x5d]
call qword [sym.imp.vdsutil.dll_VdsTraceEx]
nop dword [rax + rax]
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
jmp 0x14001f749
call fcn.140019e18
lea rsi, [0x1400a3010]
mov r8, rbx
mov rcx, rsi
call fcn.14001a170
mov eax, dword [0x1400686f0]
lea rdx, [rsp + 0x30]
mov dword [rsp + 0x30], eax
mov rcx, rdi
movzx eax, word [0x1400686f4]
mov word [rsp + 0x34], ax
call fcn.140019ec8
mov rbx, rax
call qword [sym.imp.api_ms_win_core_processenvironment_l1_1_0.dll_GetCommandLineW]
nop dword [rax + rax]
test rbx, rbx
je 0x14001f73b
lea rdx, str.UnregServer
mov rcx, rbx
call qword [sym.imp.msvcrt.dll__wcsicmp]
nop dword [rax + rax]
test eax, eax
je 0x14001f719
lea rdx, str.Service
mov rcx, rbx
call qword [sym.imp.msvcrt.dll__wcsicmp]
nop dword [rax + rax]
test eax, eax
je 0x14001f704
mov r8d, 2
lea rdx, [0x140068720]
mov rcx, rbx
call qword [sym.imp.msvcrt.dll__wcsnicmp]
nop dword [rax + rax]
mov ecx, dword [0x1400a307c]
lea rdx, [rsp + 0x30]
test eax, eax
cmove ecx, ebp
mov dword [0x1400a307c], ecx
mov rcx, rbx
call fcn.140019ec8
mov rbx, rax
jmp 0x14001f688
mov rcx, rsi
call fcn.14001d378
mov ebx, eax
test eax, eax
js 0x14001f737
mov edx, 0x66
jmp 0x14001f72c
mov rcx, rsi
call fcn.14001f110
mov ebx, eax
test eax, eax
js 0x14001f737
mov edx, 0x67
xor r8d, r8d
mov rcx, rsi
call fcn.140019d60
mov eax, ebx
jmp 0x14001f749
mov rcx, rsi
call fcn.14001ec80
mov eax, dword [0x1400a305c]
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1400149c0
mov rbx, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400203d4
Capabilities:
Get disk information

Disassembly:
push rbx
sub rsp, 0x30
mov rbx, rcx
lea r8, str.CVdsService::AddNetworkShare__
mov edx, 0x5e
lea rcx, [rsp + 0x20]
call qword [sym.imp.vdsutil.dll_public:_void___cdecl_CVdsCallTracer::constructor_unsigned_long_int__char_const____ptr64____ptr64]
nop dword [rax + rax]
nop
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetDriveTypeW]
nop dword [rax + rax]
mov edx, 3
cmp eax, edx
je 0x14002044b
mov r9d, eax
lea r8, str.CVdsService::AddNetworkShare:_Skipping_NetShareAdd__:_GetDriveType_____u
lea ecx, [rdx + 0x5b]
call qword [sym.imp.vdsutil.dll_VdsTraceEx]
nop dword [rax + rax]
mov ebx, 1
lea rcx, [rsp + 0x20]
call qword [sym.imp.vdsutil.dll_public:_void___cdecl_CVdsCallTracer::destructor_void____ptr64]
nop dword [rax + rax]
mov eax, ebx
add rsp, 0x30
pop rbx
ret
movzx ecx, word [rbx]
mov rax, qword [0x1400a2fc0]
mov word [rax], cx
movzx ecx, word [rbx]
mov rax, qword [0x1400a2fe8]
mov word [rax], cx
xor r9d, r9d
lea r8, [0x1400a2fc0]
mov edx, 0x1f6
xor ecx, ecx
call qword [sym.imp.srvcli.dll_NetShareAdd]
nop dword [rax + rax]
test eax, eax
je 0x14002042c
mov r9d, 0x846
lea r8, str.CVdsService::AddNetworkShare:_NetShareAdd___failed:__ld
mov ecx, 0x5e
cmp eax, r9d
jne 0x1400204ae
lea edx, [rcx - 0x5d]
call qword [sym.imp.vdsutil.dll_VdsTraceEx]
nop dword [rax + rax]
jmp 0x1400204bf
mov r9d, eax
xor edx, edx
call qword [sym.imp.vdsutil.dll_VdsTraceEx]
nop dword [rax + rax]
xor ebx, ebx
jmp 0x140020431
Function at 0x140059360
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x40
mov rbx, rcx
lea r8, str.CVdsPnPNotificationManager::InitializeAuxThread__
mov edx, 0x5e
lea rcx, [rsp + 0x30]
call qword [sym.imp.vdsutil.dll_public:_void___cdecl_CVdsCallTracer::constructor_unsigned_long_int__char_const____ptr64____ptr64]
nop dword [rax + rax]
nop
lea rax, [0x1400a34f0]
mov qword [rsp + 0x28], rax
and dword [rsp + 0x20], 0
mov r9, rbx
lea r8, [0x140005460]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_CreateThread]
nop dword [rax + rax]
mov qword [0x1400a34f8], rax
test rax, rax
jne 0x1400593d3
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
lea r8, str.VDS_0X0204000F_:_CreateThread_failed:__X
jmp 0x140059424
xor ebx, ebx
mov ecx, 0x1f4
call qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_Sleep]
nop dword [rax + rax]
xor r9d, r9d
xor r8d, r8d
mov edx, 0x400
mov ecx, dword [0x1400a34f0]
call qword [sym.imp.USER32.dll_PostThreadMessageW]
nop dword [rax + rax]
inc ebx
test eax, eax
jne 0x14005943c
cmp ebx, 0x258
jle 0x1400593d5
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
lea r8, str.VDS_0X02040010_:_PostThreadMessage_failed:__X
mov r9d, eax
mov ebx, eax
xor edx, edx
lea ecx, [rdx + 0x5e]
call qword [sym.imp.vdsutil.dll_VdsTraceEx]
nop dword [rax + rax]
jmp 0x14005943e
xor ebx, ebx
lea rcx, [rsp + 0x30]
call qword [sym.imp.vdsutil.dll_public:_void___cdecl_CVdsCallTracer::destructor_void____ptr64]
nop dword [rax + rax]
mov eax, ebx
add rsp, 0x40
pop rbx
ret