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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x140
mov rbx, rdx
mov rsi, rcx
call fcn.140016db0
test rax, rax
mov rdi, rax
jne 0x1400176ef
mov eax, 8
jmp 0x140017786
lea rcx, [rsp + 0x30]
xor edx, edx
mov r8d, 0x104
call fcn.14007cd30
lea rdx, [rsp + 0x30]
xor r8d, r8d
mov rcx, rsi
call fcn.1400171a0
test eax, eax
jne 0x140017786
lea rax, [rsp + 0x160]
lea rdx, [rsp + 0x30]
mov r9d, 1
xor r8d, r8d
mov rcx, rdi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1400176e5
test rbx, rbx
mov rcx, qword [rsp + 0x160]
je 0x14001777e
xor eax, eax
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x28], rax
mov rdx, rbx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov rcx, qword [rsp + 0x160]
test eax, eax
je 0x14001777e
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 9
jmp 0x140017786
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
lea r11, [rsp + 0x140]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret

Function at 0x1400177a0
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
sub rsp, 0x160
mov rdi, rcx
mov rcx, qword [rcx + 0x10]
xor r12d, r12d
mov rsi, r8
mov rbx, rdx
mov qword [rsp + 0x198], r12
call fcn.140016db0
test rax, rax
mov rbp, rax
jne 0x1400177e2
lea eax, [rbp + 8]
jmp 0x1400178d8
mov rdx, qword [rdi + 0x18]
mov rcx, qword [rdi + 0x10]
call fcn.1400176c0
test eax, eax
jne 0x1400178d8
lea rcx, [rsp + 0x50]
xor edx, edx
mov r8d, 0x104
call fcn.14007cd30
mov rcx, qword [rdi + 0x10]
lea rdx, [rsp + 0x50]
xor r8d, r8d
call fcn.1400171a0
test eax, eax
jne 0x1400178d8
mov qword [rsp + 0x40], r12
lea rax, [rsp + 0x198]
lea rdx, [rsp + 0x50]
mov qword [rsp + 0x38], rax
mov eax, dword [rdi + 0xc]
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], eax
xor r9d, r9d
xor r8d, r8d
mov rcx, rbp
mov dword [rsp + 0x20], r12d
call fcn.140016ef0
test eax, eax
je 0x140017863
mov eax, 2
jmp 0x1400178d8
test rbx, rbx
mov eax, dword [rsi]
mov dword [rsp + 0x180], eax
je 0x14001787e
mov r8, rax
xor edx, edx
mov rcx, rbx
call fcn.14007cd30
mov rdx, qword [rdi + 0x18]
mov rcx, qword [rsp + 0x198]
lea rax, [rsp + 0x180]
mov qword [rsp + 0x28], rax
lea r9, [rdi + 8]
xor r8d, r8d
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov rcx, qword [rsp + 0x198]
test eax, eax
je 0x1400178c2
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0xa
jmp 0x1400178d8
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test rbx, rbx
jne 0x1400178d6
mov eax, dword [rsp + 0x180]
mov dword [rsi], eax
xor eax, eax
lea r11, [rsp + 0x160]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r12
pop rdi
pop rsi
ret
Function at 0x140017950
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x190
test rcx, rcx
mov rdi, r9
mov rsi, r8
jne 0x14001797c
lea eax, [rcx + 4]
mov rsi, qword [rsp + 0x1b8]
add rsp, 0x190
pop rdi
ret
test rdx, rdx
jne 0x140017995
lea eax, [rdx + 5]
mov rsi, qword [rsp + 0x1b8]
add rsp, 0x190
pop rdi
ret
test r8, r8
mov qword [rsp + 0x1a8], rbx
mov dword [rsp + 0x60], 3
mov dword [rsp + 0x64], 1
mov qword [rsp + 0x68], rcx
mov qword [rsp + 0x70], rdx
je 0x140017acc
xor ebx, ebx
mov qword [rsp + 0x1b0], rbp
mov qword [rsp + 0x50], rbx
call fcn.140016db0
test rax, rax
mov rbp, rax
je 0x140017ab7
mov rdx, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x68]
call fcn.1400176c0
test eax, eax
jne 0x140017ab7
lea rcx, [rsp + 0x80]
xor edx, edx
mov r8d, 0x104
call fcn.14007cd30
mov rcx, qword [rsp + 0x68]
lea rdx, [rsp + 0x80]
xor r8d, r8d
call fcn.1400171a0
test eax, eax
jne 0x140017ab7
mov qword [rsp + 0x40], rbx
lea rax, [rsp + 0x50]
lea rdx, [rsp + 0x80]
mov qword [rsp + 0x38], rax
mov eax, dword [rsp + 0x64]
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], eax
xor r9d, r9d
xor r8d, r8d
mov rcx, rbp
mov dword [rsp + 0x20], ebx
call fcn.140016ef0
test eax, eax
jne 0x140017ab7
mov rdx, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x1a0]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x60]
xor r8d, r8d
mov qword [rsp + 0x20], rbx
mov dword [rsp + 0x1a0], ebx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x140017aa5
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x140017ab7
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, dword [rsp + 0x1a0]
cmp ebx, dword [rdi]
mov rbp, qword [rsp + 0x1b0]
jbe 0x140017acc
mov dword [rdi], ebx
mov eax, 7
jmp 0x140017adc
lea rcx, [rsp + 0x58]
mov r8, rdi
mov rdx, rsi
call fcn.1400177a0
mov rbx, qword [rsp + 0x1a8]
mov rsi, qword [rsp + 0x1b8]
add rsp, 0x190
pop rdi
ret
Function at 0x140017bc0
Capabilities:
Delete registry value

