joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140036de8
Capabilities:
Clear file content

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 r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.14002b36c
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14002b36c
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x140036f38
cmp rax, 0xffffffffffffffff
je 0x140036f38
xor edi, edi
test rbp, rbp
jle 0x140036ee3
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14002b410
mov rbx, rax
test rax, rax
jne 0x140036e70
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x140036ed9
mov edx, 0x8000
mov ecx, r14d
call fcn.140020fb0
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.14002a85c
cmp eax, 0xffffffff
je 0x140036eb9
cdqe
sub rbp, rax
test rbp, rbp
jg 0x140036e80
mov edx, r15d
mov ecx, r14d
call fcn.140020fb0
jmp 0x140036ed9
cmp byte [rsi + 0x38], dil
je 0x140036ed0
cmp dword [rsi + 0x34], 5
jne 0x140036ed0
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x140036ed9
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.1400271dc
jmp 0x140036f4c
jns 0x140036f4c
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14002b36c
cmp rax, 0xffffffffffffffff
jne 0x140036f04
cmp byte [rsi + 0x30], dil
je 0x140036f4c
mov edi, dword [rsi + 0x2c]
jmp 0x140036f4c
mov ecx, r14d
call fcn.14002d630
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x140036f4c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x140036f4c
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x140036f45
mov eax, dword [rsi + 0x2c]
jmp 0x140036f4a
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14002b36c
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret
Function at 0x140001454
Capabilities:
Get token membership

Disassembly:
mov qword [rsp + 8], rbx
push rbp
mov rbp, rsp
sub rsp, 0x80
mov rax, qword [0x140027010]
xor rax, rsp
mov qword [rbp - 8], rax
xor ebx, ebx
mov word [rbp - 0xc], 0x500
lea rax, [rbp - 0x18]
mov dword [rbp - 0x20], ebx
mov qword [rsp + 0x50], rax
lea rcx, [rbp - 0x10]
mov dword [rsp + 0x48], ebx
mov r9d, 0x220
mov dword [rsp + 0x40], ebx
lea r8d, [rbx + 0x20]
mov dword [rsp + 0x38], ebx
mov dl, 2
mov dword [rsp + 0x30], ebx
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], ebx
mov dword [rbp - 0x10], ebx
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x1400014de
mov rdx, qword [rbp - 0x18]
lea r8, [rbp - 0x20]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
cmp dword [rbp - 0x20], ebx
lea eax, [rbx + 1]
mov rcx, qword [rbp - 0x18]
cmovne ebx, eax
call qword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, ebx
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.140014fd0
mov rbx, qword [rsp + 0x90]
add rsp, 0x80
pop rbp
ret

Function at 0x140001500
Capabilities:
Create process on windows

Disassembly:
push rbx
sub rsp, 0x30
mov rbx, r9
call fcn.140001390
test eax, eax
jne 0x14000152e
lea r9d, [rax + 1]
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call fcn.14000f520
test eax, eax
jne 0x14000152e
mov eax, 0xb
jmp 0x14000155c
call fcn.140001390
test eax, eax
jne 0x14000153c
call fcn.140001454
mov r9, qword [rsp + 0x60]
mov r8, rbx
mov dword [rsp + 0x28], 1
xor edx, edx
and qword [rsp + 0x20], 0
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
add rsp, 0x30
pop rbx
ret

Function at 0x140001594
Capabilities:
Create directory
Delete file
Get common file path

Disassembly:
push rbx
sub rsp, 0x240
mov rax, qword [0x140027010]
xor rax, rsp
mov qword [rsp + 0x230], rax
mov rbx, rcx
test rcx, rcx
je 0x140001635
xor r9d, r9d
mov rdx, rcx
xor ecx, ecx
lea r8d, [r9 + 0x1a]
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x140001635
lea rdx, [0x1400191b8]
mov rcx, rbx
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
lea rdx, str.logs
mov rcx, rbx
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x208
call sub.VCRUNTIME140.dll_memset
lea r9, [rsp + 0x20]
xor r8d, r8d
lea rdx, str.zoomtest
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x140001635
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov al, 1
jmp 0x140001637
xor al, al
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.140014fd0
add rsp, 0x240
pop rbx
ret
Function at 0x140001650
Capabilities:
Get common file path
Read .ini file

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
push rbp
lea rbp, [rsp - 0x460]
sub rsp, 0x560
mov rax, qword [0x140027010]
xor rax, rsp
mov qword [rbp + 0x450], rax
xor r9d, r9d
lea rdx, [rbp + 0x30]
xor ecx, ecx
lea r8d, [r9 + 0x1a]
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
xor edi, edi
test eax, eax
je 0x14000170c
lea r8, str.ZoomdataZoom.us.ini
mov edx, 0x104
lea rcx, [rbp + 0x30]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
lea rdx, [rbp - 0x10]
lea rcx, [rbp + 0x30]
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__wstat64i32]
test eax, eax
jne 0x14000170c
lea rax, [rbp + 0x30]
xorps xmm0, xmm0
mov qword [rsp + 0x28], rax
lea r9, [rbp + 0x20]
xor r8d, r8d
mov dword [rsp + 0x20], 8
lea rdx, str.com.zoom.test.disable_crash_handler
lea rcx, str.ZoomChat
movups xmmword [rbp + 0x20], xmm0
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
je 0x14000170c
lea rdx, [0x140019250]
lea rcx, [rbp + 0x20]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
test eax, eax
je 0x140001821
lea rcx, [rbp + 0x240]
call fcn.140001594
test al, al
je 0x140001821
mov ebx, 0xb8
lea rcx, [rsp + 0x30]
mov r8d, ebx
xor edx, edx
call sub.VCRUNTIME140.dll_memset
lea rax, [rbp + 0x240]
mov word [rsp + 0x30], bx
mov qword [rbp - 0x60], rax
lea r8d, [rbx + 0x58]
lea rax, str.Zoom.us
mov dword [rbp + 0x30], 0x11c
mov qword [rsp + 0x38], rax
lea rcx, [rbp + 0x34]
lea rax, str.5.14.8.16213
xor edx, edx
mov qword [rsp + 0x40], rax
lea rax, str.Zoom.us_Video_Meeting_0.9.2_Error_Report
mov qword [rsp + 0x50], rax
lea rax, str.support_zoom.us
mov qword [rsp + 0x48], rax
call sub.VCRUNTIME140.dll_memset
xor eax, eax
mov word [rbp + 0x144], di
mov r8b, 3
mov dword [rbp + 0x146], eax
xor ecx, ecx
mov word [rbp + 0x14a], ax
lea ebx, [rax + 2]
mov edx, ebx
call qword [sym.imp.KERNEL32.dll_VerSetConditionMask]
mov r8b, 3
lea edx, [rbx - 1]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_VerSetConditionMask]
mov r8b, 3
lea edx, [rbx + 0x1e]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_VerSetConditionMask]
lea edx, [rbx + 0x21]
mov qword [rbp + 0x34], 6
mov r8, rax
mov word [rbp + 0x144], bx
lea rcx, [rbp + 0x30]
call qword [sym.imp.KERNEL32.dll_VerifyVersionInfoW]
neg eax
mov qword [rsp + 0x68], rdi
lea rax, str.https:__zoom.us_privacy_
sbb ecx, ecx
mov qword [rbp - 0x78], rax
or dword [rbp - 0x7c], 0x1807fff
and ecx, 0x1a20
add ecx, 5
mov dword [rbp - 0x68], ecx
lea rcx, [rsp + 0x30]
call qword [sym.imp.zCrashReport64.dll_Ordinal_7]
jmp 0x140001824
or eax, 0xffffffff
mov rcx, qword [rbp + 0x450]
xor rcx, rsp
call fcn.140014fd0
lea r11, [rsp + 0x560]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret
Function at 0x1400059f8
Capabilities:
Create directory

Disassembly:
push rbx
sub rsp, 0x80
mov rax, qword [0x140027010]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov rbx, rcx
lea rcx, [rsp + 0x48]
call qword [sym.imp.Cmmlib.dll_public:_void___cdecl_Cmm::CFileName::constructor_void____ptr64]
nop
mov edx, 6
lea r8d, [rdx - 5]
lea rcx, [rsp + 0x48]
call qword [sym.imp.Cmmlib.dll_public:_void___cdecl_Cmm::CFileName::GetSpecialDirectory_enum_Cmm::CFileName::SpecialFolder__int____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 rdx, rax
mov rcx, rbx
call qword [reloc.Cmmlib.dll___4__CStringT__W_Cmm__QEAAAEAV01_PEB_W_Z]
lea rdx, [0x14001a49c]
mov rcx, rbx
call qword [sym.imp.Cmmlib.dll_public:_class_Cmm::CStringT_wchar_t_____ptr64___cdecl_Cmm::CStringT_wchar_t_::operator_wchar_t_const____ptr64____ptr64]
lea rdx, str.logs
mov rcx, rbx
call qword [sym.imp.Cmmlib.dll_public:_class_Cmm::CStringT_wchar_t_____ptr64___cdecl_Cmm::CStringT_wchar_t_::operator_wchar_t_const____ptr64____ptr64]
lea rdx, [0x14001a49c]
mov rcx, rbx
call qword [sym.imp.Cmmlib.dll_public:_class_Cmm::CStringT_wchar_t_____ptr64___cdecl_Cmm::CStringT_wchar_t_::operator_wchar_t_const____ptr64____ptr64]
mov rcx, rbx
call qword [sym.imp.Cmmlib.dll_public:_wchar_t_const____ptr64___cdecl_Cmm::CStringT_wchar_t_::c_str_void_const___ptr64]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea rcx, [rsp + 0x20]
call qword [sym.imp.Cmmlib.dll_public:_void___cdecl_Cmm::CStringT_wchar_t_::constructor_void____ptr64]
nop
lea rcx, [rsp + 0x20]
call fcn.140005c54
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.Cmmlib.dll_public:_class_Cmm::CStringT_wchar_t_____ptr64___cdecl_Cmm::CStringT_wchar_t_::operator_class_Cmm::CStringT_wchar_t__const____ptr64____ptr64]
nop
lea rcx, [rsp + 0x20]
call qword [sym.imp.Cmmlib.dll_public_virtual:_void___cdecl_Cmm::CStringT_wchar_t_::destructor_void____ptr64]
nop
lea rcx, [rsp + 0x48]
call qword [sym.imp.Cmmlib.dll_public_virtual:_void___cdecl_Cmm::CFileName::destructor_void____ptr64]
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.140014fd0
add rsp, 0x80
pop rbx
ret

Function at 0x140008ec0
Capabilities:
Access firewall policy via inetfwpolicy2

Disassembly:
push rbx
sub rsp, 0x30
mov ecx, dword [0x140027050]
mov ebx, 0x80000000
lea eax, [rcx + rbx]
test ebx, eax
jne 0x140008f05
cmp ecx, 0x80010106
je 0x140008f05
mov edx, 2
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitializeEx]
mov dword [0x140027050], eax
lea ecx, [rax + rbx]
test ebx, ecx
jne 0x140008f05
cmp eax, 0x80010106
je 0x140008f05
xor eax, eax
jmp 0x140008f50
cmp qword [0x14002bac8], 0
mov ebx, 1
jne 0x140008f4e
lea rax, [0x14002bac8]
mov r8d, ebx
lea r9, [0x14001b170]
mov qword [rsp + 0x20], rax
xor edx, edx
lea rcx, [0x14001b1d0]
call qword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x140008f47
cmp qword [0x14002bac8], 0
jne 0x140008f4e
call fcn.140008f58
jmp 0x140008f01
mov eax, ebx
add rsp, 0x30
pop rbx
ret
Function at 0x14000a7bc
Capabilities:
Create directory
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x450
mov rax, qword [0x140027010]
xor rax, rsp
mov qword [rsp + 0x440], rax
mov edi, 0x400
lea rcx, [rsp + 0x40]
mov r8d, edi
xor edx, edx
call sub.VCRUNTIME140.dll_memset
xor ebx, ebx
cmp dword [0x14002bd68], ebx
je 0x14000a804
mov eax, dword [0x14002b050]
jmp 0x14000a8c2
xor r9d, r9d
lea rdx, [rsp + 0x40]
xor ecx, ecx
lea r8d, [r9 + 0x1a]
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
je 0x14000a89b
lea r8, [0x14001b280]
mov rdx, rdi
lea rcx, [rsp + 0x40]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcat_s]
lea r8, [0x14001b284]
mov rdx, rdi
lea rcx, [rsp + 0x40]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcat_s]
xor edx, edx
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea r8, str._appsafecheck.txt
mov rdx, rdi
lea rcx, [rsp + 0x40]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcat_s]
xor r9d, r9d
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], 0x80
lea rcx, [rsp + 0x40]
mov edx, 0xc0000000
mov dword [rsp + 0x20], 4
lea r8d, [r9 + 3]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov qword [0x140027068], rax
call fcn.14000a74c
mov edi, 1
test eax, eax
je 0x14000a8b4
call fcn.14000a5c8
test eax, eax
je 0x14000a8b4
mov ebx, edi
mov dword [0x14002b050], ebx
mov eax, ebx
mov dword [0x14002bd68], edi
mov rcx, qword [rsp + 0x440]
xor rcx, rsp
call fcn.140014fd0
mov rbx, qword [rsp + 0x460]
add rsp, 0x450
pop rdi
ret

Function at 0x14000a8e4
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
xor esi, esi
mov rdi, rcx
test rcx, rcx
je 0x14000a949
mov rcx, qword [0x140027068]
or rbx, 0xffffffffffffffff
cmp rcx, rbx
je 0x14000a949
lea r9d, [rsi + 2]
mov dword [rsp + 0x40], esi
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
inc rbx
cmp word [rdi + rbx*2], si
jne 0x14000a920
mov rcx, qword [0x140027068]
lea r8d, [rbx + rbx]
lea r9, [rsp + 0x40]
mov qword [rsp + 0x20], rsi
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x14000a94b
xor eax, eax
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x14000a95c
Capabilities:
Check if file exists
Enumerate files on windows
Enumerate files recursively
Get file attributes

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x290
mov rax, qword [0x140027010]
xor rax, rsp
mov qword [rsp + 0x280], rax
mov rbx, rdx
mov rsi, rcx
or r13, 0xffffffffffffffff
lea rcx, [rsp + 0x30]
xor edx, edx
mov r8d, 0x250
mov r15, r13
call sub.VCRUNTIME140.dll_memset
xor r12d, r12d
mov dword [rsp + 0x20], r12d
mov ebp, r12d
test rsi, rsi
je 0x14000ab36
mov rax, r13
inc rax
cmp word [rsi + rax*2], r12w
jne 0x14000a9bb
test rax, rax
je 0x14000ab36
test rbx, rbx
je 0x14000ab36
mov dword [rbx], r12d
call fcn.14000a688
test eax, eax
jne 0x14000ab29
call fcn.14000a7bc
test eax, eax
je 0x14000ab29
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14000aa29
mov ecx, 0x410
and eax, ecx
cmp eax, ecx
jne 0x14000aa29
lea rdx, [rsp + 0x20]
mov rcx, rsi
call fcn.14000ae84
test eax, eax
jne 0x14000aa29
mov dword [rbx], 1
jmp 0x14000ab29
mov r9, r13
lea r8, [0x14001b058]
mov rdx, r13
mov rcx, rsi
call fcn.140009dfc
mov r14, rax
test rax, rax
jne 0x14000aa4f
lea eax, [r14 + 0xe]
jmp 0x14000ab3b
lea rdx, [rsp + 0x30]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov r15, rax
cmp rax, r13
jne 0x14000aa72
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
jmp 0x14000ab15
test byte [rsp + 0x30], 0x10
je 0x14000aaea
lea rdx, [0x14001ab40]
lea rcx, [rsp + 0x5c]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
test eax, eax
je 0x14000aaea
lea rdx, [0x14001b278]
lea rcx, [rsp + 0x5c]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
test eax, eax
je 0x14000aaea
mov r9, r13
lea r8, [rsp + 0x5c]
mov rdx, r13
mov rcx, rsi
call fcn.140009dfc
mov rdi, rax
test rax, rax
je 0x14000aaea
mov rdx, rbx
mov rcx, rax
call fcn.14000a95c
mov ebp, eax
test eax, eax
jne 0x14000aad6
cmp dword [rbx], r12d
jne 0x14000ab01
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rdi
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
lea rdx, [rsp + 0x30]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x14000ab15
jmp 0x14000aa72
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rdi
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, r14
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_FindClose]
mov eax, ebp
jmp 0x14000ab3b
mov eax, 0x57
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.140014fd0
mov rbx, qword [rsp + 0x2e0]
add rsp, 0x290
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x14000c2b8
Capabilities:
Print debug messages

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x768]
sub rsp, 0x850
mov rax, qword [0x140027010]
xor rax, rsp
mov qword [rbp + 0x740], rax
xor r15d, r15d
mov rdi, rdx
mov rsi, rcx
cmp qword [rcx + 0xc30], r15
je 0x14000c30f
cmp qword [rcx + 0xc38], r15
je 0x14000c30f
lea eax, [r15 + 1]
jmp 0x14000c49f
test rdi, rdi
jne 0x14000c31b
xor eax, eax
jmp 0x14000c49f
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x410
call sub.VCRUNTIME140.dll_memset
lea rax, [rsp + 0x20]
mov r14d, 0x82
sub rdi, rax
lea rcx, [rsp + 0x20]
mov edx, r14d
mov ebx, 1
lea rax, [rdx + 0x7fffff7c]
test rax, rax
je 0x14000c369
movzx eax, word [rcx + rdi]
test ax, ax
je 0x14000c369
mov word [rcx], ax
add rcx, 2
sub rdx, rbx
jne 0x14000c348
test rdx, rdx
lea rax, [rcx - 2]
mov edi, 0x104
lea r8, [0x14001a49c]
cmovne rax, rcx
mov edx, edi
lea rcx, [rsp + 0x20]
mov word [rax], r15w
call fcn.14000bfec
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_SetDllDirectoryW]
test eax, eax
jne 0x14000c3b7
lea rcx, str._CptShareAPIWrapper::Init__Failed_to_call_SetDllDirectory_to:
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
xor edx, edx
lea rcx, [rbp + 0x330]
mov r8d, 0x410
call sub.VCRUNTIME140.dll_memset
lea rdx, [rsp + 0x20]
lea rax, [rbp + 0x330]
sub rdx, rax
lea rcx, [rbp + 0x330]
lea rax, [r14 + 0x7fffff7c]
test rax, rax
je 0x14000c402
movzx eax, word [rcx + rdx]
test ax, ax
je 0x14000c402
mov word [rcx], ax
add rcx, 2
sub r14, rbx
jne 0x14000c3e1
lea rax, [rcx - 2]
test r14, r14
lea r8, str.ucrtbase.dll
mov rdx, rdi
cmovne rax, rcx
lea rcx, [rbp + 0x330]
mov word [rax], r15w
call fcn.14000bfec
xor edx, edx
lea rcx, [rbp + 0x330]
lea r8d, [rdx + 8]
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
lea r8, str.CptShare.dll
mov rdx, rdi
lea rcx, [rsp + 0x20]
call fcn.14000bfec
lea rcx, [rsp + 0x20]
call fcn.14000c0ac
mov qword [rsi + 0xc30], rax
lea rdi, [rsi + 0xc38]
mov qword [rdi], r15
test rax, rax
je 0x14000c48c
lea rdx, str.cpt_create_helper
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14000c48c
mov rcx, rdi
call qword [0x140018d30]
cmp qword [rsi + 0xc30], r15
je 0x14000c49a
cmp qword [rdi], r15
jne 0x14000c49d
mov ebx, r15d
mov eax, ebx
mov rcx, qword [rbp + 0x740]
xor rcx, rsp
call fcn.140014fd0
lea r11, [rsp + 0x850]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x14000c4cc
Capabilities:
Delete file
Get common file path
Move file

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x440
mov rax, qword [0x140027010]
xor rax, rsp
mov qword [rsp + 0x430], rax
xor edi, edi
mov rbx, rdx
test rdx, rdx
je 0x14000c59a
or rax, 0xffffffffffffffff
inc rax
cmp word [rdx + rax*2], di
jne 0x14000c4fd
test rax, rax
je 0x14000c59a
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x14000c59a
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x410
call sub.VCRUNTIME140.dll_memset
lea rdx, [rsp + 0x20]
mov ecx, 0x207
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
lea r9, [rsp + 0x20]
xor r8d, r8d
lea rdx, [0x1400193e4]
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetTempFileNameW]
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x14000c589
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x14000c59a
lea rbx, [rsp + 0x20]
xor edx, edx
mov rcx, rbx
lea r8d, [rdx + 4]
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
jmp 0x14000c59f
mov eax, 1
mov rcx, qword [rsp + 0x430]
xor rcx, rsp
call fcn.140014fd0
mov rbx, qword [rsp + 0x450]
add rsp, 0x440
pop rdi
ret
Function at 0x14000cf54
Capabilities:
Get token membership

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
mov rbp, rsp
sub rsp, 0x80
mov rax, qword [0x140027010]
xor rax, rsp
mov qword [rbp - 8], rax
and dword [rbp - 0x10], 0
lea rax, [rbp - 0x18]
mov qword [rsp + 0x50], rax
mov rbx, rcx
and dword [rsp + 0x48], 0
lea rcx, [rbp - 0x10]
and dword [rsp + 0x40], 0
mov r9d, 0x220
and dword [rsp + 0x38], 0
mov r8d, 0x20
and dword [rsp + 0x30], 0
mov dl, 2
and dword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
mov word [rbp - 0xc], 0x500
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov dword [rbp - 0x20], eax
test eax, eax
je 0x14000cfec
mov rdx, qword [rbp - 0x18]
lea r8, [rbp - 0x20]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
neg eax
sbb ecx, ecx
and dword [rbp - 0x20], ecx
mov rcx, qword [rbp - 0x18]
call qword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [rbp - 0x20]
test eax, eax
setne al
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.140014fd0
mov rbx, qword [rsp + 0x98]
add rsp, 0x80
pop rbp
ret

Function at 0x14000d00c
Capabilities:
Get token privileges

Disassembly:
push rbp
push rbx
mov rbp, rsp
sub rsp, 0x48
xor ebx, ebx
mov qword [rbp + 0x30], rbx
mov qword [rbp + 0x28], rbx
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rbp + 0x30]
mov edx, 0xf01ff
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x14000d0d5
mov rcx, qword [rbp + 0x30]
lea rax, [rbp + 0x20]
mov r9d, 4
mov dword [rbp + 0x20], ebx
lea r8, [rbp + 0x18]
mov dword [rbp + 0x18], 1
mov qword [rsp + 0x20], rax
lea edx, [r9 + 0xe]
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
cmp dword [rbp + 0x18], 3
mov rcx, qword [rbp + 0x30]
jne 0x14000d0a0
mov r9d, 8
lea rax, [rbp + 0x20]
lea r8, [rbp - 0x18]
mov qword [rsp + 0x20], rax
lea edx, [r9 + 0xb]
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x14000d0af
mov rcx, qword [rbp - 0x18]
mov qword [rbp + 0x28], rcx
jmp 0x14000d0b3
lea r8, [rbp + 0x28]
mov edx, 2
call qword [sym.imp.ADVAPI32.dll_DuplicateToken]
mov rcx, qword [rbp + 0x28]
test rcx, rcx
je 0x14000d0c9
call fcn.14000cf54
mov rcx, qword [rbp + 0x28]
mov bl, al
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp + 0x30]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, bl
add rsp, 0x48
pop rbx
pop rbp
ret
Function at 0x14000d0dc
Capabilities:
Get common file path

Disassembly:
push rbx
sub rsp, 0x460
mov rax, qword [0x140027010]
xor rax, rsp
mov qword [rsp + 0x450], rax
mov rbx, rcx
mov qword [rsp + 0x28], rcx
and dword [rsp + 0x20], 0
xor edx, edx
mov r8d, 0x412
lea rcx, [rsp + 0x30]
call sub.VCRUNTIME140.dll_memset
mov edx, 0x208
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea rdx, str.system32msiexec.exe
lea rcx, [rsp + 0x30]
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
lea rdx, [0x14001af38]
mov rcx, rbx
call qword [sym.imp.Cmmlib.dll_public:_void___cdecl_Cmm::CStringT_wchar_t_::constructor_wchar_t_const____ptr64____ptr64]
mov dword [rsp + 0x20], 1
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.Cmmlib.dll_public:_class_Cmm::CStringT_wchar_t_____ptr64___cdecl_Cmm::CStringT_wchar_t_::operator_wchar_t_const____ptr64____ptr64]
lea rdx, [0x14001af38]
mov rcx, rbx
call qword [sym.imp.Cmmlib.dll_public:_class_Cmm::CStringT_wchar_t_____ptr64___cdecl_Cmm::CStringT_wchar_t_::operator_wchar_t_const____ptr64____ptr64]
mov rax, rbx
mov rcx, qword [rsp + 0x450]
xor rcx, rsp
call fcn.140014fd0
add rsp, 0x460
pop rbx
ret