joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140014170
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x38
xor r15d, r15d
mov rsi, rcx
cmp rcx, r15
jne 0x140014192
xor eax, eax
jmp 0x1400143bf
mov dword [rsp + 0x88], r15d
mov dword [rsp + 0x80], r15d
call fcn.140014fb4
mov rcx, qword [rsi]
mov r12, r15
cmp rcx, r15
je 0x1400141ba
call fcn.14001b900
mov r12, rax
mov ebp, r15d
or edi, 0xffffffff
cmp ebp, r15d
jne 0x1400141d4
cmp dword [0x1400be7e8], r15d
je 0x1400141f3
lea r14d, [rdi + 3]
jmp 0x140014200
cmp ebp, 1
jne 0x1400141f3
call fcn.140014fb4
mov ecx, dword [0x1400bfb04]
cmp eax, r15d
cmovne ecx, dword [0x1400be7f4]
cmp ecx, r15d
je 0x1400141fd
test byte [rsi + 0x18], 0x10
je 0x140014343
mov r14d, r15d
mov qword [rsp + 0x98], r15
mov ebx, r15d
cmp dword [0x1400be7f8], r15d
je 0x140014226
lea rcx, [0x1400be770]
mov ebx, 1
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
movzx r9d, word [rsi + 0x18]
mov rcx, qword [rsi + 0x10]
lea r8, [rsp + 0x90]
shr r9d, 1
lea rdx, [rsp + 0x98]
mov qword [rsp + 0x20], r15
and r9d, 0x10
mov qword [rsp + 0x90], r15
or r9d, r14d
call fcn.140012af4
mov edi, eax
cmp eax, r15d
jne 0x140014328
mov rcx, qword [rsp + 0x90]
mov r13, qword [rsp + 0x98]
cmp rcx, r15
jne 0x14001427f
mov rcx, qword [r13]
lea rax, [rsp + 0x80]
lea r9, [rsp + 0x88]
xor r8d, r8d
mov qword [rsp + 0x28], rax
mov rdx, r12
mov qword [rsp + 0x20], r15
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp dword [rsp + 0x80], 2
mov edi, eax
jae 0x1400142ca
cmp dword [rsp + 0x88], 1
je 0x1400142c5
cmp dword [rsp + 0x88], 2
jne 0x1400142ca
mov edi, 2
cmp edi, 0x3f2
je 0x1400142df
cmp edi, 0x3fa
je 0x1400142df
cmp edi, 6
jne 0x140014314
movsxd rcx, edi
mov edx, 0x796d7463
call fcn.140011e00
mov edx, 0x796d746f
xor ecx, ecx
call fcn.140011e00
lea rcx, [0x1400be800]
mov rdx, r13
call fcn.140012a68
mov qword [rsp + 0x98], r15
jmp 0x140014226
lea rcx, [0x1400be800]
mov rdx, r13
call fcn.140012944
cmp edi, r15d
je 0x14001434f
cmp dword [0x1400be7f8], r15d
je 0x140014343
cmp ebx, r15d
je 0x140014343
lea rcx, [0x1400be770]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
inc ebp
cmp ebp, 2
jge 0x14001436a
jmp 0x1400141bd
cmp dword [0x1400be7f8], r15d
je 0x14001436f
cmp ebx, r15d
je 0x14001436f
lea rcx, [0x1400be770]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp edi, r15d
jne 0x140014397
cmp dword [rsp + 0x88], 2
je 0x140014382
mov al, byte [rsi + 0x18]
and al, 0xf
cmp al, 2
jne 0x140014397
mov ecx, dword [rsp + 0x80]
call fcn.140011f6c
mov dword [rsp + 0x80], eax
jmp 0x14001439e
mov eax, dword [rsp + 0x80]
cmp r12, r15
je 0x1400143b2
mov rcx, r12
call fcn.140009e7c
mov eax, dword [rsp + 0x80]
cmp edi, r15d
je 0x1400143bf
mov rcx, rsi
call fcn.140012428
add rsp, 0x38
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x1400143e8
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r12
sub rsp, 0x30
xor edx, edx
mov rdi, rcx
call fcn.1400133c4
test eax, eax
jne 0x140014572
cmp dword [0x1400be7e8], eax
je 0x14001456e
test rdi, rdi
je 0x14001456e
xor ebp, ebp
call fcn.140014fb4
mov ecx, dword [0x1400bfb04]
test eax, eax
cmovne ecx, dword [0x1400be7f4]
test ecx, ecx
je 0x140014445
test byte [rdi + 0x18], 0x10
je 0x14001456e
and qword [rsp + 0x58], rbp
and qword [rsp + 0x60], rbp
xor ebx, ebx
cmp dword [0x1400be7f8], ebx
je 0x14001446b
lea rcx, [0x1400be770]
mov ebx, 1
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
and qword [rsp + 0x20], rbp
movzx r9d, word [rdi + 0x18]
mov rcx, qword [rdi + 0x10]
lea r8, [rsp + 0x60]
and r9d, 0x20
lea rdx, [rsp + 0x58]
or r9d, 4
shr r9d, 1
call fcn.140012af4
mov esi, eax
test eax, eax
jne 0x140014548
mov rcx, qword [rdi]
test rcx, rcx
je 0x1400144ad
call fcn.14001b900
mov rbp, rax
mov rcx, qword [rsp + 0x60]
mov r12, qword [rsp + 0x58]
test rcx, rcx
jne 0x1400144c0
mov rcx, qword [r12]
and qword [rsp + 0x28], 0
and qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov rdx, rbp
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
movsxd rsi, eax
test rbp, rbp
je 0x1400144eb
mov rcx, rbp
call fcn.140009e7c
cmp esi, 0x3f2
je 0x140014500
cmp esi, 0x3fa
je 0x140014500
cmp esi, 6
jne 0x140014539
mov rcx, rsi
mov edx, 0x796d7463
call fcn.140011e00
mov edx, 0x796d7468
xor ecx, ecx
call fcn.140011e00
lea rcx, [0x1400be800]
mov rdx, r12
call fcn.140012a68
and qword [rsp + 0x58], 0
and qword [rsp + 0x20], 0
jmp 0x140014470
lea rcx, [0x1400be800]
mov rdx, r12
call fcn.140012944
xor edi, edi
test esi, esi
sete dil
cmp dword [0x1400be7f8], 0
je 0x14001456a
test ebx, ebx
je 0x14001456a
lea rcx, [0x1400be770]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test edi, edi
jne 0x140014572
xor eax, eax
jmp 0x140014577
mov eax, 1
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x68]
add rsp, 0x30
pop r12
pop rdi
pop rsi
ret