Disassembly:
push rbx
push rbp
push rsi
sub rsp, 0x270
mov rbp, rdx
mov rbx, rcx
call fcn.140016db0
test rax, rax
mov rsi, rax
jne 0x140017bec
lea eax, [rsi + 8]
add rsp, 0x270
pop rsi
pop rbp
pop rbx
ret
mov rcx, rbx
mov qword [rsp + 0x290], rdi
call fcn.140016db0
test rax, rax
mov rdi, rax
je 0x140017c56
lea rcx, [rsp + 0x50]
xor edx, edx
mov r8d, 0x104
call fcn.14007cd30
lea rdx, [rsp + 0x50]
xor r8d, r8d
mov rcx, rbx
call fcn.1400171a0
test eax, eax
jne 0x140017d13
lea rax, [rsp + 0x2a8]
lea rdx, [rsp + 0x50]
mov r9d, 1
xor r8d, r8d
mov rcx, rdi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x140017c60
mov eax, 8
jmp 0x140017d13
mov rcx, qword [rsp + 0x2a8]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rcx, [rsp + 0x160]
xor edx, edx
mov r8d, 0x104
call fcn.14007cd30
lea rdx, [rsp + 0x160]
xor r8d, r8d
mov rcx, rbx
call fcn.1400171a0
test eax, eax
jne 0x140017d13
xor ecx, ecx
lea rax, [rsp + 0x2a0]
lea rdx, [rsp + 0x160]
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rcx
mov dword [rsp + 0x28], 2
mov dword [rsp + 0x20], ecx
xor r9d, r9d
mov rcx, rsi
xor r8d, r8d
call fcn.140016ef0
test eax, eax
jne 0x140017cfc
mov rcx, qword [rsp + 0x2a0]
mov rdx, rbp
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test eax, eax
je 0x140017d03
mov rcx, qword [rsp + 0x2a0]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 3
jmp 0x140017d13
mov rcx, qword [rsp + 0x2a0]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov rdi, qword [rsp + 0x290]
add rsp, 0x270
pop rsi
pop rbp
pop rbx
ret
Function at 0x14001ca60
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x160
xor r15d, r15d
mov rbp, rcx
mov rsi, r8
mov r13, rdx
lea rcx, [rsp + 0x50]
mov r8d, 0x104
xor edx, edx
mov r12, r9
mov ebx, r15d
mov qword [rsp + 0x38], r15
mov dword [rsp + 0x30], r15d
mov dword [rsp + 0x44], 4
mov dword [rsp + 0x40], 4
call fcn.14007cd30
lea rdx, str.Selected_
lea rcx, [rsp + 0x50]
call fcn.14001bdd0
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0x50]
repne scasb al, byte [rdi]
xor ecx, ecx
nop
movzx eax, byte [rsi + rcx]
add rcx, 1
test al, al
mov byte [rdi + rcx - 2], al
jne 0x14001cae0
lea rax, [rsp + 0x38]
lea rdx, [rsp + 0x50]
mov r9d, 0x2001f
xor r8d, r8d
mov rcx, r12
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov r14d, 1
test eax, eax
jne 0x14001cb96
bt dword [rbp + 0x3c], 0x18
jae 0x14001cb5f
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x44]
lea r9, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x30]
lea rdx, str.UsedBySelectedProfile
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x14001cb5f
cmp dword [rsp + 0x30], ebx
jne 0x14001cb5f
mov edi, r14d
jmp 0x14001cb82
lea r9, [rsp + 0x50]
mov r8, r12
mov rdx, r13
mov rcx, rbp
mov dword [rsp + 0x20], r14d
call fcn.14001c920
mov edi, r15d
test eax, eax
mov ebx, eax
cmove edi, r14d
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
mov qword [rsp + 0x38], r15
je 0x14001cbe5
bt dword [rbp + 0x3c], 0x18
jae 0x14001cbe5
lea rcx, [rsp + 0x50]
mov edx, 0x2d
call fcn.14007e280
test rax, rax
mov rsi, rax
je 0x14001cbe5
movzx edi, byte [rax + 1]
mov ecx, 0x31
lea r9, [rsp + 0x50]
test dil, dil
mov r8, r12
mov rdx, r13
cmovne ecx, r15d
mov dword [rsp + 0x20], r14d
mov byte [rax + 1], cl
mov rcx, rbp
call fcn.14001c920
mov byte [rsi + 1], dil
jmp 0x14001cbe7
mov eax, ebx
lea r11, [rsp + 0x160]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x14002b8f0
Capabilities:
Delete file
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
sub rsp, 0x350
mov r12, rcx
mov esi, r8d
mov rbx, rdx
lea rcx, [rsp + 0x50]
xor edx, edx
mov r8d, 0x100
mov edi, r9d
call fcn.14007cd30
mov rbp, qword [rsp + 0x380]
cmp byte [rbp], 0
je 0x14002b96c
mov r8, rbp
test edi, edi
mov r9, rbx
lea rax, str..txt
lea rcx, [rsp + 0x50]
je 0x14002b9a5
mov qword [rsp + 0x28], rax
mov eax, dword [0x1400df4cc]
lea rdx, str._s_s__d_s
mov dword [rsp + 0x20], eax
call fcn.14007dc1c
jmp 0x14002b9b6
call fcn.1400673f0
cmp eax, 6
jge 0x14002ba26
movzx eax, word [0x1400b1b18]
lea r8, [0x1400b1b18]
mov word [rbp], ax
movzx eax, byte [0x1400b1b1a]
mov byte [rbp + 2], al
lea rcx, [rsp + 0x50]
mov r9, rbx
lea rax, str..txt
lea rdx, str._s_s_s
mov qword [rsp + 0x20], rax
call fcn.14007dc1c
lea rdx, str.Pollog
mov r8d, 6
mov rcx, rbx
call fcn.14007f2bc
test eax, eax
jne 0x14002b9e3
cmp dword [rsp + 0x388], eax
je 0x14002b9e3
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
lea rcx, [rsp + 0x50]
call fcn.140013db0
mov ecx, 6
call fcn.140013de0
lea rcx, str.EXIT_SetLogFileInfo
call fcn.140014620
mov eax, 1
lea r11, [rsp + 0x350]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r12
ret
test esi, esi
jne 0x14002ba36
lea r8, [0x1400b1b18]
jmp 0x14002b93c
test r12, r12
mov rsi, r12
mov qword [rsp + 0x40], r12
jne 0x14002ba75
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rsp + 0x40]
lea edx, [r12 + 8]
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x14002ba70
lea rcx, str.OpenProcessToken_Failed
call fcn.140014620
xor eax, eax
jmp 0x14002ba08
mov rsi, qword [rsp + 0x40]
lea rcx, [rsp + 0x152]
xor edx, edx
mov r8d, 0x1fe
mov word [rsp + 0x150], 0
call fcn.14007cd30
lea r8, [rsp + 0x380]
lea rdx, [rsp + 0x150]
mov rcx, rsi
mov dword [rsp + 0x380], 0x100
call qword [sym.imp.USERENV.dll_GetUserProfileDirectoryW]
test eax, eax
jne 0x14002bad5
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.pFuncGetUserProfileDirectory_Failed
call fcn.140014620
xor eax, eax
jmp 0x14002ba08
xor eax, eax
lea r8, [rsp + 0x150]
or r9d, 0xffffffff
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rax
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x28], 0x100
mov qword [rsp + 0x20], rbp
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test r12, r12
jne 0x14002bb14
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
mov r8, rbp
je 0x14002b996
lea rax, str..txt
lea rdx, str._s_s__d_s
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x28], rax
mov eax, dword [0x1400df4cc]
mov r9, rbx
mov dword [rsp + 0x20], eax
call fcn.14007dc1c
jmp 0x14002b9b6
Function at 0x14002bb50
Capabilities:
Get token membership

