joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18007e7cc
Capabilities:
Link many functions at runtime

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 r13
push r14
push r15
sub rsp, 0x20
mov rax, qword [0x1801a0350]
xor ebp, ebp
mov rsi, r8
mov r14, rdx
mov r15d, ecx
test rax, rax
jne 0x18007e81e
xor edx, edx
lea rcx, str.Setupapi.dll
call fcn.18007f320
mov qword [0x1801a0350], rax
test rax, rax
je 0x18007e9b5
cmp qword [0x1801a0130], rbp
jne 0x18007e84e
lea rdx, str.SetupDiGetClassDevsW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1801a0130], rax
test rax, rax
je 0x18007e9b5
mov rax, qword [0x1801a0350]
cmp qword [0x1801a0138], rbp
jne 0x18007e87e
lea rdx, str.SetupDiEnumDeviceInfo
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1801a0138], rax
test rax, rax
je 0x18007e9b5
mov rax, qword [0x1801a0350]
cmp qword [0x1801a0148], rbp
jne 0x18007e8ae
lea rdx, str.SetupDiGetDeviceRegistryPropertyW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1801a0148], rax
test rax, rax
je 0x18007e9b5
mov rax, qword [0x1801a0350]
cmp qword [0x1801a0140], rbp
jne 0x18007e8de
lea rdx, str.SetupDiGetDeviceInterfaceDetailW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1801a0140], rax
test rax, rax
je 0x18007e9b5
mov rax, qword [0x1801a0350]
cmp qword [0x1801a0158], rbp
jne 0x18007e907
lea rdx, str.SetupDiDestroyDeviceInfoList
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1801a0158], rax
test rax, rax
je 0x18007e9b5
mov rbx, qword [0x1801a0130]
mov rcx, rbx
call qword [fcn.18002e4c0]
mov r9d, 6
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call rbx
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x18007e9b5
mov r13d, 0x20
xor edx, edx
mov r8d, r13d
mov rcx, rsi
call fcn.1800c9420
mov dword [rsi], r13d
mov rbx, qword [0x1801a0138]
mov rcx, rbx
call qword [fcn.18002e4c0]
xor edx, edx
jmp 0x18007e994
mov r8, rsi
mov rdx, rdi
mov ecx, r15d
call fcn.18007edc8
cmp eax, 1
je 0x18007e9d6
mov r8, r13
xor edx, edx
mov rcx, rsi
inc ebp
call fcn.1800c9420
mov dword [rsi], r13d
mov rbx, qword [0x1801a0138]
mov rcx, rbx
call qword [fcn.18002e4c0]
mov edx, ebp
mov r8, rsi
mov rcx, rdi
call rbx
test eax, eax
jne 0x18007e95d
mov rbx, qword [0x1801a0158]
mov rcx, rbx
call qword [fcn.18002e4c0]
mov rcx, rdi
call rbx
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop r13
ret
mov qword [r14], rdi
mov eax, 1
jmp 0x18007e9b7
Function at 0x18007fee8
Capabilities:
Check if file exists
Get file attributes

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 r14
sub rsp, 0x30
mov rsi, rcx
xor ebx, ebx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
test rsi, rsi
je 0x1800800aa
mov rcx, rsi
call fcn.18007dc88
test eax, eax
jne 0x1800800aa
mov rcx, rsi
call fcn.1800800d4
mov rdi, rax
test rax, rax
je 0x18007ffed
call fcn.1800809ac
mov rbp, rax
test rax, rax
je 0x18007ffe5
mov rcx, rdi
call fcn.18007dc88
test eax, eax
je 0x18007ffce
lea rax, str.system32_
mov qword [rsp + 0x20], rax
lea rsi, [rsp + 0x20]
lea rax, str.SystemRoot_system32_
mov qword [rsp + 0x28], rax
mov rcx, qword [rsi]
call fcn.1800d352c
mov rdx, qword [rsi]
mov r8, rax
mov rcx, rdi
mov r14, rax
call fcn.1800d3a2c
test eax, eax
je 0x18007ffa2
add rsi, 8
lea rax, [rsp + 0x30]
cmp rsi, rax
jb 0x18007ff75
jmp 0x18007ffb1
lea rdx, [rdi + r14*2]
mov rcx, rbp
call fcn.18007f6a8
mov rbx, rax
lea rax, [rsp + 0x30]
cmp rsi, rax
jne 0x18007ffdc
mov rcx, rdi
call fcn.18007dc3c
test eax, eax
je 0x18007ffdc
mov rbx, rdi
xor edi, edi
jmp 0x18007ffdc
mov rdx, rdi
mov rcx, rbp
call fcn.18007f6a8
mov rbx, rax
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, rdi
jmp 0x180080083
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7e
jne 0x180080092
mov rcx, rsi
call fcn.18007db68
mov rsi, rax
test rax, rax
je 0x180080092
mov ecx, 0x37e4
call fcn.18007f1d4
test eax, eax
je 0x180080027
xor ecx, ecx
call fcn.1800805f8
jmp 0x18008002c
call fcn.1800809ac
mov rdi, rax
test rax, rax
je 0x180080080
mov rdx, rsi
mov rcx, rax
call fcn.18007f6a8
mov rbx, rax
test rax, rax
je 0x180080077
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x180080059
test al, 0x50
je 0x180080077
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x18008006c
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
xor ebx, ebx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LocalFree]
test rbx, rbx
je 0x180080092
xor ecx, ecx
jmp 0x18008009f
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1800800a5
lea ecx, [rax + 0x7e]
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, rbx
jmp 0x1800800b7
mov ecx, QueryPathOfRegTypeLib
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r14
ret
Function at 0x1800809ac
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov edx, eax
mov ecx, 0x40
add rdx, rdx
mov edi, eax
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rbx, rax
test rax, rax
je 0x180080a00
mov edx, edi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x1800809f5
cmp edi, eax
jae 0x180080a00
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
xor ebx, ebx
mov rax, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x1800817f8
Capabilities:
Check mutex on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
and qword [rcx], 0
mov sil, r8b
mov byte [rcx + 8], 0
mov rdi, rdx
cmp qword [rdx + 0x18], 8
mov rbx, rcx
jb 0x180081824
mov r8, qword [rdx]
jmp 0x180081827
mov r8, rdi
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
mov qword [rbx], rax
test rax, rax
je 0x18008185b
test sil, sil
je 0x18008185b
cmp byte [rbx + 8], 0
jne 0x18008185b
or edx, 0xffffffff
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
setne dl
mov byte [rbx + 8], dl
xor r8d, r8d
mov dl, 1
mov rcx, rdi
call fcn.1800542f4
mov rsi, qword [rsp + 0x48]
mov rax, rbx
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x180083c1c
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rdi, rcx
mov rsi, rdx
mov rcx, qword [rcx + 0x10]
test rcx, rcx
je 0x180083c47
mov r8, rdx
mov rdx, qword [rdi]
call fcn.180089338
jmp 0x180083cc0
cmp byte [0x1801a05c0], 0
jne 0x180083c8e
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x180083c7e
lea rdx, str.RegDeleteKeyExW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbx, rax
mov qword [0x1801a05b8], rax
jmp 0x180083c85
mov rbx, qword [0x1801a05b8]
mov byte [0x1801a05c0], 1
jmp 0x180083c95
mov rbx, qword [0x1801a05b8]
test rbx, rbx
je 0x180083cb4
mov rcx, rbx
call qword [fcn.18002e4c0]
mov r8d, dword [rdi + 8]
xor r9d, r9d
mov rcx, qword [rdi]
mov rdx, rsi
call rbx
jmp 0x180083cc0
mov rcx, qword [rdi]
mov rdx, rsi
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x180089338
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
cmp qword [rcx], 0
mov rsi, r8
mov rbp, rdx
mov rbx, rcx
je 0x1800893ac
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1800893c0
lea rdx, str.RegDeleteKeyTransactedW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rdi, rax
test rax, rax
je 0x1800893c0
mov rcx, rax
call qword [fcn.18002e4c0]
mov rcx, qword [rbx]
xor r9d, r9d
and qword [rsp + 0x28], 0
xor r8d, r8d
mov qword [rsp + 0x20], rcx
mov rdx, rsi
mov rcx, rbp
call rdi
jmp 0x1800893c5
cmp dword [rcx + 8], 0
je 0x1800893c0
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
jmp 0x1800893c5
mov eax, 1
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x1800896c0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rbx
push rsi
push rdi
push r14
push r15
sub rsp, 0x490
mov qword [rsp + 0x58], 0xfffffffffffffffe
mov rax, qword [0x1801933d0]
xor rax, rsp
mov qword [rsp + 0x480], rax
mov r15, r9
mov r14, r8
mov rbx, rdx
xor edi, edi
mov qword [rsp + 0x60], rdi
mov qword [rsp + 0x50], rcx
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x70], rdi
xor edx, edx
lea r8d, [rdi + 0x60]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rsi, rax
mov qword [rsp + 0x38], rax
test rax, rax
jne 0x18008974d
xor edx, edx
lea r8d, [rdi + 2]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rsi, rax
mov qword [rsp + 0x38], rax
test rax, rax
jne 0x18008974d
call fcn.180082f08
mov ebx, eax
jmp 0x18008985e
mov r8, r15
mov rdx, r14
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rbx, rax
test rax, rax
jne 0x18008976e
call fcn.180082f08
jmp 0x18008984d
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov r14, rax
mov qword [rsp + 0x40], rax
test rax, rax
je 0x180089764
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
mov dword [rsp + 0x30], eax
inc eax
cmp eax, ebx
jae 0x1800897a9
mov ebx, 0x8007000e
jmp 0x18008984f
mov ecx, eax
test eax, eax
je 0x1800897e1
xor edx, edx
or rax, 0xffffffffffffffff
div rcx
cmp rax, 2
jb 0x1800897d7
lea rdx, [rcx + rcx]
cmp rdx, 0x400
jbe 0x1800897e1
lea rcx, [rsp + 0x70]
call fcn.1800829ec
jmp 0x1800897eb
mov ecx, 0x80070216
call fcn.180057aec
lea rax, [rsp + 0x78]
mov qword [rsp + 0x70], rax
jmp 0x1800897fd
cmp qword [rsp + 0x70], rdi
je 0x18008979f
mov dword [rsp + 0x28], ebx
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x20], rax
mov r9d, ebx
mov r8, r14
xor edx, edx
lea ecx, [rdx + 3]
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
je 0x180089764
mov ecx, eax
mov rax, qword [rsp + 0x70]
mov word [rax + rcx*2], di
mov r8d, dword [rsp + 0x4e0]
mov rdx, qword [rsp + 0x70]
lea rcx, [rsp + 0x48]
call fcn.1800894ac
mov ebx, eax
test rsi, rsi
je 0x18008985e
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
nop
lea rax, [rsp + 0x78]
cmp qword [rsp + 0x70], rax
je 0x180089875
lea rcx, [rsp + 0x70]
call fcn.180083cd0
nop
mov eax, ebx
mov rcx, qword [rsp + 0x480]
xor rcx, rsp
call fcn.18009f760
add rsp, 0x490
pop r15
pop r14
pop rdi
pop rsi
pop rbx
ret
Function at 0x18008abe4
Capabilities:
Set registry value

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 r14
sub rsp, 0x30
xor ebx, ebx
mov rdi, r8
mov rbp, rdx
mov r14, rcx
test r8, r8
jne 0x18008ac12
lea eax, [rbx + 0xd]
jmp 0x18008ac47
mov rsi, rdi
mov rcx, rsi
call fcn.1800d352c
inc eax
lea rsi, [rsi + rax*2]
lea ebx, [rbx + rax*2]
cmp eax, 1
jne 0x18008ac15
mov rcx, qword [r14]
lea r9d, [rax + 6]
mov dword [rsp + 0x28], ebx
xor r8d, r8d
mov rdx, rbp
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r14
ret

Function at 0x18008ad0c
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x30
mov rbx, rcx
xor r9d, r9d
xor ecx, ecx
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
lea r8, str.GlobalCplShutdown_8D5475ED_3A12_4f45_9ACE_23289E49C0DF
xor edx, edx
mov ecx, 0x100000
mov qword [rbx + 0x50], rax
call qword [sym.imp.KERNEL32.dll_OpenEventW]
xor edi, edi
mov qword [rbx + 0x70], rax
cmp qword [rbx + 0x50], rdi
je 0x18008ad8a
test rax, rax
je 0x18008ad8a
lea rax, [rsp + 0x40]
mov r9, rbx
mov qword [rsp + 0x28], rax
lea r8, [0x1800861d0]
and dword [rsp + 0x20], edi
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdi, rax
test rax, rax
jne 0x18008ad8a
mov rcx, qword [rbx + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
and qword [rbx + 0x50], rdi
mov rax, rdi
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
Function at 0x1800945f8
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov rax, rsp
mov qword [rax + 8], rcx
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov qword [rax - 0x38], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov r14, r9
mov r12b, r8b
mov rsi, rdx
mov r13, rcx
mov r15, qword [rcx]
mov rbx, qword [r15 + 8]
mov dil, 1
xor ecx, ecx
jmp 0x1800946e5
mov r15, rbx
test r12b, r12b
je 0x18009468f
mov eax, dword [r14]
cmp dword [rbx + 0x1c], eax
jae 0x18009464e
mov dil, 1
jmp 0x180094689
jne 0x180094686
movzx eax, word [r14 + 4]
cmp word [rbx + 0x20], ax
jb 0x180094649
jne 0x180094686
movzx eax, word [r14 + 6]
cmp word [rbx + 0x22], ax
jb 0x180094649
jne 0x180094686
lea rdx, [r14 + 8]
lea rcx, [rbx + 0x24]
mov r8d, 8
call fcn.1800c8ef0
xor ecx, ecx
test eax, eax
mov dil, 1
js 0x180094689
mov dil, cl
xor dil, 1
jmp 0x1800946d7
mov eax, dword [rbx + 0x1c]
cmp dword [r14], eax
jae 0x18009469c
mov dil, 1
jmp 0x1800946d7
jne 0x1800946d4
movzx eax, word [rbx + 0x20]
cmp word [r14 + 4], ax
jb 0x180094697
jne 0x1800946d4
movzx eax, word [rbx + 0x22]
cmp word [r14 + 6], ax
jb 0x180094697
jne 0x1800946d4
lea rdx, [rbx + 0x24]
lea rcx, [r14 + 8]
mov r8d, 8
call fcn.1800c8ef0
xor ecx, ecx
test eax, eax
mov dil, 1
js 0x1800946d7
mov dil, cl
test dil, dil
je 0x1800946e1
mov rbx, qword [rbx]
jmp 0x1800946e5
mov rbx, qword [rbx + 0x10]
cmp byte [rbx + 0x19], cl
je 0x180094639
mov rbx, r15
test dil, dil
je 0x18009477a
mov rax, qword [r13]
cmp r15, qword [rax]
jne 0x18009473a
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r14
mov r9, r15
mov r8b, 1
lea rdx, [rsp + 0x38]
mov rcx, r13
call fcn.180092c28
mov rax, qword [rax]
mov qword [rsi], rax
mov byte [rsi + 8], 1
mov rax, rsi
jmp 0x180094809
cmp byte [r15 + 0x19], cl
je 0x180094746
mov rbx, qword [r15 + 0x10]
jmp 0x18009477a
mov rax, qword [r15]
cmp byte [rax + 0x19], cl
jne 0x18009475c
mov rbx, rax
mov rax, qword [rax + 0x10]
cmp byte [rax + 0x19], cl
je 0x18009474e
jmp 0x18009477a
mov rax, qword [r15 + 8]
jmp 0x18009476e
cmp rbx, qword [rax]
jne 0x180094773
mov rbx, rax
mov rax, qword [rax + 8]
cmp byte [rax + 0x19], cl
je 0x180094762
cmp byte [rbx + 0x19], cl
cmove rbx, rax
mov eax, dword [r14]
cmp dword [rbx + 0x1c], eax
jb 0x1800947d7
jne 0x1800947b5
movzx eax, word [r14 + 4]
cmp word [rbx + 0x20], ax
jb 0x1800947d7
jne 0x1800947b5
movzx eax, word [r14 + 6]
cmp word [rbx + 0x22], ax
jb 0x1800947d7
jne 0x1800947b5
lea rdx, [r14 + 8]
lea rcx, [rbx + 0x24]
mov r8d, 8
call fcn.1800c8ef0
test eax, eax
js 0x1800947d7
mov edx, 1
lea r8d, [rdx + 0x2f]
mov rcx, qword [rsp + 0x90]
call fcn.180057804
mov qword [rsi], rbx
mov byte [rsi + 8], 0
mov rax, rsi
jmp 0x180094809
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r14
mov r9, r15
mov r8b, dil
lea rdx, [rsp + 0x38]
mov rcx, r13
call fcn.180092c28
mov rax, qword [rax]
mov qword [rsi], rax
mov byte [rsi + 8], 1
mov rax, rsi
lea r11, [rsp + 0x40]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x180094824
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov rax, rsp
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov qword [rax - 0x38], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov r14, r9
mov r12b, r8b
mov rsi, rdx
mov r13, rcx
mov r15, qword [rcx]
mov rbx, qword [r15 + 8]
mov dil, 1
xor ecx, ecx
jmp 0x18009490d
mov r15, rbx
test r12b, r12b
je 0x1800948b7
mov eax, dword [r14]
cmp dword [rbx + 0x1c], eax
jae 0x180094876
mov dil, 1
jmp 0x1800948b1
jne 0x1800948ae
movzx eax, word [r14 + 4]
cmp word [rbx + 0x20], ax
jb 0x180094871
jne 0x1800948ae
movzx eax, word [r14 + 6]
cmp word [rbx + 0x22], ax
jb 0x180094871
jne 0x1800948ae
lea rdx, [r14 + 8]
lea rcx, [rbx + 0x24]
mov r8d, 8
call fcn.1800c8ef0
xor ecx, ecx
test eax, eax
mov dil, 1
js 0x1800948b1
mov dil, cl
xor dil, 1
jmp 0x1800948ff
mov eax, dword [rbx + 0x1c]
cmp dword [r14], eax
jae 0x1800948c4
mov dil, 1
jmp 0x1800948ff
jne 0x1800948fc
movzx eax, word [rbx + 0x20]
cmp word [r14 + 4], ax
jb 0x1800948bf
jne 0x1800948fc
movzx eax, word [rbx + 0x22]
cmp word [r14 + 6], ax
jb 0x1800948bf
jne 0x1800948fc
lea rdx, [rbx + 0x24]
lea rcx, [r14 + 8]
mov r8d, 8
call fcn.1800c8ef0
xor ecx, ecx
test eax, eax
mov dil, 1
js 0x1800948ff
mov dil, cl
test dil, dil
je 0x180094909
mov rbx, qword [rbx]
jmp 0x18009490d
mov rbx, qword [rbx + 0x10]
cmp byte [rbx + 0x19], cl
je 0x180094861
mov rbx, r15
test dil, dil
je 0x18009499c
mov rax, qword [r13]
cmp r15, qword [rax]
jne 0x18009495c
mov al, byte [rsp + 0x90]
mov byte [rsp + 0x28], al
mov qword [rsp + 0x20], r14
mov r9, r15
mov r8b, 1
lea rdx, [rsp + 0x70]
mov rcx, r13
call fcn.180092ea8
mov rax, qword [rax]
mov qword [rsi], rax
mov byte [rsi + 8], 1
mov rax, rsi
jmp 0x180094a14
cmp byte [r15 + 0x19], cl
je 0x180094968
mov rbx, qword [r15 + 0x10]
jmp 0x18009499c
mov rax, qword [r15]
cmp byte [rax + 0x19], cl
jne 0x18009497e
mov rbx, rax
mov rax, qword [rax + 0x10]
cmp byte [rax + 0x19], cl
je 0x180094970
jmp 0x18009499c
mov rax, qword [r15 + 8]
jmp 0x180094990
cmp rbx, qword [rax]
jne 0x180094995
mov rbx, rax
mov rax, qword [rax + 8]
cmp byte [rax + 0x19], cl
je 0x180094984
cmp byte [rbx + 0x19], cl
cmove rbx, rax
mov eax, dword [r14]
cmp dword [rbx + 0x1c], eax
jb 0x1800949e4
jne 0x1800949d9
movzx eax, word [r14 + 4]
cmp word [rbx + 0x20], ax
jb 0x1800949e4
jne 0x1800949d9
movzx eax, word [r14 + 6]
cmp word [rbx + 0x22], ax
jb 0x1800949e4
jne 0x1800949d9
lea rdx, [r14 + 8]
lea rcx, [rbx + 0x24]
mov r8d, 8
call fcn.1800c8ef0
xor ecx, ecx
test eax, eax
js 0x1800949e4
mov qword [rsi], rbx
mov byte [rsi + 8], cl
mov rax, rsi
jmp 0x180094a14
mov al, byte [rsp + 0x90]
mov byte [rsp + 0x28], al
mov qword [rsp + 0x20], r14
mov r9, r15
mov r8b, dil
lea rdx, [rsp + 0x70]
mov rcx, r13
call fcn.180092ea8
mov rax, qword [rax]
mov qword [rsi], rax
mov byte [rsi + 8], 1
mov rax, rsi
lea r11, [rsp + 0x40]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x180096b64
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
push rbp
lea rbp, [rax - 0x5f]
sub rsp, 0x90
mov qword [rbp + 7], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov rax, qword [0x1801933d0]
xor rax, rsp
mov qword [rbp + 0x47], rax
and dword [rbp - 9], 0
mov byte [rbp + 0xf], 0
lea rcx, [rbp + 0x27]
call fcn.180058d68
nop
and dword [rsp + 0x28], 0
mov byte [rsp + 0x20], 0
mov r9d, 0x20019
mov r8, rax
mov rdx, 0xffffffff80000002
lea rcx, [rbp + 0xf]
call fcn.1800579d8
test eax, eax
sete bl
xor r8d, r8d
mov dl, 1
lea rcx, [rbp + 0x27]
call fcn.1800542f4
test bl, bl
je 0x180096c19
mov dword [rbp - 5], 4
lea rdx, [0x180193380]
cmp qword [reloc.OLEAUT32.dll_VariantInit], 8
cmovae rdx, qword [0x180193380]
lea rax, [rbp - 5]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 9]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 1]
xor r8d, r8d
mov rcx, qword [rbp + 0x17]
call sub.ADVAPI32.dll_RegQueryValueExW
mov ebx, dword [rbp - 9]
cmp byte [rbp + 0xf], 0
je 0x180096c2c
mov rcx, qword [rbp + 0x17]
call sub.ADVAPI32.dll_RegCloseKey
nop
mov eax, ebx
mov rcx, qword [rbp + 0x47]
xor rcx, rsp
call fcn.18009f760
mov rbx, qword [rsp + 0xa0]
add rsp, 0x90
pop rbp
ret

Function at 0x180097b54
Capabilities:
Check mutex on windows

Disassembly:
mov rax, rsp
push rbp
lea rbp, [rax - 0x5f]
sub rsp, 0x90
mov qword [rbp - 0x19], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rdi
mov rax, qword [0x1801933d0]
xor rax, rsp
mov qword [rbp + 0x4f], rax
mov rbx, rcx
mov qword [rbp + 7], 7
xor edi, edi
mov qword [rbp - 1], rdi
mov word [rbp - 0x11], di
lea rcx, str.NvCplApi_shared_mutex
call fcn.1800d352c
mov r8, rax
lea rdx, str.NvCplApi_shared_mutex
lea rcx, [rbp - 0x11]
call fcn.1800543f0
nop
call qword [sym.imp.KERNEL32.dll_WTSGetActiveConsoleSessionId]
mov edx, eax
lea rcx, [rbp + 0x2f]
call fcn.18005ef78
nop
mov r8, rax
lea rdx, [0x18014d4f8]
lea rcx, [rbp + 0xf]
call fcn.18005a7b0
nop
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rdx, rax
lea rcx, [rbp - 0x11]
call fcn.180053784
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rbp + 0xf]
call fcn.1800542f4
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rbp + 0x2f]
call fcn.1800542f4
lea r8, [rbp - 0x11]
cmp qword [rbp + 7], 8
cmovae r8, qword [rbp - 0x11]
lea edx, [rdi + 1]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
mov qword [rbx], rax
test rax, rax
je 0x180097c3e
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x180097c3e
mov dil, 1
xor r8d, r8d
mov dl, 1
lea rcx, [rbp - 0x11]
call fcn.1800542f4
mov al, dil
mov rcx, qword [rbp + 0x4f]
xor rcx, rsp
call fcn.18009f760
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
Function at 0x1800c2c10
Capabilities:
Get thread local storage value

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rdx
mov qword [rax + 8], rcx
push rbp
push rsi
push rdi
sub rsp, 0x90
mov qword [rax - 0x78], 0xfffffffffffffffe
mov qword [rax + 0x20], rbx
mov rbx, r8
mov rsi, rdx
mov ecx, dword [0x180193484]
cmp ecx, 0xffffffff
je 0x1800c2c50
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbp, rax
test rax, rax
jne 0x1800c2c6d
call fcn.1800c3a70
mov ecx, dword [0x180193484]
cmp ecx, 0xffffffff
jne 0x1800c2c64
xor ebp, ebp
jmp 0x1800c2c6d
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbp, rax
mov rax, qword [rsi]
mov qword [rsp + 0x38], rax
mov rcx, qword [rsi + 8]
mov qword [rsp + 0x40], rcx
test rcx, rcx
je 0x1800c2c91
lock inc dword [rcx + 8]
mov rcx, qword [rsp + 0x40]
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rcx
test rcx, rcx
je 0x1800c2ca9
lock inc dword [rcx + 8]
mov rcx, qword [rsp + 0x40]
mov qword [rsp + 0x68], rbx
or edi, 0xffffffff
test rcx, rcx
je 0x1800c2ce8
mov eax, edi
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x1800c2ce8
mov rbx, qword [rsp + 0x40]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 8]
mov eax, edi
lock xadd dword [rbx + 0xc], eax
cmp eax, 1
jne 0x1800c2ce8
mov rcx, qword [rsp + 0x40]
mov rax, qword [rcx]
call qword [rax + 0x10]
nop
lea r8, [rsp + 0x58]
lea rdx, [rsp + 0xb0]
lea rcx, [rsp + 0x70]
call fcn.1800c2560
nop
mov rdx, rax
lea rcx, [rbp + 0x28]
call fcn.1800c1f20
lea r9, [rax + 0x20]
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, [rsp + 0x48]
lea rcx, [rbp + 0x28]
call fcn.1800c2340
nop
mov rbx, qword [rsp + 0x80]
test rbx, rbx
je 0x1800c2d5f
mov eax, edi
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x1800c2d5f
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 8]
mov eax, edi
lock xadd dword [rbx + 0xc], eax
cmp eax, 1
jne 0x1800c2d5f
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x10]
nop
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x1800c2d9b
mov eax, edi
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x1800c2d9b
mov rbx, qword [rsp + 0x60]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 8]
mov eax, edi
lock xadd dword [rbx + 0xc], eax
cmp eax, 1
jne 0x1800c2d9b
mov rcx, qword [rsp + 0x60]
mov rax, qword [rcx]
call qword [rax + 0x10]
nop
mov rbx, qword [rsi + 8]
test rbx, rbx
je 0x1800c2dcd
mov eax, edi
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x1800c2dcd
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 8]
lock xadd dword [rbx + 0xc], edi
cmp edi, 1
jne 0x1800c2dcd
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x10]
nop
mov rbx, qword [rsp + 0xc8]
add rsp, 0x90
pop rdi
pop rsi
pop rbp
ret