joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140009ea0
Capabilities:
Get thread local storage value

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
lea rdi, [0x140579240]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x140579220]
test rbx, rbx
je 0x140009eec
mov ecx, dword [rbx]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
test rsi, rsi
je 0x140009ee6
test eax, eax
jne 0x140009ee6
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
jmp 0x140009ebe
mov rcx, rdi
add rsp, 0x20
pop rbx
pop rsi
pop rdi
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x14000a0a0
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x14000a0c3
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
jne 0x14000a0c3
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret

Function at 0x14000a0c4
Capabilities:
Enumerate pe sections

Disassembly:
xor r8d, r8d
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
movzx r9d, word [rcx + 6]
lea rax, [rcx + rax + 0x18]
cmp r8d, r9d
jae 0x14000a0fe
mov r10d, dword [rax + 0xc]
mov rcx, r10
cmp rdx, r10
jb 0x14000a0f5
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x14000a100
inc r8d
add rax, 0x28
jmp 0x14000a0dc
xor eax, eax
ret

Function at 0x14000a171
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r9, qword [0x14056ec10]
mov r8, rcx
mov rcx, r9
call fcn.14000a0a0
test eax, eax
je 0x14000a19d
mov rdx, r8
mov rcx, r9
sub rdx, r9
add rsp, 0x28
jmp fcn.14000a0c4
xor eax, eax
add rsp, 0x28
ret
Function at 0x180001850
Capabilities:
Check if file exists
Contain obfuscated stackstrings
Encrypt data using rc4 prga
Get common file path
Get file attributes

Disassembly:
sub rsp, 0x198
mov rax, qword [0x18001e008]
xor rax, rsp
mov qword [rsp + 0x180], rax
mov byte [rsp + 0x34], 0
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, 0x1c
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathA]
test eax, eax
jl 0x180001a6d
mov byte [rsp + 0x48], 0xbf
mov byte [rsp + 0x49], 8
mov byte [rsp + 0x4a], 0xfc
mov byte [rsp + 0x4b], 0xfb
mov byte [rsp + 0x4c], 0x3e
mov byte [rsp + 0x4d], 0x80
mov byte [rsp + 0x4e], 0
mov byte [rsp + 0x4f], 0xf9
mov byte [rsp + 0x50], 0x3e
mov byte [rsp + 0x51], 0x79
mov byte [rsp + 0x52], 0xbb
mov byte [rsp + 0x53], 0xd0
mov byte [rsp + 0x54], 6
mov byte [rsp + 0x55], 0xf9
mov byte [rsp + 0x56], 0
mov byte [rsp + 0x57], 0x39
mov byte [rsp + 0x58], 0xbf
mov byte [rsp + 0x59], 0x3e
mov byte [rsp + 0x5a], 0xf9
mov byte [rsp + 0x5b], 0
mov byte [rsp + 0x5c], 0x39
mov byte [rsp + 0x5d], 0
mov byte [rsp + 0x5e], 0xfc
mov byte [rsp + 0x5f], 0xfb
mov byte [rsp + 0x60], 0x3e
mov byte [rsp + 0x61], 0x80
mov byte [rsp + 0x62], 0
mov byte [rsp + 0x63], 0xf9
mov byte [rsp + 0x64], 0x3e
mov byte [rsp + 0x65], 0x79
mov byte [rsp + 0x66], 0xbb
mov byte [rsp + 0x67], 0x4b
mov byte [rsp + 0x68], 0x3d
mov byte [rsp + 0x69], 0xfa
mov byte [rsp + 0x6a], 0x3d
mov byte [rsp + 0x6b], 0xd8
mov dword [rsp + 0x38], 0
mov dword [rsp + 0x30], 0
jmp 0x180001963
mov eax, dword [rsp + 0x38]
inc eax
mov dword [rsp + 0x38], eax
cmp dword [rsp + 0x38], 0x24
jae 0x180001a04
mov eax, dword [rsp + 0x38]
movzx eax, byte [rsp + rax + 0x48]
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x30]
not eax
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x30]
dec eax
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x30]
xor eax, 0xe1
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x30]
add eax, 0xd9
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x30]
not eax
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x30]
add eax, 0x9f
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x30]
not eax
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x30]
dec eax
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x30]
and eax, 0xff
shr eax, 6
mov ecx, dword [rsp + 0x30]
shl ecx, 2
or eax, ecx
and eax, 0xff
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x38]
movzx ecx, byte [rsp + 0x30]
mov byte [rsp + rax + 0x48], cl
jmp 0x180001959
lea r8, [rsp + 0x48]
mov edx, 0x104
lea rcx, [rsp + 0x70]
call fcn.180005f84
lea rcx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [rsp + 0x3c], eax
cmp dword [rsp + 0x3c], 0xffffffff
je 0x180001a43
mov eax, dword [rsp + 0x3c]
and eax, 0x10
test eax, eax
jne 0x180001a43
mov dword [rsp + 0x40], 1
jmp 0x180001a4b
mov dword [rsp + 0x40], 0
cmp dword [rsp + 0x40], 0
jne 0x180001a5c
mov dword [rsp + 0x44], 0
jmp 0x180001a64
mov dword [rsp + 0x44], 1
movzx eax, byte [rsp + 0x44]
mov byte [rsp + 0x34], al
movzx eax, byte [rsp + 0x34]
mov rcx, qword [rsp + 0x180]
xor rcx, rsp
call fcn.180002770
add rsp, 0x198
ret
Function at 0x180002560
Capabilities:
Execute syscall