Disassembly:
push rbx
push r12
sub rsp, 0x88
xor ebx, ebx
cmp dword [0x1400df34c], 4
mov r12, rcx
jae 0x14002bb76
xor eax, eax
add rsp, 0x88
pop r12
pop rbx
ret
mov qword [rsp + 0x80], rbp
mov qword [rsp + 0x78], rsi
mov qword [rsp + 0x70], rdi
mov edi, ebx
mov dword [rsp + 0x60], 0x220
mov dword [rsp + 0x64], 0x222
mov dword [rsp + 0x68], 0x221
mov dword [rsp + 0x6c], 0x223
mov esi, ebx
lea rbp, [rsp + 0x60]
mov r9d, dword [rbp]
lea rax, [rsp + 0xb8]
lea rcx, [rsp + 0xb0]
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x48], ebx
mov dword [rsp + 0x40], ebx
mov dword [rsp + 0x38], ebx
mov dword [rsp + 0x30], ebx
mov r8d, 0x20
mov dl, 2
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0xb8], rbx
mov dword [rsp + 0x20], ebx
mov byte [rsp + 0xb0], bl
mov byte [rsp + 0xb1], bl
mov byte [rsp + 0xb2], bl
mov byte [rsp + 0xb3], bl
mov byte [rsp + 0xb4], bl
mov byte [rsp + 0xb5], 5
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x14002bcb5
mov rdx, qword [rsp + 0xb8]
lea r8, [rsp + 0xa8]
mov rcx, r12
mov dword [rsp + 0xa8], ebx
call sub.ADVAPI32.dll_CheckTokenMembership
mov ecx, dword [rsp + 0xa8]
test eax, eax
cmove ecx, ebx
mov dword [rsp + 0xa8], ecx
mov rcx, qword [rsp + 0xb8]
call qword [sym.imp.ADVAPI32.dll_FreeSid]
cmp dword [rsp + 0xa8], ebx
je 0x14002bcc1
mov eax, esi
mov edi, dword [rsp + rax*4 + 0x60]
sub edi, 0x220
mov rsi, qword [rsp + 0x78]
mov rbp, qword [rsp + 0x80]
je 0x14002bd01
sub edi, 1
je 0x14002bcea
sub edi, 1
je 0x14002bcd3
cmp edi, 1
jne 0x14002bd06
mov rdi, qword [rsp + 0x70]
mov ebx, 3
mov eax, ebx
add rsp, 0x88
pop r12
pop rbx
ret
lea rcx, str.GetUserType._Failed_to_AllocateAndInitializeSid
call fcn.140014620
add esi, 1
add rbp, 4
cmp esi, 4
jb 0x14002bbb1
jmp 0x14002bc7a
mov rdi, qword [rsp + 0x70]
mov ebx, 4
mov eax, ebx
add rsp, 0x88
pop r12
pop rbx
ret
mov rdi, qword [rsp + 0x70]
mov ebx, 2
mov eax, ebx
add rsp, 0x88
pop r12
pop rbx
ret
mov ebx, 1
mov eax, ebx
mov rdi, qword [rsp + 0x70]
add rsp, 0x88
pop r12
pop rbx
ret

Function at 0x14002c000
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
sub rsp, 0x40
test rcx, rcx
mov rbx, rdx
je 0x14002c0b9
cmp byte [rcx], 0
je 0x14002c0b9
lea rax, [rsp + 0x30]
mov rdx, rcx
mov r9d, 0x2001f
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x14002c0b9
mov rcx, qword [rsp + 0x30]
mov dword [rbx], eax
mov dword [rsp + 0x60], eax
lea rax, [rsp + 0x50]
lea r9, [rsp + 0x68]
lea rdx, str.SGCountDown
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x60]
xor r8d, r8d
mov dword [rsp + 0x68], 4
mov dword [rsp + 0x50], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x14002c0a3
cmp dword [rsp + 0x50], 4
jne 0x14002c0a3
mov edx, dword [rsp + 0x60]
lea rcx, str.GetSGCountDown__SGCountDown___d_n
mov dword [rbx], edx
call fcn.14000cbb0
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
add rsp, 0x40
pop rbx
ret
xor eax, eax
add rsp, 0x40
pop rbx
ret
Function at 0x14002c880
Capabilities:
Connect pipe
Read pipe
Write pipe

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x6c0
mov rbp, rcx
mov esi, r8d
mov rdi, rdx
lea rcx, [rsp + 0xa0]
xor edx, edx
mov r8d, 0x620
mov rbx, r9
call fcn.14007cd30
xor edx, edx
lea r8d, [rdx + 0x2c]
lea rcx, [rsp + 0x40]
call fcn.14007cd30
cmp esi, 0x2c
je 0x14002c8d6
mov dword [rsp + 0xb0], edi
jmp 0x14002c8ed
test rdi, rdi
jne 0x14002c8e2
xor eax, eax
jmp 0x14002c9ea
mov rax, qword [rdi]
mov qword [rsp + 0xb0], rax
mov eax, dword [0x1400df4cc]
xor edx, edx
lea rcx, [rsp + 0x70]
lea r8d, [rdx + 0x2c]
mov dword [rsp + 0xa8], esi
mov dword [rsp + 0xa0], 0x8001
mov dword [rsp + 0xac], eax
mov dword [rsp + 0xa4], 0x620
call fcn.14007cd30
xor r11d, r11d
lea rax, [rsp + 0x6e0]
lea r9, [rsp + 0x70]
cmp dword [rsp + 0x6f0], r11d
lea rdx, [rsp + 0xa0]
mov r8d, 0x620
sete r11b
mov rcx, rbp
mov dword [rsp + 0x30], r11d
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x2c
call qword [sym.imp.KERNEL32.dll_CallNamedPipeA]
test eax, eax
je 0x14002c9b3
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
je 0x14002c9b3
lea rcx, [rsp + 0x70]
lea rdx, [rsp + 0x40]
mov rax, qword [rcx]
mov qword [rdx], rax
mov rax, qword [rcx + 8]
mov qword [rdx + 8], rax
mov rax, qword [rcx + 0x10]
mov qword [rdx + 0x10], rax
mov rax, qword [rcx + 0x18]
mov qword [rdx + 0x18], rax
mov rax, qword [rcx + 0x20]
mov qword [rdx + 0x20], rax
mov eax, dword [rcx + 0x28]
mov dword [rdx + 0x28], eax
test rbx, rbx
je 0x14002c9e5
lea rcx, [rsp + 0x4c]
mov eax, dword [rcx]
mov dword [rbx], eax
mov eax, dword [rcx + 4]
mov dword [rbx + 4], eax
mov eax, dword [rcx + 8]
mov dword [rbx + 8], eax
mov eax, dword [rcx + 0xc]
mov dword [rbx + 0xc], eax
mov eax, dword [rcx + 0x10]
mov dword [rbx + 0x10], eax
mov eax, dword [rcx + 0x14]
mov dword [rbx + 0x14], eax
mov eax, dword [rcx + 0x18]
mov dword [rbx + 0x18], eax
mov eax, 1
lea r11, [rsp + 0x6c0]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x14002cb80
Capabilities:
Shutdown system

Disassembly:
push rbx
sub rsp, 0x40
cmp dword [0x1400df34c], 4
mov ebx, ecx
mov qword [rsp + 0x58], 0
jb 0x14002cc53
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rsp + 0x58]
mov edx, 0x28
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x14002cbd7
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.MyExitWindows._Open_Process_Token_failed._err_d
mov edx, eax
call fcn.14000cbb0
xor eax, eax
add rsp, 0x40
pop rbx
ret
lea r8, [rsp + 0x34]
lea rdx, str.SeShutdownPrivilege
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
mov rcx, qword [rsp + 0x58]
lea r8, [rsp + 0x30]
xor r9d, r9d
xor edx, edx
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x3c], 2
mov qword [rsp + 0x20], 0
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x14002cc53
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.MyExitWindows._AdjustTokenPrivileges_failed_err_d
mov edx, eax
call fcn.14000cbb0
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
add rsp, 0x40
pop rbx
ret
xor edx, edx
mov ecx, ebx
call qword [sym.imp.USER32.dll_ExitWindowsEx]
test eax, eax
jne 0x14002cc8d
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.MyExitWindows._ExitWindowsEx_failed._err_d
mov edx, eax
call fcn.14000cbb0
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x14002cc85
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
add rsp, 0x40
pop rbx
ret
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x14002cc9d
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
add rsp, 0x40
pop rbx
ret
jmp 0x14002cb80
Function at 0x14002ccb0
Capabilities:
Shutdown system

Disassembly:
push rbx
sub rsp, 0x40
cmp dword [0x1400df34c], 4
mov ebx, ecx
mov qword [rsp + 0x58], 0
jb 0x14002cc53
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rsp + 0x58]
mov edx, 0x28
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x14002cbd7
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.MyExitWindows._Open_Process_Token_failed._err_d
mov edx, eax
call fcn.14000cbb0
xor eax, eax
add rsp, 0x40
pop rbx
ret
lea r8, [rsp + 0x34]
lea rdx, str.SeShutdownPrivilege
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
mov rcx, qword [rsp + 0x58]
lea r8, [rsp + 0x30]
xor r9d, r9d
xor edx, edx
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x3c], 2
mov qword [rsp + 0x20], 0
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x14002cc53
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.MyExitWindows._AdjustTokenPrivileges_failed_err_d
mov edx, eax
call fcn.14000cbb0
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
add rsp, 0x40
pop rbx
ret
xor edx, edx
mov ecx, ebx
call qword [sym.imp.USER32.dll_ExitWindowsEx]
test eax, eax
jne 0x14002cc8d
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.MyExitWindows._ExitWindowsEx_failed._err_d
mov edx, eax
call fcn.14000cbb0
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x14002cc85
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
add rsp, 0x40
pop rbx
ret
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x14002cc9d
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
add rsp, 0x40
pop rbx
ret
jmp 0x14002cb80

Function at 0x14002ccd0
Capabilities:
Terminate thread

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
mov rcx, qword [rcx]
test rcx, rcx
je 0x14002ccfe
test edx, edx
je 0x14002ccee
mov edx, r8d
call qword [sym.imp.KERNEL32.dll_TerminateThread]
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx], 0
add rsp, 0x20
pop rbx
ret

Function at 0x14002d550
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x30
mov qword [rsp + 0x28], r9
mov dword [rsp + 0x20], r8d
mov r8, rcx
mov r9, rdx
xor ecx, ecx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateThread]
test rax, rax
mov rbx, rax
jne 0x14002d58d
lea rcx, str.FAILURE:_EEUCreateThread:_Failed_to_create_thread.
call fcn.14000cbb0
mov rax, rbx
add rsp, 0x30
pop rbx
ret
lea rcx, str.EEUCreateThread:_success_to_create_thread_0x_x.
mov rdx, rax
call fcn.14000cbb0
cmp dword [rsp + 0x60], 0
je 0x14002d5c4
mov edx, 2
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
test eax, eax
je 0x14002d5c4
lea rcx, str.EEUCreateThread__Set_thread__0x_x__to_highest_priority
mov rdx, rbx
call fcn.14000cbb0
mov rax, rbx
add rsp, 0x30
pop rbx
ret
Function at 0x14002dce0
Capabilities:
Query or enumerate registry value

Disassembly:
test rcx, rcx
je 0x14002df16
push rbx
sub rsp, 0x30
test edx, edx
mov rbx, rcx
mov dword [rsp + 0x40], 1
mov dword [rsp + 0x48], edx
mov qword [rsp + 0x50], 0
je 0x14002df11
mov r8d, edx
mov qword [rsp + 0x58], rdi
mov edi, edx
xor edx, edx
call fcn.14007cd30
lea r11, [rsp + 0x50]
lea rdx, str.SoftwareATIACE
mov r9d, 0xf003f
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], r11
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x14002dd88
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x48]
lea r9, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rdx, str.PATH
xor r8d, r8d
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x14002dd88
lea rcx, str.GetACEPrbPath___ACE_PATH_is_OK
call fcn.14000cbb0
jmp 0x14002debb
lea rax, [rsp + 0x50]
lea rdx, str.SoftwareATI
mov r9d, 0xf003f
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x14002ddf1
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x48]
lea r9, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rdx, str.PATH
xor r8d, r8d
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x14002ddf1
lea rcx, str.GetACEPrbPath___ACE_PATH_NEW_is_OK
call fcn.14000cbb0
jmp 0x14002debb
lea rax, [rsp + 0x50]
lea rdx, str.SoftwareWOW6432NodeATIACE
mov r9d, 0xf003f
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x14002de57
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x48]
lea r9, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rdx, str.PATH
xor r8d, r8d
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x14002de57
lea rcx, str.GetACEPrbPath___ACE_REMAP_PATH_is_OK
call fcn.14000cbb0
jmp 0x14002debb
lea rax, [rsp + 0x50]
lea rdx, str.SoftwareWOW6432NodeATI
mov r9d, 0xf003f
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x14002df00
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x48]
lea r9, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rdx, str.PATH
xor r8d, r8d
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x14002df00
lea rcx, str.GetACEPrbPath___ACE_REMAP_PATH_NEW_is_OK
call fcn.14000cbb0
mov edx, 0x5c
mov rcx, rbx
call fcn.14007e280
test rax, rax
je 0x14002dedd
lea rcx, [rdi + rbx - 1]
cmp rax, rcx
jae 0x14002dedd
cmp byte [rax + 1], 0
je 0x14002dee7
lea rcx, [rdi + rbx - 1]
cmp rax, rcx
jne 0x14002deea
mov byte [rax], 0
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop rbx
ret
lea rcx, str.GetACEPrbPath___Get_ACE_registry_key_failed_n
call fcn.14000cbb0
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop rbx
ret 0