joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140062f30
Capabilities:
Persist via image file execution options registry key
Set registry value

Disassembly:
push rbx
sub rsp, 0x460
mov rax, qword [0x1401222f0]
xor rax, rsp
mov qword [rsp + 0x450], rax
movzx ebx, dl
xor eax, eax
lea rcx, [rsp + 0x42]
xor edx, edx
mov r8d, 0x40e
mov word [rsp + 0x40], ax
call fcn.1400a8b00
lea rcx, [rsp + 0x40]
mov edx, 0x208
call fcn.14005f400
lea r8, [rsp + 0x30]
lea rdx, str.SoftwareMicrosoftWindows_NTCurrentVersionImage_File_Execution_Options_taskmgr.exe
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x140063043
mov qword [rsp + 0x470], rdi
lea rcx, [rsp + 0x40]
or rax, 0xffffffffffffffff
nop dword [rax + rax]
cmp word [rcx + rax*2 + 2], 0
lea rax, [rax + 1]
jne 0x140062fb0
mov rcx, qword [rsp + 0x30]
lea eax, [rax*2 + 2]
lea rdx, [0x1400d7da0]
mov dword [rsp + 0x28], eax
lea rax, [rsp + 0x40]
mov r9d, 1
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x30]
mov edi, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
je 0x14006303f
test bl, bl
je 0x14006301c
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rdx, qword [0x14012bbd0]
lea rcx, str.Error_replacing_Task_Manager
call fcn.14009aca0
xor al, al
mov rdi, qword [rsp + 0x470]
mov rcx, qword [rsp + 0x450]
xor rcx, rsp
call fcn.1400ab140
add rsp, 0x460
pop rbx
ret
mov al, 1
jmp 0x14006301e
test bl, bl
je 0x140063062
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rdx, qword [0x14012bbd0]
lea rcx, str.Error_replacing_Task_Manager
call fcn.14009aca0
xor al, al
jmp 0x140063026

Function at 0x140063070
Capabilities:
Delete registry value

Disassembly:
sub rsp, 0x28
call fcn.140062750
test al, al
je 0x1400630b7
lea r8, [rsp + 0x30]
lea rdx, str.SoftwareMicrosoftWindows_NTCurrentVersionImage_File_Execution_Options_taskmgr.exe
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x1400630be
mov rcx, qword [rsp + 0x30]
lea rdx, [0x1400d7da0]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
add rsp, 0x28
ret
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rdx, qword [0x14012bbd0]
lea rcx, str.Error_restoring_Task_Manager
call fcn.14009aca0
xor al, al
add rsp, 0x28
ret
Function at 0x1400630e0
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x4b0
mov rax, qword [0x1401222f0]
xor rax, rsp
mov qword [rsp + 0x4a0], rax
mov rdi, rcx
mov ebx, edx
lea rcx, [rsp + 0x90]
mov edx, 0x208
movzx esi, r8b
call fcn.14005f400
xor edx, edx
lea rcx, [rsp + 0x20]
lea r8d, [rdx + 0x70]
call fcn.1400a8b00
lea rax, str.Runas
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x90]
mov dword [rsp + 0x20], WSAStartup
mov dword [rsp + 0x24], 0x40
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x50], ebx
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x40], rdi
call qword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
jne 0x140063181
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1400631a7
test sil, sil
je 0x140063197
mov rcx, qword [rsp + 0x88]
or edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov rcx, qword [rsp + 0x4a0]
xor rcx, rsp
call fcn.1400ab140
lea r11, [rsp + 0x4b0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x140063450
Capabilities:
Read file on windows

Disassembly:
push rbx
push rbp
push rdi
mov eax, 0x100c0
call fcn.1400ab0e0
sub rsp, rax
mov rax, qword [0x1401222f0]
xor rax, rsp
mov qword [rsp + 0x100b0], rax
xor ebp, ebp
mov rax, rdx
mov rdi, rcx
mov qword [rsp + 0x30], rbp
lea r8d, [rbp + 3]
xor r9d, r9d
mov edx, 0x80000000
mov rcx, rax
mov dword [rsp + 0x28], ebp
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x1400634ec
lea rax, str._Error_opening_file_
lea r9, [rsp + 0x50]
xor r8d, r8d
mov edx, 0x104d
mov rcx, rdi
mov dword [rsp + 0x50], 5
mov qword [rsp + 0x68], rax
mov dword [rsp + 0x54], 0x7fffffff
mov qword [rsp + 0x78], 1
call qword [sym.imp.USER32.dll_SendMessageW]
xor al, al
jmp 0x1400635c5
mov rax, qword [0x14012bce8]
mov qword [rsp + 0x100f0], rsi
test rax, rax
jne 0x140063514
mov edx, 0x7f02
xor ecx, ecx
call qword [sym.imp.USER32.dll_LoadCursorW]
mov qword [0x14012bce8], rax
mov rcx, rax
call qword [sym.imp.USER32.dll_SetCursor]
lea r9, [rsp + 0x40]
lea rdx, [rsp + 0xa0]
mov r8d, 0x10008
mov rcx, rbx
mov qword [rsp + 0x20], rbp
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400635a9
mov r9d, dword [rsp + 0x40]
test r9d, r9d
je 0x1400635a9
lea r8, [rsp + 0xa0]
mov edx, 3
mov rcx, rdi
call fcn.14005fac0
cmp dword [rsp + 0x40], 0x10008
jne 0x140063584
mov r9d, 1
xor r8d, r8d
mov rcx, rbx
lea edx, [r9 - 3]
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
lea r9, [rsp + 0x40]
lea rdx, [rsp + 0xa0]
mov r8d, 0x10008
mov rcx, rbx
mov qword [rsp + 0x20], rbp
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x140063545
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rsi
call qword [sym.imp.USER32.dll_SetCursor]
mov rsi, qword [rsp + 0x100f0]
mov al, 1
mov rcx, qword [rsp + 0x100b0]
xor rcx, rsp
call fcn.1400ab140
add rsp, 0x100c0
pop rdi
pop rbp
pop rbx
ret
Function at 0x140063d80
Capabilities:
Delete registry value
Set registry value

Disassembly:
push rdi
push r13
push r14
sub rsp, 0x40
xor r13d, r13d
lea r8, [rsp + 0x60]
lea rdx, str.SoftwareSysinternalsProcess_Explorer
mov rcx, 0xffffffff80000001
mov r14d, r13d
mov edi, r13d
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x140063ef6
mov qword [rsp + 0x68], rbx
mov rbx, qword [0x14012bc88]
mov qword [rsp + 0x70], rbp
mov rbp, qword [rbx]
test rbp, rbp
je 0x140063e09
mov edx, r13d
mov rax, rbx
nop dword [rax]
nop word [rax + rax]
mov rcx, qword [rax]
inc edi
lea rdx, [rdx + 1]
or rax, 0xffffffffffffffff
nop dword [rax]
inc rax
cmp word [rcx + rax*2], r13w
jne 0x140063df0
inc eax
add r14d, eax
cmp qword [rbx + rdx*8], r13
lea rax, [rbx + rdx*8]
jne 0x140063de0
inc r14d
test edi, edi
jne 0x140063e27
mov rcx, qword [rsp + 0x60]
lea rdx, str.HiddenProcs
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
jmp 0x140063ee1
mov qword [rsp + 0x78], rsi
lea rcx, [r14 + r14]
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], r15
mov r15d, r14d
call fcn.1400a82f0
mov r12, rax
mov rsi, rax
test rbp, rbp
je 0x140063ea6
mov rbp, r13
mov rdi, r13
nop dword [rax]
nop word [rax + rax]
mov r8, qword [rbx]
mov rdx, r15
mov rcx, rsi
call fcn.1400a97ac
mov rdx, qword [0x14012bc88]
lea rbp, [rbp + 1]
mov rcx, qword [rdi + rdx]
or rax, 0xffffffffffffffff
cmp word [rcx + rax*2 + 2], r13w
lea rax, [rax + 1]
jne 0x140063e81
lea rdi, [rbp*8]
lea rsi, [rsi + rax*2]
lea rbx, [rdi + rdx]
add rsi, 2
cmp qword [rbx], r13
jne 0x140063e60
mov word [rsi], r13w
mov rcx, qword [rsp + 0x60]
lea eax, [r14 + r14]
mov dword [rsp + 0x28], eax
lea rdx, str.HiddenProcs
mov r9d, 7
xor r8d, r8d
mov qword [rsp + 0x20], r12
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov r15, qword [rsp + 0x30]
mov r12, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbp, qword [rsp + 0x70]
mov rbx, qword [rsp + 0x68]
add rsp, 0x40
pop r14
pop r13
pop rdi
Function at 0x140064600
Capabilities:
Compare security identifiers

Disassembly:
mov r11, rsp
push rbx
sub rsp, 0x90
mov rax, qword [0x1401222f0]
xor rax, rsp
mov qword [rsp + 0x80], rax
xor ebx, ebx
mov dword [rsp + 0x78], 0
mov word [rsp + 0x7c], 0x500
cmp byte [0x14012b8d8], bl
mov qword [r11 - 0x28], rbx
jne 0x14006475c
mov qword [r11 + 8], rsi
mov qword [r11 + 0x10], rdi
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rsp + 0x68]
lea edx, [rbx + 8]
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
lea rax, [rsp + 0x70]
lea r8d, [rbx + 0x20]
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
lea rcx, [rsp + 0x78]
mov r9d, 0x220
mov dl, 2
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], ebx
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov rcx, qword [rsp + 0x68]
lea rax, [rsp + 0x60]
lea edx, [rbx + 2]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
mov edi, dword [rsp + 0x60]
mov ecx, edi
call fcn.1400a82f0
mov rcx, qword [rsp + 0x68]
lea edx, [rbx + 2]
mov rsi, rax
lea rax, [rsp + 0x60]
mov r9d, edi
mov r8, rsi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x140064727
cmp ebx, dword [rsi]
jae 0x140064720
nop dword [rax + rax]
mov rcx, qword [rsp + 0x70]
mov edi, ebx
add rdi, rdi
mov rdx, qword [rsi + rdi*8 + 8]
call qword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
je 0x140064718
mov eax, dword [rsi + rdi*8 + 0x10]
test al, 4
je 0x140064718
test eax, 0xffffffef
jne 0x14006471e
inc ebx
cmp ebx, dword [rsi]
jb 0x1400646f0
cmp ebx, dword [rsi]
setne byte [0x14012b8d9]
mov rcx, rsi
call fcn.1400a82b0
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_FreeSid]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdi, qword [rsp + 0xa8]
mov rsi, qword [rsp + 0xa0]
mov byte [0x14012b8d8], 1
movzx eax, byte [0x14012b8d9]
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.1400ab140
add rsp, 0x90
pop rbx
ret
Function at 0x140065b60
Capabilities:
Enumerate threads

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x1401222f0]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rbp, qword [rsp + 0x90]
mov edi, edx
mov edx, dword [rcx + 0x18]
mov rsi, rcx
mov ecx, 4
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140065be0
lea rdx, [rsp + 0x20]
mov rcx, rax
mov dword [rsp + 0x20], 0x1c
call sub.KERNEL32.dll_Thread32First
test eax, eax
je 0x140065bd7
mov eax, dword [rsi + 0x18]
cmp dword [rsp + 0x2c], eax
jne 0x140065bc6
cmp dword [rsp + 0x28], edi
je 0x140065c02
lea rdx, [rsp + 0x20]
mov rcx, rbx
call sub.KERNEL32.dll_Thread32Next
test eax, eax
jne 0x140065bb7
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0x80004005
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1400ab140
mov rbx, qword [rsp + 0x80]
add rsp, 0x50
pop rdi
pop rsi
pop rbp
ret
mov r8d, edi
mov edx, 1
mov ecx, 0x1f03ff
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rdi, rax
test rax, rax
je 0x140065bd7
mov rdx, rbp
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetThreadContext]
mov rcx, rdi
test eax, eax
jne 0x140065c38
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140065bd7
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x140065be5
Function at 0x1400666f0
Capabilities:
Enumerate process modules

Disassembly:
mov r11, rsp
push rbx
push rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x4e0
mov qword [rsp + 0x60], 0xfffffffffffffffe
mov rax, qword [0x1401222f0]
xor rax, rsp
mov qword [rsp + 0x4d0], rax
mov r15, r9
mov rsi, r8
mov r14, rdx
mov rdi, rcx
mov dword [r11 - 0x66], 4
xor ebp, ebp
mov dword [r11 - 0x62], 0xffffffff
mov word [r11 - 0x68], bp
mov qword [rsp + 0x58], rbp
mov word [r11 - 0x58], bp
mov edx, dword [rcx + 0xc]
lea ecx, [rbp + 8]
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140066818
mov dword [rsp + 0x70], 0x438
lea rdx, [rsp + 0x70]
mov rcx, rax
call sub.KERNEL32.dll_Module32FirstW
test eax, eax
jne 0x14006678b
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140066818
lea r12, [0x1400e7900]
mov eax, dword [rdi + 0xc]
cmp dword [rsp + 0x78], eax
jne 0x1400667e9
mov r10, qword [rsi]
lea rax, [rdi + 0x30]
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x40], rcx
lea rcx, [rsp + 0x4c0]
mov qword [rsp + 0x38], rcx
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], r12
lea rax, [rsp + 0x4b0]
mov qword [rsp + 0x20], rax
mov r9, r15
mov r8, r14
mov rdx, qword [rsp + 0x88]
mov rcx, rsi
call qword [r10 + reloc.OLEAUT32.dll_SafeArrayGetElement]
test eax, eax
je 0x1400667fc
lea rdx, [rsp + 0x70]
mov rcx, rbx
call sub.KERNEL32.dll_Module32NextW
test eax, eax
je 0x140066807
jmp 0x140066792
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x14006681d
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov eax, 0x80004005
jmp 0x14006681f
mov ebp, 0x80004005
mov eax, ebp
mov rcx, qword [rsp + 0x4d0]
xor rcx, rsp
call fcn.1400ab140
add rsp, 0x4e0
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140066850
Capabilities:
Enumerate process modules

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r14
sub rsp, 0x680
mov rax, qword [0x1401222f0]
xor rax, rsp
mov qword [rsp + 0x670], rax
mov r14, qword [rsp + 0x6d0]
xor r12d, r12d
mov rbp, rdx
mov edx, dword [rcx + 0xc]
mov rbx, rcx
lea ecx, [r12 + 8]
mov esi, r12d
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x1400669ee
lea rdx, [rsp + 0x20]
mov rcx, rax
mov dword [rsp + 0x20], 0x438
call sub.KERNEL32.dll_Module32FirstW
test eax, eax
jne 0x1400668ca
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1400669ee
mov qword [rsp + 0x6b8], r15
lea r15, str.clr.dll
nop dword [rax]
mov eax, dword [rbx + 0xc]
cmp dword [rsp + 0x28], eax
jne 0x14006693d
mov rax, r12
lea rdx, [rsp + 0x50]
movzx ecx, word [r15 + rax*2]
inc rax
cmp cx, word [rdx + rax*2 - 2]
jne 0x14006693d
cmp rax, 8
jne 0x1400668f1
lea rcx, [rsp + 0x250]
lea esi, [rax - 7]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
lea rcx, [rsp + 0x50]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_lstrlenW]
sub ebx, eax
movsxd r9, ebx
cmp r9, 0x7ffffffe
jbe 0x140066950
mov word [rsp + 0x460], r12w
jmp 0x1400669a1
lea rdx, [rsp + 0x20]
mov rcx, rdi
call sub.KERNEL32.dll_Module32NextW
test eax, eax
jne 0x1400668e0
jmp 0x1400669a1
lea r8, [rsp + 0x250]
lea rax, [rsp + 0x460]
mov edx, 0x105
sub r8, rax
lea rcx, [rsp + 0x460]
lea rax, [r9 - 0x105]
add rax, rdx
je 0x140066994
movzx eax, word [r8 + rcx]
test ax, ax
je 0x140066994
mov word [rcx], ax
add rcx, 2
dec rdx
jne 0x140066970
jmp 0x140066999
test rdx, rdx
jne 0x14006699d
sub rcx, 2
mov word [rcx], r12w
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r15, qword [rsp + 0x6b8]
test esi, esi
jne 0x1400669bd
mov eax, 0x80004005
jmp 0x1400669f0
lea rcx, [rsp + 0x460]
mov r8, rbp
mov edx, 0x105
call fcn.140067570
xor edx, edx
lea rcx, [rsp + 0x460]
lea r8d, [rdx + 8]
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
test rax, rax
je 0x1400669b6
mov qword [r14], rax
xor eax, eax
mov rcx, qword [rsp + 0x670]
xor rcx, rsp
call fcn.1400ab140
mov rbx, qword [rsp + 0x6c0]
add rsp, 0x680
pop r14
pop r12
pop rdi
pop rsi
pop rbp
ret

Function at 0x140066de0
Capabilities:
Resume thread

Disassembly:
push rbx
sub rsp, 0x20
mov r8d, edx
mov ecx, 0x1f03ff
mov edx, 1
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rbx, rax
test rax, rax
jne 0x140066e0c
mov eax, 0x80004005
add rsp, 0x20
pop rbx
ret
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
add rsp, 0x20
pop rbx
ret
Function at 0x140068ca0
Capabilities:
Set environment variable

Disassembly:
sub rsp, 0x78
mov qword [rsp + 0x20], 0xfffffffffffffffe
lea rdx, str.c:_no_fod.exe
lea rcx, str.COMPLUS_FodPath
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
nop
xor edx, edx
lea rcx, [rsp + 0x38]
call fcn.14004cc90
nop
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x28]
call fcn.14006c850
nop
lea r8, str..NET_CLR_Memory
xor edx, edx
lea rcx, [rsp + 0x28]
call fcn.14006c9a0
lea r8, [rsp + 0x38]
lea rdx, [rsp + 0x28]
lea rcx, [rsp + 0x50]
call fcn.14006c290
lea rdx, str..NET_CLR_Memory
lea rcx, [rsp + 0x50]
call fcn.14006c2a0
test rax, rax
setne al
mov byte [0x14012b8e1], al
test al, al
je 0x140068d69
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitialize]
cmp byte [0x14012b8e1], 0
je 0x140068d69
mov rax, qword [0x14012b8e8]
mov qword [0x14012b8f0], rax
lea rcx, [0x14012b8e8]
call qword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
lea r8, str..NET_CLR_Memory_.NET_CLR_Exceptions_.NET_CLR_Remoting_.NET_CLR_LocksAndThreads_.NET_CLR_Security_.NET_CLR_Jit_.NET_CLR_Loading_.NET_CLR_Interop_.NET_CLR_Data
xor edx, edx
lea rcx, [0x14012b920]
call fcn.14006c9a0
nop
lea rcx, [rsp + 0x28]
call fcn.140079530
nop
lea rcx, [rsp + 0x38]
call fcn.14004ce90
nop
add rsp, 0x78
ret

Function at 0x1400698e0
Capabilities:
Query or enumerate registry value

Disassembly:
sub rsp, 0x28
cmp byte [0x14012b8e1], 0
je 0x140069921
mov rax, qword [0x14012b8e8]
lea rcx, [0x14012b8e8]
mov qword [0x14012b8f0], rax
call qword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
lea r8, str..NET_CLR_Memory_.NET_CLR_Exceptions_.NET_CLR_Remoting_.NET_CLR_LocksAndThreads_.NET_CLR_Security_.NET_CLR_Jit_.NET_CLR_Loading_.NET_CLR_Interop_.NET_CLR_Data
lea rcx, [0x14012b920]
xor edx, edx
add rsp, 0x28
jmp fcn.14006c9a0
add rsp, 0x28
ret

Function at 0x140069e20
Capabilities:
Enumerate threads

Disassembly:
push rbx
sub rsp, 0x70
mov rax, qword [0x1401222f0]
xor rax, rsp
mov qword [rsp + 0x68], rax
xor edx, edx
lea ecx, [rdx + 4]
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140069eaf
lea rdx, [rsp + 0x48]
mov rcx, rax
mov dword [rsp + 0x48], 0x1c
call sub.KERNEL32.dll_Thread32First
test eax, eax
je 0x140069ea6
mov eax, dword [rsp + 0x50]
lea r9, [rsp + 0x30]
lea rdx, [rsp + 0x38]
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x54]
lea rcx, [0x14012b970]
mov dword [rsp + 0x34], eax
movzx eax, byte [0x14012b980]
xor r8d, r8d
mov byte [rsp + 0x20], al
call fcn.140069c90
lea rdx, [rsp + 0x48]
mov rcx, rbx
call sub.KERNEL32.dll_Thread32Next
test eax, eax
jne 0x140069e61
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.1400ab140
add rsp, 0x70
pop rbx
ret
Function at 0x14006a7c0
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
movzx esi, dl
mov rdi, rcx
cmp byte [rcx + 0x4d8], dl
jne 0x14006a7e5
xor eax, eax
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
cmp byte [rcx + 0x4b8], 0
mov qword [rsp + 0x58], rbx
jne 0x14006a866
lea rcx, str.advapi32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
lea rdx, [0x1400e8998]
mov rcx, rax
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, [0x1400e89a8]
mov rcx, rbx
mov qword [0x14012b988], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, [0x1400e89b8]
mov rcx, rbx
mov qword [0x14012b990], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, [0x1400e89c8]
mov rcx, rbx
mov qword [0x14012b998], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov byte [rdi + 0x4b8], 1
mov qword [0x14012b9a0], rax
cmp qword [0x14012b988], 0
jne 0x14006a885
mov eax, 1
mov rbx, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
xor eax, eax
mov dword [rdi], 0x4b0
mov dword [rdi + 0x2c], 0x20000
mov dword [rdi + 0x44], 1
cmp dword [0x140126558], 3
mov ecx, 0x2000000
cmovge eax, ecx
mov dword [rdi + 0x28], 1
bts eax, 8
mov dword [rdi + 0x40], eax
cmp dword [0x140126558], 3
jge 0x14006a8cc
movups xmm0, xmmword [0x1400e8270]
movups xmmword [rdi + 0x18], xmm0
mov dword [rdi + 0x74], 0x78
mov dword [rdi + 0x70], 0x280
cmp dword [0x140126558], 3
lea rax, str.PROCEXP_TRACE
lea r8, str.NT_Kernel_Logger
lea rcx, [rdi + 0x78]
cmovge r8, rax
mov edx, 0x104
call fcn.1400a97ac
lea rcx, [rdi + 0x280]
lea r8, [0x1400d1428]
mov edx, 0x104
call fcn.1400a97ac
mov eax, dword [rdi + 0x48]
or eax, 0x10100
mov dword [rdi + 0x48], eax
cmp dword [0x140126558], 3
jl 0x14006a933
or eax, 2
mov dword [rdi + 0x48], eax
test sil, sil
je 0x14006a9ae
lea rcx, [rdi + 0x4b0]
lea rdx, [rdi + 0x78]
mov r8, rdi
call qword [0x14012b988]
mov ebx, eax
test eax, eax
je 0x14006a95d
cmp eax, 0xb7
jne 0x14006aa0c
lea rax, [rsp + 0x30]
lea r8, [0x14006a030]
xor ebx, ebx
mov qword [rsp + 0x28], rax
mov r9, rdi
xor edx, edx
xor ecx, ecx
mov byte [rdi + 0x4d8], 1
mov dword [rsp + 0x20], ebx
call fcn.1400ab1f0
mov qword [rdi + 0x4c8], rax
cmp dword [0x140126558], 3
jl 0x14006aa0c
call fcn.140069e20
mov eax, ebx
mov rbx, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
mov rcx, qword [rdi + 0x4c0]
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov rcx, qword [rdi + 0x4b0]
lea rdx, [rdi + 0x78]
mov r9d, 1
mov r8, rdi
call qword [0x14012b990]
mov rcx, qword [rdi + 0x4c8]
or edx, 0xffffffff
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rdi + 0x4c8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rdi + 0x4c0]
mov qword [rdi + 0x4c8], 0
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov rsi, qword [rsp + 0x60]
mov eax, ebx
mov rbx, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
Function at 0x14006c9a0
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
sub rsp, 0x250
mov rax, qword [0x1401222f0]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov rdi, rcx
mov rcx, qword [rcx]
mov rsi, r8
mov rbx, rdx
call fcn.1400a7cb8
xor ebp, ebp
mov qword [rdi], rbp
test rbx, rbx
je 0x14006c9fa
lea r8, [rsp + 0x38]
mov rdx, 0xffffffff80000004
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegConnectRegistryW]
test eax, eax
je 0x14006ca03
jmp 0x14006cad5
mov qword [rsp + 0x38], 0xffffffff80000004
lea r8, [rsp + 0x40]
mov r9d, 0x100
mov rdx, rsi
mov rcx, rdi
call fcn.14006c860
test eax, eax
je 0x14006cad5
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
lea rdx, [rsp + 0x40]
mov qword [rsp + 0x28], rax
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x30], ebp
mov ebx, ebp
mov qword [rdi], rbp
mov qword [rsp + 0x20], rbp
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x14006cab4
cmp eax, 0xea
jne 0x14006caca
mov rcx, qword [rdi]
call fcn.1400aac28
mov eax, dword [rsp + 0x30]
cmp eax, ebx
jbe 0x14006ca72
lea ebx, [rax + 0x1000]
jmp 0x14006ca78
add ebx, 0x1000
mov ecx, ebx
call fcn.1400a6ff4
mov qword [rdi], rax
test rax, rax
je 0x14006caca
lea rcx, [rsp + 0x30]
lea rdx, [rsp + 0x40]
xor r9d, r9d
mov qword [rsp + 0x28], rcx
mov rcx, qword [rsp + 0x38]
xor r8d, r8d
mov dword [rsp + 0x30], ebx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14006ca53
mov rax, qword [rdi]
mov rcx, qword [rax]
cmp rcx, qword [str.PERF]
jne 0x14006caca
mov eax, 1
jmp 0x14006cad7
mov rcx, qword [rdi]
call fcn.1400aac28
mov qword [rdi], rbp
xor eax, eax
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.1400ab140
mov rbx, qword [rsp + 0x288]
add rsp, 0x250
pop rdi
pop rsi
pop rbp
ret