joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10008ec00
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 0x10008ec75
cmp eax, edi
jl 0x10008ed35
mov ebx, 0xc000000d
mov dword [rsp + 0x80], ebx
jmp 0x10008ed35
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 0x10008ecaf
mov ebx, 0xc000009a
mov dword [rsp + 0x80], ebx
jmp 0x10008ed35
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 0x10008ed35
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 0x10008ed16
mov ebx, 0xc000009a
mov dword [rsp + 0x80], ebx
jmp 0x10008ed35
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 0x10008ed56
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 0x10008ed86
int3
mov eax, ebx
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret

Function at 0x10008eda0
Capabilities:
Delete registry value

Disassembly:
mov qword [rsp + 8], rsi
mov qword [rsp + 0x18], r8
push rdi
sub rsp, 0x30
mov rsi, rcx
lea rcx, [rsp + 0x20]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
and qword [rsp + 0x50], 0
lea r9, [rsp + 0x50]
lea rdx, [0x10014f440]
mov r8d, 0x2001f
mov rcx, rsi
call fcn.10008e53c
mov edi, eax
test eax, eax
js 0x10008edf5
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 0x10008ee0f
cmp qword [rsp + 0x50], 0
je 0x10008ee0f
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 0x10008ee24
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 0x10008eea8
lea r9, [rsp + 0x40]
mov r8d, 0x20019
mov rdx, r13
mov rcx, r12
call fcn.10008e53c
mov ebx, eax
mov dword [rsp + 0x34], eax
test eax, eax
jns 0x10008eead
jmp 0x10008efc2
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 0x10008efc2
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 0x10008ef17
mov ebx, 0xc000009a
mov dword [rsp + 0x34], ebx
jmp 0x10008efc2
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 0x10008efc2
cmp dword [rdi + 4], r14d
je 0x10008ef5d
mov ebx, 0xc0000024
mov dword [rsp + 0x34], ebx
jmp 0x10008efc2
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 0x10008ef9b
mov ebx, 0xc000009a
mov dword [rsp + 0x34], ebx
jmp 0x10008efc2
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 0x10008efd7
test rcx, rcx
je 0x10008efd7
call qword [sym.imp.ntdll.dll_NtClose]
test rdi, rdi
je 0x10008eff8
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 0x10008f038
int3
mov eax, ebx
add rsp, 0x60
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret
Function at 0x10008f050
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 0x10008f0c7
lea r9, [rsp + 0x38]
mov r8d, 0x2001f
mov rdx, r13
mov rcx, r12
call fcn.10008e53c
mov edi, eax
mov dword [rsp + 0x30], eax
test eax, eax
js 0x10008f0c0
mov rbx, qword [rsp + 0x38]
jmp 0x10008f0ca
mov rbx, qword [rsp + 0x38]
jmp 0x10008f0fc
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 0x10008f10e
test rbx, rbx
je 0x10008f10e
mov rcx, rbx
call fcn.10008e200
cmp edi, 0xc000017d
jne 0x10008f14e
int3
mov eax, edi
add rsp, 0x50
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret

Function at 0x10008f57c
Capabilities:
Delete file

Disassembly:
mov r11, rsp
sub rsp, 0x58
mov dword [rsp + 0x20], 0x30
xor eax, eax
mov qword [r11 - 0x30], rax
mov dword [rsp + 0x38], 0x40
mov qword [r11 - 0x28], rcx
lea rcx, [r11 - 0x38]
mov qword [r11 - 0x18], rax
mov qword [r11 - 0x10], rax
call qword [sym.imp.ntdll.dll_NtDeleteFile]
add rsp, 0x58
ret
Function at 0x10008f5bc
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 0x10008f619
mov eax, 0xc0000017
jmp 0x10008f706
and qword [rsp + 0x20], 0
lea r8, [0x10014f590]
mov r9d, ebx
mov edx, 0x35
mov rcx, rax
call sub.msvcrt.dll_swprintf_s
mov rdx, rsi
mov rcx, rbp
call fcn.10008f724
mov ebx, eax
test eax, eax
jns 0x10008f68b
lea rdx, [rsp + 0x48]
mov rcx, rbp
call fcn.10008faac
mov ebx, eax
test eax, eax
js 0x10008f6c3
mov rcx, qword [rsp + 0x48]
mov rdx, rsi
call fcn.10008f724
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 0x10008f6c3
mov rax, qword [rsi]
and dword [rdi], 0
cmp dword [rax], 0
jne 0x10008f6a5
mov eax, dword [rax + 8]
mov dword [rdi + 4], 1
mov dword [rdi + 8], eax
jmp 0x10008f6bf
cmp dword [rax], 1
jne 0x10008f6ba
movdqu xmm0, xmmword [rax + 8]
and dword [rdi + 4], 0
movdqu xmmword [rdi + 8], xmm0
jmp 0x10008f6bf
mov ebx, 0xc000000d
test ebx, ebx
jns 0x10008f6e8
mov r8, qword [rsi]
test r8, r8
je 0x10008f6e8
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 0x10008f7f0
Capabilities:
Get file attributes

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0xe0
mov rax, qword [0x100165138]
xor rax, rsp
mov qword [rsp + 0xd0], rax
mov rbx, rdx
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x30]
mov r9d, 0x18
mov rdi, rcx
mov dword [rsp + 0x20], 1
call qword [sym.imp.ntdll.dll_NtQueryVolumeInformationFile]
mov r11d, eax
test eax, eax
jns 0x10008f841
cmp eax, 0x80000005
jne 0x10008f885
lea r8, [rsp + 0x60]
lea rdx, [rsp + 0x30]
mov r9d, 0x68
mov rcx, rdi
mov dword [rsp + 0x20], 0x12
call qword [sym.imp.ntdll.dll_NtQueryInformationFile]
mov r11d, eax
test eax, eax
jns 0x10008f870
cmp eax, 0x80000005
jne 0x10008f885
mov eax, dword [rsp + 0x48]
xor r11d, r11d
mov dword [rbx], eax
mov rax, qword [rsp + 0xa0]
mov qword [rbx + 8], rax
mov eax, r11d
mov rcx, qword [rsp + 0xd0]
xor rcx, rsp
call fcn.10014e600
mov rbx, qword [rsp + 0x100]
add rsp, 0xe0
pop rdi
ret
Function at 0x100090aa4
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x60
mov rax, qword [0x100165138]
xor rax, rsp
mov qword [rsp + 0x58], rax
sub edx, 1
mov rdi, r8
je 0x100090b3b
cmp edx, 1
je 0x100090ad4
mov ebx, 0xc000000d
jmp 0x100090b61
and qword [rsp + 0x30], 0
lea r8, [rsp + 0x30]
lea rdx, [0x100009a88]
call fcn.10009077c
mov ebx, eax
test eax, eax
js 0x100090b2a
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
lea r9, [rsp + 0x40]
xor r8d, r8d
mov edx, 0x23000003
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x38], 0x10
call fcn.1000910c8
mov ebx, eax
test eax, eax
js 0x100090b2a
movdqu xmm0, xmmword [rsp + 0x40]
movdqu xmmword [rdi], xmm0
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x100090b61
call fcn.10008e200
jmp 0x100090b61
xor r9d, r9d
lea rdx, [rsp + 0x40]
lea r8d, [r9 + 0x14]
lea ecx, [r9 + 0x5a]
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
mov ebx, eax
test eax, eax
js 0x100090b61
movdqu xmm0, xmmword [rsp + 0x40]
movdqu xmmword [rdi], xmm0
mov eax, ebx
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.10014e600
mov rbx, qword [rsp + 0x78]
add rsp, 0x60
pop rdi
ret

Function at 0x100090e78
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 0x100090ec0
test eax, eax
js 0x100090f4e
mov ebx, 0xc0000001
jmp 0x100090f4e
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 0x100090eed
mov ebx, 0xc000009a
jmp 0x100090f2d
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 0x100090f2d
movzx eax, word [rdi]
add eax, 2
mov dword [rsi], eax
cmp eax, ebp
jbe 0x100090f1e
mov ebx, 0xc0000023
jmp 0x100090f2d
mov rdx, qword [rdi + 8]
mov r8d, eax
mov rcx, r12
call sub.msvcrt.dll_memcpy
test rdi, rdi
je 0x100090f4e
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 0x100090f69
lea rcx, [fcn.100090f84]
mov r9, rsi
mov r8d, ebp
mov rdx, r12
call fcn.100090fc0
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 0x1000945f0
Capabilities:
Access peb ldr_data

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x10], rdx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x50
xor r10d, r10d
xor r13d, r13d
xor r12d, r12d
cmp dword [rcx], 2
mov r14, r9
mov r15, r8
mov qword [rsp + 0x38], r10
mov rax, rdx
jne 0x100094631
lea rbp, [rcx + 0x10]
xor esi, esi
lea rbx, [rbp + 0x10]
jmp 0x100094644
cmp dword [rcx], 6
jne 0x1000947df
lea rsi, [rcx + 0x10]
xor ebp, ebp
lea rbx, [rsi + 0x10]
cmp dword [rbx], r10d
je 0x100094780
cmp dword [rbx], 6
jne 0x1000947df
cmp dword [rcx + 8], 0x5c
mov r13d, 0x38
jb 0x1000947df
mov eax, dword [rcx + 0x40]
add eax, r13d
cmp dword [rcx + 8], eax
jb 0x1000947df
cmp dword [rcx + 0x38], r10d
jne 0x1000947df
cmp dword [rcx + 0x48], 5
jne 0x1000947df
lea rax, [rsp + 0x90]
lea r9, [rsp + 0x38]
xor r8d, r8d
xor edx, edx
add rcx, r13
mov qword [rsp + 0x20], rax
call fcn.100091cdc
mov r10, qword [rsp + 0x38]
mov edi, eax
test eax, eax
js 0x1000947ba
cmp dword [rsp + 0x90], 0x2e
jb 0x1000946d2
cmp dword [r10], 3
jne 0x1000946d2
mov eax, dword [r10 + 0x14]
cmp dword [rax + r10], 2
je 0x1000946dc
mov edi, 0xc000000d
jmp 0x1000947ba
lea rdx, [rax + r10 + 0x14]
xor eax, eax
or r8, 0xffffffffffffffff
mov rdi, rdx
mov qword [rsp + 0x48], rdx
mov rcx, r8
repne scasw ax, word [rdi]
lea rdi, [r10 + 0x18]
not rcx
lea rdx, [rcx - 1]
mov rcx, r8
repne scasw ax, word [rdi]
add edx, edx
not rcx
mov qword [rsp + 0x40], rdx
lea eax, [rcx + rcx]
mov rcx, qword gs:[0x30]
mov rcx, qword [rcx + 0x60]
lea r8d, [rdx + rax]
xor edx, edx
mov rcx, qword [rcx + 0x30]
mov dword [rsp + 0x30], eax
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov r12, rax
test rax, rax
jne 0x100094748
mov r10, qword [rsp + 0x38]
mov edi, 0xc0000017
jmp 0x1000947ba
mov edi, dword [rsp + 0x40]
mov rdx, qword [rsp + 0x48]
mov rcx, rax
mov r8, rdi
call sub.msvcrt.dll_memcpy
mov rdx, qword [rsp + 0x38]
mov r8d, dword [rsp + 0x30]
lea rcx, [rdi + r12]
add rdx, 0x18
call sub.msvcrt.dll_memcpy
mov r10, qword [rsp + 0x38]
mov rax, qword [rsp + 0x98]
xor edi, edi
test rax, rax
je 0x10009478a
mov qword [rax], rsi
test r15, r15
je 0x100094792
mov qword [r15], rbp
test r14, r14
je 0x10009479a
mov qword [r14], rbx
mov rax, qword [rsp + 0xb8]
test rax, rax
je 0x1000947aa
mov dword [rax], r13d
mov rax, qword [rsp + 0xb0]
test rax, rax
je 0x1000947ba
mov qword [rax], r12
test r10, r10
je 0x1000947e4
mov rax, qword gs:[0x30]
mov r8, qword [rsp + 0x38]
xor edx, edx
mov rcx, qword [rax + 0x60]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
jmp 0x1000947e4
mov edi, 0xc000000d
mov eax, edi
mov rbx, qword [rsp + 0xa0]
add rsp, 0x50
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x100096f2c
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 0x10009707a
cmp dl, 4
jne 0x100096fa2
cmp byte [r9 + 1], dl
jne 0x100096fa2
movzx ecx, byte [r9 + 3]
movzx eax, byte [r9 + 2]
shl ecx, 8
or ecx, eax
cmp ecx, 4
jb 0x100096ffe
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 0x100096f7e
cmp esi, edi
je 0x10009707a
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 0x100097005
mov eax, 0xc000009a
jmp 0x10009707f
mov eax, 0xc0000095
jmp 0x10009707f
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 0x100097060
cmp cl, 4
jne 0x10009704c
cmp byte [rdi + 1], cl
jne 0x10009704c
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 0x10009701e
xor eax, eax
mov qword [r14], rbp
mov dword [r13], esi
mov word [r12], ax
jmp 0x10009707f
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 0x100097ff4
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, [0x10014f960]
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 0x10009808d
cmp eax, 0xc0000017
je 0x100098171
cmp eax, 0xc000009a
je 0x100098171
mov ebx, 0xc0000452
jmp 0x100098171
mov rsi, qword [rsp + 0x90]
call fcn.100098368
mov rbx, rax
cmp rax, r12
je 0x1000980ad
mov rcx, rsi
call qword [sym.imp.ntdll.dll_NtClose]
jmp 0x1000980b0
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 0x1000980fd
cmp eax, r12d
jl 0x100098171
mov ebx, 0xc0000001
jmp 0x100098171
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 0x100098131
mov ebx, 0xc000009a
jmp 0x100098171
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 0x100098171
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 0x100098184
call qword [sym.imp.ntdll.dll_NtClose]
cmp ebx, r12d
jge 0x1000981aa
cmp rdi, r12
je 0x1000981aa
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 0x100098b00
Capabilities:
Delete registry key
Set registry value

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
push rbp
push rsi
push rdi
sub rsp, 0x90
and dword [rax + 0x10], 0
and qword [rax + 0x18], 0
mov rbp, rcx
lea rcx, [rax - 0x68]
lea rdx, [0x10014fab0]
xor esi, esi
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
and qword [rsp + 0x68], rsi
and qword [rsp + 0x80], rsi
and qword [rsp + 0x88], rsi
lea rax, [rsp + 0x40]
mov dword [rsp + 0x60], 0x30
mov qword [rsp + 0x70], rax
mov dword [rsp + 0x78], 0x40
call fcn.100098c90
mov edi, eax
test eax, eax
js 0x100098c32
lea rax, [rsp + 0xb8]
lea r8, [rsp + 0x60]
lea rcx, [rsp + 0xc0]
mov qword [rsp + 0x30], rax
xor r9d, r9d
mov edx, 0xf003f
mov dword [rsp + 0x28], 1
and qword [rsp + 0x20], rsi
call qword [sym.imp.ntdll.dll_NtCreateKey]
mov edi, eax
test eax, eax
js 0x100098c32
mov rbx, qword [rsp + 0xc0]
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, rbp
lea rdx, [0x10014fb30]
repne scasw ax, word [rdi]
not rcx
lea edi, [rcx + rcx]
lea rcx, [rsp + 0x50]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
lea r9d, [rsi + 1]
lea rdx, [rsp + 0x50]
xor r8d, r8d
mov rcx, rbx
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], rbp
call qword [sym.imp.ntdll.dll_NtSetValueKey]
mov edi, eax
test eax, eax
js 0x100098c32
mov ecx, 0x60019
call fcn.100098f24
mov rsi, rax
test rax, rax
jne 0x100098c16
mov edi, 0xc0000001
jmp 0x100098c32
mov rcx, qword [rsp + 0xc0]
mov r8, rax
mov edx, 4
call qword [sym.imp.ntdll.dll_NtSetSecurityObject]
mov edi, eax
test eax, eax
jns 0x100098c40
mov rcx, qword [rsp + 0xc0]
call qword [sym.imp.ntdll.dll_NtDeleteKey]
mov rcx, qword [rsp + 0xc0]
test rcx, rcx
je 0x100098c53
call qword [sym.imp.ntdll.dll_NtClose]
test rsi, rsi
je 0x100098c74
mov rax, qword gs:[0x30]
mov r8, rsi
xor edx, edx
mov rcx, qword [rax + 0x60]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov eax, edi
mov rbx, qword [rsp + 0xb0]
add rsp, 0x90
pop rdi
pop rsi
pop rbp
ret
Function at 0x100098c90
Capabilities:
Delete registry key

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
push rdi
sub rsp, 0x20
and qword [rax + 8], 0
lea r9, [rax + 8]
lea rdx, [0x10014fab0]
mov r8d, 0x60019
xor ecx, ecx
xor esi, esi
call fcn.100099268
mov edi, eax
test eax, eax
jns 0x100098d14
cmp eax, 0xc0000034
jne 0x100098cce
xor edi, edi
mov rbx, qword [rsp + 0x30]
test rbx, rbx
je 0x100098ce1
mov rcx, rbx
call qword [sym.imp.ntdll.dll_NtClose]
test rsi, rsi
je 0x100098d02
mov rax, qword gs:[0x30]
mov r8, rsi
xor edx, edx
mov rcx, qword [rax + 0x60]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov eax, edi
add rsp, 0x20
pop rdi
ret
mov ecx, 0xf003f
call fcn.100098f24
mov rbx, qword [rsp + 0x30]
mov rsi, rax
test rax, rax
jne 0x100098d32
mov edi, 0xc0000001
jmp 0x100098cd3
mov r8, rax
mov edx, 4
mov rcx, rbx
call qword [sym.imp.ntdll.dll_NtSetSecurityObject]
mov edi, eax
test eax, eax
js 0x100098cd3
mov rcx, rbx
call qword [sym.imp.ntdll.dll_NtClose]
and qword [rsp + 0x30], 0
lea r9, [rsp + 0x30]
lea rdx, [0x10014fab0]
mov r8d, 0xf003f
xor ecx, ecx
call fcn.100099268
mov edi, eax
test eax, eax
js 0x100098cce
mov rbx, qword [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.ntdll.dll_NtDeleteKey]
mov edi, eax
jmp 0x100098cd3