joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140003370
Capabilities:
Create directory
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x450
mov rax, qword [0x140033010]
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 [0x140038f78], ebx
je 0x1400033b8
mov eax, dword [0x140037730]
jmp 0x140003476
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 0x14000344f
lea r8, [0x1400216c4]
mov rdx, rdi
lea rcx, [rsp + 0x40]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcat_s]
lea r8, [0x1400216c8]
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 [0x140033098], rax
call fcn.140003300
mov edi, 1
test eax, eax
je 0x140003468
call fcn.14000317c
test eax, eax
je 0x140003468
mov ebx, edi
mov dword [0x140037730], ebx
mov eax, ebx
mov dword [0x140038f78], edi
mov rcx, qword [rsp + 0x440]
xor rcx, rsp
call fcn.14001c1e0
mov rbx, qword [rsp + 0x460]
add rsp, 0x450
pop rdi
ret

Function at 0x140003498
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 0x1400034fd
mov rcx, qword [0x140033098]
or rbx, 0xffffffffffffffff
cmp rcx, rbx
je 0x1400034fd
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 0x1400034d4
mov rcx, qword [0x140033098]
lea r8d, [rbx + rbx]
lea r9, [rsp + 0x40]
mov qword [rsp + 0x20], rsi
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x1400034ff
xor eax, eax
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x140003510
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 [0x140033010]
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 0x1400036ea
mov rax, r13
inc rax
cmp word [rsi + rax*2], r12w
jne 0x14000356f
test rax, rax
je 0x1400036ea
test rbx, rbx
je 0x1400036ea
mov dword [rbx], r12d
call fcn.14000323c
test eax, eax
jne 0x1400036dd
call fcn.140003370
test eax, eax
je 0x1400036dd
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1400035dd
mov ecx, 0x410
and eax, ecx
cmp eax, ecx
jne 0x1400035dd
lea rdx, [rsp + 0x20]
mov rcx, rsi
call fcn.140003a34
test eax, eax
jne 0x1400035dd
mov dword [rbx], 1
jmp 0x1400036dd
mov r9, r13
lea r8, [0x140021420]
mov rdx, r13
mov rcx, rsi
call fcn.1400029b0
mov r14, rax
test rax, rax
jne 0x140003603
lea eax, [r14 + 0xe]
jmp 0x1400036ef
lea rdx, [rsp + 0x30]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov r15, rax
cmp rax, r13
jne 0x140003626
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
jmp 0x1400036c9
test byte [rsp + 0x30], 0x10
je 0x14000369e
lea rdx, [0x1400216b8]
lea rcx, [rsp + 0x5c]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
test eax, eax
je 0x14000369e
lea rdx, [0x1400216bc]
lea rcx, [rsp + 0x5c]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
test eax, eax
je 0x14000369e
mov r9, r13
lea r8, [rsp + 0x5c]
mov rdx, r13
mov rcx, rsi
call fcn.1400029b0
mov rdi, rax
test rax, rax
je 0x14000369e
mov rdx, rbx
mov rcx, rax
call fcn.140003510
mov ebp, eax
test eax, eax
jne 0x14000368a
cmp dword [rbx], r12d
jne 0x1400036b5
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 0x1400036c9
jmp 0x140003626
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 0x1400036ef
mov eax, 0x57
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.14001c1e0
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 0x140006b00
Capabilities:
Enumerate process modules

Disassembly:
mov qword [rsp + 8], rbx
push rdi
mov eax, 0x4e70
call fcn.14001d710
sub rsp, rax
mov rax, qword [0x140033010]
xor rax, rsp
mov qword [rsp + 0x4e60], rax
xor edx, edx
lea rcx, [rsp + 0x40]
mov r8d, 0x3e80
call sub.VCRUNTIME140.dll_memset
xor ebx, ebx
mov dword [rsp + 0x20], ebx
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r9, [rsp + 0x20]
mov r8d, 0x3e80
mov rcx, rax
lea rdx, [rsp + 0x40]
call qword [sym.imp.PSAPI.DLL_EnumProcessModules]
test eax, eax
je 0x140006c16
lea rax, [rsp + 0x3ec0]
mov dword [rsp + 0x2c], ebx
mov qword [rsp + 0x30], rax
mov edi, 0xfa0
mov eax, dword [rsp + 0x20]
mov word [rsp + 0x2a], di
test rax, 0xfffffffffffffff8
jbe 0x140006c0f
nop
mov r8, rdi
lea rcx, [rsp + 0x3ec0]
xor edx, edx
call sub.VCRUNTIME140.dll_memset
mov rcx, qword [rsp + rbx*8 + 0x40]
lea rdx, [rsp + 0x3ec0]
mov r8d, 0x7cf
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea rcx, [rsp + 0x3ec0]
mov rax, 0xffffffffffffffff
nop word [rax + rax]
inc rax
cmp word [rcx + rax*2], 0
jne 0x140006bd0
mov r8, qword [rsp + rbx*8 + 0x40]
lea rdx, [rsp + 0x28]
add ax, ax
lea rcx, [0x1400330a0]
xor r9d, r9d
mov word [rsp + 0x28], ax
call fcn.140006c40
test eax, eax
je 0x140006c16
mov eax, dword [rsp + 0x20]
inc rbx
shr rax, 3
cmp rbx, rax
jb 0x140006b90
mov eax, 1
jmp 0x140006c18
xor eax, eax
mov rcx, qword [rsp + 0x4e60]
xor rcx, rsp
call fcn.14001c1e0
mov rbx, qword [rsp + 0x4e80]
add rsp, 0x4e70
pop rdi
ret
Function at 0x140007660
Capabilities:
Parse pe header

Disassembly:
test rcx, rcx
je 0x1400078bc
push rdi
sub rsp, 0x90
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x40], rax
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r9d, 0x18
lea r8, [rsp + 0x30]
mov rcx, rax
mov rdx, rdi
call qword [sym.imp.PSAPI.DLL_GetModuleInformation]
test eax, eax
je 0x1400078b4
mov eax, 0x5a4d
mov qword [rsp + 0x80], r15
mov r15d, dword [rsp + 0x38]
cmp word [rdi], ax
jne 0x1400078ac
movsxd rcx, dword [rdi + 0x3c]
lea rax, [rcx + 0x108]
cmp rax, r15
jae 0x1400078ac
cmp dword [rcx + rdi], 0x4550
mov qword [rsp + 0xb0], rbp
lea rbp, [rcx + rdi]
jne 0x1400078a4
movzx eax, word [rbp + 4]
mov ecx, 0x14c
mov qword [rsp + 0xb8], rsi
xor esi, esi
mov qword [rsp + 0x88], r14
cmp cx, ax
jne 0x140007715
xor r14d, r14d
jmp 0x140007747
mov ecx, 0x200
mov r8d, 0xaa64
cmp cx, ax
je 0x140007739
mov ecx, 0x8664
cmp cx, ax
je 0x140007739
cmp r8w, ax
jne 0x140007894
cmp r8w, ax
mov r14d, 1
sete sil
mov qword [rsp + 0xa8], rbx
mov ebx, dword [rbp + 0x28]
add rbx, rdi
je 0x14000788c
cmp rbx, rdi
jbe 0x14000788c
lea rax, [r15 + rdi]
cmp rbx, rax
jae 0x14000788c
xorps xmm0, xmm0
lea rdx, [rsp + 0x48]
mov r8d, 0x30
mov rcx, rbx
movups xmmword [rsp + 0x48], xmm0
movups xmmword [rsp + 0x58], xmm0
movups xmmword [rsp + 0x68], xmm0
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x14000788c
test dword [rsp + 0x68], 0x1000
je 0x14000788c
test dword [rsp + 0x70], 0x1000000
je 0x14000788c
mov eax, dword [rsp + 0x6c]
xor ecx, ecx
test al, 0x10
jne 0x1400077d2
test al, 0x20
jne 0x1400077d2
test al, 0x40
jne 0x1400077d2
test al, al
jns 0x1400077d7
mov ecx, 1
test ecx, ecx
je 0x14000788c
mov r9d, r14d
mov dword [rsp + 0x20], esi
mov r8d, r15d
mov rdx, rdi
mov rcx, rbp
call fcn.140007df0
mov edx, 0x14
mov dword [rsp + 0xa0], 0
lea r9, [rsp + 0xa0]
mov rcx, rbx
lea r8d, [rdx + 0x2c]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x14000788c
test r14d, r14d
jne 0x140007836
mov eax, dword [0x140033080]
mov dword [rbx], eax
movzx eax, byte [0x140033084]
mov byte [rbx + 4], al
jmp 0x14000785a
test esi, esi
je 0x140007846
mov rax, qword [0x140033078]
mov qword [rbx], rax
jmp 0x14000785a
movzx eax, word [0x140033088]
mov word [rbx], ax
movzx eax, byte [0x14003308a]
mov byte [rbx + 2], al
mov r8d, dword [rsp + 0xa0]
lea r9, [rsp + 0xa0]
mov edx, 0x14
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
xor r8d, r8d
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FlushInstructionCache]
mov rbx, qword [rsp + 0xa8]
mov rsi, qword [rsp + 0xb8]
mov r14, qword [rsp + 0x88]
mov rbp, qword [rsp + 0xb0]
mov r15, qword [rsp + 0x80]
add rsp, 0x90
pop rdi
ret
Function at 0x14000c150
Capabilities:
Create directory

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x140033010]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov bl, dl
mov rdi, 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, rdi
call qword [reloc.Cmmlib.dll___4__CStringT__W_Cmm__QEAAAEAV01_PEB_W_Z]
lea rdx, [0x14002669c]
mov rcx, rdi
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, rdi
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, [0x14002669c]
mov rcx, rdi
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, rdi
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]
test bl, bl
je 0x14000c223
lea rcx, [rsp + 0x20]
call qword [sym.imp.Cmmlib.dll_public:_void___cdecl_Cmm::CStringT_wchar_t_::constructor_void____ptr64]
nop
mov dl, 1
lea rcx, [rsp + 0x20]
call fcn.14000c24c
lea rdx, [rsp + 0x20]
mov rcx, rdi
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.14001c1e0
mov rbx, qword [rsp + 0x98]
add rsp, 0x80
pop rdi
ret
Function at 0x14000f3f8
Capabilities:
Check if file exists
Create directory
Delete file
Get common file path
Get file attributes
Get program files directory
Move file

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
lea rbp, [rax - 0x368]
sub rsp, 0x460
mov rax, qword [0x140033010]
xor rax, rsp
mov qword [rbp + 0x350], rax
mov rbx, rcx
xor edx, edx
lea rcx, [rsp + 0x40]
mov r8d, 0x410
call sub.VCRUNTIME140.dll_memset
xor esi, esi
test rbx, rbx
je 0x14000f5a1
or rax, 0xffffffffffffffff
inc rax
cmp word [rbx + rax*2], si
jne 0x14000f44b
test rax, rax
je 0x14000f5a1
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x14000f5a1
mov edi, esi
mov qword [rsp + 0x38], rsi
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rsp + 0x38]
mov edx, 8
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x14000f4c5
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
mov r9d, 4
mov dword [rsp + 0x30], 4
lea r8, [rsp + 0x34]
mov qword [rsp + 0x20], rax
lea edx, [r9 + 0x10]
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
cmovne edi, dword [rsp + 0x34]
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x14000f4d5
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x14000f535
xor r9d, r9d
lea rax, [rsp + 0x40]
xor r8d, r8d
mov qword [rsp + 0x20], rax
xor ecx, ecx
lea edx, [r9 + 0x26]
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x14000f531
lea r8, str.Temp
mov edx, 0x207
lea rcx, [rsp + 0x40]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
xor edx, edx
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14000f531
test al, 0x10
jne 0x14000f545
xor eax, eax
jmp 0x14000f5a6
lea rdx, [rsp + 0x40]
mov ecx, 0x207
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
lea r9, [rsp + 0x40]
xor r8d, r8d
lea rdx, [0x140021664]
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetTempFileNameW]
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
lea rdx, [rsp + 0x40]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x14000f590
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x14000f5a1
lea rbx, [rsp + 0x40]
xor edx, edx
mov rcx, rbx
lea r8d, [rdx + 4]
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
jmp 0x14000f5a6
mov eax, 1
mov rcx, qword [rbp + 0x350]
xor rcx, rsp
call fcn.14001c1e0
lea r11, [rsp + 0x460]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
Function at 0x140010cf4
Capabilities:
Get token membership

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
mov rbp, rsp
sub rsp, 0x80
mov rax, qword [0x140033010]
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 0x140010d8c
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.14001c1e0
mov rbx, qword [rsp + 0x98]
add rsp, 0x80
pop rbp
ret

Function at 0x140010dac
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 0x140010e75
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 0x140010e40
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 0x140010e4f
mov rcx, qword [rbp - 0x18]
mov qword [rbp + 0x28], rcx
jmp 0x140010e53
lea r8, [rbp + 0x28]
mov edx, 2
call qword [sym.imp.ADVAPI32.dll_DuplicateToken]
mov rcx, qword [rbp + 0x28]
test rcx, rcx
je 0x140010e69
call fcn.140010cf4
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 0x140010e7c
Capabilities:
Get common file path

Disassembly:
push rbx
sub rsp, 0x460
mov rax, qword [0x140033010]
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, [0x140026f60]
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, [0x140026f60]
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.14001c1e0
add rsp, 0x460
pop rbx
ret
Function at 0x140014544
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x30
mov r15d, r8d
mov rbx, rdx
mov rsi, rcx
lea rdi, [rcx + 0x50]
mov qword [rsp + 0x78], rdi
mov rcx, rdi
call qword [sym.imp.MSVCP140.dll__Mtx_lock]
test eax, eax
je 0x14001457c
mov ecx, eax
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_C_error_int_]
nop
lea r14, [rsi + 0xa0]
mov rcx, rbx
cmp qword [rbx + 0x18], 0x10
jb 0x140014590
mov rcx, qword [rbx]
xor edx, edx
movabs r9, 0xcbf29ce484222325
cmp qword [rbx + 0x10], rdx
jbe 0x1400145c0
movzx eax, byte [rdx + rcx]
xor r9, rax
movabs r8, 0x100000001b3
imul r9, r8
inc rdx
cmp rdx, qword [rbx + 0x10]
jb 0x1400145a2
mov r8, rbx
lea rdx, [rsp + 0x20]
mov rcx, r14
call fcn.140016880
mov rbp, qword [rax + 8]
test rbp, rbp
jne 0x1400145dd
mov rbp, qword [r14 + 8]
cmp rbp, qword [rsi + 0xa8]
je 0x140014674
mov rsi, qword [rbp + 0x30]
test rsi, rsi
je 0x140014663
mov dword [rsp + 0x60], r15d
cmp r15d, 0xffffffff
je 0x140014634
lea rcx, [rsi + 0x60]
call qword [sym.imp.MSVCP140.dll__Mtx_lock]
test eax, eax
je 0x140014615
mov ecx, eax
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_C_error_int_]
int3
lea rcx, [rsi + 0xb0]
lea rdx, [rsp + 0x60]
call fcn.140014c90
lea rcx, [rsi + 0x60]
call qword [sym.imp.MSVCP140.dll__Mtx_unlock]
mov rsi, qword [rbp + 0x30]
lea rbx, [rsi + 0x60]
mov rcx, rbx
call qword [sym.imp.MSVCP140.dll__Mtx_lock]
test eax, eax
je 0x14001464e
mov ecx, eax
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_C_error_int_]
int3
mov rsi, qword [rsi + 0xc0]
mov rcx, rbx
call qword [sym.imp.MSVCP140.dll__Mtx_unlock]
test rsi, rsi
jne 0x140014674
mov r8, rbp
lea rdx, [rsp + 0x60]
mov rcx, r14
call fcn.140015b48
nop
mov rcx, rdi
mov rbx, qword [rsp + 0x68]
add rsp, 0x30
pop r15
pop r14
pop rdi
pop rsi
pop rbp
jmp qword [sym.imp.MSVCP140.dll__Mtx_unlock]
invalid
call [rbp + 0xc]
invalid
call [rbp + 0xc]
invalid
invalid
adc bh, bh
invalid
std
adc al, 0xff
cld
invalid
sti
imul ebx, dword [rsi], 0xffffffff
sti
imul ebx, dword [rsi], 0xffffffff
cli
insb byte [rdi], dx
invalid
or edi, edi
std
pop rsp
or edi, edi
std
pop rsp
or edi, edi
std
pop rsp
or edi, edi
invalid
Function at 0x140014c90
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov r10, rdx
mov r11, rcx
movabs r8, 0xcbf29ce484222325
xor r9d, r9d
movzx eax, byte [r9 + rdx]
movabs rcx, 0x100000001b3
xor r8, rax
inc r9
imul r8, rcx
cmp r9, 4
jb 0x140014cad
and r8, qword [r11 + 0x30]
mov rdx, qword [r11 + 0x18]
mov rcx, r8
mov rax, qword [r11 + 8]
add rcx, rcx
mov rbx, qword [rdx + rcx*8 + 8]
cmp rbx, rax
je 0x140014d87
mov r9d, dword [r10]
jmp 0x140014cff
cmp rbx, qword [rdx + rcx*8]
je 0x140014d87
mov rbx, qword [rbx + 8]
cmp r9d, dword [rbx + 0x10]
jne 0x140014cf1
test rbx, rbx
je 0x140014d87
shl r8, 4
add r8, rdx
cmp qword [rdx + rcx*8 + 8], rbx
jne 0x140014d2d
cmp qword [r8], rbx
jne 0x140014d22
mov qword [r8], rax
jmp 0x140014d26
mov rax, qword [rbx + 8]
mov qword [rdx + rcx*8 + 8], rax
jmp 0x140014d38
cmp qword [r8], rbx
jne 0x140014d38
mov rax, qword [rbx]
mov qword [r8], rax
mov rcx, qword [rbx]
lea rdi, [rbx + 0x18]
dec qword [r11 + 0x10]
mov rax, qword [rbx + 8]
mov qword [rax], rcx
mov rax, qword [rbx + 8]
mov qword [rcx + 8], rax
mov rcx, qword [rdi + 0x38]
test rcx, rcx
je 0x140014d73
mov r8, qword [rcx]
cmp rcx, rdi
setne dl
mov rax, qword [r8 + 0x20]
call qword [0x140020f60]
and qword [rdi + 0x38], 0
mov edx, 0x58
mov rcx, rbx
call fcn.14001c23c
mov eax, 1
jmp 0x140014d89
xor eax, eax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x140014ee4
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x20
movabs rax, 0xfffffffffffffff
mov rsi, rcx
bsr rcx, rax
mov eax, 1
shl rax, cl
cmp rdx, rax
jbe 0x140014f25
lea rcx, str.invalid_hash_bucket_count
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xlength_error_char_const____ptr64_]
int3
mov rbx, qword [rsi + 8]
lea rax, [rdx - 1]
or rax, 1
mov edi, 1
bsr rcx, rax
mov r8, rbx
inc ecx
shl rdi, cl
lea rcx, [rsi + 0x18]
lea rdx, [rdi + rdi]
call fcn.140014d94
lea rax, [rdi - 1]
mov qword [rsi + 0x38], rdi
mov qword [rsi + 0x30], rax
mov rax, qword [rsi + 8]
mov rax, qword [rax]
mov rcx, rax
cmp rax, rbx
je 0x140015040
mov rcx, qword [rcx]
movabs r8, 0xcbf29ce484222325
xor r9d, r9d
movzx edx, byte [r9 + rax + 0x10]
movabs r10, 0x100000001b3
xor r8, rdx
inc r9
imul r8, r10
cmp r9, 4
jb 0x140014f7e
mov r10, qword [rsi + 0x30]
mov r11, qword [rsi + 0x18]
and r10, r8
add r10, r10
cmp qword [r11 + r10*8], rbx
jne 0x140014fbd
mov qword [r11 + r10*8], rax
mov qword [r11 + r10*8 + 8], rax
jmp 0x140015034
mov rdx, qword [r11 + r10*8 + 8]
mov r8d, dword [rax + 0x10]
cmp r8d, dword [rdx + 0x10]
jne 0x140014ff7
mov rdi, qword [rdx]
cmp rdi, rax
je 0x140014fb6
mov r9, qword [rax + 8]
mov qword [r9], rcx
mov r8, qword [rcx + 8]
mov qword [r8], rdi
mov rdx, qword [rdi + 8]
mov qword [rdx], rax
mov qword [rdi + 8], r8
mov qword [rcx + 8], r9
mov qword [rax + 8], rdx
jmp 0x140014fb6
mov rdi, rdx
jmp 0x140015009
mov rdx, qword [rdx + 8]
mov rdi, rdx
cmp r8d, dword [rdx + 0x10]
je 0x140015056
cmp qword [r11 + r10*8], rdx
jne 0x140014ffc
mov r9, qword [rax + 8]
mov qword [r9], rcx
mov r8, qword [rcx + 8]
mov qword [r8], rdi
mov rdx, qword [rdi + 8]
mov qword [rdx], rax
mov qword [rdi + 8], r8
mov qword [rcx + 8], r9
mov qword [rax + 8], rdx
mov qword [r11 + r10*8], rax
mov rax, rcx
cmp rcx, rbx
jne 0x140014f6e
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
mov r10, qword [rdx]
mov r9, qword [rax + 8]
mov qword [r9], rcx
mov r8, qword [rcx + 8]
mov qword [r8], r10
mov rdx, qword [r10 + 8]
mov qword [rdx], rax
mov qword [r10 + 8], r8
mov qword [rcx + 8], r9
mov qword [rax + 8], rdx
jmp 0x140015034