Function at 0x1400145fc
Capabilities:
Query or enumerate registry value

Disassembly:
sub rsp, 0x38
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r9
mov r9, r8
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
add rsp, 0x38
ret

Function at 0x140014620
Capabilities:
Set registry value

Disassembly:
sub rsp, 0x38
mov eax, dword [rsp + 0x60]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], r9
mov r9d, r8d
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
add rsp, 0x38
ret

Function at 0x14001464c
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
sub rsp, 0x48
mov rax, qword [rsp + 0x80]
mov qword [r11 - 0x10], rax
mov rax, qword [rsp + 0x78]
mov qword [r11 - 0x18], rax
mov rax, qword [rsp + 0x70]
mov qword [r11 - 0x20], rax
and qword [r11 - 0x28], 0
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
add rsp, 0x48
ret
Function at 0x14001469c
Capabilities:
Print debug messages

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14002d894
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov edi, r8d
mov rsi, rdx
mov rbx, rcx
call fcn.14002d618
mov r8d, edi
mov rdx, rsi
mov rcx, rbx
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp fcn.14002d67c

Function at 0x14001495c
Capabilities:
Check mutex on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x460
mov rax, qword [0x140050318]
xor rax, rsp
mov qword [rsp + 0x450], rax
mov rax, qword [rsp + 0x4c8]
mov r13, qword [rsp + 0x4c0]
mov dword [rsp + 0x40], r9d
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x48], r8
mov rbx, rcx
test rcx, rcx
jne 0x1400149ad
xor eax, eax
jmp 0x140014af0
and qword [rcx], 0
mov r9d, dword [rsp + 0x4d0]
mov r8, rdx
lea rcx, [rsp + 0x50]
mov edi, 1
mov edx, 0x400
mov dword [rsp + 0x20], edi
call fcn.1400179c4
mov ebp, dword [rsp + 0x4d0]
shr ebp, 0x1a
xor esi, esi
mov r12, rax
and dword [rsp + 0x30], esi
not ebp
and ebp, edi
test r12, r12
je 0x140014a0d
mov edx, dword [rsp + 0x4d0]
mov r8, r12
mov ecx, 0x120001
shr edx, 0x17
and edx, edi
call qword [sym.imp.KERNEL32.dll_OpenMutexA]
mov qword [rbx], rax
cmp qword [rbx], rsi
jne 0x140014a90
test ebp, ebp
je 0x140014a90
mov ecx, dword [rsp + 0x4d0]
lea rdx, [rsp + 0x38]
mov r8d, edi
xor r14d, r14d
call fcn.140017870
test eax, eax
je 0x140014a80
mov edx, dword [rsp + 0x4d0]
mov rcx, qword [rsp + 0x38]
mov r8, r12
shr edx, 0x19
and edx, edi
call qword [sym.imp.KERNEL32.dll_CreateMutexA]
mov qword [rbx], rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [rsp + 0x4d0]
lea rdx, [rsp + 0x38]
mov r8d, edi
mov r14d, eax
call fcn.1400175a8
cmp r14d, 5
jne 0x140014a80
cmp dword [rsp + 0x30], esi
jne 0x140014a80
mov dword [rsp + 0x30], edi
jmp 0x1400149eb
cmp qword [rbx], rsi
je 0x140014a90
cmp r14d, 0xb7
setne sil
cmp qword [rbx], 0
je 0x140014a9c
cmp qword [rbx], 0xffffffffffffffff
jne 0x140014ab4
test ebp, ebp
je 0x140014aac
xor edx, edx
mov ecx, 0x787a6c65
call fcn.140011d08
and qword [rbx], 0
xor esi, esi
xor edi, edi
mov r14, qword [rsp + 0x48]
test r14, r14
je 0x140014ae5
movsxd rax, dword [rsp + 0x40]
test eax, eax
jle 0x140014ae5
test r12, r12
lea r8, [0x1400514d0]
mov rdx, rax
cmovne r8, r12
or r9, 0xffffffffffffffff
mov rcx, r14
call qword [sym.imp.MSVCR90.dll_strncpy_s]
test r13, r13
je 0x140014aee
mov dword [r13], esi
mov eax, edi
mov rcx, qword [rsp + 0x450]
xor rcx, rsp
call fcn.140008a98
add rsp, 0x460
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140014ff0
Capabilities:
Create directory

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x240
mov rax, qword [0x140050318]
xor rax, rsp
mov qword [rsp + 0x230], rax
mov r8, rcx
or rdi, 0xffffffffffffffff
lea rcx, [rsp + 0x20]
mov r9, rdi
mov edx, 0x104
call qword [sym.imp.MSVCR90.dll_wcsncpy_s]
xor eax, eax
mov rcx, rdi
lea rdi, [rsp + 0x20]
mov ebp, 0x5c
xor esi, esi
repne scasw ax, word [rdi]
not rcx
lea rbx, [rsp + rcx*2 + 0x1e]
lea rax, [rbx - 2]
cmp bp, word [rax]
jne 0x14001505e
mov rbx, rax
mov word [rax], si
lea rax, [rsp + 0x20]
mov rdi, rbx
cmp rbx, rax
jbe 0x140015099
cmp bp, word [rdi]
jne 0x140015081
lea rcx, [rsp + 0x20]
mov word [rdi], si
call fcn.140022b90
cmp eax, esi
jne 0x140015091
lea rax, [rsp + 0x20]
sub rdi, 2
cmp rdi, rax
jbe 0x140015094
jmp 0x14001506b
mov word [rdi], bp
cmp rdi, rbx
ja 0x1400150c9
cmp word [rdi], si
jne 0x1400150bf
lea rcx, [rsp + 0x20]
xor edx, edx
call fcn.14001468c
cmp eax, esi
jne 0x1400150bc
lea rcx, [rsp + 0x20]
call fcn.140022b90
cmp eax, esi
je 0x1400150c5
mov word [rdi], bp
add rdi, 2
jmp 0x140015094
xor eax, eax
jmp 0x1400150ce
mov eax, 1
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.140008a98
lea r11, [rsp + 0x240]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret

Function at 0x1400151bc
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rdi, rdx
mov rsi, rcx
mov edx, r8d
mov rcx, rdi
mov ebx, r8d
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x1400151e8
xor eax, eax
jmp 0x140015215
mov r8d, ebx
mov rdx, rdi
mov rcx, rsi
call fcn.140015158
lea ecx, [rbx - 1]
lea rcx, [rdi + rcx*2]
cmp rax, rcx
jb 0x140015210
xor edx, edx
mov ecx, 0x776a6b69
call fcn.140011d08
jmp 0x1400151e4
mov eax, 1
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x14001532c
Capabilities:
Get common file path
Get disk size

Disassembly:
push rbx
sub rsp, 0x260
mov rax, qword [0x140050318]
xor rax, rsp
mov qword [rsp + 0x250], rax
lea rcx, [rsp + 0x40]
mov edx, 0x104
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x1400153a0
lea r9, [rsp + 0x28]
lea r8, [rsp + 0x20]
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x1400153a0
mov rdx, qword [rsp + 0x20]
mov rbx, qword [rsp + 0x28]
mov ecx, 7
shr rdx, 0x14
shr rbx, 0x14
call fcn.14000eb18
mov edx, ebx
mov ecx, 8
call fcn.14000eb18
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.140008a98
add rsp, 0x260
pop rbx
ret
Function at 0x140015620
Capabilities:
Get keyboard layout

Disassembly:
sub rsp, 0x28
and dword [rsp + 0x30], 0
lea rdx, [rsp + 0x30]
mov ecx, 9
call fcn.14000bce0
test eax, eax
jne 0x140015651
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetKeyboardLayout]
mov ecx, 9
movzx edx, ax
call fcn.14000eb18
lea rdx, [rsp + 0x30]
mov ecx, 0x2199
call fcn.14000bce0
test eax, eax
jne 0x14001567a
xor edx, edx
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetKeyboardLayoutList]
mov ecx, 0x2199
mov edx, eax
call fcn.14000eb18
add rsp, 0x28
ret

Function at 0x140015680
Capabilities:
Query or enumerate registry key

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x100
mov rax, qword [0x140050318]
xor rax, rsp
mov qword [rsp + 0xf0], rax
xor ebp, ebp
lea r8, [rsp + 0x68]
lea rcx, [0x1400512e0]
lea edx, [rbp + 1]
xor r9d, r9d
mov esi, ebp
mov edi, ebp
mov dword [rsp + 0x60], ebp
mov qword [rsp + 0x68], rbp
call fcn.140013170
cmp eax, ebp
jne 0x140015768
mov rcx, qword [rsp + 0x68]
mov qword [rsp + 0x50], rbp
mov qword [rsp + 0x48], rbp
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x38], rbp
mov qword [rsp + 0x30], rbp
lea r9, [rsp + 0x60]
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], rbp
call fcn.14001458c
cmp eax, ebp
jne 0x140015768
mov eax, dword [rsp + 0x60]
cmp eax, 1
jb 0x140015768
lea esi, [rbp + 1]
mov ebx, ebp
cmp eax, ebp
jbe 0x140015768
mov rcx, qword [rsp + 0x68]
lea r8, [rsp + 0x70]
mov r9d, 0x40
mov edx, ebx
call sub.ADVAPI32.dll_RegEnumKeyW
cmp eax, ebp
jne 0x140015768
lea rdx, str.v2.0
lea rcx, [rsp + 0x70]
mov r8d, esi
mov word [rsp + 0x78], bp
call fcn.1400210b8
cmp eax, ebp
jne 0x140015766
inc ebx
cmp ebx, dword [rsp + 0x60]
jb 0x140015724
jmp 0x140015768
mov edi, esi
mov rcx, qword [rsp + 0x68]
cmp rcx, rbp
je 0x14001577d
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x68], rbp
mov edx, esi
mov ecx, 0x10f3
call fcn.14000eb18
mov edx, edi
mov ecx, 0x18dd
call fcn.14000eb18
mov rcx, qword [rsp + 0xf0]
xor rcx, rsp
call fcn.140008a98
lea r11, [rsp + 0x100]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x140015838
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x50
lea rcx, [rsp + 0x20]
call fcn.140014724
test eax, eax
jne 0x140015860
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
movzx edx, word [rsp + 0x20]
mov ecx, 0x11
call fcn.14000eb18
mov edx, dword [rsp + 0x40]
mov ecx, 0x12
call fcn.14000eb18
lea rcx, [0x140050100]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140015982
lea rdx, str.GetLogicalProcessorInformation
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbx, rax
test rax, rax
je 0x140015982
and dword [rsp + 0x60], 0
lea rdx, [rsp + 0x60]
xor ecx, ecx
call rbx
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x140015982
mov ecx, dword [rsp + 0x60]
call fcn.140009ce4
mov rdi, rax
test rax, rax
je 0x14001597a
lea rdx, [rsp + 0x60]
mov rcx, rax
call rbx
test eax, eax
je 0x14001597a
mov ecx, dword [rsp + 0x60]
xor r10d, r10d
xor esi, esi
shr ecx, 5
xor ebx, ebx
test ecx, ecx
je 0x14001597a
mov r9, rdi
mov r11d, ecx
cmp dword [r9 + 8], 0
je 0x14001592a
cmp dword [r9 + 8], 2
jne 0x14001593e
mov rcx, qword [r9]
call fcn.140015228
cmp esi, eax
cmova eax, esi
mov esi, eax
jmp 0x14001593e
mov rcx, qword [r9]
inc ebx
call fcn.140015228
cmp r10d, eax
cmova eax, r10d
mov r10d, eax
add r9, 0x20
sub r11, 1
jne 0x14001590b
test r10d, r10d
je 0x14001595a
mov edx, r10d
mov ecx, 0x19e1
call fcn.14000eb18
test esi, esi
je 0x14001596a
mov edx, esi
mov ecx, 0x19e2
call fcn.14000eb18
test ebx, ebx
je 0x14001597a
mov edx, ebx
mov ecx, 0x19e0
call fcn.14000eb18
mov rcx, rdi
call fcn.140009d1c
mov rbx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret
Function at 0x140015994
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
push rbx
sub rsp, 0x1a0
mov rax, qword [0x140050318]
xor rax, rsp
mov qword [rsp + 0x190], rax
mov rax, qword [str.KERNEL32.DLL]
and dword [rsp + 0x30], 0
and dword [rsp + 0x50], 0
lea rcx, [r11 - 0x38]
xor edx, edx
mov r8d, 0x118
mov qword [rcx], rax
mov rax, qword [0x1400518f8]
mov qword [rcx + 8], rax
mov rax, qword [0x140051900]
mov qword [rcx + 0x10], rax
movzx eax, word [0x140051908]
mov word [rcx + 0x18], ax
lea rcx, [rsp + 0x54]
call fcn.140008ebc
lea r11, [rsp + 0x40]
lea rdx, str.SYSTEMCurrentControlSetControlWindows
mov r9d, 1
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], r11
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x140015a7c
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x34]
lea r9, [rsp + 0x48]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x38]
lea rdx, str.CSDBuildNumber
xor r8d, r8d
mov dword [rsp + 0x34], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x140015a6f
mov edx, dword [rsp + 0x38]
mov ecx, 0x22df
call fcn.14000eb18
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x140015a88
xor edx, edx
mov ecx, 0x66397234
call fcn.140011d08
lea rcx, [rsp + 0x50]
mov dword [rsp + 0x50], 0x11c
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x140015b1e
mov edx, dword [rsp + 0x5c]
mov ecx, 0x1a
call fcn.14000eb18
movzx edx, word [rsp + 0x164]
movzx eax, word [rsp + 0x166]
shl edx, 0x10
mov ecx, 0x43
or edx, eax
call fcn.14000eb18
movzx edx, word [rsp + 0x168]
mov ecx, 0x3a5
call fcn.14000eb18
mov edx, dword [rsp + 0x54]
mov ecx, 0x22e1
call fcn.14000eb18
mov edx, dword [rsp + 0x58]
mov ecx, 0x22e2
call fcn.14000eb18
movzx edx, word [rsp + 0x164]
mov ecx, 0x22e4
call fcn.14000eb18
movzx edx, word [rsp + 0x166]
mov ecx, 0x22e5
call fcn.14000eb18
call fcn.1400229ac
test eax, eax
je 0x140015bbf
lea rcx, [rsp + 0x170]
call fcn.140002010
mov rbx, rax
test rax, rax
jne 0x140015b47
mov ecx, 0x38317137
jmp 0x140015b9f
lea rdx, str.GetProductInfo
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
jne 0x140015b63
mov ecx, 0x38317138
jmp 0x140015b9f
movzx r9d, word [rsp + 0x166]
movzx r8d, word [rsp + 0x164]
mov edx, dword [rsp + 0x58]
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x20], rcx
mov ecx, dword [rsp + 0x54]
call rax
mov ecx, 0x1af7
test eax, eax
jne 0x140015ba8
or edx, 0xffffffff
call fcn.14000eb18
mov ecx, 0x38317139
xor edx, edx
call fcn.140011d08
jmp 0x140015bb1
mov edx, dword [rsp + 0x30]
call fcn.14000eb18
test rbx, rbx
je 0x140015bbf
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, qword [rsp + 0x190]
xor rcx, rsp
call fcn.140008a98
add rsp, 0x1a0
pop rbx
ret
Function at 0x140015d54
Capabilities:
Get file version info

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
push rbp
push rsi
push rdi
sub rsp, 0x20
and dword [rax + 0x18], 0
and dword [rax + 0x10], 0
and qword [rax + 0x20], 0
mov rsi, rdx
mov rbp, rcx
test rdx, rdx
jne 0x140015d81
xor ebx, ebx
jmp 0x140015e1c
lea rdx, [rsp + 0x50]
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov ebx, eax
test eax, eax
je 0x140015d7a
mov rcx, rbx
call fcn.140009ce4
mov rdi, rax
test rax, rax
jne 0x140015da8
mov ecx, 0x33753468
jmp 0x140015e06
mov r9, rax
mov r8d, ebx
xor edx, edx
mov rcx, rbp
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
jne 0x140015dc3
mov ecx, 0x33753469
jmp 0x140015e06
lea r9, [rsp + 0x48]
lea r8, [rsp + 0x58]
lea rdx, [0x1400509ec]
mov rcx, rdi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x140015e01
mov r8d, 0x34
cmp dword [rsp + 0x48], r8d
jne 0x140015e01
mov rdx, qword [rsp + 0x58]
mov rcx, rsi
call fcn.140008ec4
mov ebx, 1
jmp 0x140015e0f
mov ecx, 0x3375346a
xor edx, edx
call fcn.140011d08
xor ebx, ebx
test rdi, rdi
je 0x140015e1c
mov rcx, rdi
call fcn.140009d1c
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
pop rsi
pop rbp
ret

Function at 0x140016304
Capabilities:
Get thread local storage value

Disassembly:
mov r8, rdx
test rdx, rdx
jne 0x140016311
jmp fcn.140009e7c
mov rax, qword [rdx]
mov rdx, rcx
mov rcx, r8
jmp qword [rax + 0x20]

Function at 0x140016348
Capabilities:
Get file version info

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
sub rsp, 0x30
mov rsi, rdx
lea rdx, [rsp + 0x68]
mov rbp, rcx
xor ebx, ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov edi, eax
cmp eax, ebx
je 0x1400163d5
lea rcx, [rsp + 0x20]
mov rdx, rdi
call fcn.14000a0e8
cmp eax, ebx
je 0x1400163d5
mov r9, qword [rsp + 0x20]
mov r8d, edi
xor edx, edx
mov rcx, rbp
call sub.VERSION.dll_GetFileVersionInfoW
cmp eax, ebx
je 0x1400163cb
mov rcx, qword [rsp + 0x20]
lea r9, [rsp + 0x60]
lea r8, [rsp + 0x28]
lea rdx, [0x1400509ec]
call sub.VERSION.dll_VerQueryValueW
cmp eax, ebx
je 0x1400163cb
cmp dword [rsp + 0x60], ebx
je 0x1400163cb
mov rdx, qword [rsp + 0x28]
lea r8d, [rbx + 0x34]
mov rcx, rsi
call fcn.140008ec4
mov bl, 1
mov rcx, qword [rsp + 0x20]
call fcn.140009e7c
mov al, bl
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400175f0
Capabilities:
Get token membership

Disassembly:
mov r11, rsp
push rbx
sub rsp, 0x80
mov rax, qword [0x140050318]
xor rax, rsp
mov qword [rsp + 0x78], rax
xor ebx, ebx
lea rax, [r11 - 0x20]
mov byte [rsp + 0x75], 5
mov qword [r11 - 0x38], rax
mov dword [rsp + 0x48], ebx
mov dword [rsp + 0x40], ebx
mov dword [rsp + 0x38], ebx
mov dword [rsp + 0x30], ebx
mov dword [rsp + 0x28], ebx
mov dword [r11 - 0x68], r9d
mov r9d, r8d
mov r8d, edx
mov dl, cl
lea rcx, [r11 - 0x18]
mov dword [rsp + 0x60], ebx
mov byte [rsp + 0x70], bl
mov byte [rsp + 0x71], bl
mov byte [rsp + 0x72], bl
mov byte [rsp + 0x73], bl
mov byte [rsp + 0x74], bl
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
cmp eax, ebx
je 0x140017688
mov rdx, qword [rsp + 0x68]
lea r8, [rsp + 0x60]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
neg eax
sbb ecx, ecx
and ecx, dword [rsp + 0x60]
mov dword [rsp + 0x60], ecx
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_FreeSid]
cmp dword [rsp + 0x60], ebx
setne bl
mov eax, ebx
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140008a98
add rsp, 0x80
pop rbx
ret
Function at 0x140017be0
Capabilities:
Compare security identifiers

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rbp
mov qword [r11 + 0x20], rdi
push r12
sub rsp, 0xb0
mov rax, qword [0x140050318]
xor rax, rsp
mov qword [rsp + 0xa0], rax
and qword [r11 - 0x80], 0
and dword [rsp + 0x30], 0
mov rbp, rcx
test rcx, rcx
jne 0x140017c2f
xor edx, edx
mov ecx, 0x386f706a
call fcn.140011d08
xor eax, eax
jmp 0x140017dbe
cmp dword [0x1400bf0b8], 0
je 0x140017c4a
mov eax, dword [0x1400830f0]
mov dword [rcx], eax
mov eax, 1
jmp 0x140017dbe
and dword [rcx], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rsp + 0x38]
mov rcx, rax
mov edx, 0x20008
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x140017c7d
mov ecx, 0x386f706b
xor edx, edx
call fcn.140011d08
xor ebx, ebx
jmp 0x140017d95
mov rcx, qword [rsp + 0x38]
xor r9d, r9d
lea rax, [rsp + 0x30]
lea ebx, [r9 + 2]
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov edx, ebx
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x140017ca9
mov ecx, 0x386f706c
jmp 0x140017c6f
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x140017cbb
mov ecx, 0x386f706d
jmp 0x140017c6f
mov ecx, dword [rsp + 0x30]
call fcn.140009ce4
mov rdi, rax
test rax, rax
jne 0x140017cd3
mov ecx, 0x386f706e
jmp 0x140017d38
mov r9d, dword [rsp + 0x30]
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
mov r8, rdi
mov edx, ebx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x140017cfd
mov ecx, 0x386f706f
jmp 0x140017d38
xor edx, edx
lea rcx, [rsp + 0x51]
mov byte [rsp + 0x50], 0
lea r8d, [rdx + 0x43]
call fcn.140008ebc
xor edx, edx
lea r9, [rsp + 0x40]
lea r8, [rsp + 0x50]
lea ecx, [rdx + 0xb]
mov dword [rsp + 0x40], 0x44
call qword [sym.imp.ADVAPI32.dll_CreateWellKnownSid]
test eax, eax
jne 0x140017d43
mov ecx, 0x386f7070
xor edx, edx
call fcn.140011d08
xor ebx, ebx
jmp 0x140017d88
xor r12d, r12d
cmp dword [rdi], r12d
jbe 0x140017d83
lea rbx, [rdi + 8]
mov rcx, qword [rbx]
call qword [sym.imp.ADVAPI32.dll_IsValidSid]
test eax, eax
je 0x140017d6e
mov rdx, qword [rbx]
lea rcx, [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x140017d7c
inc r12d
add rbx, 0x10
cmp r12d, dword [rdi]
jae 0x140017d83
jmp 0x140017d4f
mov dword [rbp], 1
mov ebx, 1
test rdi, rdi
je 0x140017d95
mov rcx, rdi
call fcn.140009d1c
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x140017da5
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x140017dbc
mov dword [0x1400bf0b8], 1
mov ecx, dword [rbp]
mov dword [0x1400830f0], ecx
mov eax, ebx
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.140008a98
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r12
ret