Disassembly:
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
sub rsp, 0x28
mov ecx, 0x562b4fa4
call fcn.1800024f0
add rsp, 0x28
mov rcx, qword [rsp + 8]
mov rdx, qword [rsp + 0x10]
mov r8, qword [rsp + 0x18]
mov r9, qword [rsp + 0x20]
mov r10, rcx
syscall
ret

Function at 0x1800025a0
Capabilities:
Execute syscall

Disassembly:
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
sub rsp, 0x28
mov ecx, 0x3191053d
call fcn.1800024f0
add rsp, 0x28
mov rcx, qword [rsp + 8]
mov rdx, qword [rsp + 0x10]
mov r8, qword [rsp + 0x18]
mov r9, qword [rsp + 0x20]
mov r10, rcx
syscall
ret

Function at 0x1800025e0
Capabilities:
Execute syscall

Disassembly:
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
sub rsp, 0x28
mov ecx, 0x1b902d2f
call fcn.1800024f0
add rsp, 0x28
mov rcx, qword [rsp + 8]
mov rdx, qword [rsp + 0x10]
mov r8, qword [rsp + 0x18]
mov r9, qword [rsp + 0x20]
mov r10, rcx
syscall
ret

Function at 0x180002620
Capabilities:
Execute syscall

Disassembly:
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
sub rsp, 0x28
mov ecx, 0x90becc7a
call fcn.1800024f0
add rsp, 0x28
mov rcx, qword [rsp + 8]
mov rdx, qword [rsp + 0x10]
mov r8, qword [rsp + 0x18]
mov r9, qword [rsp + 0x20]
mov r10, rcx
syscall
ret

Function at 0x180002660
Capabilities:
Execute syscall

Disassembly:
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
sub rsp, 0x28
mov ecx, 0xd0583cd1
call fcn.1800024f0
add rsp, 0x28
mov rcx, qword [rsp + 8]
mov rdx, qword [rsp + 0x10]
mov r8, qword [rsp + 0x18]
mov r9, qword [rsp + 0x20]
mov r10, rcx
syscall
ret

Function at 0x1800026a0
Capabilities:
Execute syscall

Disassembly:
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
sub rsp, 0x28
mov ecx, 0xf7bc08f0
call fcn.1800024f0
add rsp, 0x28
mov rcx, qword [rsp + 8]
mov rdx, qword [rsp + 0x10]
mov r8, qword [rsp + 0x18]
mov r9, qword [rsp + 0x20]
mov r10, rcx
syscall
ret

Function at 0x1800026e0
Capabilities:
Execute syscall

Disassembly:
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
sub rsp, 0x28
mov ecx, 0xe70de79e
call fcn.1800024f0
add rsp, 0x28
mov rcx, qword [rsp + 8]
mov rdx, qword [rsp + 0x10]
mov r8, qword [rsp + 0x18]
mov r9, qword [rsp + 0x20]
mov r10, rcx
syscall
ret

Function at 0x180002720
Capabilities:
Execute syscall

Disassembly:
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
sub rsp, 0x28
mov ecx, 0xcdacc430
call fcn.1800024f0
add rsp, 0x28
mov rcx, qword [rsp + 8]
mov rdx, qword [rsp + 0x10]
mov r8, qword [rsp + 0x18]
mov r9, qword [rsp + 0x20]
mov r10, rcx
syscall
ret
Function at 0x141420b50
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x141420b5d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x141420b6d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x141420b55
lea eax, [rcx + 1]
jmp 0x141420b7b
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x141420b8e
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x141420b74
sub eax, 3
jb 0x141420bae
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x141420bfd
sar eax, 1
movsxd rbp, eax
jb 0x141420be4
jmp 0x141420bbc
add ebx, ebx
jne 0x141420bba
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x141420be4
inc ecx
add ebx, ebx
jne 0x141420bca
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x141420be4
call r11
adc ecx, ecx
add ebx, ebx
jne 0x141420bdd
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x141420bcc
add ecx, 2
jmp 0x141420be9
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.141420b12
jmp 0x141420b5d
pop rsi
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x3c4400
mov dl, 0xb2
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x141420c49
cmp rsi, rcx
jae 0x141420c51
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x141420c30
cmp al, 0x8f
ja 0x141420c30
cmp byte [rsi - 2], 0xf
je 0x141420c36
sub al, 0xe8
cmp al, 1
ja 0x141420c1a
cmp rsi, rcx
jae 0x141420c51
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x141420c20
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x141420c51
lodsb al, byte [rsi]
jmp 0x141420c30
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x1417000]
mov eax, dword [rdi]
or eax, eax
je 0x141420cae
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x1420000]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x141420c5e
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x141420ca8
mov qword [rbx], rax
add rbx, 8
jmp 0x141420c7e
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
xor eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0x141420cf2
cmp al, 0xef
ja 0x141420cda
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x141420cba
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
or eax, eax
jne 0x141420cc9
mov eax, dword [rdi]
add rdi, 4
jmp 0x141420cc9
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x1af]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
mov byte [fcn.141420d71], 0xfc
lea rcx, [rsi - 0x1000]
push 1
pop rdx
xor r8, r8
push rax
call fcn.141420d71
pop rax
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x141420d61
sub rsp, 0xffffffffffffff80
jmp 0x1400013f0
Function at 0x100004b70
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x60
mov rax, qword [0x100012110]
xor rax, rsp
mov qword [rsp + 0x58], rax
sub edx, 1
mov rdi, r8
je 0x100004c07
cmp edx, 1
je 0x100004ba0
mov ebx, 0xc000000d
jmp 0x100004c2d
and qword [rsp + 0x30], 0
lea r8, [rsp + 0x30]
lea rdx, [0x100001b68]
call fcn.10000494c
mov ebx, eax
test eax, eax
js 0x100004bf6
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.100004f44
mov ebx, eax
test eax, eax
js 0x100004bf6
movdqu xmm0, xmmword [rsp + 0x40]
movdqu xmmword [rdi], xmm0
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x100004c2d
call fcn.100008070
jmp 0x100004c2d
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 0x100004c2d
movdqu xmm0, xmmword [rsp + 0x40]
movdqu xmmword [rdi], xmm0
mov eax, ebx
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.10000f6f0
mov rbx, qword [rsp + 0x78]
add rsp, 0x60
pop rdi
ret
Function at 0x100007734
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 0x100007775
lea rbp, [rcx + 0x10]
xor esi, esi
lea rbx, [rbp + 0x10]
jmp 0x100007788
cmp dword [rcx], 6
jne 0x100007923
lea rsi, [rcx + 0x10]
xor ebp, ebp
lea rbx, [rsi + 0x10]
cmp dword [rbx], r10d
je 0x1000078c4
cmp dword [rbx], 6
jne 0x100007923
cmp dword [rcx + 8], 0x5c
mov r13d, 0x38
jb 0x100007923
mov eax, dword [rcx + 0x40]
add eax, r13d
cmp dword [rcx + 8], eax
jb 0x100007923
cmp dword [rcx + 0x38], r10d
jne 0x100007923
cmp dword [rcx + 0x48], 5
jne 0x100007923
lea rax, [rsp + 0x90]
lea r9, [rsp + 0x38]
xor r8d, r8d
xor edx, edx
add rcx, r13
mov qword [rsp + 0x20], rax
call fcn.100005b1c
mov r10, qword [rsp + 0x38]
mov edi, eax
test eax, eax
js 0x1000078fe
cmp dword [rsp + 0x90], 0x2e
jb 0x100007816
cmp dword [r10], 3
jne 0x100007816
mov eax, dword [r10 + 0x14]
cmp dword [rax + r10], 2
je 0x100007820
mov edi, 0xc000000d
jmp 0x1000078fe
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 0x10000788c
mov r10, qword [rsp + 0x38]
mov edi, 0xc0000017
jmp 0x1000078fe
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 0x1000078ce
mov qword [rax], rsi
test r15, r15
je 0x1000078d6
mov qword [r15], rbp
test r14, r14
je 0x1000078de
mov qword [r14], rbx
mov rax, qword [rsp + 0xb8]
test rax, rax
je 0x1000078ee
mov dword [rax], r13d
mov rax, qword [rsp + 0xb0]
test rax, rax
je 0x1000078fe
mov qword [rax], r12
test r10, r10
je 0x100007928
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_NtOpenEvent]
jmp 0x100007928
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 0x1000082ec
Capabilities:
Delete registry key

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x20
and qword [rsp + 0x50], 0
lea r8, [rsp + 0x48]
lea rdx, [rsp + 0x50]
mov rdi, rcx
call fcn.100008648
test eax, eax
js 0x10000835c
mov eax, dword [rsp + 0x48]
test eax, eax
je 0x10000835c
mov rbx, qword [rsp + 0x50]
mov rsi, rax
mov rdx, qword [rbx]
lea r9, [rsp + 0x58]
mov r8d, 0xf003f
mov rcx, rdi
call fcn.1000083ac
test eax, eax
js 0x100008352
mov rcx, qword [rsp + 0x58]
call fcn.1000082ec
test eax, eax
jns 0x100008352
mov rcx, qword [rsp + 0x58]
call fcn.100008070
add rbx, 8
sub rsi, 1
jne 0x100008320
cmp qword [rsp + 0x50], 0
je 0x100008382
mov rax, qword gs:[0x30]
mov r8, qword [rsp + 0x50]
xor edx, edx
mov rcx, qword [rax + 0x60]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_NtOpenEvent]
mov rcx, rdi
call qword [sym.imp.ntdll.dll_NtDeleteKey]
mov ebx, eax
test eax, eax
js 0x10000839a
mov rcx, rdi
call qword [sym.imp.ntdll.dll_NtClose]
mov eax, ebx
add rsp, 0x20
pop rdi
pop rsi
pop rbx
ret
Function at 0x100008a70
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 0x100008ae5
cmp eax, edi
jl 0x100008ba5
mov ebx, 0xc000000d
mov dword [rsp + 0x80], ebx
jmp 0x100008ba5
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 0x100008b1f
mov ebx, 0xc000009a
mov dword [rsp + 0x80], ebx
jmp 0x100008ba5
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 0x100008ba5
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 0x100008b86
mov ebx, 0xc000009a
mov dword [rsp + 0x80], ebx
jmp 0x100008ba5
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 0x100008bc6
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_NtOpenEvent]
cmp ebx, 0xc000017d
jne 0x100008bf6
int3
mov eax, ebx
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret

Function at 0x100008c10
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, [0x10000fe10]
lea rcx, [rsp + 0x20]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
and qword [rsp + 0x50], 0
lea r9, [rsp + 0x50]
lea rdx, [0x10000fdd0]
mov r8d, 0x2001f
mov rcx, rsi
call fcn.1000083ac
mov edi, eax
test eax, eax
js 0x100008c6c
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 0x100008c86
cmp qword [rsp + 0x50], 0
je 0x100008c86
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 0x100008c9c
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 0x100008d20
lea r9, [rsp + 0x40]
mov r8d, 0x20019
mov rdx, r13
mov rcx, r12
call fcn.1000083ac
mov ebx, eax
mov dword [rsp + 0x34], eax
test eax, eax
jns 0x100008d25
jmp 0x100008e3a
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 0x100008e3a
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 0x100008d8f
mov ebx, 0xc000009a
mov dword [rsp + 0x34], ebx
jmp 0x100008e3a
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 0x100008e3a
cmp dword [rdi + 4], r14d
je 0x100008dd5
mov ebx, 0xc0000024
mov dword [rsp + 0x34], ebx
jmp 0x100008e3a
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 0x100008e13
mov ebx, 0xc000009a
mov dword [rsp + 0x34], ebx
jmp 0x100008e3a
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 0x100008e4f
test rcx, rcx
je 0x100008e4f
call qword [sym.imp.ntdll.dll_NtClose]
test rdi, rdi
je 0x100008e70
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_NtOpenEvent]
cmp ebx, 0xc000017d
jne 0x100008eb0
int3
mov eax, ebx
add rsp, 0x60
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret