joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000ac90
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x280
mov rax, qword [0x140061148]
xor rax, rsp
mov qword [rsp + 0x270], rax
cmp qword [rcx + 0x38], 0
mov rbx, rcx
je 0x14000aced
xor edx, edx
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x14000ad14
mov rcx, qword [rbx + 0x38]
test rcx, rcx
je 0x14000aced
mov rax, qword [rcx]
cmp rcx, rbx
setne dl
call qword [rax + 0x20]
xor edi, edi
mov qword [rbx + 0x38], rdi
xor eax, eax
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.1400322d0
lea r11, [rsp + 0x280]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
xor edx, edx
lea rcx, [rsp + 0x34]
mov r8d, 0x234
call sub.VCRUNTIME140.dll_memset
lea rdx, [rsp + 0x30]
mov dword [rsp + 0x30], 0x238
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
xor edi, edi
test eax, eax
je 0x14000ad80
mov rcx, qword [rbx + 0x38]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rdi
mov qword [rsp + 0x28], rax
test rcx, rcx
je 0x14000adac
mov rax, qword [rcx]
lea r8, [rsp + 0x20]
lea rdx, [rsp + 0x28]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
test eax, eax
je 0x14000ad80
lea rdx, [rsp + 0x30]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x14000ad42
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x38]
test rcx, rcx
je 0x14000ada2
mov rax, qword [rcx]
cmp rcx, rbx
setne dl
call qword [rax + 0x20]
mov qword [rbx + 0x38], rdi
mov eax, 1
jmp 0x14000acef
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xbad_function_call_void_]
int3
Function at 0x14000b6c0
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rax, qword [0x140061148]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov edx, 4
mov rax, qword gs:[0x58]
mov rcx, qword [rax]
mov eax, dword [rdx + rcx]
cmp dword [0x14006bd34], eax
jg 0x14000b7cb
lea rax, [0x14006bd68]
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1400322d0
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
inc r8
cmp word [rdx + r8*2], 0
je 0x14000b74a
jmp 0x14000b720
lea rcx, [0x1400366a0]
call fcn.140032c70
lea rcx, [0x14006bd34]
call fcn.1400328c8
mov rax, rbx
jmp 0x14000b700
mov rcx, rbx
call fcn.140008920
mov rcx, qword [rsp + 0x20]
test rcx, rcx
je 0x14000b767
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov qword [rsp + 0x20], rdi
mov rcx, qword [0x14006bd78]
test rcx, rcx
je 0x14000b72d
mov rax, rbx
mov r9, qword [0x14006bd68]
mov rdx, qword [0x14006bd80]
cmp rdx, 8
cmovae rax, r9
movzx r8d, word [rax + rcx*2 - 2]
cmp r8w, 0x5c
je 0x14000b72d
cmp r8w, 0x2f
je 0x14000b72d
cmp rcx, rdx
jae 0x14000b856
lea rax, [rcx + 1]
mov qword [0x14006bd78], rax
mov rax, rbx
cmp rdx, 8
cmovae rax, r9
mov dword [rax + rcx*2], 0x5c
jmp 0x14000b72d
lea rcx, [0x14006bd34]
call fcn.140032928
cmp dword [0x14006bd34], 0xffffffff
jne 0x14000b6f9
xor edi, edi
mov qword [0x14006bd68], rdi
mov qword [0x14006bd78], rdi
mov qword [0x14006bd80], rdi
mov qword [0x14006bd78], rdi
mov qword [0x14006bd80], 7
mov word [0x14006bd68], di
mov qword [rsp + 0x20], rdi
lea r9, [rsp + 0x20]
xor r8d, r8d
xor edx, edx
lea rcx, [0x140044e20]
call qword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
lea rbx, [0x14006bd68]
test eax, eax
js 0x14000b752
mov rdx, qword [rsp + 0x20]
test rdx, rdx
je 0x14000b767
lea r8, [rdi - 1]
jmp 0x14000b720
mov r9d, 0x5c
mov rcx, rbx
call fcn.14000c4b0
nop
jmp 0x14000b72d
Function at 0x14000b870
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rax, qword [0x140061148]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov edx, 4
mov rax, qword gs:[0x58]
mov rcx, qword [rax]
mov eax, dword [rdx + rcx]
cmp dword [0x14006bd30], eax
jg 0x14000b97b
lea rax, [0x14006bd10]
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1400322d0
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
inc r8
cmp word [rdx + r8*2], 0
je 0x14000b8fa
jmp 0x14000b8d0
lea rcx, [0x140036710]
call fcn.140032c70
lea rcx, [0x14006bd30]
call fcn.1400328c8
mov rax, rbx
jmp 0x14000b8b0
mov rcx, rbx
call fcn.140008920
mov rcx, qword [rsp + 0x20]
test rcx, rcx
je 0x14000b917
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov qword [rsp + 0x20], rdi
mov rcx, qword [0x14006bd20]
test rcx, rcx
je 0x14000b8dd
mov rax, rbx
mov r9, qword [0x14006bd10]
mov rdx, qword [0x14006bd28]
cmp rdx, 8
cmovae rax, r9
movzx r8d, word [rax + rcx*2 - 2]
cmp r8w, 0x5c
je 0x14000b8dd
cmp r8w, 0x2f
je 0x14000b8dd
cmp rcx, rdx
jae 0x14000ba06
lea rax, [rcx + 1]
mov qword [0x14006bd20], rax
mov rax, rbx
cmp rdx, 8
cmovae rax, r9
mov dword [rax + rcx*2], 0x5c
jmp 0x14000b8dd
lea rcx, [0x14006bd30]
call fcn.140032928
cmp dword [0x14006bd30], 0xffffffff
jne 0x14000b8a9
xor edi, edi
mov qword [0x14006bd10], rdi
mov qword [0x14006bd20], rdi
mov qword [0x14006bd28], rdi
mov qword [0x14006bd20], rdi
mov qword [0x14006bd28], 7
mov word [0x14006bd10], di
mov qword [rsp + 0x20], rdi
lea r9, [rsp + 0x20]
xor r8d, r8d
xor edx, edx
lea rcx, [0x140044e30]
call qword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
lea rbx, [0x14006bd10]
test eax, eax
js 0x14000b902
mov rdx, qword [rsp + 0x20]
test rdx, rdx
je 0x14000b917
lea r8, [rdi - 1]
jmp 0x14000b8d0
mov r9d, 0x5c
mov rcx, rbx
call fcn.14000c4b0
nop
jmp 0x14000b8dd
Function at 0x1400158a0
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x40
mov rdi, qword [rcx + 0x10]
mov rsi, rdx
mov rbx, rcx
test rdi, rdi
je 0x140015959
cmp qword [rdi], 0
mov rbx, qword [rcx]
je 0x140015925
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je case.default.0x14001593d
lea rdx, str.RegDeleteKeyTransactedW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je case.default.0x14001593d
mov rdx, qword [rdi]
xor r9d, r9d
mov qword [rsp + 0x28], 0
xor r8d, r8d
mov qword [rsp + 0x20], rdx
mov rcx, rbx
mov rdx, rsi
call qword [case.0x140024e18.0]
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
cmp dword [rdi + 8], 0
je case.default.0x14001593d
mov rcx, rbx
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
jmp qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov eax, 1
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
cmp byte [0x14006b278], 0
jne 0x1400159a4
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140015994
lea rdx, [0x140039698]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14006b270], rax
mov byte [0x14006b278], 1
jmp 0x1400159ab
mov rax, qword [0x14006b270]
mov byte [0x14006b278], 1
jmp 0x1400159ab
mov rax, qword [0x14006b270]
mov rcx, qword [rbx]
mov rdx, rsi
test rax, rax
je 0x14001592e
mov r8d, dword [rbx + 8]
xor r9d, r9d
call qword [case.0x140024e18.0]
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
jl 0x140092ccb
sbb al, 0xe1
invalid
sbb dword [rax], ebx
outsd dx, dword [rsi]
mov word [rbp - 0xa], gs
mov esp, 0x92178bab
int3
jns 0x140092cad
and eax, dword [rbx]
invalid
Function at 0x140016880
Capabilities:
Query or enumerate registry key

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x280
mov rax, qword [0x140061148]
xor rax, rsp
mov qword [rsp + 0x270], rax
mov r9d, dword [rcx + 8]
xor ebp, ebp
mov rsi, rdx
mov qword [rsp + 0x48], rbp
mov r8, rdx
mov qword [rsp + 0x40], rbp
mov rdx, qword [rcx]
mov rdi, rcx
or r9d, 0x2001f
mov qword [rsp + 0x50], rbp
lea rcx, [rsp + 0x40]
call fcn.140016340
mov ebx, eax
test eax, eax
jne 0x140016997
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x38], rax
lea r9, [rsp + 0x58]
mov qword [rsp + 0x30], rbp
lea r8, [rsp + 0x70]
mov qword [rsp + 0x28], rbp
xor edx, edx
mov qword [rsp + 0x20], rbp
mov dword [rsp + 0x58], 0x100
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x140016971
nop dword [rax]
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x40]
call fcn.140016880
mov ebx, eax
test eax, eax
jne 0x140016997
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x38], rax
lea r9, [rsp + 0x58]
mov qword [rsp + 0x30], rbp
lea r8, [rsp + 0x70]
mov qword [rsp + 0x28], rbp
xor edx, edx
mov qword [rsp + 0x20], rbp
mov dword [rsp + 0x58], 0x100
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x140016920
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x140016986
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x40], rbp
mov rdx, rsi
mov dword [rsp + 0x48], ebp
mov rcx, rdi
call fcn.1400158a0
mov ebx, eax
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x1400169a7
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.1400322d0
mov rbx, qword [rsp + 0x2b0]
add rsp, 0x280
pop rdi
pop rsi
pop rbp
ret
Function at 0x140016ec0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rbx
push rsi
push rdi
push r14
push r15
sub rsp, 0x480
mov rax, qword [0x140061148]
xor rax, rsp
mov qword [rsp + 0x470], rax
mov r15, r9
mov rsi, r8
mov rbx, rdx
xor r14d, r14d
mov qword [rsp + 0x48], r14
mov qword [rsp + 0x58], rcx
mov qword [rsp + 0x50], r14
xor edx, edx
mov r8d, 0x408
lea rcx, [rsp + 0x60]
call sub.VCRUNTIME140.dll_memset
mov qword [rsp + 0x60], r14
xor edx, edx
lea r8d, [r14 + 0x60]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rdi, rax
mov qword [rsp + 0x38], rax
test rax, rax
jne 0x140016f57
xor edx, edx
lea r8d, [r14 + 2]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rdi, rax
mov qword [rsp + 0x38], rax
test rax, rax
jne 0x140016f57
call fcn.1400154f0
mov ebx, eax
jmp 0x14001707c
mov r8, r15
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rbx, rax
test rax, rax
jne 0x140016f78
call fcn.1400154f0
jmp 0x14001706b
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rsi, rax
mov qword [rsp + 0x40], rax
test rax, rax
jne 0x140016f9b
call fcn.1400154f0
jmp 0x14001706b
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
mov dword [rsp + 0x30], eax
inc eax
cmp eax, ebx
jae 0x140016fbd
mov ebx, 0x8007000e
jmp 0x14001706d
mov ecx, eax
test eax, eax
je 0x140016ff2
xor edx, edx
mov rax, 0xffffffffffffffff
div rcx
cmp rax, 2
jb 0x1400170b4
lea rdx, [rcx + rcx]
cmp rdx, 0x400
jbe 0x140016ff2
lea rcx, [rsp + 0x60]
call fcn.140015340
jmp 0x140016ffc
lea rax, [rsp + 0x68]
mov qword [rsp + 0x60], rax
jmp 0x14001700f
cmp qword [rsp + 0x60], 0
jne 0x14001701e
mov ebx, 0x8007000e
jmp 0x14001706d
mov dword [rsp + 0x28], ebx
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r9d, ebx
mov r8, rsi
xor edx, edx
lea ecx, [rdx + 3]
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x140017048
call fcn.1400154f0
jmp 0x14001706b
mov ecx, eax
mov rax, qword [rsp + 0x60]
mov word [rax + rcx*2], r14w
mov r8d, dword [rsp + 0x4d0]
mov rdx, qword [rsp + 0x60]
lea rcx, [rsp + 0x50]
call fcn.1400169d0
mov ebx, eax
test rdi, rdi
je 0x14001707c
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
nop
lea rax, [rsp + 0x68]
cmp qword [rsp + 0x60], rax
je 0x140017093
lea rcx, [rsp + 0x60]
call fcn.1400159e0
nop
mov eax, ebx
mov rcx, qword [rsp + 0x470]
xor rcx, rsp
call fcn.1400322d0
add rsp, 0x480
pop r15
pop r14
pop rdi
pop rsi
pop rbx
ret
mov ecx, 0x80070216
call fcn.140015520
int3
Function at 0x1400218c0
Capabilities:
Check if file exists

Disassembly:
push rbx
sub rsp, 0x290
mov rax, qword [0x140061148]
xor rax, rsp
mov qword [rsp + 0x280], rax
xor edx, edx
mov r8d, 0x208
lea rcx, [rsp + 0x70]
call sub.VCRUNTIME140.dll_memset
mov r8d, 0x104
lea rdx, [rsp + 0x70]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea rcx, [rsp + 0x70]
call qword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x48]
call qword [sym.imp.Cmmlib.dll_public:_void___cdecl_Cmm::CStringT_wchar_t_::constructor_wchar_t_const____ptr64____ptr64]
nop
lea r8, [0x1400417f8]
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x48]
call qword [sym.imp.Cmmlib.dll_public:_class_Cmm::CStringT_wchar_t____cdecl_Cmm::CStringT_wchar_t_::operator_wchar_t_const____ptr64____ptr64]
mov rdx, rax
lea rcx, [rsp + 0x48]
call qword [sym.imp.Cmmlib.dll_public:_class_Cmm::CStringT_wchar_t_____ptr64___cdecl_Cmm::CStringT_wchar_t_::operator_class_Cmm::CStringT_wchar_t_____ptr64____ptr64]
lea rcx, [rsp + 0x20]
call qword [sym.imp.Cmmlib.dll_public_virtual:_void___cdecl_Cmm::CStringT_wchar_t_::destructor_void____ptr64]
lea rcx, [rsp + 0x48]
call qword [sym.imp.Cmmlib.dll_public:_wchar_t_const____ptr64___cdecl_Cmm::CStringT_wchar_t_::c_str_void_const___ptr64]
mov rcx, rax
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x140021984
lea rcx, [rsp + 0x48]
call qword [sym.imp.Cmmlib.dll_public:_wchar_t_const____ptr64___cdecl_Cmm::CStringT_wchar_t_::c_str_void_const___ptr64]
mov rcx, rax
xor edx, edx
call fcn.14000a150
test eax, eax
je 0x140021984
mov ebx, 1
jmp 0x140021986
xor ebx, ebx
lea rcx, [rsp + 0x48]
call qword [sym.imp.Cmmlib.dll_public_virtual:_void___cdecl_Cmm::CStringT_wchar_t_::destructor_void____ptr64]
mov eax, ebx
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.1400322d0
add rsp, 0x290
pop rbx
ret
Function at 0x140022230
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
sub rsp, 0x480
mov rax, qword [0x140061148]
xor rax, rsp
mov qword [rsp + 0x470], rax
xor ebx, ebx
lea r8, str.SOFTWAREMicrosoftWindowsCurrentVersionApp_PathsOUTLOOK.EXE
mov r9d, 0x2001f
mov qword [rsp + 0x38], rbx
mov rdx, 0xffffffff80000002
mov qword [rsp + 0x30], rbx
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x40], rbx
call fcn.140016340
test eax, eax
jne 0x140022312
xor edx, edx
lea rcx, [rsp + 0x60]
mov r8d, 0x410
call sub.VCRUNTIME140.dll_memset
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x4c]
lea rax, [rsp + 0x60]
mov dword [rsp + 0x48], 0x410
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, [0x140045170]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140022312
mov eax, dword [rsp + 0x4c]
dec eax
cmp eax, 1
ja 0x140022312
mov eax, dword [rsp + 0x48]
test eax, eax
je 0x1400222f1
test al, 1
jne 0x140022312
shr rax, 1
cmp word [rsp + rax*2 + 0x5e], bx
je 0x1400222f6
jmp 0x140022312
mov word [rsp + 0x60], bx
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_GetBinaryTypeW]
test eax, eax
je 0x140022312
cmp dword [rsp + 0x50], 6
sete bl
cmp qword [rsp + 0x30], 0
je 0x140022325
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rsp + 0x470]
xor rcx, rsp
call fcn.1400322d0
add rsp, 0x480
pop rbx
ret
Function at 0x140022e40
Capabilities:
Check if file exists

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x290
mov rax, qword [0x140061148]
xor rax, rsp
mov qword [rsp + 0x280], rax
mov rdi, rcx
xor edx, edx
mov r8d, 0x208
lea rcx, [rsp + 0x70]
call sub.VCRUNTIME140.dll_memset
mov r8d, 0x104
lea rdx, [rsp + 0x70]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea rcx, [rsp + 0x70]
call qword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x48]
call qword [sym.imp.Cmmlib.dll_public:_void___cdecl_Cmm::CStringT_wchar_t_::constructor_wchar_t_const____ptr64____ptr64]
nop
lea r8, [0x1400417f8]
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x48]
call qword [sym.imp.Cmmlib.dll_public:_class_Cmm::CStringT_wchar_t____cdecl_Cmm::CStringT_wchar_t_::operator_wchar_t_const____ptr64____ptr64]
mov rdx, rax
lea rcx, [rsp + 0x48]
call qword [sym.imp.Cmmlib.dll_public:_class_Cmm::CStringT_wchar_t_____ptr64___cdecl_Cmm::CStringT_wchar_t_::operator_class_Cmm::CStringT_wchar_t_____ptr64____ptr64]
lea rcx, [rsp + 0x20]
call qword [sym.imp.Cmmlib.dll_public_virtual:_void___cdecl_Cmm::CStringT_wchar_t_::destructor_void____ptr64]
lea rcx, [rsp + 0x48]
call qword [sym.imp.Cmmlib.dll_public:_wchar_t_const____ptr64___cdecl_Cmm::CStringT_wchar_t_::c_str_void_const___ptr64]
mov rcx, rax
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x140022f17
mov rcx, rdi
call fcn.1400218c0
test eax, eax
je 0x140022f17
lea rcx, [rsp + 0x48]
call qword [sym.imp.Cmmlib.dll_public:_wchar_t_const____ptr64___cdecl_Cmm::CStringT_wchar_t_::c_str_void_const___ptr64]
mov rdx, rax
mov ebx, 1
mov r8d, ebx
mov rcx, rdi
call fcn.140022520
jmp 0x140022f19
xor ebx, ebx
lea rcx, [rsp + 0x48]
call qword [sym.imp.Cmmlib.dll_public_virtual:_void___cdecl_Cmm::CStringT_wchar_t_::destructor_void____ptr64]
mov eax, ebx
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.1400322d0
mov rbx, qword [rsp + 0x2a0]
add rsp, 0x290
pop rdi
ret
Function at 0x140022fd0
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0xf0
mov rax, qword [0x140061148]
xor rax, rsp
mov qword [rbp + 0x4f], rax
lea rdx, [rbp + 0x27]
call fcn.140020cf0
nop
lea rcx, [rbp + 0x27]
call qword [sym.imp.Cmmlib.dll_public:_int___cdecl_Cmm::CStringT_wchar_t_::IsEmpty_void_const___ptr64]
test eax, eax
je 0x14002300f
xor ebx, ebx
jmp 0x1400230fd
lea rdx, [0x140045170]
lea rcx, [rbp - 1]
call qword [sym.imp.Cmmlib.dll_public:_void___cdecl_Cmm::CStringT_wchar_t_::constructor_wchar_t_const____ptr64____ptr64]
nop
lea rcx, [rbp + 0x27]
call qword [sym.imp.Cmmlib.dll_public:_wchar_t_const____ptr64___cdecl_Cmm::CStringT_wchar_t_::c_str_void_const___ptr64]
mov r8, rax
lea rdx, [0x140041a18]
lea rcx, [rbp - 1]
call qword [sym.imp.Cmmlib.dll_public:_void___cdecl_Cmm::CStringT_wchar_t_::Format_wchar_t_const____ptr64____ptr64]
xorps xmm0, xmm0
movups xmmword [rbp - 0x79], xmm0
movups xmmword [rbp - 0x69], xmm0
movups xmmword [rbp - 0x59], xmm0
movups xmmword [rbp - 0x49], xmm0
movups xmmword [rbp - 0x39], xmm0
movups xmmword [rbp - 0x29], xmm0
movups xmmword [rbp - 0x19], xmm0
mov dword [rbp - 0x79], 0x70
mov dword [rbp - 0x75], 0x240
xor ebx, ebx
mov qword [rbp - 0x71], rbx
lea rax, str.open
mov qword [rbp - 0x69], rax
lea rax, str.msiexec.exe
mov qword [rbp - 0x61], rax
mov qword [rbp - 0x51], rbx
mov dword [rbp - 0x49], 5
mov qword [rbp - 0x41], rbx
lea rcx, [rbp - 1]
call qword [sym.imp.Cmmlib.dll_public:_wchar_t_const____ptr64___cdecl_Cmm::CStringT_wchar_t_::c_str_void_const___ptr64]
mov qword [rbp - 0x59], rax
lea rcx, [rbp - 0x79]
call qword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov rcx, qword [rbp - 0x11]
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x1400230f2
mov dword [rbp - 9], ebx
mov edx, 0x927c0
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea rdx, [rbp - 9]
mov rcx, qword [rbp - 0x11]
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov rcx, qword [rbp - 0x11]
cmp rcx, 0xffffffffffffffff
je 0x1400230ed
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbp - 0x11], rbx
mov ebx, 1
lea rcx, [rbp - 1]
call qword [sym.imp.Cmmlib.dll_public_virtual:_void___cdecl_Cmm::CStringT_wchar_t_::destructor_void____ptr64]
nop
lea rcx, [rbp + 0x27]
call qword [sym.imp.Cmmlib.dll_public_virtual:_void___cdecl_Cmm::CStringT_wchar_t_::destructor_void____ptr64]
mov eax, ebx
mov rcx, qword [rbp + 0x4f]
xor rcx, rsp
call fcn.1400322d0
mov rbx, qword [rsp + 0x100]
add rsp, 0xf0
pop rbp
ret
Function at 0x140025280
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x38
mov rax, qword [0x140061148]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0
call fcn.14001ed80
mov rcx, rax
lea rdx, [rsp + 0x20]
call fcn.14001edc0
cmp qword [rsp + 0x20], 0
jne 0x1400252bf
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ExitProcess]
lea rcx, [rsp + 0x20]
call fcn.140025270
mov rdx, rax
mov rcx, qword [rax]
mov rax, qword [rcx + 0x40]
mov rcx, rdx
call qword [case.0x140024e18.0]
call fcn.14001ed80
mov rcx, rax
call fcn.14001dc00
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x140029f50
Capabilities:
Get file size
Read file on windows

Disassembly:
push rdi
push r15
sub rsp, 0x68
mov rax, qword [0x140061148]
xor rax, rsp
mov qword [rsp + 0x48], rax
lea rdi, [rcx + 0x178]
mov r15, rdx
mov rcx, rdi
call qword [sym.imp.Cmmlib.dll_public:_int___cdecl_Cmm::CStringT_wchar_t_::IsEmpty_void_const___ptr64]
test eax, eax
jne 0x14002a0c8
mov rcx, rdi
mov qword [rsp + 0x58], rsi
call qword [sym.imp.Cmmlib.dll_public:_wchar_t_const____ptr64___cdecl_Cmm::CStringT_wchar_t_::c_str_void_const___ptr64]
xor r9d, r9d
mov qword [rsp + 0x30], 0
mov rcx, rax
mov dword [rsp + 0x28], 0x10000000
mov edx, 0x80000000
mov dword [rsp + 0x20], 3
lea r8d, [r9 + 3]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
lea rcx, [rax - 1]
cmp rcx, 0xfffffffffffffffd
ja 0x14002a0c3
mov qword [rsp + 0x90], rbx
xor edx, edx
mov qword [rsp + 0x60], rbp
mov rcx, rax
mov qword [rsp + 0x50], r14
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebp, eax
test eax, eax
je 0x14002a0a8
mov edx, ebp
mov ecx, 2
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov rbx, rax
test rax, rax
je 0x14002a0a8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
mov rdx, rax
test rax, rax
jne 0x14002a034
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x14002a0b1
xor eax, eax
lea r9, [rsp + 0x40]
mov rdi, rdx
mov qword [rsp + 0x20], rax
mov rcx, rbp
mov r8d, ebp
rep stosb byte [rdi], al
mov rcx, rsi
mov dword [rsp + 0x40], eax
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov rcx, rsi
test eax, eax
jne 0x14002a079
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x14002a0b1
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov r8, r15
mov edx, 1
mov rcx, rbx
call qword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
je 0x14002a0b1
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x14002a0b1
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [rsp + 0x90]
mov rbp, qword [rsp + 0x60]
mov r14, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1400322d0
add rsp, 0x68
pop r15
pop rdi
ret