joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000c2f8
Capabilities:
Delete file

Disassembly:
push rdi
sub rsp, 0x430
mov rdx, qword [0x14002fa70]
lea rdi, [rsp + 0x20]
xor eax, eax
mov ecx, 0x410
rep stosb byte [rdi], al
lea rcx, [rsp + 0x20]
add rdx, 0x47c
call fcn.140001af4
lea rdx, str.update.msu
lea rcx, [rsp + 0x20]
call fcn.140001ab8
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
add rsp, 0x430
pop rdi
ret

Function at 0x14000c9f0
Capabilities:
Create thread
Terminate thread

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x18], rsi
push rdi
sub rsp, 0x30
lea rax, [r11 + 0x10]
mov r9, rcx
mov qword [r11 - 0x10], rax
lea r8, [0x14000c478]
xor ebx, ebx
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x20], ebx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdi, rax
test rax, rax
je 0x14000caa6
lea rax, [rsp + 0x48]
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea r8, [0x14000c34c]
xor edx, edx
mov dword [rsp + 0x20], ebx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rsi, rax
test rax, rax
je 0x14000ca7d
mov edx, 0x3a98
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x14000ca74
xor edx, edx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_TerminateThread]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, 0x2710
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x14000ca9d
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_TerminateThread]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [0x14002fa20]
cmp ecx, 1
mov rsi, qword [rsp + 0x50]
sete bl
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret

Function at 0x14000d99c
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
push rdi
sub rsp, 0x40
xor ebx, ebx
mov edi, r8d
mov dword [rax + 0x10], ebx
mov rsi, rdx
test rdx, rdx
je 0x14000da1a
test r8d, r8d
je 0x14000da1a
mov qword [rax - 0x18], rbx
xor r9d, r9d
mov dword [rax - 0x20], ebx
xor r8d, r8d
mov edx, 0x40000000
mov dword [rax - 0x28], 2
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbp, rax
cmp rax, 0xffffffffffffffff
je 0x14000da1a
lea r9, [rsp + 0x58]
mov qword [rsp + 0x20], rbx
mov r8d, edi
mov rdx, rsi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [rsp + 0x58], edi
sete bl
mov eax, ebx
jmp 0x14000da1c
xor eax, eax
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret

Function at 0x14000da34
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
xor eax, eax
mov rbx, r9
mov rdi, rcx
test rdx, rdx
je 0x14000da58
lea rcx, [rsp + 0x30]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
jmp 0x14000da61
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x70]
lea rdx, [rsp + 0x30]
mov dword [rsp + 0x28], eax
mov r9d, 1
xor r8d, r8d
mov qword [rsp + 0x20], rbx
mov rcx, rdi
call qword [sym.imp.ntdll.dll_NtSetValueKey]
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
Function at 0x14000da90
Capabilities:
Delete registry value

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
mov rbp, rsp
sub rsp, 0x80
and qword [rbp + 0x10], 0
lea rcx, [rbp - 0x60]
and qword [rbp + 0x18], 0
call qword [sym.imp.ntdll.dll_RtlFormatCurrentUserKeyPath]
mov ebx, eax
test eax, eax
js 0x14000db7d
and qword [rbp - 0x28], 0
lea rax, [rbp - 0x60]
xorps xmm0, xmm0
mov qword [rbp - 0x20], rax
lea r8, [rbp - 0x30]
mov dword [rbp - 0x30], 0x30
mov edx, 0x2000000
mov dword [rbp - 0x18], 0x40
lea rcx, [rbp + 0x10]
movdqu xmmword [rbp - 0x10], xmm0
call qword [sym.imp.ntdll.dll_NtOpenKey]
mov ebx, eax
test eax, eax
js 0x14000db73
lea rdx, str.Environment
lea rcx, [rbp - 0x50]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
mov rax, qword [rbp + 0x10]
lea r8, [rbp - 0x30]
mov qword [rbp - 0x28], rax
lea rcx, [rbp + 0x18]
lea rax, [rbp - 0x50]
mov edx, 0x2000000
mov qword [rbp - 0x20], rax
call qword [sym.imp.ntdll.dll_NtOpenKey]
mov ebx, eax
test eax, eax
js 0x14000db69
lea rdx, str.Path
lea rcx, [rbp - 0x40]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
mov rcx, qword [rbp + 0x18]
lea rdx, [rbp - 0x40]
call qword [sym.imp.ntdll.dll_NtDeleteValueKey]
mov rcx, qword [rbp + 0x18]
mov ebx, eax
call qword [sym.imp.ntdll.dll_NtClose]
mov rcx, qword [rbp + 0x10]
call qword [sym.imp.ntdll.dll_NtClose]
lea rcx, [rbp - 0x60]
call qword [sym.imp.ntdll.dll_RtlFreeUnicodeString]
mov eax, ebx
mov rbx, qword [rsp + 0xa0]
add rsp, 0x80
pop rbp
ret
Function at 0x14000db90
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x40
mov r15, qword [rsp + 0x90]
mov r14, r9
and dword [rax + 0x20], 0
mov ebp, r8d
and qword [r9], 0
mov r12, rcx
mov rsi, qword [rsp + 0x98]
and dword [r15], 0
test rsi, rsi
jne 0x14000dbe2
mov rax, qword gs:[0x30]
mov r9, qword [rax + 0x60]
mov rsi, qword [r9 + 0x30]
lea rcx, [rsp + 0x30]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
xor r9d, r9d
lea rax, [rsp + 0x88]
mov qword [rsp + 0x28], rax
lea rdx, [rsp + 0x30]
and dword [rsp + 0x20], 0
mov rcx, r12
lea r8d, [r9 + 2]
call qword [sym.imp.ntdll.dll_NtQueryValueKey]
mov ebx, eax
cmp eax, 0xc0000023
jne 0x14000dcd5
mov r8d, dword [rsp + 0x88]
mov edx, 8
mov rcx, rsi
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov rdi, rax
test rax, rax
je 0x14000dcd0
mov ecx, dword [rsp + 0x88]
lea rax, [rsp + 0x88]
mov qword [rsp + 0x28], rax
lea rdx, [rsp + 0x30]
mov dword [rsp + 0x20], ecx
mov r9, rdi
mov rcx, r12
mov r8d, 2
call qword [sym.imp.ntdll.dll_NtQueryValueKey]
mov ebx, eax
test eax, eax
js 0x14000dcc0
cmp dword [rdi + 4], ebp
jne 0x14000dcbb
mov r8d, dword [rdi + 8]
mov edx, 8
mov rcx, rsi
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov rbx, rax
test rax, rax
je 0x14000dcb4
mov r8d, dword [rdi + 8]
lea rdx, [rdi + 0xc]
mov rcx, rax
call fcn.14001a9b0
mov qword [r14], rbx
xor ebx, ebx
mov eax, dword [rdi + 8]
mov dword [r15], eax
jmp 0x14000dcc0
mov ebx, 0xc0000017
jmp 0x14000dcc0
mov ebx, 0xc0000024
mov r8, rdi
xor edx, edx
mov rcx, rsi
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
jmp 0x14000dcd5
mov ebx, 0xc0000017
mov rbp, qword [rsp + 0x78]
mov eax, ebx
mov rbx, qword [rsp + 0x70]
add rsp, 0x40
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret

Function at 0x14000dcf0
Capabilities:
Create process on windows

Disassembly:
push rdi
sub rsp, 0x90
mov r10, rcx
lea rdi, [rsp + 0x20]
xor eax, eax
lea r11d, [rax + 0x70]
mov ecx, r11d
rep stosb byte [rdi], al
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], r11d
mov dword [rsp + 0x24], 0x440
mov qword [rsp + 0x38], r10
mov qword [rsp + 0x40], rdx
mov dword [rsp + 0x50], r9d
mov qword [rsp + 0x30], r8
call qword [sym.imp.SHELL32.dll_ShellExecuteExW]
neg eax
sbb rax, rax
and rax, qword [rsp + 0x88]
add rsp, 0x90
pop rdi
ret

Function at 0x14000dd50
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
xor ebx, ebx
call fcn.14000dcf0
mov rdi, rax
test rax, rax
je 0x14000dd9a
mov edx, dword [rsp + 0x50]
test edx, edx
je 0x14000dd8c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, 0x102
cmp eax, edx
jne 0x14000dd8c
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, 1
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x14000dda8
Capabilities:
Access pe header

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov edi, edx
xor esi, esi
mov r10, rcx
mov rdx, rcx
mov r8d, esi
lea r9d, [rdi + 1]
shr r9d, 1
je 0x14000ddea
movzx eax, word [rdx]
lea rdx, [rdx + 2]
add r8d, eax
mov ecx, r8d
movzx r8d, r8w
shr ecx, 0x10
add r8d, ecx
add r9d, 0xffffffff
jne 0x14000ddcd
mov ebx, r8d
mov rcx, r10
shr ebx, 0x10
add bx, r8w
call qword [sym.imp.ntdll.dll_RtlImageNtHeader]
test rax, rax
je 0x14000de1e
movzx ecx, word [rax + 0x58]
movzx eax, word [rax + 0x5a]
cmp bx, cx
adc cx, si
sub bx, cx
cmp bx, ax
adc ax, si
sub bx, ax
jmp 0x14000de21
movzx ebx, si
mov rsi, qword [rsp + 0x38]
movzx eax, bx
mov rbx, qword [rsp + 0x30]
add eax, edi
add rsp, 0x20
pop rdi
ret

Function at 0x14000de38
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x40
and dword [rsp + 0x58], 0
mov rsi, r9
mov rbx, r8
mov rdi, rdx
test r8, r8
je 0x14000de5e
and dword [r8], 0
test rdi, rdi
jne 0x14000de6a
mov eax, 0xc00000f0
jmp 0x14000dec6
and qword [rsp + 0x30], 0
lea r9, [rsp + 0x60]
mov qword [rsp + 0x28], rcx
lea rdx, [rsp + 0x20]
mov rcx, rdi
mov qword [rsp + 0x20], 0xa
mov r8d, 3
call qword [sym.imp.ntdll.dll_LdrFindResource_U]
mov ecx, eax
test eax, eax
js 0x14000dec4
mov rdx, qword [rsp + 0x60]
lea r9, [rsp + 0x58]
mov r8, rsi
mov rcx, rdi
call qword [sym.imp.ntdll.dll_LdrAccessResource]
mov ecx, eax
test eax, eax
js 0x14000dec4
test rbx, rbx
je 0x14000dec4
mov eax, dword [rsp + 0x58]
mov dword [rbx], eax
mov eax, ecx
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret
Function at 0x14000e1b8
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x160]
sub rsp, 0x260
mov rsi, rdx
mov r14, rcx
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
xor ebx, ebx
test eax, eax
je 0x14000e2dd
lea rax, [rbp + 0x1a8]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rdx, rsi
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x14000e21e
cmp eax, 2
je 0x14000e2dd
xor eax, eax
jmp 0x14000e2e2
mov rdi, rsi
test rsi, rsi
jne 0x14000e22b
mov rdi, rbx
jmp 0x14000e239
cmp word [rsi], bx
je 0x14000e239
add rdi, 2
cmp word [rdi], bx
jne 0x14000e230
mov eax, 0x5c
cmp word [rdi - 2], ax
je 0x14000e24e
mov word [rdi], ax
add rdi, 2
mov word [rdi], bx
mov r15d, 0x104
jmp 0x14000e278
mov r9, r15
lea r8, [rsp + 0x50]
mov rdx, r15
mov rcx, rdi
call fcn.140001b34
mov rdx, rsi
mov rcx, r14
call fcn.14000e1b8
test eax, eax
je 0x14000e2b7
mov rcx, qword [rbp + 0x1a8]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x38], rax
lea r9, [rbp + 0x1a0]
mov qword [rsp + 0x30], rbx
lea r8, [rsp + 0x50]
mov qword [rsp + 0x28], rbx
xor edx, edx
mov qword [rsp + 0x20], rbx
mov dword [rbp + 0x1a0], r15d
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x14000e256
mov rcx, qword [rbp + 0x1a8]
mov word [rdi - 2], bx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdx, rsi
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
sete bl
mov eax, ebx
jmp 0x14000e2e2
mov eax, 1
mov rbx, qword [rsp + 0x290]
add rsp, 0x260
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x14000e350
Capabilities:
Delete registry value
Set registry value

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], r8
mov qword [rax + 0x10], rdx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14d, ecx
mov qword [rbp + 0x6f], r15
mov ecx, r15d
mov qword [rbp + 0x77], rcx
mov rdi, r9
mov qword [rbp - 0x21], r15
mov esi, r15d
mov ebx, 0xc0000001
test r9, r9
jne 0x14000e39f
test r14d, r14d
je 0x14000e4d6
lea rcx, [rbp - 0x29]
call qword [sym.imp.ntdll.dll_RtlFormatCurrentUserKeyPath]
mov ebx, eax
test eax, eax
js 0x14000e4d2
lea rax, [rbp - 0x29]
mov dword [rbp + 7], 0x30
xorps xmm0, xmm0
mov qword [rbp + 0x17], rax
lea r8, [rbp + 7]
mov qword [rbp + 0xf], r15
mov edx, 0x2000000
mov dword [rbp + 0x1f], 0x40
lea rcx, [rbp + 0x6f]
mov esi, 1
movdqu xmmword [rbp + 0x27], xmm0
call qword [sym.imp.ntdll.dll_NtOpenKey]
mov ebx, eax
test eax, eax
js 0x14000e4d2
lea rdx, str.Environment
lea rcx, [rbp - 9]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
mov rax, qword [rbp + 0x6f]
lea r8, [rbp + 7]
mov qword [rbp + 0xf], rax
lea rcx, [rbp + 0x77]
lea rax, [rbp - 9]
mov edx, 0x2000000
mov qword [rbp + 0x17], rax
call qword [sym.imp.ntdll.dll_NtOpenKey]
mov ebx, eax
test eax, eax
js 0x14000e4d2
lea rdx, str.windir
lea rcx, [rbp - 0x19]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
test r14d, r14d
je 0x14000e45b
mov rcx, qword [rbp + 0x77]
lea rdx, [rbp - 0x19]
call qword [sym.imp.ntdll.dll_NtDeleteValueKey]
jmp 0x14000e4a2
mov rax, rdi
test rdi, rdi
jne 0x14000e468
mov rax, r15
jmp 0x14000e47e
cmp word [rdi], r15w
je 0x14000e478
add rax, 2
cmp word [rax], r15w
jne 0x14000e46e
sub rax, rdi
sar rax, 1
mov rcx, qword [rbp + 0x77]
lea eax, [rax*2 + 2]
mov dword [rsp + 0x28], eax
lea rdx, [rbp - 0x19]
mov r9d, esi
mov qword [rsp + 0x20], rdi
xor r8d, r8d
call qword [sym.imp.ntdll.dll_NtSetValueKey]
mov ebx, eax
test eax, eax
js 0x14000e4d2
xor r8d, r8d
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], 0x3e8
lea r9, str.windir
mov ecx, 0xffff
mov dword [rsp + 0x20], esi
lea edx, [r8 + 0x1a]
call qword [sym.imp.USER32.dll_SendMessageTimeoutW]
mov rcx, qword [rbp + 0x77]
test rcx, rcx
je 0x14000e4e1
call qword [sym.imp.ntdll.dll_NtClose]
mov rcx, qword [rbp + 0x6f]
test rcx, rcx
je 0x14000e4f0
call qword [sym.imp.ntdll.dll_NtClose]
test esi, esi
je 0x14000e4fe
lea rcx, [rbp - 0x29]
call qword [sym.imp.ntdll.dll_RtlFreeUnicodeString]
not ebx
shr ebx, 0x1f
mov eax, ebx
mov rbx, qword [rsp + 0xd0]
add rsp, 0xa0
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x14000e51c
Capabilities:
Delete registry value
Set registry value

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x10], rdx
push rsi
push rdi
push r14
sub rsp, 0x40
xor r14d, r14d
mov rbx, r9
mov qword [rax + 0x10], r14
mov rbp, r8
mov esi, ecx
mov edi, r14d
test r8, r8
je 0x14000e629
test rbx, rbx
jne 0x14000e55b
test ecx, ecx
je 0x14000e629
lea r8, [rsp + 0x68]
mov rcx, 0xffffffff80000001
lea rdx, str.Environment
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x14000e60e
test esi, esi
je 0x14000e590
mov rcx, qword [rsp + 0x68]
mov rdx, rbp
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
jmp 0x14000e5da
mov rax, rbx
test rbx, rbx
jne 0x14000e59d
mov rax, r14
jmp 0x14000e5b3
cmp word [rbx], r14w
je 0x14000e5ad
add rax, 2
cmp word [rax], r14w
jne 0x14000e5a3
sub rax, rbx
sar rax, 1
mov rcx, qword [rsp + 0x68]
lea eax, [rax*2 + 2]
mov dword [rsp + 0x28], eax
mov r9d, 1
xor r8d, r8d
mov qword [rsp + 0x20], rbx
mov rdx, rbp
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
sete dil
test edi, edi
je 0x14000e60e
xor r8d, r8d
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], 0x3e8
mov r9, rbp
mov ecx, 0xffff
mov dword [rsp + 0x20], 1
lea edx, [r8 + 0x1a]
call qword [sym.imp.USER32.dll_SendMessageTimeoutW]
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x14000e629
call qword [sym.imp.ADVAPI32.dll_RegFlushKey]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbx, qword [rsp + 0x60]
mov eax, edi
mov rbp, qword [rsp + 0x70]
add rsp, 0x40
pop r14
pop rdi
pop rsi
ret
Function at 0x14000e640
Capabilities:
Set registry value

Disassembly:
mov rax, rsp
mov qword [rax + 0x18], r8
mov qword [rax + 0x10], rdx
mov dword [rax + 8], ecx
push rbp
push rbx
push rsi
push rdi
push r14
lea rbp, [rax - 0x178]
sub rsp, 0x250
xor r14d, r14d
mov rsi, r9
mov qword [rbp + 0x190], r14
mov ebx, r14d
test r9, r9
je 0x14000e7e9
xor eax, eax
lea rdi, [rsp + 0x40]
mov ecx, 0x208
rep stosb byte [rdi], al
call qword [sym.imp.KERNEL32.dll_GetTickCount]
lea rcx, [rbp + 0x180]
mov dword [rbp + 0x180], eax
call qword [sym.imp.ntdll.dll_RtlRandomEx]
mov dword [rbp + 0x188], eax
call qword [sym.imp.KERNEL32.dll_GetTickCount]
not eax
lea rcx, [rbp + 0x180]
mov dword [rbp + 0x180], eax
call qword [sym.imp.ntdll.dll_RtlRandomEx]
mov dword [rbp + 0x18c], eax
lea rdx, [rsp + 0x40]
mov rcx, qword [rbp + 0x188]
call fcn.14000f6bc
mov rdi, 0xffffffff80000001
lea r8, [rsp + 0x40]
mov rcx, rdi
lea rdx, str.Environment
call qword [sym.imp.ADVAPI32.dll_RegRenameKey]
test eax, eax
jne 0x14000e7ca
lea r8, [rbp + 0x190]
mov rcx, rdi
lea rdx, [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x14000e783
mov rax, rsi
cmp word [rsi], r14w
je 0x14000e72a
add rax, 2
cmp word [rax], r14w
jne 0x14000e720
mov rcx, qword [rbp + 0x190]
lea rdx, str.windir
sub rax, rsi
mov r9d, 1
sar rax, 1
xor r8d, r8d
lea eax, [rax*2 + 2]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rbp + 0x190]
test eax, eax
sete bl
call qword [sym.imp.ADVAPI32.dll_RegFlushKey]
mov rcx, qword [rbp + 0x190]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rbp + 0x190], r14
lea r8, str.Environment
mov rcx, rdi
lea rdx, [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegRenameKey]
test ebx, ebx
je 0x14000e7ca
xor r8d, r8d
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], 0x3e8
lea r9, str.windir
mov ecx, 0xffff
mov dword [rsp + 0x20], 1
lea edx, [r8 + 0x1a]
call qword [sym.imp.USER32.dll_SendMessageTimeoutW]
mov rcx, qword [rbp + 0x190]
test rcx, rcx
je 0x14000e7e9
call qword [sym.imp.ADVAPI32.dll_RegFlushKey]
mov rcx, qword [rbp + 0x190]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
add rsp, 0x250
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x14000e7fc
Capabilities:
Set registry value

Disassembly:
mov rax, rsp
mov dword [rax + 0x18], r8d
mov qword [rax + 0x10], rdx
mov qword [rax + 8], rcx
push rbp
push rbx
push rsi
push rdi
push r14
lea rbp, [rax - 0x57]
sub rsp, 0xa0
xor r14d, r14d
mov rdi, r9
mov qword [rbp + 0x5f], r14
mov ecx, r14d
mov qword [rbp + 0x67], rcx
mov esi, r14d
mov qword [rbp - 0x29], r14
mov ebx, 0xc0000001
test r9, r9
je 0x14000e996
lea rcx, [rbp - 0x31]
call qword [sym.imp.ntdll.dll_RtlFormatCurrentUserKeyPath]
mov ebx, eax
test eax, eax
js 0x14000e992
lea rax, [rbp - 0x31]
mov dword [rbp - 1], 0x30
xorps xmm0, xmm0
mov qword [rbp + 0xf], rax
lea r8, [rbp - 1]
mov qword [rbp + 7], r14
mov edx, 0x2000000
mov dword [rbp + 0x17], 0x40
lea rcx, [rbp + 0x5f]
movdqu xmmword [rbp + 0x1f], xmm0
lea esi, [r14 + 1]
call qword [sym.imp.ntdll.dll_NtOpenKey]
mov ebx, eax
test eax, eax
js 0x14000e992
lea rdx, str.Environment
lea rcx, [rbp - 0x21]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
mov rax, qword [rbp + 0x5f]
lea r8, [rbp - 1]
mov qword [rbp + 7], rax
lea rcx, [rbp + 0x67]
lea rax, [rbp - 0x21]
mov edx, 0x2000000
mov qword [rbp + 0xf], rax
call qword [sym.imp.ntdll.dll_NtOpenKey]
mov ebx, eax
test eax, eax
js 0x14000e992
lea rdx, str.Path
lea rcx, [rbp - 0x11]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
mov r9, qword [rbp + 0x7f]
test r9, r9
je 0x14000e922
mov rax, qword [0x14002fa70]
lea r8d, [r14 + 2]
lea rdx, str.Path
mov dword [rbp + 0x6f], r14d
mov rcx, qword [rax + 0x18]
lea rax, [rbp + 0x6f]
mov qword [rsp + 0x28], rcx
mov rcx, qword [rbp + 0x67]
mov qword [rsp + 0x20], rax
call fcn.14000db90
mov rax, rdi
cmp word [rdi], r14w
je 0x14000e935
add rax, 2
cmp word [rax], r14w
jne 0x14000e92b
mov rcx, qword [rbp + 0x67]
lea rdx, [rbp - 0x11]
sub rax, rdi
mov r9d, 2
sar rax, 1
xor r8d, r8d
lea eax, [rax*2 + 2]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ntdll.dll_NtSetValueKey]
mov ebx, eax
test eax, eax
js 0x14000e992
xor r8d, r8d
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], 0x3e8
lea r9, str.Path
mov ecx, 0xffff
mov dword [rsp + 0x20], esi
lea edx, [r8 + 0x1a]
call qword [sym.imp.USER32.dll_SendMessageTimeoutW]
mov rcx, qword [rbp + 0x67]
test rcx, rcx
je 0x14000e9a1
call qword [sym.imp.ntdll.dll_NtClose]
mov rcx, qword [rbp + 0x5f]
test rcx, rcx
je 0x14000e9b0
call qword [sym.imp.ntdll.dll_NtClose]
test esi, esi
je 0x14000e9be
lea rcx, [rbp - 0x31]
call qword [sym.imp.ntdll.dll_RtlFreeUnicodeString]
not ebx
shr ebx, 0x1f
mov eax, ebx
add rsp, 0xa0
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x14000ebe4
Capabilities:
Access pe header

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 r14
push r15
sub rsp, 0x30
mov r14d, r9d
mov r15, r8
mov r12d, edx
mov rbp, rcx
xor ebx, ebx
call qword [sym.imp.ntdll.dll_RtlImageNtHeader]
mov rdi, rax
test rax, rax
je 0x14000ec7d
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], ebx
mov rcx, rbp
call fcn.14000177c
mov rsi, rax
test rax, rax
je 0x14000ec7d
mov rdx, r15
mov rcx, rax
call fcn.14000190c
test rax, rax
je 0x14000ec6c
sub eax, esi
mov dword [rdi + 0x28], eax
test r14d, r14d
je 0x14000ec59
mov eax, 0xdfff
and word [rdi + 0x16], ax
mov edx, r12d
mov rcx, rbp
call fcn.14000dda8
mov dword [rdi + 0x58], eax
mov ebx, 1
xor edx, edx
mov r8d, 0x8000
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualFree]
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, 0x30
pop r15
pop r14
pop r12
ret

Function at 0x14000eeac
Capabilities:
Enumerate processes via ntquerysysteminformation
Get system information on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov dword [rsp + 8], ecx
push rdi
sub rsp, 0x20
mov rcx, qword [0x14002fa70]
mov edi, 0x1000
and dword [rsp + 0x30], 0
mov r8d, edi
mov edx, 8
mov rcx, qword [rcx + 0x18]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov rbx, rax
test rax, rax
je 0x14000ef6a
jmp 0x14000ef29
mov rcx, qword [0x14002fa70]
mov r8, rbx
xor edx, edx
mov rcx, qword [rcx + 0x18]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
lea eax, [rdi + rdi]
mov edi, eax
cmp eax, 0x20000000
ja 0x14000ef6a
mov rcx, qword [0x14002fa70]
mov r8d, edi
mov edx, 8
mov rcx, qword [rcx + 0x18]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov rbx, rax
lea r9, [rsp + 0x30]
mov r8d, edi
mov rdx, rax
mov ecx, 5
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
cmp eax, 0xc0000004
je 0x14000eeeb
test eax, eax
js 0x14000ef4f
mov rax, rbx
jmp 0x14000ef6c
test rbx, rbx
je 0x14000ef6a
mov rcx, qword [0x14002fa70]
mov r8, rbx
xor edx, edx
mov rcx, qword [rcx + 0x18]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
xor eax, eax
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret