joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140005a68
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov edx, ecx
mov ebx, 0x104
mov ecx, ebx
call fcn.1400083f0
mov ecx, ebx
mov rdx, rax
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetTempPathA]
lea rcx, str.Kernel32.DLL
mov edi, eax
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rbp, rax
test rax, rax
je 0x140005ada
lea rdx, str.GetLongPathNameA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140005ad1
mov r8d, ebx
mov rdx, rsi
mov rcx, rsi
call rax
mov edi, eax
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
sub ebx, edi
mov ecx, ebx
call fcn.140008590
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
movsxd r11, edi
mov byte [r11 + rsi], 0
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x140005b00
Capabilities:
Delete file

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
test rcx, rcx
je 0x140005b2b
test dl, 2
je 0x140005b1e
mov edx, pe_nt_image_headers64
call qword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
cdqe
jmp 0x140005b2d
xor eax, eax
add rsp, 0x20
pop rbx
ret
xor edx, edx
jmp 0x140005b00

Function at 0x140005b34
Capabilities:
Delete file
Set file attributes

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
test rcx, rcx
je 0x140005b2b
test dl, 2
je 0x140005b1e
mov edx, pe_nt_image_headers64
call qword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
cdqe
jmp 0x140005b2d
xor eax, eax
add rsp, 0x20
pop rbx
ret
xor edx, edx
jmp 0x140005b00

Function at 0x140005b3c
Capabilities:
Set current directory

Disassembly:
sub rsp, 0x28
test rcx, rcx
je 0x140005b4f
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
cdqe
jmp 0x140005b51
xor eax, eax
add rsp, 0x28
ret

Function at 0x140005c10
Capabilities:
Create directory

Disassembly:
sub rsp, 0x138
test rcx, rcx
je 0x140005c83
mov rdx, rcx
lea rcx, [rsp + 0x20]
mov r8d, 0x104
call sub.msvcrt.dll_strncpy
lea rcx, [rsp + 0x20]
mov byte [rsp + 0x124], 0
call sub.msvcrt.dll_strlen
lea rcx, [rsp + rax + 0x20]
lea rax, [rsp + 0x20]
cmp rcx, rax
jbe 0x140005c6f
lea rdx, [rcx - 1]
mov al, byte [rdx]
cmp al, 0x20
je 0x140005c62
cmp al, 0x5c
je 0x140005c62
cmp al, 0x2f
jne 0x140005c6f
lea rax, [rsp + 0x20]
mov rcx, rdx
cmp rdx, rax
ja 0x140005c50
mov byte [rcx], 0
lea rcx, [rsp + 0x20]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
cdqe
jmp 0x140005c85
xor eax, eax
add rsp, 0x138
ret
Function at 0x140005dd0
Capabilities:
Check if file exists

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
sub rsp, 0x20
xor ebx, ebx
mov rsi, r8
mov rbp, rdx
cmp qword [0x1400132c0], rbx
mov r13, rcx
jne 0x140005e17
lea r8, [fcn.140005d8c]
lea edx, [rbx + 0x10]
mov ecx, 0x150
call fcn.140007ab0
mov qword [0x1400132c0], rax
test rbp, rbp
lea rdi, [0x14000e952]
cmovne rdi, rbp
test rsi, rsi
je 0x140005e2e
cmp byte [rsi], bl
jne 0x140005e35
lea rsi, [0x14000e9bc]
mov rcx, rdi
call sub.msvcrt.dll_strlen
mov rcx, rsi
mov r12, rax
call sub.msvcrt.dll_strlen
mov rcx, qword [0x14001303c]
lea eax, [rax + r12 + 2]
xor edx, edx
movsxd r8, eax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbp, rax
test rax, rax
je 0x140005f0d
mov rdx, rdi
mov rcx, rax
call sub.msvcrt.dll_strcpy
test r12d, r12d
je 0x140005e94
movsxd rax, r12d
cmp byte [rax + rdi - 1], 0x5c
je 0x140005e94
lea rdx, [0x14000e9b8]
mov rcx, rbp
call sub.msvcrt.dll_strcat
mov rdx, rsi
mov rcx, rbp
call sub.msvcrt.dll_strcat
mov rcx, qword [0x1400132c0]
mov rdx, r13
call fcn.1400079a4
mov rcx, rbp
lea rdx, [rax + 0xc]
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov qword [rdi], rax
cmp rax, 0xffffffffffffffff
je 0x140005ecc
mov dword [rdi + 8], ebx
jmp 0x140005ede
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x140005ee3
mov dword [rdi + 8], 1
mov rbx, rdi
jmp 0x140005efb
cmp r13, 0xffffffffffffffff
jne 0x140005ef8
mov rcx, qword [0x1400132c0]
mov rdx, rdi
call fcn.140007a70
mov qword [rdi], rbx
mov rcx, qword [0x14001303c]
mov r8, rbp
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rax, rbx
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop r13
pop r12
pop rdi
ret

Function at 0x140005f90
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x30
xor eax, eax
mov rbx, rcx
mov dword [rsp + 0x40], eax
cmp dword [rcx + 0x1c], eax
jne 0x140005fd6
mov r8d, dword [rcx + 0x10]
mov rdx, qword [rcx + 8]
lea r9, [rsp + 0x40]
sub r8d, dword [rcx + 0x14]
mov rcx, qword [rcx]
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov r11d, dword [rbx + 0x10]
movsxd rax, dword [rsp + 0x40]
mov dword [rbx + 0x14], r11d
add rsp, 0x30
pop rbx
ret
cdqe
add rsp, 0x30
pop rbx
ret

Function at 0x1400066e0
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov rdx, rcx
mov rcx, qword [0x1400133a0]
call fcn.140007a44
mov rbx, rax
test rax, rax
je 0x140006734
cmp qword [rax + 8], 0
je 0x140006712
cmp dword [rax + 0x1c], 0
jne 0x140006712
mov rcx, rax
call fcn.140005f90
mov rcx, qword [rbx]
lea rdx, [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov r11d, eax
mov eax, dword [rsp + 0x38]
shl rax, 0x20
or rax, r11
add rsp, 0x20
pop rbx
ret
or rax, 0xffffffffffffffff
add rsp, 0x20
pop rbx
ret
Function at 0x140006830
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rdi, rdx
mov rdx, rcx
mov rcx, qword [0x1400133a0]
mov rbx, r8
mov dword [rsp + 0x58], 0
call fcn.140007a44
test rax, rax
je 0x140006898
cmp qword [rax + 8], 0
mov rdx, rdi
je 0x14000687e
mov r8, rbx
mov rcx, rax
call fcn.140006ae0
cdqe
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
mov rcx, qword [rax]
lea r9, [rsp + 0x58]
mov r8d, ebx
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_ReadFile]
movsxd rax, dword [rsp + 0x58]
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret

Function at 0x1400068b0
Capabilities:
Write file on windows

Disassembly:
push rbx
push rbp
push rsi
sub rsp, 0x30
mov rsi, rdx
mov rdx, rcx
mov rcx, qword [0x1400133a0]
xor ebp, ebp
mov dword [rsp + 0x60], ebp
mov dword [rsp + 0x68], ebp
call fcn.140007a44
mov rbx, rax
test rax, rax
je 0x140006990
test rsi, rsi
je 0x14000693b
cmp byte [rsi], bpl
je 0x14000693b
or rcx, 0xffffffffffffffff
mov qword [rsp + 0x50], rdi
mov rdx, rsi
mov rdi, rsi
cmp qword [rax + 8], rbp
je 0x140006918
xor eax, eax
repne scasb al, byte [rdi]
not rcx
lea r8, [rcx - 1]
mov rcx, rbx
call fcn.140006c10
mov dword [rsp + 0x60], eax
jmp 0x140006936
xor eax, eax
lea r9, [rsp + 0x60]
mov qword [rsp + 0x20], rbp
repne scasb al, byte [rdi]
not rcx
lea r8, [rcx - 1]
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rdi, qword [rsp + 0x50]
mov r8d, 2
lea rdx, [0x14000e9c0]
cmp qword [rbx + 8], rbp
je 0x140006969
mov rcx, rbx
call fcn.140006c10
mov rdx, rax
mov eax, dword [rsp + 0x60]
add eax, edx
cdqe
add rsp, 0x30
pop rsi
pop rbp
pop rbx
ret
mov rcx, qword [rbx]
lea r9, [rsp + 0x68]
mov qword [rsp + 0x20], rbp
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [rsp + 0x60]
mov edx, dword [rsp + 0x68]
add eax, edx
cdqe
add rsp, 0x30
pop rsi
pop rbp
pop rbx
ret
movsxd rax, dword [rsp + 0x60]
add rsp, 0x30
pop rsi
pop rbp
pop rbx
ret

Function at 0x1400069a0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
xor ebx, ebx
mov rsi, rdx
mov dword [rsp + 0x48], ebx
test rdx, rdx
je 0x140006a31
cmp byte [rdx], bl
je 0x140006a31
mov rdx, rcx
mov rcx, qword [0x1400133a0]
call fcn.140007a44
mov r11, rax
test rax, rax
je 0x140006a2d
or rcx, 0xffffffffffffffff
mov rdi, rsi
mov rdx, rsi
cmp qword [rax + 8], rbx
je 0x140006a0f
xor eax, eax
repne scasb al, byte [rdi]
not rcx
lea r8, [rcx - 1]
mov rcx, r11
call fcn.140006c10
mov ebx, eax
cdqe
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
xor eax, eax
lea r9, [rsp + 0x48]
mov qword [rsp + 0x20], rbx
repne scasb al, byte [rdi]
not rcx
lea r8, [rcx - 1]
mov rcx, qword [r11]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov ebx, dword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
movsxd rax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x140006a50
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
xor ebx, ebx
mov edi, r8d
mov rsi, rdx
mov dword [rsp + 0x48], ebx
test rdx, rdx
je 0x140006ac8
test r8d, r8d
je 0x140006ac8
mov rdx, rcx
mov rcx, qword [0x1400133a0]
call fcn.140007a44
test rax, rax
je 0x140006ac4
mov r8d, edi
mov rdx, rsi
cmp qword [rax + 8], rbx
je 0x140006ab1
mov rcx, rax
call fcn.140006c10
mov ebx, eax
cdqe
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
mov rcx, qword [rax]
lea r9, [rsp + 0x48]
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov ebx, dword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
movsxd rax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret

Function at 0x140006ae0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
sub rsp, 0x30
xor r12d, r12d
mov rdi, r8
mov rsi, rdx
mov rbx, rcx
cmp dword [rcx + 0x1c], r12d
jne 0x140006b14
call fcn.140005f90
mov dword [rbx + 0x1c], 1
mov dword [rbx + 0x14], r12d
movsxd rcx, dword [rbx + 0x14]
mov eax, dword [rbx + 0x18]
sub eax, ecx
mov rbp, rcx
cmp rcx, rdi
jl 0x140006b79
movsxd rcx, eax
mov rax, rdi
add rcx, qword [rbx + 8]
dec rax
je 0x140006b6f
dec rax
je 0x140006b61
cmp rax, 2
je 0x140006b55
mov rdx, rcx
mov r8, rdi
mov rcx, rsi
call sub.msvcrt.dll_memcpy
movsxd rax, edi
jmp 0x140006bf4
mov eax, dword [rcx]
mov dword [rsi], eax
movsxd rax, edi
jmp 0x140006bf4
movzx eax, word [rcx]
mov word [rsi], ax
movsxd rax, edi
jmp 0x140006bf4
movzx eax, byte [rcx]
mov byte [rsi], al
movsxd rax, edi
jmp 0x140006bf4
movsxd rdx, eax
mov r8, rcx
mov rcx, rsi
add rdx, qword [rbx + 8]
call sub.msvcrt.dll_memcpy
movsxd r8, dword [rbx + 0x10]
mov rcx, qword [rbx]
sub rdi, rbp
add rsi, rbp
mov qword [rsp + 0x20], r12
lea r9, [rsp + 0x50]
cmp rdi, r8
jl 0x140006bc1
mov r8d, edi
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [rsp + 0x50]
mov dword [rbx + 0x14], r12d
add eax, ebp
cdqe
jmp 0x140006bf7
mov rdx, qword [rbx + 8]
call qword [sym.imp.KERNEL32.dll_ReadFile]
movsxd r11, dword [rsp + 0x50]
mov rdx, qword [rbx + 8]
cmp rdi, r11
mov rcx, rsi
mov dword [rbx + 0x14], r11d
cmovg rdi, r11
mov dword [rbx + 0x18], r11d
mov r8, rdi
call sub.msvcrt.dll_memcpy
lea eax, [rbp + rdi]
cdqe
sub dword [rbx + 0x14], edi
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
add rsp, 0x30
pop r12
pop rdi
pop rsi
ret
Function at 0x140006c10
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
cmp dword [rcx + 0x1c], 1
movsxd rdi, r8d
mov rsi, rdx
mov rbx, rcx
mov dword [rsp + 0x50], 0
jne 0x140006c5a
mov edx, dword [rcx + 0x14]
mov rcx, qword [rcx]
mov r9d, 1
neg edx
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [rbx + 0x10]
mov dword [rbx + 0x1c], 0
mov dword [rbx + 0x14], eax
mov ecx, dword [rbx + 0x14]
cmp ecx, edi
jle 0x140006c96
mov eax, dword [rbx + 0x10]
mov edx, edi
sub eax, ecx
movsxd rcx, eax
add rcx, qword [rbx + 8]
dec edx
je 0x140006c8f
dec edx
je 0x140006c87
cmp edx, 2
je 0x140006c81
mov rdx, rsi
jmp 0x140006ce4
mov eax, dword [rsi]
mov dword [rcx], eax
jmp 0x140006cec
movzx eax, word [rsi]
mov word [rcx], ax
jmp 0x140006cec
movzx eax, byte [rsi]
mov byte [rcx], al
jmp 0x140006cec
mov rcx, rbx
call fcn.140005f90
mov r11d, dword [rbx + 0x10]
mov rdx, rsi
cmp edi, r11d
jl 0x140006cd9
mov rcx, qword [rbx]
lea r9, [rsp + 0x50]
mov r8d, edi
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteFile]
movsxd rax, dword [rsp + 0x50]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
sub r11d, dword [rbx + 0x14]
movsxd rcx, r11d
add rcx, qword [rbx + 8]
mov r8, rdi
call sub.msvcrt.dll_memcpy
sub dword [rbx + 0x14], edi
mov rsi, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x40]
mov rax, rdi
add rsp, 0x30
pop rdi
ret
Function at 0x140002ad4
Capabilities:
Enumerate processes via ntquerysysteminformation
Get system information on windows

Disassembly:
push rbx
sub rsp, 0x20
cmp qword [sym.imp.ntoskrnl.exe_ZwQuerySystemInformation], 0
je 0x140002b4f
and dword [rsp + 0x30], 0
lea r9, [rsp + 0x30]
xor edx, edx
xor r8d, r8d
lea ecx, [rdx + 5]
call qword [sym.imp.ntoskrnl.exe_ZwQuerySystemInformation]
mov eax, dword [rsp + 0x30]
test eax, eax
je 0x140002b4f
mov ecx, dword [0x140006300]
mov edx, eax
mov r8d, 0x41535043
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov rbx, rax
test rax, rax
je 0x140002b4f
mov r8d, dword [rsp + 0x30]
xor r9d, r9d
mov rdx, rax
lea ecx, [r9 + 5]
call qword [sym.imp.ntoskrnl.exe_ZwQuerySystemInformation]
lfence
test eax, eax
js 0x140002b41
mov rax, rbx
jmp 0x140002b51
mov edx, 0x41535043
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
xor eax, eax
add rsp, 0x20
pop rbx
ret

Function at 0x140002c3c
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r14
push r15
mov rbp, rsp
sub rsp, 0x20
and qword [rbp + 0x38], 0
lea rdx, [rbp + 0x38]
mov r14, rcx
call fcn.140002d64
mov edi, eax
test eax, eax
js 0x140002d39
lfence
cmp qword [rbp + 0x38], 0
je 0x140002d50
lfence
mov rbx, qword [rbp + 0x38]
xor esi, esi
cmp dword [rbx + 0x14], esi
jbe 0x140002d2c
and qword [rbp + 0x40], 0
lea r8, [rbp + 0x40]
mov edx, esi
mov rcx, r14
call fcn.140002e10
mov rdi, qword [rbp + 0x40]
test eax, eax
js 0x140002d0a
test rdi, rdi
je 0x140002d1d
mov edx, dword [rdi + 0xc]
lea rcx, [rdi + 0x10]
mov r8d, 0x41535247
call fcn.140003528
mov r15, rax
test rax, rax
je 0x140002d0a
lfence
and qword [rbp + 0x48], 0
lea rdx, [rbp + 0x48]
mov r9d, 0x10000
mov r8, r14
mov rcx, rax
call fcn.140002ecc
test eax, eax
js 0x140002cf8
mov rcx, qword [rbp + 0x48]
call fcn.140002c3c
mov rcx, qword [rbp + 0x48]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov edx, 0x41535247
mov rcx, r15
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov rdi, qword [rbp + 0x40]
test rdi, rdi
je 0x140002d1d
mov edx, 0x41535247
mov rcx, rdi
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
inc esi
cmp esi, dword [rbx + 0x14]
jb 0x140002c8a
mov rbx, qword [rbp + 0x38]
mov rcx, r14
call qword [sym.imp.ntoskrnl.exe_ZwDeleteKey]
mov edi, eax
jmp 0x140002d3d
mov rbx, qword [rbp + 0x38]
test rbx, rbx
je 0x140002d50
mov edx, 0x41535247
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov rbx, qword [rsp + 0x50]
mov eax, edi
add rsp, 0x20
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x140002d64
Capabilities:
Query or enumerate registry key

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rbx, rdx
mov rdi, rcx
test rdx, rdx
jne 0x140002d83
mov eax, 0xc000000d
jmp 0x140002e04
and qword [rdx], 0
lea rax, [rsp + 0x48]
and dword [rsp + 0x48], 0
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea edx, [r9 + 2]
call qword [sym.imp.ntoskrnl.exe_ZwQueryKey]
mov edx, dword [rsp + 0x48]
mov ecx, 1
mov r8d, 0x41535247
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov qword [rbx], rax
test rax, rax
jne 0x140002dca
mov eax, 0xc0000088
jmp 0x140002e04
mov r9d, dword [rsp + 0x48]
lea rcx, [rsp + 0x48]
mov qword [rsp + 0x20], rcx
mov r8, rax
mov rcx, rdi
mov edx, 2
call qword [sym.imp.ntoskrnl.exe_ZwQueryKey]
mov edi, eax
test eax, eax
jns 0x140002e02
mov rcx, qword [rbx]
mov edx, 0x41535247
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
and qword [rbx], 0
mov eax, edi
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret

Function at 0x140002e10
Capabilities:
Query or enumerate registry key

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov rbx, r8
mov edi, edx
mov rsi, rcx
test r8, r8
jne 0x140002e36
mov eax, 0xc000000d
jmp 0x140002ebb
and qword [r8], 0
lea rax, [rsp + 0x50]
and dword [rsp + 0x50], 0
xor r9d, r9d
mov qword [rsp + 0x28], rax
xor r8d, r8d
and dword [rsp + 0x20], 0
call qword [sym.imp.ntoskrnl.exe_ZwEnumerateKey]
mov edx, dword [rsp + 0x50]
mov ecx, 1
mov r8d, 0x41535247
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov qword [rbx], rax
mov r9, rax
test rax, rax
jne 0x140002e81
mov eax, 0xc0000088
jmp 0x140002ebb
lea rax, [rsp + 0x50]
xor r8d, r8d
mov qword [rsp + 0x28], rax
mov edx, edi
mov eax, dword [rsp + 0x50]
mov rcx, rsi
mov dword [rsp + 0x20], eax
call qword [sym.imp.ntoskrnl.exe_ZwEnumerateKey]
mov edi, eax
test eax, eax
jns 0x140002eb9
mov rcx, qword [rbx]
mov edx, 0x41535247
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
and qword [rbx], 0
mov eax, edi
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret

Function at 0x1400037b0
Capabilities:
Get system information on windows

Disassembly:
push rbx
sub rsp, 0x20
cmp qword [sym.imp.ntoskrnl.exe_ZwQuerySystemInformation], 0
je 0x14000382e
and dword [rsp + 0x30], 0
lea r9, [rsp + 0x30]
xor r8d, r8d
lea rdx, [rsp + 0x30]
lea ecx, [r8 + 0xb]
call qword [sym.imp.ntoskrnl.exe_ZwQuerySystemInformation]
mov eax, dword [rsp + 0x30]
test eax, eax
je 0x14000382e
mov edx, eax
mov ecx, 1
mov r8d, 0x41534d44
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov rbx, rax
test rax, rax
je 0x14000382e
mov r8d, dword [rsp + 0x30]
xor r9d, r9d
mov rdx, rax
lea ecx, [r9 + 0xb]
call qword [sym.imp.ntoskrnl.exe_ZwQuerySystemInformation]
lfence
test eax, eax
js 0x140003820
mov rax, rbx
jmp 0x140003830
mov edx, 0x41534d44
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
xor eax, eax
add rsp, 0x20
pop rbx
ret
Function at 0x140003838
Capabilities:
Get system information on windows

Disassembly:
sub rsp, 0x28
cmp qword [sym.imp.ntoskrnl.exe_ZwQuerySystemInformation], 0
jne 0x14000384a
xor eax, eax
jmp 0x14000386a
and dword [rsp + 0x30], 0
lea r9, [rsp + 0x30]
xor r8d, r8d
lea rdx, [rsp + 0x30]
lea ecx, [r8 + 0xb]
call qword [sym.imp.ntoskrnl.exe_ZwQuerySystemInformation]
mov eax, dword [rsp + 0x30]
add rsp, 0x28
ret

Function at 0x140009750
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 0x18], rbx
push rdi
sub rsp, 0x50
mov rax, qword [0x1400062f0]
xor rax, rsp
mov qword [rsp + 0x48], rax
lea rax, [r11 - 0x28]
mov rdi, r9
mov ebx, r8d
mov qword [r11 - 0x30], rax
lea r9, [r11 - 0x20]
mov dword [rsp + 0x20], 0x10
mov r8d, 2
call qword [sym.imp.ntoskrnl.exe_ZwQueryValueKey]
nop dword [rax + rax]
test eax, eax
js 0x1400097ad
cmp dword [rsp + 0x3c], 4
jne 0x1400097a8
mov ebx, dword [rsp + 0x44]
jmp 0x1400097ad
mov eax, 0xc0000024
mov dword [rdi], ebx
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140003880
mov rbx, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret

Function at 0x1400097d0
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 r14
push r15
sub rsp, 0x30
mov r14, qword [rsp + 0x70]
mov esi, r8d
mov rbp, rdx
mov r15, rcx
and qword [r14], 0
movzx eax, word [rdx]
add eax, 0x1f
and eax, 0xfffffff8
lea edi, [rax + r9]
cmp edi, eax
jb 0x140009910
mov edx, edi
mov ecx, 0x200
mov r8d, 0x62527050
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
nop dword [rax + rax]
mov rbx, rax
test rax, rax
je 0x140009909
lea rax, [rsp + 0x68]
mov r9, rbx
mov qword [rsp + 0x28], rax
mov r8d, 1
mov rdx, rbp
mov dword [rsp + 0x20], edi
mov rcx, r15
call qword [sym.imp.ntoskrnl.exe_ZwQueryValueKey]
nop dword [rax + rax]
mov edi, eax
test eax, eax
jns 0x1400098e1
xor edx, edx
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
nop dword [rax + rax]
cmp edi, 0x80000005
je 0x14000988b
cmp edi, 0xc0000023
je 0x14000988b
mov eax, edi
jmp 0x140009915
mov edx, dword [rsp + 0x68]
mov ecx, 0x200
mov r8d, 0x62527050
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
nop dword [rax + rax]
mov rbx, rax
test rax, rax
je 0x140009909
lea rax, [rsp + 0x68]
mov r9, rbx
mov qword [rsp + 0x28], rax
mov r8d, 1
mov eax, dword [rsp + 0x68]
mov rdx, rbp
mov rcx, r15
mov dword [rsp + 0x20], eax
call qword [sym.imp.ntoskrnl.exe_ZwQueryValueKey]
nop dword [rax + rax]
mov edi, eax
test eax, eax
js 0x1400098ef
test esi, esi
je 0x140009902
cmp dword [rbx + 4], esi
je 0x140009902
mov edi, 0xc0000024
xor edx, edx
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
nop dword [rax + rax]
jmp 0x140009884
mov qword [r14], rbx
xor eax, eax
jmp 0x140009915
mov eax, 0xc000009a
jmp 0x140009915
mov eax, 0xc0000095
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x30
pop r15
pop r14
pop rdi
ret
Function at 0x140009930
Capabilities:
Set registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rbp
mov qword [r11 + 0x18], rsi
mov qword [r11 + 0x20], rdi
push r14
sub rsp, 0x40
xor eax, eax
mov rbp, rdx
movzx edx, word [r8]
mov rdi, r8
mov qword [r11 - 0x18], rax
mov r14, rcx
mov qword [r11 - 0x10], rax
movzx eax, word [r8 + 2]
sub rax, rdx
cmp rax, 2
jb 0x1400099a8
mov rax, qword [r8 + 8]
xor esi, esi
shr rdx, 1
lea r9d, [rsi + 1]
mov word [rax + rdx*2], si
mov rdx, rbp
movzx eax, word [r8]
add eax, 2
mov dword [rsp + 0x28], eax
mov rax, qword [r8 + 8]
xor r8d, r8d
mov qword [r11 - 0x28], rax
call qword [sym.imp.ntoskrnl.exe_ZwSetValueKey]
nop dword [rax + rax]
mov ebx, eax
jmp 0x140009a25
lea rcx, [rsp + 0x30]
call fcn.140009c40
xor esi, esi
mov ebx, eax
test eax, eax
js 0x140009a25
movzx r8d, word [rdi]
mov rdx, qword [rdi + 8]
mov rcx, qword [rsp + 0x38]
mov word [rsp + 0x30], r8w
call fcn.140003940
mov rax, qword [rsp + 0x38]
lea r9d, [rsi + 1]
movzx ecx, word [rsp + 0x30]
xor r8d, r8d
shr rcx, 1
mov rdx, rbp
mov word [rax + rcx*2], si
mov rcx, r14
movzx eax, word [rsp + 0x30]
add eax, 2
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntoskrnl.exe_ZwSetValueKey]
nop dword [rax + rax]
lea rcx, [rsp + 0x30]
mov ebx, eax
call qword [sym.imp.ntoskrnl.exe_RtlFreeUnicodeString]
nop dword [rax + rax]
mov rbp, qword [rsp + 0x58]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret

Function at 0x140009b10
Capabilities:
Set registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rsi
push rdi
sub rsp, 0x40
xor eax, eax
mov rsi, rcx
lea rcx, [r11 - 0x18]
mov qword [r11 - 0x18], rax
mov qword [r11 - 0x10], rax
mov rbx, r9
mov edi, r8d
call fcn.1400019b0
test eax, eax
js 0x140009b67
mov eax, dword [rsp + 0x70]
lea rdx, [rsp + 0x30]
mov dword [rsp + 0x28], eax
mov r9d, edi
xor r8d, r8d
mov qword [rsp + 0x20], rbx
mov rcx, rsi
call qword [sym.imp.ntoskrnl.exe_ZwSetValueKey]
nop dword [rax + rax]
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret