joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1401673a0
Capabilities:
Move file

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x890
mov rax, qword [0x1402a76c0]
xor rax, rsp
mov qword [rsp + 0x880], rax
lea rdx, str.CBaseOSSpecTypeWin2K::CleanUpIniFileReboot
lea rcx, [rsp + 0x30]
call fcn.14001abe0
nop
lea rsi, [0x1402a8360]
lea rdi, [0x1402bbdb0]
mov rcx, qword [0x1402a8360]
cmp rcx, rsi
je 0x14016741e
test byte [rcx + 0x1c], 1
je 0x14016741e
mov r9, rdi
cmp qword [0x1402bbdc8], 8
cmovae r9, qword [0x1402bbdb0]
mov edx, 0xd6
lea r8, [0x140265800]
mov rcx, qword [rcx + 0x10]
call fcn.140001ad0
xor edx, edx
mov r8d, 0x800
lea rcx, [rsp + 0x80]
call fcn.1401e7e40
mov ebx, 1
mov rcx, qword [0x1402bbf50]
mov rax, qword [rcx]
mov rax, qword [rax + 0x48]
call qword [case.0x1400136d6.0]
mov rcx, rax
mov rax, qword [rax]
lea r8, [rsp + 0x80]
lea rdx, str.TEMPPATH
mov rax, qword [rax + 0x18]
call qword [case.0x1400136d6.0]
lea rcx, [rsp + 0x80]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
movsxd rcx, eax
cmp word [rsp + rcx*2 + 0x7e], 0x5c
je 0x140167499
lea rdx, [0x140251df8]
lea rcx, [rsp + 0x80]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
lea rdx, str.InsDrv.ini
lea rcx, [rsp + 0x80]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
mov rcx, qword [0x1402a8360]
cmp rcx, rsi
je 0x1401674f5
test byte [rcx + 0x1c], 4
je 0x1401674f5
mov r9, rdi
cmp qword [0x1402bbdc8], 8
cmovae r9, qword [0x1402bbdb0]
mov edx, 0xd7
lea rax, [rsp + 0x80]
mov qword [rsp + 0x20], rax
lea r8, [0x140265800]
mov rcx, qword [rcx + 0x10]
call fcn.140006c90
xor edx, edx
lea r8d, [rdx + 4]
lea rcx, [rsp + 0x80]
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x14016756b
mov rax, qword [0x1402a8360]
cmp rax, rsi
je 0x140167567
test byte [rax + 0x1c], 2
je 0x140167567
mov rbx, rdi
cmp qword [0x1402bbdc8], 8
cmovae rbx, qword [0x1402bbdb0]
lea rcx, [rsp + 0x30]
call fcn.14001b0b0
mov edx, 0xd8
mov qword [rsp + 0x20], rax
mov r9, rbx
lea r8, [0x140265800]
mov rcx, qword [0x1402a8360]
mov rcx, qword [rcx + 0x10]
call fcn.140006c90
mov rax, qword [0x1402a8360]
xor ebx, ebx
jmp 0x140167572
mov rax, qword [0x1402a8360]
mov cl, 1
mov byte [rsp + 0x38], cl
cmp rax, rsi
je 0x1401675ba
test byte [rax + 0x1c], cl
je 0x1401675ba
mov r9, rdi
cmp qword [0x1402bbdc8], 8
cmovae r9, qword [0x1402bbdb0]
mov edx, 0xd9
mov dword [rsp + 0x20], ebx
lea r8, [0x140265800]
mov rcx, qword [rax + 0x10]
call fcn.140001b40
movzx ecx, byte [rsp + 0x38]
mov rax, qword [0x1402a8360]
lea rdx, vtable.WppTrace.0
mov qword [rsp + 0x30], rdx
test cl, cl
jne 0x140167613
cmp rax, rsi
je 0x140167613
test byte [rax + 0x1c], 1
je 0x140167613
lea rcx, [rsp + 0x40]
cmp qword [rsp + 0x58], 8
cmovae rcx, qword [rsp + 0x40]
cmp qword [0x1402bbdc8], 8
cmovae rdi, qword [0x1402bbdb0]
mov edx, 0xa
mov qword [rsp + 0x20], rcx
mov r9, rdi
lea r8, [0x140252818]
mov rcx, qword [rax + 0x10]
call fcn.140006c90
lea rcx, [rsp + 0x60]
call fcn.1400048a0
lea rcx, [rsp + 0x40]
call fcn.1400048a0
mov eax, ebx
mov rcx, qword [rsp + 0x880]
xor rcx, rsp
call fcn.1401e2900
lea r11, [rsp + 0x890]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
Function at 0x140173f10
Capabilities:
Check if file exists
Delete file

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
push rbp
lea rbp, [rsp - 0xfd0]
mov eax, 0x10d0
call fcn.1401e33b0
sub rsp, rax
mov rax, qword [0x1402a76c0]
xor rax, rsp
mov qword [rbp + 0xfc0], rax
lea rdx, str.CBaseSeqFinish::SetUninstallerLocaleID
lea rcx, [rsp + 0x30]
call fcn.14001abe0
nop
lea rdi, [0x1402a8360]
lea rbx, [0x1402bbdb0]
mov rcx, qword [0x1402a8360]
cmp rcx, rdi
je 0x140173f9b
test byte [rcx + 0x1c], 1
je 0x140173f9b
mov r9, rbx
cmp qword [0x1402bbdc8], 8
cmovae r9, qword [0x1402bbdb0]
mov edx, 0x26
lea r8, [0x140266148]
mov rcx, qword [rcx + 0x10]
call fcn.140001ad0
xor edx, edx
mov r8d, 0x800
lea rcx, [rbp + 0x7c0]
call fcn.1401e7e40
xor edx, edx
mov r8d, 0x800
lea rcx, [rbp - 0x40]
call fcn.1401e7e40
xorps xmm0, xmm0
movups xmmword [rbp - 0x80], xmm0
movups xmmword [rbp - 0x70], xmm0
movups xmmword [rbp - 0x60], xmm0
movups xmmword [rbp - 0x50], xmm0
mov rcx, qword [0x1402bbf50]
mov rax, qword [rcx]
mov rax, qword [rax + 0x48]
call qword [case.0x1400136d6.0]
mov r9, rax
mov rcx, qword [rax]
mov rax, qword [rcx + 0x18]
lea r8, [rbp + 0x7c0]
lea rdx, str.UNINSTALLDEFAULTPATH
mov rcx, r9
call qword [case.0x1400136d6.0]
lea rcx, [rbp + 0x7c0]
call qword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea r9, str.UninstLocale.ini
lea r8, [rbp + 0x7c0]
lea rdx, [0x1402528f8]
lea rcx, [rbp - 0x40]
call qword [sym.imp.USER32.dll_wsprintfW]
lea rcx, [rbp - 0x40]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
jne 0x14017404d
lea rcx, [rbp - 0x40]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov rcx, qword [0x1402bbf50]
mov rax, qword [rcx]
mov rax, qword [rax + 0x80]
call qword [case.0x1400136d6.0]
mov rdx, rax
mov rcx, qword [rax]
mov rax, qword [rcx + 0x20]
mov rcx, rdx
call qword [case.0x1400136d6.0]
test eax, eax
je 0x1401740ff
cmp dword [0x1402bbfb0], 0
jne 0x1401740b8
mov r8d, eax
lea rdx, [0x140254164]
lea rcx, [rbp - 0x80]
call qword [sym.imp.USER32.dll_wsprintfW]
lea r9, [rbp - 0x40]
lea r8, [rbp - 0x80]
lea rdx, str.CurrentLocaleID
lea rcx, str.Locale
call qword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov byte [rsp + 0x38], 1
mov rcx, qword [0x1402a8360]
cmp rcx, rdi
je 0x140174106
test byte [rcx + 0x1c], 1
je 0x140174106
mov r9, rbx
cmp qword [0x1402bbdc8], 8
cmovae r9, qword [0x1402bbdb0]
mov edx, 0x27
mov dword [rsp + 0x20], 0
lea r8, [0x140266148]
mov rcx, qword [rcx + 0x10]
call fcn.140001b40
mov rcx, qword [0x1402a8360]
lea rax, vtable.WppTrace.0
mov qword [rsp + 0x30], rax
cmp byte [rsp + 0x38], 0
jne 0x140174162
cmp rcx, rdi
je 0x140174162
test byte [rcx + 0x1c], 1
je 0x140174162
lea rax, [rsp + 0x40]
cmp qword [rsp + 0x58], 8
cmovae rax, qword [rsp + 0x40]
cmp qword [0x1402bbdc8], 8
cmovae rbx, qword [0x1402bbdb0]
mov edx, 0xa
mov qword [rsp + 0x20], rax
mov r9, rbx
lea r8, [0x140252818]
mov rcx, qword [rcx + 0x10]
call fcn.140006c90
lea rcx, [rsp + 0x60]
call fcn.1400048a0
lea rcx, [rsp + 0x40]
call fcn.1400048a0
xor eax, eax
mov rcx, qword [rbp + 0xfc0]
xor rcx, rsp
call fcn.1401e2900
lea r11, [rsp + 0x10d0]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret
Function at 0x14018bb40
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x90
mov rax, qword [0x1402a76c0]
xor rax, rsp
mov qword [rsp + 0x80], rax
lea rdx, str.COsVersionInfo::ParseProcessor
lea rcx, [rsp + 0x30]
call fcn.14001abe0
nop
lea rdi, [0x1402a8360]
lea rbx, [0x1402bbdb0]
mov rcx, qword [0x1402a8360]
cmp rcx, rdi
je 0x14018bbb9
test byte [rcx + 0x1c], 1
je 0x14018bbb9
mov r9, rbx
cmp qword [0x1402bbdc8], 8
cmovae r9, qword [0x1402bbdb0]
mov edx, 0xa
lea r8, [0x140267968]
mov rcx, qword [rcx + 0x10]
call fcn.140001ad0
xorps xmm0, xmm0
movups xmmword [0x1402bc208], xmm0
movups xmmword [0x1402bc218], xmm0
movups xmmword [0x1402bc228], xmm0
lea rcx, [0x1402bc208]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov rax, qword [0x1402bc208]
movzx ecx, ax
test ecx, ecx
je 0x14018bc15
cmp ecx, 9
je 0x14018bc06
cmp ax, 0xc
jne 0x14018bc15
lea rdx, [0x140251f78]
mov r8d, recv
jmp 0x14018bc22
lea rdx, str.Windows_x64
mov r8d, recv
jmp 0x14018bc22
mov r8d, send
lea rdx, str.Windows_NT_x86
lea rcx, [0x1402bc238]
call fcn.140004b70
mov al, 1
mov byte [rsp + 0x38], al
mov rcx, qword [0x1402a8360]
cmp rcx, rdi
je 0x14018bc79
test byte [rcx + 0x1c], al
je 0x14018bc79
mov r9, rbx
cmp qword [0x1402bbdc8], 8
cmovae r9, qword [0x1402bbdb0]
mov edx, VariantTimeToDosDateTime
lea r8, [0x140267968]
mov rcx, qword [rcx + 0x10]
call fcn.140001ad0
movzx eax, byte [rsp + 0x38]
mov rcx, qword [0x1402a8360]
lea rdx, vtable.WppTrace.0
mov qword [rsp + 0x30], rdx
test al, al
jne 0x14018bcd2
cmp rcx, rdi
je 0x14018bcd2
test byte [rcx + 0x1c], 1
je 0x14018bcd2
lea rax, [rsp + 0x40]
cmp qword [rsp + 0x58], 8
cmovae rax, qword [rsp + 0x40]
cmp qword [0x1402bbdc8], 8
cmovae rbx, qword [0x1402bbdb0]
mov edx, 0xa
mov qword [rsp + 0x20], rax
mov r9, rbx
lea r8, [0x140252818]
mov rcx, qword [rcx + 0x10]
call fcn.140006c90
lea rcx, [rsp + 0x60]
call fcn.1400048a0
lea rcx, [rsp + 0x40]
call fcn.1400048a0
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.1401e2900
mov rbx, qword [rsp + 0xa0]
add rsp, 0x90
pop rdi
ret
Function at 0x14018d330
Capabilities:
Get common file path
Get program files directory

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x20], rsi
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x20
xor ebx, ebx
lea r8, [rsp + 0x30]
mov rsi, rdx
mov qword [rsp + 0x30], rbx
xor ecx, ecx
mov edi, ebx
lea edx, [rbx + 0x26]
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
js 0x14018d3ac
mov rcx, qword [rsp + 0x30]
mov rdx, rsi
call qword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
lea rcx, [rsp + 0x40]
mov edi, eax
call qword [sym.imp.SHELL32.dll_SHGetMalloc]
test eax, eax
js 0x14018d3ac
mov rcx, qword [rsp + 0x40]
mov rdx, qword [rsp + 0x30]
mov rax, qword [rcx]
mov rax, qword [rax + 0x28]
call qword [case.0x1400136d6.0]
mov rcx, qword [rsp + 0x40]
mov rdx, qword [rcx]
mov rax, qword [rdx + 0x10]
call qword [case.0x1400136d6.0]
mov rsi, qword [rsp + 0x48]
test edi, edi
setne bl
mov eax, ebx
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x14018d3d0
Capabilities:
Check if file exists
Create directory

Disassembly:
push rbx
sub rsp, 0x240
mov rax, qword [0x1402a76c0]
xor rax, rsp
mov qword [rsp + 0x230], rax
mov rbx, rdx
lea rcx, [rsp + 0x20]
xor edx, edx
mov r8d, 0x208
call fcn.1401e7e40
mov rdx, rbx
call fcn.14018d330
mov rcx, rbx
call qword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
mov r8, rbx
lea rcx, [rsp + 0x20]
mov edx, 0x104
call fcn.1401ebfa8
lea r8, str.Canon_
mov edx, 0x104
lea rcx, [rsp + 0x20]
call fcn.1401ec614
lea r8, str.InstTemp_
mov edx, 0x104
lea rcx, [rsp + 0x20]
call fcn.1401ec614
lea rcx, [rsp + 0x20]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea r8, str.Canon_
mov edx, 0x104
mov rcx, rbx
test eax, eax
jne 0x14018d4b8
call fcn.1401ec614
mov rcx, rbx
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x14018d48a
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea r8, str.InstTemp_
mov edx, 0x104
mov rcx, rbx
call fcn.1401ec614
mov rcx, rbx
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x14018d4d1
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
jmp 0x14018d4d1
call fcn.1401ec614
lea r8, str.InstTemp_
mov edx, 0x104
mov rcx, rbx
call fcn.1401ec614
xor eax, eax
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.1401e2900
add rsp, 0x240
pop rbx
ret
Function at 0x140195a00
Capabilities:
Read .ini file

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
mov qword [rsp + 0x20], r14
push r15
sub rsp, 0x30
mov rdi, qword [rsp + 0x68]
mov rsi, r8
mov r14, rdx
mov r15, rcx
mov rcx, rdi
mov edx, 0x400
mov r8d, 0x30
mov rbx, r9
call fcn.140011420
cmp qword [r15 + 0x18], 8
jb 0x140195a48
mov r15, qword [r15]
cmp qword [rdi + 0x18], 8
mov r9, rdi
jb 0x140195a55
mov r9, qword [rdi]
cmp qword [rbx + 0x18], 8
jb 0x140195a5f
mov rbx, qword [rbx]
cmp qword [rsi + 0x18], 8
jb 0x140195a69
mov rsi, qword [rsi]
cmp qword [r14 + 0x18], 8
jb 0x140195a73
mov r14, qword [r14]
mov eax, dword [rsp + 0x60]
mov r8, rbx
mov qword [rsp + 0x28], r15
mov rdx, rsi
mov rcx, r14
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov edx, eax
xor r8d, r8d
mov rcx, rdi
mov ebx, eax
call fcn.140011420
mov rsi, qword [rsp + 0x48]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x50]
mov r14, qword [rsp + 0x58]
add rsp, 0x30
pop r15
ret

Function at 0x140195ac0
Capabilities:
Read .ini file

Disassembly:
sub rsp, 0x28
cmp qword [rcx + 0x18], 8
mov r11, r9
mov rax, r8
mov r10, rdx
jb 0x140195ad7
mov rcx, qword [rcx]
cmp qword [r8 + 0x18], 8
jb 0x140195ae1
mov rax, qword [r8]
cmp qword [rdx + 0x18], 8
jb 0x140195aeb
mov r10, qword [rdx]
mov r8d, dword [r11]
mov r9, rcx
mov rcx, r10
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov rcx, qword [rsp + 0x50]
mov dword [rcx], eax
add rsp, 0x28
ret
Function at 0x1401966a0
Capabilities:
Read .ini file

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x60
mov rax, qword [0x1402a76c0]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov r15, r8
mov rsi, rdx
mov r14, rcx
xor ebp, ebp
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x20], xmm0
mov qword [rsp + 0x30], rbp
lfence
mov ecx, 0x8026
call fcn.1401baa78
test rax, rax
je 0x1401968a1
lea rdi, [rax + 0x27]
and rdi, 0xffffffffffffffe0
mov qword [rdi - 8], rax
mov qword [rsp + 0x20], rdi
lea rbx, [rdi + 0x7fff]
mov qword [rsp + 0x30], rbx
xor edx, edx
mov r8d, 0x7fff
mov rcx, rdi
call fcn.1401e7e40
mov qword [rsp + 0x28], rbx
cmp qword [r14 + 0x18], 8
jb 0x14019672a
mov r14, qword [r14]
cmp qword [rsi + 0x18], 8
jb 0x140196734
mov rsi, qword [rsi]
mov r9, r14
mov r8d, 0x7fff
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionW]
test eax, eax
je 0x140196849
lfence
mov esi, ebp
cmp word [rdi], si
je 0x14019683f
mov rbx, rdi
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
mov qword [rsp + 0x48], rbp
mov qword [rsp + 0x50], rbp
mov r8, 0xffffffffffffffff
nop dword [rax + rax]
inc r8
cmp word [rbx + r8*2], 0
jne 0x140196780
mov rdx, rbx
lea rcx, [rsp + 0x38]
call fcn.140005520
nop
mov rdx, qword [r15 + 8]
cmp rdx, qword [r15 + 0x10]
je 0x1401967c5
movups xmm0, xmmword [rsp + 0x38]
movups xmmword [rdx], xmm0
movups xmm1, xmmword [rsp + 0x48]
movups xmmword [rdx + 0x10], xmm1
mov edx, 7
mov word [rsp + 0x38], bp
add qword [r15 + 8], 0x20
jmp 0x1401967d7
lea r8, [rsp + 0x38]
mov rcx, r15
call fcn.140005b80
mov rdx, qword [rsp + 0x50]
cmp rdx, 8
jb 0x140196814
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14019680f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14019689b
call fcn.1400079c0
mov rax, 0xffffffffffffffff
nop dword [rax + rax]
inc rax
cmp word [rbx + rax*2], 0
jne 0x140196820
inc eax
add esi, eax
movsxd rax, esi
lea rbx, [rdi + rax*2]
cmp word [rbx], 0
jne 0x140196762
mov ebp, 1
mov rbx, qword [rsp + 0x30]
sub rbx, rdi
cmp rbx, 0x1000
jb 0x14019686d
add rbx, 0x27
mov rdx, qword [rdi - 8]
sub rdi, rdx
lea rcx, [rdi - 8]
cmp rcx, 0x1f
ja 0x1401968a1
mov rdi, rdx
mov rdx, rbx
mov rcx, rdi
call fcn.1400079c0
mov eax, ebp
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1401e2900
mov rbx, qword [rsp + 0xa8]
add rsp, 0x60
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
call fcn.1401ec41c
nop
call fcn.1401ec41c
int3
Function at 0x1401a8eb0
Capabilities:
Enumerate files on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x7e0]
sub rsp, 0x8e0
mov rax, qword [0x1402a76c0]
xor rax, rsp
mov qword [rbp + 0x7d0], rax
mov rbx, rcx
mov r13, r8
lea rcx, str.DoGetDriverSetSize_Start
mov r12, rdx
call fcn.1401b6310
xor r14d, r14d
lea rcx, [rbp + 0x5c0]
xor edx, edx
mov qword [rsp + 0x40], r14
mov r8d, 0x208
mov dword [rsp + 0x34], r14d
mov dword [rsp + 0x30], r14d
mov esi, r14d
mov dword [rsp + 0x38], r14d
mov edi, r14d
call fcn.1401e7e40
xor edx, edx
lea rcx, [rbp + 0x3b0]
mov r8d, 0x208
call fcn.1401e7e40
xor edx, edx
lea rcx, [rbp + 0x1a0]
mov r8d, 0x208
call fcn.1401e7e40
test rbx, rbx
je 0x1401a90db
lea rdx, [0x140251dfc]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x1401a90db
mov rdx, rbx
lea rcx, [rbp + 0x1a0]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
lea rcx, [rbp + 0x1a0]
call qword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea rdx, [rbp + 0x1a0]
lea rcx, [rbp + 0x3b0]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
lea r9, [rbp + 0x1a0]
mov edx, 0x104
lea r8, str._s.
lea rcx, [rbp + 0x1a0]
call fcn.14002fb20
lea rdx, [rsp + 0x50]
lea rcx, [rbp + 0x1a0]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov r15, rax
cmp rax, 0xffffffffffffffff
je 0x1401a90db
nop
test byte [rsp + 0x50], 0x10
jne 0x1401a906c
lea rdx, [0x140252314]
lea rcx, [rsp + 0x7c]
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x1401a906c
lea rdx, [0x140255880]
lea rcx, [rsp + 0x7c]
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x1401a906c
lea r9, [rsp + 0x7c]
lea r8, [rbp + 0x3b0]
lea rdx, [0x1402528f8]
lea rcx, [rbp + 0x5c0]
call qword [sym.imp.USER32.dll_wsprintfW]
lea rax, [rsp + 0x38]
lea r9, [rsp + 0x30]
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x34]
lea rdx, [rsp + 0x40]
lea rcx, [rbp + 0x5c0]
call qword [sym.imp.SETUPAPI.dll_SetupGetFileCompressionInfoW]
mov r14d, eax
test eax, eax
jne 0x1401a9082
add esi, dword [rsp + 0x30]
add edi, dword [rsp + 0x34]
lea rdx, [rsp + 0x50]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x1401a8fe0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, r15
cmp eax, 0x12
je 0x1401a909d
mov ebx, MsiOpenDatabaseW
call qword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x1401a90e0
call qword [sym.imp.KERNEL32.dll_FindClose]
mov ebx, r14d
test r14d, r14d
jne 0x1401a90e0
test r13, r13
je 0x1401a90c2
mov edx, esi
mov dword [r13], esi
lea rcx, str.DoGetDriverSetSize_End__d
call fcn.1401b6310
test r12, r12
je 0x1401a90e0
mov edx, edi
mov dword [r12], edi
lea rcx, str.DoGetDriverSetSize_End__d
call fcn.1401b6310
jmp 0x1401a90e0
mov ebx, MsiOpenDatabaseW
lea rcx, str.DoGetDriverSetSize_End
call fcn.1401b6310
mov eax, ebx
mov rcx, qword [rbp + 0x7d0]
xor rcx, rsp
call fcn.1401e2900
mov rbx, qword [rsp + 0x938]
add rsp, 0x8e0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x1401b43f0
Capabilities:
Check if file exists
Create directory

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0xaa0
mov rax, qword [0x1402a76c0]
xor rax, rsp
mov qword [rsp + 0xa90], rax
mov rdi, rcx
xor ebp, ebp
mov ebx, ebp
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x50], xmm1
xor r8d, r8d
lea rdx, [0x140251dfc]
lea rcx, [rsp + 0x40]
call fcn.140005520
nop
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x30], xmm1
xor r8d, r8d
lea rdx, [0x140251dfc]
lea rcx, [rsp + 0x20]
call fcn.140005520
test rdi, rdi
jne 0x1401b4476
lea ebx, [rbp + 0x57]
jmp 0x1401b456c
xor edx, edx
mov r8d, 0x410
lea rcx, [rsp + 0x270]
call fcn.1401e7e40
mov r8, rdi
mov edx, 0x208
lea rcx, [rsp + 0x270]
call fcn.1401ebfa8
mov edi, ebp
lea rcx, [rsp + 0x270]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x1401b456c
lea rsi, [rsp + 0x270]
mov r14d, 0x52
cmp word [rsi], 0x5c
jne 0x1401b4550
xor edx, edx
mov r8d, 0x410
lea rcx, [rsp + 0x680]
call fcn.1401e7e40
xor edx, edx
mov r8d, 0x208
lea rcx, [rsp + 0x60]
call fcn.1401e7e40
movsxd r9, edi
inc r9
lea r8, [rsp + 0x270]
mov edx, 0x208
lea rcx, [rsp + 0x680]
call fcn.1401fb8b0
lea r8, [rsp + 0x680]
mov edx, 0x104
lea rcx, [rsp + 0x60]
call fcn.1401ebfa8
lea rcx, [rsp + 0x60]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x1401b4550
xor edx, edx
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
cmove ebx, r14d
inc edi
add rsi, 2
lea rcx, [rsp + 0x270]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
cmp edi, eax
jne 0x1401b44c6
test ebx, ebx
sete bpl
mov rdx, qword [rsp + 0x38]
cmp rdx, 8
jb 0x1401b45b1
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1401b45ab
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1401b461f
call fcn.1400079c0
nop
mov rdx, qword [rsp + 0x58]
cmp rdx, 8
jb 0x1401b45ef
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1401b45ea
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1401b4619
call fcn.1400079c0
mov eax, ebp
mov rcx, qword [rsp + 0xa90]
xor rcx, rsp
call fcn.1401e2900
lea r11, [rsp + 0xaa0]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
call fcn.1401ec41c
nop
call fcn.1401ec41c
nop
int3
Function at 0x1401b5560
Capabilities:
Query service status
Stop service

Disassembly:
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x1402a76c0]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rsi, rdx
xor edi, edi
mov rcx, rsi
lea rdx, [rsp + 0x20]
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x1401b563e
cmp dword [rsp + 0x24], 1
je 0x1401b5646
lea r8, [rsp + 0x20]
mov rcx, rsi
lea edx, [rdi + 1]
call qword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x1401b563e
lea ecx, [rdi + 0x32]
mov qword [rsp + 0x60], rbx
call qword [sym.imp.KERNEL32.dll_Sleep]
mov ebx, 0xfffffc18
nop dword [rax + rax]
lea rdx, [rsp + 0x20]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x1401b5605
cmp dword [rsp + 0x24], 1
je 0x1401b563a
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
mov eax, ebx
add ebx, 0xfffffc18
add eax, 0x7530
jne 0x1401b55d0
jmp 0x1401b560d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp dword [rsp + 0x24], 1
je 0x1401b563a
test edi, edi
jne 0x1401b563a
mov eax, 0x5b4
mov rbx, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1401e2900
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret
mov eax, edi
jmp 0x1401b561d
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1401b5622
mov eax, edi
jmp 0x1401b5622

Function at 0x1401b5650
Capabilities:
Query service status
Start service

Disassembly:
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x1402a76c0]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rsi, rdx
xor edi, edi
mov rcx, rsi
lea rdx, [rsp + 0x20]
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x1401b572e
cmp dword [rsp + 0x24], 4
je 0x1401b5736
xor r8d, r8d
xor edx, edx
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
je 0x1401b572e
lea ecx, [rdi + 0x32]
mov qword [rsp + 0x60], rbx
call qword [sym.imp.KERNEL32.dll_Sleep]
mov ebx, 0xfffffc18
nop dword [rax + rax]
lea rdx, [rsp + 0x20]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x1401b56f5
cmp dword [rsp + 0x24], 4
je 0x1401b572a
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
mov eax, ebx
add ebx, 0xfffffc18
add eax, 0x7530
jne 0x1401b56c0
jmp 0x1401b56fd
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp dword [rsp + 0x24], 4
je 0x1401b572a
test edi, edi
jne 0x1401b572a
mov eax, 0x5b4
mov rbx, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1401e2900
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret
mov eax, edi
jmp 0x1401b570d
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1401b5712
mov eax, edi
jmp 0x1401b5712
Function at 0x1401b58f0
Capabilities:
Enumerate services

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x40
mov rbx, r9
mov rsi, r8
mov r14d, edx
mov r15, rcx
xor r12d, r12d
mov qword [r8], r12
mov dword [r9], r12d
mov dword [r11 + 0x18], r12d
mov dword [r11 + 0x20], r12d
lea rax, [r11 + 0x20]
mov qword [r11 - 0x40], rax
lea rax, [r11 + 0x18]
mov qword [r11 - 0x48], rax
xor r9d, r9d
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_EnumDependentServicesW]
test eax, eax
jne 0x1401b59a4
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
jne 0x1401b59a7
mov ecx, dword [rsp + 0x80]
call fcn.140064a50
mov rdi, rax
test rdi, rdi
je 0x1401b59dd
mov dword [rsp + 0x30], r12d
lea rax, [rsp + 0x88]
mov qword [rsp + 0x28], rax
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x20], rcx
mov r9d, dword [rsp + 0x80]
mov r8, rdi
mov edx, r14d
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_EnumDependentServicesW]
test eax, eax
je 0x1401b59b9
mov qword [rsi], rdi
mov ecx, dword [rsp + 0x88]
mov dword [rbx], ecx
mov eax, r12d
mov rbx, qword [rsp + 0x70]
add rsp, 0x40
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, rdi
call fcn.1400079c0
mov eax, ebx
mov rbx, qword [rsp + 0x70]
add rsp, 0x40
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
mov eax, 8
mov rbx, qword [rsp + 0x70]
add rsp, 0x40
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret