joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140031ccc
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.14001cb68
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x140031d56
cmp byte [rbp - 0x21], r15b
je 0x140031d51
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x140031d8c
call fcn.1400232d0
test eax, eax
jne 0x140031d78
cmp byte [rbp - 0x21], r15b
je 0x140031d70
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x140031d8c
cmp byte [rbp - 0x21], r15b
je 0x140031d89
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.14001f718
test eax, eax
jne 0x140031e2c
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.14001cb68
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x140031dcb
cmp byte [rbp - 0x21], r15b
je 0x140031e00
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x140031e00
call fcn.1400232d0
test eax, eax
jne 0x140031dec
cmp byte [rbp - 0x21], r15b
je 0x140031de5
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x140031e00
cmp byte [rbp - 0x21], r15b
je 0x140031dfd
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.14001f718
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x140031e2c
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x140031e2f
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x140031e3d
mov rcx, rdi
call fcn.140022fcc
cmp byte [rbp + 0x3f], r15b
je 0x140031e4c
mov rcx, qword [rbp + 0x27]
call fcn.140022fcc
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x1400cc1f0
Capabilities:
Get thread local storage value

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x40
mov rax, qword [0x14015e028]
xor rax, rsp
mov qword [rsp + 0x38], rax
call fcn.1400c9e00
mov rsi, rax
mov r15, rax
mov byte [rsp + 0x37], 0
cmp byte [rax + 2], 0
je 0x1400cc2bd
mov edi, dword [0x140169500]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, rax
test ebx, ebx
jne 0x1400cc2b3
cmp rdi, 1
jbe 0x1400cc34e
inc qword [rdi + 0x298]
mov rbx, qword [rdi + 0xc0]
test rbx, rbx
je 0x1400cc378
inc qword [rdi + 0x2a0]
mov rax, qword [rbx]
test rax, rax
je 0x1400cc284
mov rcx, rax
not rcx
cmp qword [rbx + 8], rcx
jne 0x1400cc3ee
bswap rax
dec byte [rdi + 0xc8]
mov qword [rdi + 0xc0], rax
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.14009d180
mov rax, rbx
add rsp, 0x40
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x1400cc244
lea r14, [rsi + 0x1f0]
add rsi, 8
mov edi, 1
xor ebx, ebx
mov r12, qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
mov ebp, 0x40
mov rcx, rsi
call r12
test al, al
jne 0x1400cc30a
jmp 0x1400cc3f3
pause
dec eax
jne 0x1400cc2ea
add ebx, edi
add edi, edi
cmp edi, 0x40
cmovge edi, ebp
cmp ebx, 0x3e8
jl 0x1400cc2db
mov rcx, rsi
call sub.KERNEL32.dll_AcquireSRWLockExclusive
mov rax, qword [r14]
mov rbx, qword [rax]
test rbx, rbx
je 0x1400cc40a
mov byte [rsp + 0x37], 0
mov rcx, qword [rbx]
or ecx, dword [rax - 0x7b]
leave
je 0x1400cc336
mov rdx, rcx
not rdx
cmp qword [rbx + 8], rdx
jne 0x1400cc3ee
bswap rcx
mov qword [rax], rcx
inc word [rax + 0x18]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
jmp 0x1400cc294
je 0x1400cc3a3
mov byte [r15 + 2], 0
mov rcx, r15
call fcn.14007f0f0
mov rdi, rax
mov byte [r15 + 2], 1
inc qword [rax + 0x298]
mov rbx, qword [rax + 0xc0]
jmp 0x1400cc25c
inc qword [rdi + 0x2b0]
inc qword [rdi + 0x2a8]
mov edx, 0xc
mov rcx, rdi
call fcn.14007f370
mov rbx, qword [rdi + 0xc0]
test rbx, rbx
jne 0x1400cc26c
lea r14, [rsi + 0x1f0]
add rsi, 8
mov edi, 1
xor ebx, ebx
mov r12, qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
mov ebp, 0x40
mov rcx, rsi
call r12
test al, al
jne 0x1400cc30a
jmp 0x1400cc402
pause
dec eax
jne 0x1400cc3d1
add ebx, edi
add edi, edi
cmp edi, 0x40
cmovge edi, ebp
cmp ebx, 0x3e8
jl 0x1400cc3c1
jmp 0x1400cc302
call 0x1400c8770
mov eax, edi
test edi, edi
jg 0x1400cc2ea
jmp 0x1400cc2f2
mov eax, edi
test edi, edi
jg 0x1400cc3d1
jmp 0x1400cc3d9
lea rax, [rsp + 0x37]
mov qword [rsp + 0x20], rax
mov r9d, 0x28
mov rcx, r14
mov rdx, r15
xor r8d, r8d
call fcn.140061300
mov rbx, rax
jmp 0x1400cc340
Function at 0x140001700
Capabilities:
Encode data using xor
Execute command
Hash data using fnv

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x50
mov rax, qword [0x140006040]
xor rax, rsp
mov qword [rsp + 0x40], rax
call fcn.1400012f0
mov r15, rax
mov rcx, rax
call qword [sym.imp.OLEAUT32.dll_VariantInit]
mov r14d, eax
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
xor edi, edi
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x38], 7
cmp r14, 7
ja 0x140001788
mov qword [rsp + 0x30], r14
lea rbx, [r14 + r14]
mov r8, rbx
mov rdx, r15
lea rcx, [rsp + 0x20]
call sub.VCRUNTIME140.dll_memcpy
mov word [rsp + rbx + 0x20], di
mov rbp, qword [rsp + 0x38]
mov r14, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x20]
jmp 0x140001805
mov rbp, r14
or rbp, 7
mov eax, 0xa
cmp rbp, rax
cmovb rbp, rax
lea rcx, [rbp*2 + 2]
cmp rcx, 0x1000
jb 0x1400017d8
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x1400018cf
mov rcx, rax
call fcn.1400020d8
test rax, rax
je 0x140001895
lea rsi, [rax + 0x27]
and rsi, 0xffffffffffffffe0
mov qword [rsi - 8], rax
jmp 0x1400017e0
call fcn.1400020d8
mov rsi, rax
mov qword [rsp + 0x20], rsi
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x38], rbp
lea rbx, [r14 + r14]
mov r8, rbx
mov rdx, r15
mov rcx, rsi
call sub.VCRUNTIME140.dll_memcpy
mov word [rbx + rsi], di
lea rcx, [rsp + 0x20]
cmp rbp, 7
cmova rcx, rsi
movabs rdx, 0xcbf29ce484222325
add r14, r14
je 0x140001843
movabs r8, 0x100000001b3
nop dword [rax + rax]
movzx eax, byte [rdi + rcx]
xor rdx, rax
imul rdx, r8
inc rdi
cmp rdi, r14
jb 0x140001830
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___unsigned_long_long_unsigned___int64_____ptr64]
mov rcx, rax
call fcn.1400019c0
lea rcx, str.PAUSE
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
nop
cmp rbp, 7
jbe 0x1400018a4
lea rdx, [rbp*2 + 2]
mov rax, rsi
cmp rdx, 0x1000
jb 0x14000189c
add rdx, 0x27
mov rsi, qword [rsi - 8]
sub rax, rsi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000189c
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rsi
call fcn.1400020d0
xor eax, eax
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1400020b0
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x80]
add rsp, 0x50
pop r15
pop r14
pop rdi
ret
call fcn.140001120
int3

Function at 0x140002b18
Capabilities:
Parse pe header

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

Disassembly:
jmp 0x1400131e0
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret

Function at 0x140011276
Capabilities:
Parse pe header

Disassembly:
jmp 0x140014530
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140014550
xor al, al
jmp 0x1400145d1
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140014563
xor al, al
jmp 0x1400145d1
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x14001458d
xor al, al
jmp 0x1400145d1
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x1400145a1
xor al, al
jmp 0x1400145d1
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x1400145b3
xor al, al
jmp 0x1400145d1
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x1400145cf
xor al, al
jmp 0x1400145d1
mov al, 1
add rsp, 0x38
ret
Function at 0x140eec0b0
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.140eec237
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 0x140eec0e1
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140eec0c7
add dl, dl
jne 0x140eec0ee
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140eec14e
xor eax, eax
add dl, dl
jne 0x140eec0fd
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140eec205
add dl, dl
jne 0x140eec10e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140eec11b
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140eec128
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140eec135
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x140eec142
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x140eec0d6
mov eax, 1
add dl, dl
jne 0x140eec15e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140eec16b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140eec153
sub eax, ebx
mov ebx, 1
jne 0x140eec1a4
mov ecx, 1
add dl, dl
jne 0x140eec186
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140eec193
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140eec17b
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140eec0d6
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140eec1c0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140eec1cd
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140eec1b5
cmp eax, 0x7d00
jae 0x140eec1f3
cmp eax, 0x500
jb 0x140eec1ee
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140eec0d6
cmp eax, 0x7f
ja 0x140eec1f6
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140eec0d6
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x140eec22a
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 0x140eec0d6
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140001030
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov edi, r8d
mov rsi, rdx
mov rbp, rcx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
jne 0x140001063
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
mov rcx, rax
mov qword [rsp + 0x30], rbx
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
test rax, rax
je 0x1400010a6
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov r11d, eax
add r11, rbx
and edi, 0xf
jbe 0x1400010a1
cmp rbx, r11
jae 0x1400010a6
dec edi
movzx eax, word [rbx]
lea rbx, [rbx + rax*2 + 2]
jne 0x140001090
cmp rbx, r11
jb 0x1400010aa
xor eax, eax
jmp 0x1400010b6
xor eax, eax
cmp word [rbx], ax
cmove rbx, rax
mov rax, rbx
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140008670
Capabilities:
Read .ini file

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x470
mov rax, qword [0x14027bbd0]
xor rax, rsp
mov qword [rsp + 0x460], rax
mov rbx, rdx
mov rdi, r8
lea rdx, [rsp + 0x40]
mov r8d, 0x104
xor ecx, ecx
mov rsi, r9
mov dword [rsp + 0x30], 0
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x140008725
lea rcx, [rsp + 0x40]
mov edx, 0x5c
call fcn.140193dc0
lea rdx, [0x1401c78e4]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
lea rdx, [0x1401c7444]
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
lea rdx, str.DebugSettings.ini
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
lea r11, [rsp + 0x40]
lea r9, [rsp + 0x250]
mov qword [rsp + 0x28], r11
lea r8, [0x1401c6ea8]
mov rdx, rsi
mov rcx, rdi
mov dword [rsp + 0x20], 0x104
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea rdx, [rsp + 0x250]
mov rcx, rbx
call fcn.1400020c0
mov rax, rbx
mov rcx, qword [rsp + 0x460]
xor rcx, rsp
call fcn.1401945b0
add rsp, 0x470
pop rdi
pop rsi
pop rbx
ret
Function at 0x14000ad20
Capabilities:
Extract resource via kernel32 functions

Disassembly:
movzx edx, dx
jmp method.CMsgDbgDlg.virtual_712
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rbp, r8
mov rdi, rdx
mov rsi, rcx
mov qword [rcx + 0xe0], rdx
test rdx, 0xffffffffffff0000
jne 0x140060e1f
cmp dword [rcx + 0xd8], 0
jne 0x140060e1f
movzx eax, dx
mov dword [rcx + 0xd8], eax
call fcn.140054cb8
mov r8d, 5
mov rdx, rdi
mov rbx, qword [rax + 0x18]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rcx, rbx
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov r9, rbx
mov r8, rbp
mov rdx, rax
mov rcx, rsi
mov rdi, rax
call fcn.140060d84
mov rcx, rdi
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_FreeResource]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x14000b8f0
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x590]
sub rsp, 0x690
mov rax, qword [0x14027bbd0]
xor rax, rsp
mov qword [rbp + 0x580], rax
xor eax, eax
mov rbx, rdx
mov rdi, rcx
mov r9, rcx
lea rsi, str.PrinterDriverData
lea rdx, [0x1401c8520]
lea rcx, [rsp + 0x60]
lea r8, str.SystemCurrentControlSetControlPrintPrinters
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x20], rsi
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x50], eax
mov byte [rsp + 0x54], al
call qword [sym.imp.USER32.dll_wsprintfW]
lea r11, [rsp + 0x40]
lea rdx, [rsp + 0x60]
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], r11
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x14000ba15
lea rax, [rsp + 0x30]
lea rdx, str.SystemCurrentControlSetControlPrintPrinters
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14000babd
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
mov r9d, 0x20019
xor r8d, r8d
mov rdx, rdi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14000ba0b
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x40]
mov r9d, 0x20019
xor r8d, r8d
mov rdx, rsi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x14000ba15
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x30]
jmp 0x14000bab7
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x48]
lea r9, [rsp + 0x4c]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x50]
lea rdx, str.PrinterID
xor r8d, r8d
mov dword [rsp + 0x48], 4
mov dword [rsp + 0x4c], 3
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x40]
test eax, eax
jne 0x14000ba97
mov eax, dword [rsp + 0x50]
mov dword [rbx], eax
movzx eax, byte [rsp + 0x54]
mov byte [rbx + 4], al
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x14000ba80
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x14000ba90
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
jmp 0x14000babf
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x14000baad
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x14000babd
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov rcx, qword [rbp + 0x580]
xor rcx, rsp
call fcn.1401945b0
mov rbx, qword [rsp + 0x6c0]
add rsp, 0x690
pop rdi
pop rsi
pop rbp
ret
Function at 0x14000c7b0
Capabilities:
Create process on windows
Query or enumerate registry value

Disassembly:
mov rax, rsp
push rbp
lea rbp, [rax - 0x438]
sub rsp, 0x530
mov qword [rbp - 0x78], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rdi
mov rax, qword [0x14027bbd0]
xor rax, rsp
mov qword [rbp + 0x420], rax
xor r8d, r8d
lea rdx, str.VDCUDeleteService
lea rcx, [rsp + 0x60]
call fcn.140017fc0
nop
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x210]
call fcn.140192cb0
lea rdx, str.SOFTWARECanonVDCSETUP
lea rcx, [rbp + 0x210]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
lea r11, [rsp + 0x58]
mov qword [rsp + 0x20], r11
mov r9d, 0x20119
xor r8d, r8d
lea rdx, [rbp + 0x210]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x14000c875
xor r9d, r9d
lea r8, str.return___08x
lea edx, [r9 + 2]
lea rcx, [rsp + 0x60]
call fcn.140017c80
nop
lea rcx, [rsp + 0x60]
call fcn.140018150
xor eax, eax
jmp 0x14000c9db
mov dword [rsp + 0x54], 0x208
lea rax, [rsp + 0x54]
mov qword [rsp + 0x28], rax
lea rax, [rbp]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x50]
xor r8d, r8d
lea rdx, str.Path
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x58]
test eax, eax
je 0x14000c8e3
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor r9d, r9d
lea r8, str.return___08x
lea edx, [r9 + 2]
lea rcx, [rsp + 0x60]
call fcn.140017c80
nop
lea rcx, [rsp + 0x60]
call fcn.140018150
xor eax, eax
jmp 0x14000c9db
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor edx, edx
lea r8d, [rdx + 0x68]
lea rcx, [rbp - 0x70]
call fcn.140192cb0
xor r11d, r11d
mov qword [rsp + 0x70], r11
mov qword [rsp + 0x78], r11
mov qword [rbp - 0x80], r11
mov dword [rbp - 0x70], 0x68
mov dword [rbp - 0x34], 1
xor ebx, ebx
mov word [rbp - 0x30], bx
lea rdx, [0x1401c7444]
lea rcx, [rbp]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
lea rdx, str.AuVdc.exe
lea rcx, [rbp]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
lea r11, [rsp + 0x70]
mov qword [rsp + 0x48], r11
lea rax, [rbp - 0x70]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], ebx
xor r9d, r9d
xor r8d, r8d
lea rdx, str.__remove
lea rcx, [rbp]
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
mov edi, eax
mov rbx, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
or edx, 0xffffffff
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0xffffffff
je 0x14000c9ac
lea rdx, [rsp + 0x50]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r9d, edi
lea r8, str.return___08x
mov edx, 2
lea rcx, [rsp + 0x60]
call fcn.140017c80
nop
lea rcx, [rsp + 0x60]
call fcn.140018150
mov eax, edi
mov rcx, qword [rbp + 0x420]
xor rcx, rsp
call fcn.1401945b0
lea r11, [rsp + 0x530]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret
Function at 0x14000cdb0
Capabilities:
Create process on windows
Get common file path

Disassembly:
push rdi
mov eax, 0x1100
call fcn.1401945e0
sub rsp, rax
mov qword [rsp + 0x78], 0xfffffffffffffffe
mov qword [rsp + 0x1118], rbx
mov rax, qword [0x14027bbd0]
xor rax, rsp
mov qword [rsp + 0x10f0], rax
mov rdi, rcx
xor r8d, r8d
lea rdx, str.ServiceStopFromCmdLine
lea rcx, [rsp + 0x50]
call fcn.140017fc0
nop
mov r9, rdi
lea r8, str.lpszService___s
mov edx, 1
lea rcx, [rsp + 0x50]
call fcn.140017c80
xor edx, edx
mov r8d, 0x400
lea rcx, [rsp + 0xf0]
call fcn.140192cb0
xor edx, edx
mov r8d, 0x400
lea rcx, [rsp + 0x4f0]
call fcn.140192cb0
mov edx, 0x200
lea rcx, [rsp + 0xf0]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea rcx, [rsp + 0xf0]
call qword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea r9, str.cmd.exe
lea r8, [rsp + 0xf0]
lea rdx, [0x1401c9460]
lea rcx, [rsp + 0x4f0]
call qword [sym.imp.USER32.dll_wsprintfW]
xor edx, edx
lea r8d, [rdx + 0x68]
lea rcx, [rsp + 0x80]
call fcn.140192cb0
mov dword [rsp + 0x80], VarBstrFromDisp
xor ebx, ebx
mov word [rsp + 0xc0], bx
mov dword [rsp + 0xbc], 1
mov r9, rdi
lea r8, str._C_net_stop___s___Y
mov edx, 0x400
lea rcx, [rsp + 0x8f0]
call fcn.140196100
lea r11, [rsp + 0x60]
mov qword [rsp + 0x48], r11
lea rax, [rsp + 0x80]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], ebx
xor r9d, r9d
xor r8d, r8d
lea rdx, [rsp + 0x8f0]
lea rcx, [rsp + 0x4f0]
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
mov ebx, eax
test eax, eax
je 0x14000cf69
mov edx, 0xea60
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, str.SPOOLER
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x14000cf69
call fcn.140054cb8
mov rcx, qword [rax + 8]
mov dword [rcx + 0xa90], 1
mov r9d, ebx
lea r8, str.return___08x
mov edx, 2
lea rcx, [rsp + 0x50]
call fcn.140017c80
nop
lea rcx, [rsp + 0x50]
call fcn.140018150
mov eax, ebx
mov rcx, qword [rsp + 0x10f0]
xor rcx, rsp
call fcn.1401945b0
mov rbx, qword [rsp + 0x1118]
add rsp, 0x1100
pop rdi
ret