joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10012826c
Capabilities:
Check for peb beingdebugged flag
Query or enumerate registry key

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
mov r15, rdx
mov r13, rcx
xor edi, edi
mov r12d, edi
mov rsi, rdi
mov dword [rsp + 0x88], edi
lea rax, [rsp + 0x88]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, r13
call qword [sym.imp.ntdll.dll_NtQueryKey]
mov ebx, eax
mov dword [rsp + 0x80], eax
cmp eax, 0xc0000023
je 0x1001282e1
cmp eax, edi
jl 0x1001283a1
mov ebx, 0xc000000d
mov dword [rsp + 0x80], ebx
jmp 0x1001283a1
mov rax, qword gs:[0x30]
mov r8d, dword [rsp + 0x88]
mov rcx, qword [rax + 0x60]
xor edx, edx
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov rsi, rax
cmp rax, rdi
jne 0x10012831b
mov ebx, 0xc000009a
mov dword [rsp + 0x80], ebx
jmp 0x1001283a1
lea rax, [rsp + 0x88]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x88]
mov r8, rsi
xor edx, edx
mov rcx, r13
call qword [sym.imp.ntdll.dll_NtQueryKey]
mov ebx, eax
mov dword [rsp + 0x80], eax
cmp eax, edi
jl 0x1001283a1
mov rcx, qword gs:[0x30]
mov r8d, dword [rsi + 0xc]
add r8, 2
mov rcx, qword [rcx + 0x60]
xor edx, edx
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov r14, rax
cmp rax, rdi
jne 0x100128382
mov ebx, 0xc000009a
mov dword [rsp + 0x80], ebx
jmp 0x1001283a1
mov r8d, dword [rsi + 0xc]
lea rdx, [rsi + 0x10]
mov rcx, rax
call sub.msvcrt.dll_memcpy
mov r11d, dword [rsi + 0xc]
shr r11, 1
mov word [r14 + r11*2], di
mov qword [r15], r14
cmp rsi, rdi
je 0x1001283c2
mov rax, qword gs:[0x30]
mov rcx, qword [rax + 0x60]
mov r8, rsi
xor edx, edx
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
cmp ebx, 0xc000017d
jne 0x1001283f2
int3
mov eax, ebx
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret

Function at 0x10012840c
Capabilities:
Delete registry value

Disassembly:
mov qword [rsp + 8], rsi
mov qword [rsp + 0x18], r8
push rdi
sub rsp, 0x30
mov rsi, rcx
lea rdx, [0x100131040]
lea rcx, [rsp + 0x20]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
and qword [rsp + 0x50], 0
lea r9, [rsp + 0x50]
lea rdx, [0x100131000]
mov r8d, 0x2001f
mov rcx, rsi
call fcn.100127ba8
mov edi, eax
test eax, eax
js 0x100128468
mov rcx, qword [rsp + 0x50]
lea rdx, [rsp + 0x20]
call qword [sym.imp.ntdll.dll_NtDeleteValueKey]
mov edi, eax
cmp qword [rsp + 0x50], rsi
je 0x100128482
cmp qword [rsp + 0x50], 0
je 0x100128482
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ntdll.dll_NtClose]
mov eax, edi
mov rsi, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x100128498
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
mov dword [rax + 0x20], r9d
mov qword [rax + 0x18], r8
mov qword [rax + 0x10], rdx
mov qword [rax + 8], rcx
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x60
mov r14d, r9d
mov r13, r8
mov r15, rdx
mov r12, rcx
xor esi, esi
xor edi, edi
and qword [rsp + 0x40], rdi
mov rax, qword [rsp + 0xc0]
and qword [rax], rdi
mov rax, qword [rsp + 0xc8]
and dword [rax], edi
mov rdx, r15
lea rcx, [rsp + 0x48]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
test r13, r13
je 0x10012851c
lea r9, [rsp + 0x40]
mov r8d, 0x20019
mov rdx, r13
mov rcx, r12
call fcn.100127ba8
mov ebx, eax
mov dword [rsp + 0x34], eax
test eax, eax
jns 0x100128521
jmp 0x100128636
mov qword [rsp + 0x40], r12
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
and dword [rsp + 0x20], edi
xor r9d, r9d
lea r8d, [r9 + 2]
lea rdx, [rsp + 0x48]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ntdll.dll_NtQueryValueKey]
mov ebx, eax
mov dword [rsp + 0x34], eax
cmp eax, 0xc0000023
jne 0x100128636
mov rax, qword gs:[0x30]
mov r8d, dword [rsp + 0x30]
mov rcx, qword [rax + 0x60]
xor edx, edx
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov rdi, rax
test rax, rax
jne 0x10012858b
mov ebx, 0xc000009a
mov dword [rsp + 0x34], ebx
jmp 0x100128636
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
mov eax, dword [rsp + 0x30]
mov dword [rsp + 0x20], eax
mov r9, rdi
mov r8d, 2
lea rdx, [rsp + 0x48]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ntdll.dll_NtQueryValueKey]
mov ebx, eax
mov dword [rsp + 0x34], eax
test eax, eax
js 0x100128636
cmp dword [rdi + 4], r14d
je 0x1001285d1
mov ebx, 0xc0000024
mov dword [rsp + 0x34], ebx
jmp 0x100128636
add dword [rsp + 0x30], 0xfffffff4
mov rax, qword gs:[0x30]
mov r8d, dword [rsp + 0x30]
mov rcx, qword [rax + 0x60]
xor edx, edx
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov rcx, qword [rsp + 0xc0]
mov qword [rcx], rax
test rax, rax
jne 0x10012860f
mov ebx, 0xc000009a
mov dword [rsp + 0x34], ebx
jmp 0x100128636
mov r8d, dword [rsp + 0x30]
lea rdx, [rdi + 0xc]
mov rcx, rax
call sub.msvcrt.dll_memcpy
mov r11d, dword [rsp + 0x30]
mov rax, qword [rsp + 0xc8]
mov dword [rax], r11d
xor ebx, ebx
mov dword [rsp + 0x34], ebx
mov rcx, qword [rsp + 0x40]
cmp rcx, r12
je 0x10012864b
test rcx, rcx
je 0x10012864b
call qword [sym.imp.ntdll.dll_NtClose]
test rdi, rdi
je 0x10012866c
mov rax, qword gs:[0x30]
mov rcx, qword [rax + 0x60]
mov r8, rdi
xor edx, edx
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
cmp ebx, 0xc000017d
jne 0x1001286ac
int3
mov eax, ebx
add rsp, 0x60
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret
Function at 0x1001286c4
Capabilities:
Set registry value

Disassembly:
mov rax, rsp
mov dword [rax + 0x20], r9d
mov qword [rax + 0x18], r8
mov qword [rax + 0x10], rdx
mov qword [rax + 8], rcx
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x50
mov r15d, r9d
mov r13, r8
mov r14, rdx
mov r12, rcx
xor esi, esi
mov rdx, r14
lea rcx, [rsp + 0x40]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
and qword [rsp + 0x38], 0
test r13, r13
je 0x10012873b
lea r9, [rsp + 0x38]
mov r8d, 0x2001f
mov rdx, r13
mov rcx, r12
call fcn.100127ba8
mov edi, eax
mov dword [rsp + 0x30], eax
test eax, eax
js 0x100128734
mov rbx, qword [rsp + 0x38]
jmp 0x10012873e
mov rbx, qword [rsp + 0x38]
jmp 0x100128770
mov rbx, r12
mov eax, dword [rsp + 0xb8]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0xb0]
mov qword [rsp + 0x20], rax
mov r9d, r15d
xor r8d, r8d
lea rdx, [rsp + 0x40]
mov rcx, rbx
call qword [sym.imp.ntdll.dll_NtSetValueKey]
mov edi, eax
mov dword [rsp + 0x30], eax
cmp rbx, r12
je 0x100128782
test rbx, rbx
je 0x100128782
mov rcx, rbx
call fcn.10012786c
cmp edi, 0xc000017d
jne 0x1001287c2
int3
mov eax, edi
add rsp, 0x50
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret

Function at 0x100128d38
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
and qword [rdx], 0
mov rdi, r8
mov rsi, rdx
xor edx, edx
mov ebx, ecx
mov rcx, rdi
lea r8d, [rdx + 0x28]
call sub.msvcrt.dll_memset
mov r11, qword gs:[0x30]
xor edx, edx
mov rcx, qword [r11 + 0x60]
lea r8d, [rdx + 0x6a]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov rbp, rax
test rax, rax
jne 0x100128d95
mov eax, 0xc0000017
jmp 0x100128e82
and qword [rsp + 0x20], 0
lea r8, [0x100131130]
mov r9d, ebx
mov edx, 0x35
mov rcx, rax
call sub.msvcrt.dll_swprintf_s
mov rdx, rsi
mov rcx, rbp
call fcn.100128ea0
mov ebx, eax
test eax, eax
jns 0x100128e07
lea rdx, [rsp + 0x48]
mov rcx, rbp
call fcn.100129168
mov ebx, eax
test eax, eax
js 0x100128e3f
mov rcx, qword [rsp + 0x48]
mov rdx, rsi
call fcn.100128ea0
xor edx, edx
mov ebx, eax
mov rax, qword gs:[0x30]
mov r8, qword [rsp + 0x48]
mov rcx, qword [rax + 0x60]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
test ebx, ebx
js 0x100128e3f
mov rax, qword [rsi]
and dword [rdi], 0
cmp dword [rax], 0
jne 0x100128e21
mov eax, dword [rax + 8]
mov dword [rdi + 4], 1
mov dword [rdi + 8], eax
jmp 0x100128e3b
cmp dword [rax], 1
jne 0x100128e36
movdqu xmm0, xmmword [rax + 8]
and dword [rdi + 4], 0
movdqu xmmword [rdi + 8], xmm0
jmp 0x100128e3b
mov ebx, 0xc000000d
test ebx, ebx
jns 0x100128e64
mov r8, qword [rsi]
test r8, r8
je 0x100128e64
mov rax, qword gs:[0x30]
xor edx, edx
mov rcx, qword [rax + 0x60]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
and qword [rsi], 0
mov rax, qword gs:[0x30]
mov r8, rbp
xor edx, edx
mov rcx, qword [rax + 0x60]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x100129a04
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r12
sub rsp, 0x20
mov ebp, edx
xor edx, edx
mov r12, rcx
mov rsi, r8
lea r9, [rsp + 0x58]
lea ecx, [rdx + 0x62]
xor r8d, r8d
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
mov ebx, eax
cmp eax, 0xc0000023
je 0x100129a4c
test eax, eax
js 0x100129ada
mov ebx, 0xc0000001
jmp 0x100129ada
mov rax, qword gs:[0x30]
mov r8d, dword [rsp + 0x58]
xor edx, edx
mov rcx, qword [rax + 0x60]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov rdi, rax
test rax, rax
jne 0x100129a79
mov ebx, 0xc000009a
jmp 0x100129ab9
mov r8d, dword [rsp + 0x58]
lea r9, [rsp + 0x58]
mov rdx, rax
mov ecx, 0x62
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
mov ebx, eax
test eax, eax
js 0x100129ab9
movzx eax, word [rdi]
add eax, 2
mov dword [rsi], eax
cmp eax, ebp
jbe 0x100129aaa
mov ebx, 0xc0000023
jmp 0x100129ab9
mov rdx, qword [rdi + 8]
mov r8d, eax
mov rcx, r12
call sub.msvcrt.dll_memcpy
test rdi, rdi
je 0x100129ada
mov rax, qword gs:[0x30]
mov r8, rdi
xor edx, edx
mov rcx, qword [rax + 0x60]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
test ebx, ebx
jns 0x100129af5
lea rcx, [fcn.100129b10]
mov r9, rsi
mov r8d, ebp
mov rdx, r12
call fcn.100129b4c
mov ebx, eax
mov rbp, qword [rsp + 0x48]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop r12
pop rdi
pop rsi
ret
Function at 0x10012c28c
Capabilities:
Check for peb beingdebugged flag

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r13
push r14
sub rsp, 0x20
movzx eax, byte [rcx + 3]
xor edi, edi
mov r14, rdx
shl eax, 8
mov r13, r8
mov r8b, 0x7f
movsxd r9, eax
movzx eax, byte [rcx + 2]
mov rbx, rcx
or r9, rax
mov esi, edi
add r9, rcx
mov dl, byte [r9]
mov al, dl
and al, r8b
cmp al, r8b
je 0x10012c3da
cmp dl, 4
jne 0x10012c302
cmp byte [r9 + 1], dl
jne 0x10012c302
movzx ecx, byte [r9 + 3]
movzx eax, byte [r9 + 2]
shl ecx, 8
or ecx, eax
cmp ecx, 4
jb 0x10012c35e
lea eax, [rcx - 4]
add esi, eax
movzx eax, byte [r9 + 3]
shl eax, 8
movsxd rcx, eax
movzx eax, byte [r9 + 2]
or rcx, rax
add r9, rcx
mov dl, byte [r9]
mov al, dl
and al, r8b
cmp al, r8b
jne 0x10012c2de
cmp esi, edi
je 0x10012c3da
mov rax, qword gs:[0x30]
add esi, 2
xor edx, edx
mov rcx, qword [rax + 0x60]
mov r8d, esi
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov rbp, rax
cmp rax, rdi
jne 0x10012c365
mov eax, 0xc000009a
jmp 0x10012c3df
mov eax, 0xc0000095
jmp 0x10012c3df
mov r12, rax
movzx eax, byte [rbx + 3]
shl eax, 8
movsxd rdi, eax
movzx eax, byte [rbx + 2]
or rdi, rax
add rdi, rbx
jmp 0x10012c3c0
cmp cl, 4
jne 0x10012c3ac
cmp byte [rdi + 1], cl
jne 0x10012c3ac
movzx ecx, byte [rdi + 3]
movzx eax, byte [rdi + 2]
lea rdx, [rdi + 4]
shl ecx, 8
or ecx, eax
sub ecx, 4
mov ebx, ecx
mov r8d, ecx
mov rcx, r12
call sub.msvcrt.dll_memcpy
add r12, rbx
movzx eax, byte [rdi + 3]
shl eax, 8
movsxd rcx, eax
movzx eax, byte [rdi + 2]
or rcx, rax
add rdi, rcx
mov cl, byte [rdi]
mov al, cl
and al, 0x7f
cmp al, 0x7f
jne 0x10012c37e
xor eax, eax
mov qword [r14], rbp
mov dword [r13], esi
mov word [r12], ax
jmp 0x10012c3df
mov eax, 0xc0000225
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x20
pop r14
pop r13
pop r12
ret
Function at 0x10012d164
Capabilities:
Check for peb beingdebugged flag

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x20], rbp
push rsi
push rdi
push r12
sub rsp, 0x60
mov rbp, rcx
xor r12d, r12d
lea rdx, [0x100131510]
lea rcx, [rax - 0x58]
mov qword [rax + 0x18], r12
mov rdi, r12
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
lea rax, [rsp + 0x20]
lea r8, [rsp + 0x30]
lea rcx, [rsp + 0x90]
mov edx, 0x20001
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x30], 0x30
mov qword [rsp + 0x38], r12
mov dword [rsp + 0x48], 0x40
mov qword [rsp + 0x50], r12
mov qword [rsp + 0x58], r12
call qword [sym.imp.ntdll.dll_NtOpenSymbolicLinkObject]
cmp eax, r12d
mov ebx, eax
jge 0x10012d1fd
cmp eax, 0xc0000017
je 0x10012d2e1
cmp eax, 0xc000009a
je 0x10012d2e1
mov ebx, 0xc0000452
jmp 0x10012d2e1
mov rsi, qword [rsp + 0x90]
call fcn.10012d4d8
mov rbx, rax
cmp rax, r12
je 0x10012d21d
mov rcx, rsi
call qword [sym.imp.ntdll.dll_NtClose]
jmp 0x10012d220
mov rbx, rsi
lea rcx, [rsp + 0x20]
xor edx, edx
mov qword [rsp + 0x90], rbx
mov dword [rsp + 0x88], r12d
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
mov rcx, qword [rsp + 0x90]
lea r8, [rsp + 0x88]
lea rdx, [rsp + 0x20]
call qword [sym.imp.ntdll.dll_NtQuerySymbolicLinkObject]
mov ebx, eax
cmp eax, 0xc0000023
je 0x10012d26d
cmp eax, r12d
jl 0x10012d2e1
mov ebx, 0xc0000001
jmp 0x10012d2e1
mov rax, qword gs:[0x30]
mov r8d, dword [rsp + 0x88]
xor edx, edx
mov rcx, qword [rax + 0x60]
add r8, 2
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov rdi, rax
cmp rax, r12
jne 0x10012d2a1
mov ebx, 0xc000009a
jmp 0x10012d2e1
mov rcx, qword [rsp + 0x90]
mov qword [rsp + 0x28], rax
movzx eax, word [rsp + 0x88]
lea rdx, [rsp + 0x20]
xor r8d, r8d
mov word [rsp + 0x22], ax
call qword [sym.imp.ntdll.dll_NtQuerySymbolicLinkObject]
cmp eax, r12d
mov ebx, eax
jl 0x10012d2e1
movzx eax, word [rsp + 0x20]
shr rax, 1
mov word [rdi + rax*2], r12w
mov qword [rbp], rdi
mov rcx, qword [rsp + 0x90]
cmp rcx, r12
je 0x10012d2f4
call qword [sym.imp.ntdll.dll_NtClose]
cmp ebx, r12d
jge 0x10012d31a
cmp rdi, r12
je 0x10012d31a
mov rax, qword gs:[0x30]
mov r8, rdi
xor edx, edx
mov rcx, qword [rax + 0x60]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
lea r11, [rsp + 0x60]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r12
pop rdi
pop rsi
ret
Function at 0x10012db88
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 8], rcx
push rbp
push rsi
push rdi
sub rsp, 0x40
mov rbp, qword [rsp + 0x80]
mov rsi, qword [rsp + 0x88]
xor edi, edi
and qword [rax + 0x18], rdi
and qword [rbp], rdi
and dword [rsi], edi
lea rcx, [rax - 0x28]
mov rbx, r8
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
test rbx, rbx
je 0x10012dbe8
lea r9, [rsp + 0x70]
mov r8d, 0x20019
mov rdx, rbx
xor ecx, ecx
call fcn.10012daf4
mov ebx, eax
test eax, eax
jns 0x10012dbed
jmp 0x10012dce5
and qword [rsp + 0x70], rdi
mov rcx, qword [rsp + 0x70]
xor r9d, r9d
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
and dword [rsp + 0x20], edi
lea r8d, [r9 + 2]
lea rdx, [rsp + 0x30]
call qword [sym.imp.ntdll.dll_NtQueryValueKey]
mov ebx, eax
cmp eax, 0xc0000023
je 0x10012dc2d
test eax, eax
js 0x10012dce5
mov ebx, 0xc0000001
jmp 0x10012dce5
mov rax, qword gs:[0x30]
mov r8d, dword [rsp + 0x60]
xor edx, edx
mov rcx, qword [rax + 0x60]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov rdi, rax
test rax, rax
jne 0x10012dc5d
mov ebx, 0xc000009a
jmp 0x10012dce5
mov rcx, qword [rsp + 0x70]
lea rax, [rsp + 0x80]
lea rdx, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov eax, dword [rsp + 0x60]
mov r9, rdi
mov r8d, 2
mov dword [rsp + 0x20], eax
call qword [sym.imp.ntdll.dll_NtQueryValueKey]
mov ebx, eax
test eax, eax
js 0x10012dce5
cmp dword [rdi + 4], 1
je 0x10012dc9e
mov ebx, 0xc0000024
jmp 0x10012dce5
add dword [rsp + 0x60], 0xfffffff4
mov rax, qword gs:[0x30]
mov r8d, dword [rsp + 0x60]
mov rcx, qword [rax + 0x60]
xor edx, edx
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov qword [rbp], rax
test rax, rax
je 0x10012dc53
mov r8d, dword [rsp + 0x60]
lea rdx, [rdi + 0xc]
mov rcx, rax
call sub.msvcrt.dll_memcpy
mov r11d, dword [rsp + 0x60]
xor ebx, ebx
mov dword [rsi], r11d
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x10012dcf5
call qword [sym.imp.ntdll.dll_NtClose]
test rdi, rdi
je 0x10012dd16
mov rax, qword gs:[0x30]
mov r8, rdi
xor edx, edx
mov rcx, qword [rax + 0x60]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov eax, ebx
mov rbx, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
pop rsi
pop rbp
ret
Function at 0x10012dd2c
Capabilities:
Check for peb beingdebugged flag

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
push rbp
push rsi
push rdi
sub rsp, 0x70
mov rsi, rdx
mov rdx, rcx
xor ebp, ebp
lea rcx, [rax - 0x58]
mov qword [rax + 0x20], rbp
mov qword [rax - 0x60], rbp
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
lea rax, [rsp + 0x30]
lea r8, [rsp + 0x40]
lea edx, [rbp + 1]
lea rcx, [rsp + 0xa8]
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x40], 0x30
mov qword [rsp + 0x48], rbp
mov dword [rsp + 0x58], 0x40
mov qword [rsp + 0x60], rbp
mov qword [rsp + 0x68], rbp
call qword [sym.imp.ntdll.dll_NtOpenSymbolicLinkObject]
cmp eax, ebp
jl 0x10012df09
lea rcx, [rsp + 0x20]
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
mov edi, ebp
mov dword [rsp + 0xa0], ebp
jmp 0x10012de11
cmp qword [rsp + 0x28], rbp
je 0x10012ddd8
mov rax, qword gs:[0x30]
mov r8, qword [rsp + 0x28]
xor edx, edx
mov rcx, qword [rax + 0x60]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov eax, dword [rsp + 0xa0]
xor edx, edx
mov word [rsp + 0x22], ax
lea edi, [rax + 2]
mov rax, qword gs:[0x30]
mov rcx, qword [rax + 0x60]
mov r8d, edi
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov qword [rsp + 0x28], rax
cmp rax, rbp
je 0x10012df19
mov rcx, qword [rsp + 0xa8]
lea r8, [rsp + 0xa0]
lea rdx, [rsp + 0x20]
call qword [sym.imp.ntdll.dll_NtQuerySymbolicLinkObject]
mov ebx, eax
cmp eax, 0xc0000023
je 0x10012ddb3
mov rcx, qword [rsp + 0xa8]
call qword [sym.imp.ntdll.dll_NtClose]
cmp ebx, ebp
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0xa8], rbp
jl 0x10012dee4
movzx ecx, word [rsp + 0x20]
lea r8, [rsp + 0x40]
mov edx, 1
shr rcx, 1
mov word [rax + rcx*2], bp
lea rax, [rsp + 0x20]
lea rcx, [rsp + 0xa8]
mov word [rsp + 0x22], di
mov dword [rsp + 0x40], 0x30
mov qword [rsp + 0x48], rbp
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x58], 0x40
mov qword [rsp + 0x60], rbp
mov qword [rsp + 0x68], rbp
call qword [sym.imp.ntdll.dll_NtOpenSymbolicLinkObject]
cmp eax, ebp
jge 0x10012de11
mov rax, qword [rsp + 0x28]
mov ebx, ebp
mov qword [rsi], rax
mov rcx, qword [rsp + 0xa8]
cmp rcx, rbp
je 0x10012dee0
call qword [sym.imp.ntdll.dll_NtClose]
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0xa8], rbp
cmp ebx, ebp
jge 0x10012df07
cmp rax, rbp
je 0x10012df07
mov rax, qword gs:[0x30]
mov r8, qword [rsp + 0x28]
xor edx, edx
mov rcx, qword [rax + 0x60]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov eax, ebx
mov rbx, qword [rsp + 0x90]
add rsp, 0x70
pop rdi
pop rsi
pop rbp
ret
mov ebx, 0xc000009a
jmp 0x10012dec0

Function at 0x1001308a8
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
cmp rcx, rdx
je 0x1001308f5
cmp rcx, 0xffffffffffffffff
je 0x1001308f5
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1001308ed
cmp dword [rcx + 0x3c], edx
jl 0x1001308ed
cmp dword [rcx + 0x3c], 0x10000000
jae 0x1001308ed
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp], rax
cmp dword [rax], 0x4550
cmovne rax, rdx
mov rdx, rax
mov qword [rsp], rax
jmp 0x1001308f5
mov rax, rdx
add rsp, 0x18
ret
Function at 0x14000c020
Capabilities:
Get token membership

Disassembly:
mov qword [rsp + 8], rbx
push rbp
lea rbp, [rsp - 0x3c0]
sub rsp, 0x4c0
mov rax, qword [0x14008b180]
xor rax, rsp
mov qword [rbp + 0x3b0], rax
call qword [sym.imp.WINMM.dll_timeGetTime]
mov dword [rbp - 0x70], eax
mov r9, 0xffffffffffffffff
lea r8, str.bd::process_broker::client::this_process_should_be_started_by_broker
mov edx, 0x102
lea rcx, [rbp - 0x6c]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy_s]
lea r8, [0x140073f4c]
mov edx, 0x104
lea rcx, [rbp - 0x6c]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
mov r9, 0xffffffffffffffff
lea r8, str.bd::process_broker::client::this_process_should_be_started_by_broker
mov edx, 0x104
lea rcx, [rbp + 0x19c]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy_s]
mov ecx, dword [0x14008e500]
mov eax, dword [0x14008e504]
xor ebx, ebx
add ecx, eax
je 0x14000c15a
mov dword [rsp + 0x68], ebx
call fcn.140017d60
mov qword [rsp + 0x60], rax
lock inc dword [rsp + 0x68]
mov rax, qword [rsp + 0x60]
test rax, rax
jne 0x14000c0e4
call fcn.140017d60
mov qword [rsp + 0x60], rax
lock inc dword [rsp + 0x68]
mov rcx, qword [rsp + 0x60]
mov dword [rsp + 0x70], 0x20
mov edx, 1
lea rax, [rbp - 0x6c]
mov qword [rsp + 0x30], rax
lea rax, str.____s
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x19c]
mov qword [rsp + 0x20], rax
lea r9, [0x140000000]
lea r8, [rsp + 0x70]
movsx edx, dx
call fcn.140001e10
mov qword [rsp + 0x60], rbx
mov eax, 0xffffffff
lock xadd dword [rsp + 0x68], eax
cmp eax, 1
js 0x14000c155
call fcn.14001db10
mov eax, 0xffffffff
lock xadd dword [rsp + 0x68], eax
cmp eax, 1
jns 0x14000c140
lock inc dword [rsp + 0x68]
call fcn.14000b8d0
test al, al
je 0x14000c203
mov dword [rbp - 0x7c], ebx
mov word [rbp - 0x78], 0x500
mov qword [rsp + 0x78], rbx
lea rax, [rsp + 0x78]
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 dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], ebx
mov r9d, 0x220
mov r8d, 0x20
mov dl, 2
lea rcx, [rbp - 0x7c]
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x14000c1e3
mov dword [rbp - 0x80], ebx
lea r8, [rbp - 0x80]
mov rdx, qword [rsp + 0x78]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
mov ecx, dword [rbp - 0x80]
test eax, eax
cmove ecx, ebx
mov dword [rbp - 0x80], ecx
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ADVAPI32.dll_FreeSid]
cmp dword [rbp - 0x80], 1
je 0x14000c203
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, eax
call fcn.140009920
test al, al
sete bl
lea rcx, [rbp - 0x70]
call fcn.140001e70
movzx eax, bl
jmp 0x14000c20e
lea rcx, [rbp - 0x70]
call fcn.140001e70
xor al, al
mov rcx, qword [rbp + 0x3b0]
xor rcx, rsp
call fcn.1400673e0
mov rbx, qword [rsp + 0x4d0]
add rsp, 0x4c0
pop rbp
ret