joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000b780
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
sub rsp, 0xa8
lea rbp, [rsp + 0x80]
mov rsi, rcx
movups xmm0, xmmword [0x14001f5a0]
movaps xmmword [rbp], xmm0
mov eax, 0xffffffff
cmp r8, rax
cmovb rax, r8
test r9, r9
je 0x14000b7b8
mov rcx, qword [rbp + 0x60]
mov qword [rbp - 0x30], rcx
test r9, r9
mov qword [rbp - 0x38], r9
lea rcx, [rbp - 0x30]
cmove rcx, r9
mov qword [rsp + 0x38], rcx
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], rdx
mov rax, rbp
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x40], 0
mov rcx, rsi
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ntdll.dll_NtReadFile]
cmp eax, 0x103
jne 0x14000b80f
mov rcx, rsi
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [rbp]
cmp eax, 0xc0000011
jne 0x14000b81c
xor edx, edx
xor eax, eax
jmp 0x14000b846
cmp eax, 0x103
je 0x14000b850
test eax, eax
js 0x14000b82f
mov rdx, qword [rbp + 8]
xor eax, eax
jmp 0x14000b846
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
mov edx, eax
shl rdx, 0x20
or rdx, 2
mov eax, 1
add rsp, 0xa8
pop rsi
pop rbp
ret
mov dword [rbp + 0x18], 0
mov byte [rbp + 0x1c], 0
lea rax, str.fatal_runtime_error:_I_O_error:_operation_failed_to_complete_synchronously_n
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x30], 1
lea rax, [rbp + 0x20]
mov qword [rbp - 0x28], rax
xorps xmm0, xmm0
movups xmmword [rbp - 0x20], xmm0
lea rcx, [rbp + 0x18]
lea rdx, [rbp - 0x38]
call fcn.1400072f0
mov qword [rbp - 8], rax
lea rcx, [rbp - 8]
call fcn.140002f40
mov ecx, 7
int 0x29
ud2

Function at 0x14000b8a0
Capabilities:
Write file on windows

Disassembly:
push rbp
push rsi
sub rsp, 0xa8
lea rbp, [rsp + 0x80]
mov rsi, rcx
movups xmm0, xmmword [0x14001f5a0]
movaps xmmword [rbp], xmm0
mov eax, 0xffffffff
cmp r8, rax
cmovb rax, r8
test r9, r9
je 0x14000b8d8
mov rcx, qword [rbp + 0x60]
mov qword [rbp - 0x30], rcx
test r9, r9
mov qword [rbp - 0x38], r9
lea rcx, [rbp - 0x30]
cmove rcx, r9
mov qword [rsp + 0x38], rcx
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], rdx
mov rax, rbp
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x40], 0
mov rcx, rsi
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ntdll.dll_NtWriteFile]
cmp eax, 0x103
jne 0x14000b936
mov rcx, rsi
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [rbp]
cmp eax, 0x103
je 0x14000b963
test eax, eax
js 0x14000b942
mov rdx, qword [rbp + 8]
xor eax, eax
jmp 0x14000b959
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
mov edx, eax
shl rdx, 0x20
or rdx, 2
mov eax, 1
add rsp, 0xa8
pop rsi
pop rbp
ret
mov dword [rbp + 0x18], 0
mov byte [rbp + 0x1c], 0
lea rax, str.fatal_runtime_error:_I_O_error:_operation_failed_to_complete_synchronously_n
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x30], 1
lea rax, [rbp + 0x20]
mov qword [rbp - 0x28], rax
xorps xmm0, xmm0
movups xmmword [rbp - 0x20], xmm0
lea rcx, [rbp + 0x18]
lea rdx, [rbp - 0x38]
call fcn.1400072f0
mov qword [rbp - 8], rax
lea rcx, [rbp - 8]
call fcn.140002f40
mov ecx, 7
int 0x29
ud2
Function at 0x1400186c0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbp
push r14
push rsi
push rdi
push rbx
sub rsp, 0x20
lea rbp, [rsp + 0x20]
test r8, r8
je 0x14001874a
mov rax, rdx
mov rdx, qword [rbp + 0x50]
mov esi, ecx
shr esi, 8
lea r8, [rax + r8*2]
xor r11d, r11d
mov rbx, rax
movzx edi, byte [rax + 1]
add rax, 2
lea r10, [r11 + rdi]
cmp byte [rbx], sil
jne 0x140018740
cmp r10, r11
jb 0x1400187c6
cmp r10, rdx
ja 0x1400187d8
add r11, r9
xor ebx, ebx
nop word cs:[rax + rax]
cmp rdi, rbx
je 0x140018742
lea r14, [rbx + 1]
cmp byte [r11 + rbx], cl
mov rbx, r14
jne 0x140018720
jmp 0x1400187a7
ja 0x14001874a
mov r11, r10
cmp rax, r8
jne 0x1400186e7
mov rdx, qword [rbp + 0x60]
test rdx, rdx
je 0x1400187ab
mov r8, qword [rbp + 0x58]
add rdx, r8
movzx ecx, cx
mov al, 1
nop
lea r10, [r8 + 1]
movzx r9d, byte [r8]
test r9b, r9b
js 0x140018780
mov r8, r10
sub ecx, r9d
jns 0x14001879e
jmp 0x1400187ad
cmp r10, rdx
je 0x1400187ba
movzx r10d, byte [r8 + 1]
add r8, 2
and r9d, 0x7f
shl r9d, 8
or r9d, r10d
sub ecx, r9d
js 0x1400187ad
xor al, 1
cmp r8, rdx
jne 0x140018760
jmp 0x1400187ad
xor eax, eax
jmp 0x1400187ad
mov al, 1
and al, 1
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
ret
lea rcx, str.librarycore_srcunicodeprintable.rs
call fcn.14001bc50
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r11
mov rdx, r10
call fcn.14001c190
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r10
call fcn.14001c120
int3

Function at 0x140019fe4
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14001a02e
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14001a02e
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14001a02e
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14001a02e
cmp dword [rcx + 0x84], 0xe
jbe 0x14001a02e
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14001a030
xor al, al
add rsp, 0x28
ret
Function at 0x140006054
Capabilities:
Extract resource via kernel32 functions

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 r14
sub rsp, 0x20
mov edi, r8d
mov rsi, rdx
mov rbp, rcx
call qword [sym.imp.KERNEL32.dll_LoadResource]
nop dword [rax + rax]
xor r14d, r14d
test rax, rax
je 0x1400060e2
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
nop dword [rax + rax]
mov rbx, rax
test rax, rax
je 0x1400060e2
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SizeofResource]
nop dword [rax + rax]
mov ecx, eax
add rcx, rbx
and edi, 0xf
jbe 0x1400060d2
cmp rbx, rcx
jae 0x1400060e2
movzx eax, word [rbx]
lea rbx, [rbx + rax*2]
add rbx, 2
add edi, 0xffffffff
jne 0x1400060bd
cmp rbx, rcx
jae 0x1400060e2
cmp word [rbx], r14w
je 0x1400060e2
mov rax, rbx
jmp 0x1400060e4
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
Function at 0x140009e84
Capabilities:
Query service status
Stop service

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x70
mov rax, qword [0x1400cd220]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rdi, rdx
mov r9, rcx
mov rcx, qword [section..data]
lea rbp, section..data
cmp rcx, rbp
je 0x140009ed8
test byte [rcx + 0x1c], 1
je 0x140009ed8
cmp byte [rcx + 0x19], 5
jb 0x140009ed8
mov rcx, qword [rcx + 0x10]
mov qword [rsp + 0x20], rdx
call fcn.14000b288
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsp + 0x38], xmm0
mov dword [rsp + 0x58], eax
movups xmmword [rsp + 0x48], xmm0
call qword [sym.imp.KERNEL32.dll_GetTickCount]
nop dword [rax + rax]
xor ebx, ebx
lea r8, [rsp + 0x38]
mov esi, eax
mov dword [rsp + 0x30], ebx
lea rax, [rsp + 0x30]
xor edx, edx
mov rcx, rdi
mov qword [rsp + 0x20], rax
lea r9d, [rbx + 0x24]
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
nop dword [rax + rax]
lea r14, [0x1400b3688]
test eax, eax
jne 0x140009f78
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
mov r10, qword [section..data]
cmp r10, rbp
je 0x14000a032
test byte [r10 + 0x1c], 2
je 0x140009ffd
cmp byte [r10 + 0x19], 2
jb 0x140009ffd
mov rcx, qword [r10 + 0x10]
mov edx, 0x3a
mov r9d, eax
mov r8, r14
call fcn.14000ad20
jmp 0x140009ff6
cmp dword [rsp + 0x3c], 1
jne 0x140009fb0
mov r10, qword [section..data]
cmp r10, rbp
je 0x14000a032
test byte [r10 + 0x1c], 2
je 0x140009ffd
cmp byte [r10 + 0x19], 5
jb 0x140009ffd
mov rcx, qword [r10 + 0x10]
mov edx, 0x3b
mov r8, r14
call fcn.1400062b0
jmp 0x140009ff6
cmp dword [rsp + 0x3c], 3
jne 0x14000a057
mov rcx, qword [section..data]
cmp rcx, rbp
je 0x140009fe4
test byte [rcx + 0x1c], 2
je 0x140009fe4
cmp byte [rcx + 0x19], 5
jb 0x140009fe4
mov rcx, qword [rcx + 0x10]
mov edx, 0x3c
mov r8, r14
call fcn.1400062b0
mov r8d, esi
lea rdx, [rsp + 0x38]
mov rcx, rdi
call fcn.14000aa3c
mov ebx, eax
mov r10, qword [section..data]
cmp r10, rbp
je 0x14000a032
test byte [r10 + 0x1c], 1
je 0x14000a032
movzx edx, byte [r10 + 0x19]
mov eax, ebx
neg eax
sbb ecx, ecx
and ecx, 0xfffffffd
add ecx, 5
cmp edx, ecx
jb 0x14000a032
mov rcx, qword [r10 + 0x10]
mov edx, 0x3e
mov r9d, ebx
mov r8, r14
call fcn.14000ad20
mov eax, ebx
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140003680
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
mov rcx, qword [section..data]
cmp rcx, rbp
je 0x14000a080
test byte [rcx + 0x1c], 2
je 0x14000a080
cmp byte [rcx + 0x19], 5
jb 0x14000a080
mov rcx, qword [rcx + 0x10]
mov edx, 0x3d
mov r8, r14
call fcn.1400062b0
lea r8, [rsp + 0x38]
mov edx, 1
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_ControlService]
nop dword [rax + rax]
test eax, eax
jne 0x140009fe4
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
jmp 0x140009ff4
Function at 0x14000aa3c
Capabilities:
Check for time delay via gettickcount
Query service status

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov dword [rax + 0x20], r9d
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x40
mov ebp, r8d
mov rsi, rdx
mov r14, rcx
mov r10, qword [section..data]
lea r12, section..data
cmp r10, r12
je 0x14000aa9c
test byte [r10 + 0x1c], 1
je 0x14000aa9c
cmp byte [r10 + 0x19], 5
jb 0x14000aa9c
mov r9, rcx
mov dword [rax - 0x40], r8d
mov rcx, qword [r10 + 0x10]
mov qword [rax - 0x48], rdx
call fcn.14000b2fc
mov r10, qword [section..data]
xor ebx, ebx
mov dword [rsp + 0x88], ebx
lea r13, [0x1400b3688]
cmp r10, r12
je 0x14000ab87
test byte [r10 + 0x1c], 2
je 0x14000ab87
cmp byte [r10 + 0x19], 5
jb 0x14000ab87
mov rcx, qword [r10 + 0x10]
lea edx, [rbx + 0x33]
mov r8, r13
call fcn.1400062b0
jmp 0x14000ab80
mov edi, dword [rsi + 0x18]
mov eax, 0x1f4
cmp edi, 0x7530
jae 0x14000aaf6
cmp edi, eax
cmovb edi, eax
jmp 0x14000aafb
mov edi, 0x7530
cmp r10, r12
je 0x14000ab22
test byte [r10 + 0x1c], 2
je 0x14000ab22
cmp byte [r10 + 0x19], 5
jb 0x14000ab22
mov rcx, qword [r10 + 0x10]
mov edx, 0x34
mov r9d, edi
mov r8, r13
call fcn.14000ad20
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_Sleep]
nop dword [rax + rax]
lea rax, [rsp + 0x88]
mov r9d, 0x24
mov r8, rsi
mov qword [rsp + 0x20], rax
xor edx, edx
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
nop dword [rax + rax]
test eax, eax
je 0x14000ac23
cmp dword [rsi + 4], 1
je 0x14000abf2
call qword [sym.imp.KERNEL32.dll_GetTickCount]
nop dword [rax + rax]
sub eax, ebp
mov edi, 0x7530
cmp eax, edi
ja 0x14000ab96
mov r10, qword [section..data]
cmp dword [rsi + 4], 1
jne 0x14000aadf
jmp 0x14000ac66
mov ebx, 0x5b4
mov r10, qword [section..data]
cmp r10, r12
je 0x14000ac9b
test byte [r10 + 0x1c], 2
je 0x14000ac66
cmp byte [r10 + 0x19], 2
jb 0x14000ac66
call qword [sym.imp.KERNEL32.dll_GetTickCount]
nop dword [rax + rax]
mov rcx, qword [section..data]
mov edx, 0x37
mov dword [rsp + 0x28], edi
mov r9d, ebp
mov r8, r13
mov dword [rsp + 0x20], eax
mov rcx, qword [rcx + 0x10]
call fcn.14000ad64
jmp 0x14000ac5f
mov r10, qword [section..data]
cmp r10, r12
je 0x14000ac9b
test byte [r10 + 0x1c], 2
je 0x14000ac66
cmp byte [r10 + 0x19], 5
jb 0x14000ac66
mov rcx, qword [r10 + 0x10]
mov edx, 0x36
mov r8, r13
call fcn.1400062b0
jmp 0x14000ac5f
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
mov r10, qword [section..data]
cmp r10, r12
je 0x14000ac9b
test byte [r10 + 0x1c], 2
je 0x14000ac66
cmp byte [r10 + 0x19], 2
jb 0x14000ac66
mov rcx, qword [r10 + 0x10]
mov edx, 0x35
mov r9d, eax
mov r8, r13
call fcn.14000ad20
mov r10, qword [section..data]
cmp r10, r12
je 0x14000ac9b
test byte [r10 + 0x1c], 1
je 0x14000ac9b
movzx edx, byte [r10 + 0x19]
mov eax, ebx
neg eax
sbb ecx, ecx
and ecx, 0xfffffffd
add ecx, 5
cmp edx, ecx
jb 0x14000ac9b
mov rcx, qword [r10 + 0x10]
mov edx, 0x38
mov r9d, ebx
mov r8, r13
call fcn.14000ad20
mov rbp, qword [rsp + 0x78]
mov eax, ebx
mov rbx, qword [rsp + 0x70]
add rsp, 0x40
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret
Function at 0x14000c9e0
Capabilities:
Get session information
Get session user name

Disassembly:
mov qword [rsp + 8], rcx
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x48
mov rcx, qword [section..data]
lea rsi, section..data
cmp rcx, rsi
je 0x14000ca26
test byte [rcx + 0x1c], 1
je 0x14000ca26
mov rcx, qword [rcx + 0x10]
lea r8, [0x1400b4390]
mov edx, 0x105
call fcn.1400062b0
xor r13d, r13d
lea rax, [rbp + 0x48]
mov edi, 1
mov qword [rbp + 0x58], r13
mov r8d, edi
mov dword [rbp + 0x48], r13d
lea r9, [rbp + 0x58]
mov qword [rsp + 0x20], rax
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ext_ms_win_session_wtsapi32_l1_1_0.dll_WTSEnumerateSessionsW]
nop dword [rax + rax]
mov ebx, eax
mov rcx, qword [section..data]
cmp rcx, rsi
je 0x14000ca9f
test byte [rcx + 0x1c], 2
je 0x14000ca9f
cmp byte [rcx + 0x19], 5
jb 0x14000ca9f
mov eax, dword [rbp + 0x48]
lea r8, [0x1400b4390]
mov rcx, qword [rcx + 0x10]
mov edx, 0x106
mov dword [rsp + 0x28], eax
mov r9d, ebx
mov rax, qword [rbp + 0x58]
mov qword [rsp + 0x20], rax
call fcn.140019a08
mov rcx, qword [section..data]
test ebx, ebx
je 0x14000cbca
cmp dword [rbp + 0x48], r13d
jne 0x14000cab5
mov edi, r13d
jmp 0x14000cbaf
mov r14d, r13d
lea rdi, section..data
mov r15d, r13d
mov esi, r13d
cmp esi, dword [rbp + 0x48]
jae 0x14000cb97
mov rcx, qword [rbp + 0x58]
mov eax, esi
lea rbx, [rax + rax*2]
mov eax, dword [rcx + rbx*8 + 0x10]
test eax, eax
je 0x14000caec
add eax, 0xfffffffd
cmp eax, 1
ja 0x14000cb8c
mov qword [rbp + 0x60], r13
lea rax, [rbp + 0x50]
mov dword [rbp + 0x50], r13d
lea r9, [rbp + 0x60]
mov edx, dword [rcx + rbx*8]
mov r8d, 5
xor ecx, ecx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ext_ms_win_session_wtsapi32_l1_1_0.dll_WTSQuerySessionInformationW]
nop dword [rax + rax]
mov r12d, eax
mov rcx, qword [section..data]
cmp rcx, rdi
je 0x14000cb58
test byte [rcx + 0x1c], 2
je 0x14000cb58
cmp byte [rcx + 0x19], 5
jb 0x14000cb58
mov rax, qword [rbp + 0x60]
mov r9d, esi
mov rcx, qword [rcx + 0x10]
mov qword [rsp + 0x30], rax
mov rax, qword [rbp + 0x58]
mov dword [rsp + 0x28], r12d
mov edx, dword [rax + rbx*8]
mov dword [rsp + 0x20], edx
call fcn.140019730
test r12d, r12d
je 0x14000cb86
mov rcx, qword [rbp + 0x60]
test rcx, rcx
je 0x14000cb86
movzx ebx, word [rcx]
call qword [sym.imp.ext_ms_win_session_wtsapi32_l1_1_0.dll_WTSFreeMemory]
nop dword [rax + rax]
lea eax, [r14 + 1]
cmp r13w, bx
cmove eax, r14d
mov r14d, eax
jmp 0x14000cb8c
mov r15d, 1
inc esi
test r14d, r14d
je 0x14000cac5
lea rsi, section..data
mov edi, 1
test r15d, r15d
jne 0x14000cbaf
test r14d, r14d
cmove edi, r13d
mov rcx, qword [rbp + 0x58]
call qword [sym.imp.ext_ms_win_session_wtsapi32_l1_1_0.dll_WTSFreeMemory]
nop dword [rax + rax]
mov rcx, qword [section..data]
mov qword [rbp + 0x58], r13
cmp rcx, rsi
je 0x14000cbf3
test byte [rcx + 0x1c], 1
je 0x14000cbf3
cmp byte [rcx + 0x19], 5
jb 0x14000cbf3
mov rcx, qword [rcx + 0x10]
lea r8, [0x1400b4390]
mov edx, 0x108
mov r9d, edi
call fcn.1400063c0
mov eax, edi
add rsp, 0x48
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x14000d490
Capabilities:
Delete registry value
Query or enumerate registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 0x18], rbx
mov qword [r11 + 0x10], rdx
mov qword [r11 + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x60
mov r15d, r9d
mov rsi, r8
mov r10, qword [section..data]
lea r13, section..data
mov ebp, dword [rsp + 0xc8]
mov r14, qword [rsp + 0xc0]
cmp r10, r13
je 0x14000d507
test byte [r10 + 0x1c], 1
je 0x14000d507
cmp byte [r10 + 0x19], 5
jb 0x14000d507
mov eax, dword [r14]
mov rcx, qword [r10 + 0x10]
mov dword [rsp + 0x40], ebp
mov dword [rsp + 0x38], eax
mov dword [r11 - 0x68], r9d
mov qword [r11 - 0x70], r8
call fcn.140019b1c
mov r10, qword [section..data]
xor r12d, r12d
mov ebx, r12d
mov edi, r12d
test rsi, rsi
je 0x14000d63b
cmp r12w, word [rsi]
je 0x14000d63b
lea rax, [rsp + 0x58]
mov dword [r14], r15d
mov r9d, 0x2011f
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov qword [rsp + 0x58], r12
lea rdx, str.SOFTWAREMicrosoftWindows_Media_Player_NSS3.0
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
nop dword [rax + rax]
test eax, eax
jne 0x14000d5e2
mov rdi, qword [rsp + 0x58]
lea rax, [rsp + 0xa0]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x50]
lea rax, [rsp + 0xa8]
mov dword [rsp + 0xa8], r12d
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rdx, rsi
mov dword [rsp + 0xa0], 4
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
nop dword [rax + rax]
test eax, eax
jne 0x14000d5cb
cmp dword [rsp + 0x50], 4
je 0x14000d5be
lea eax, [r12 + 0xd]
jmp 0x14000d5cb
mov eax, dword [rsp + 0xa8]
mov dword [r14], eax
mov eax, r12d
cmp ebp, 1
jne 0x14000d5e2
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
nop dword [rax + rax]
cmp eax, 0x490
je 0x14000d679
cmp eax, 2
je 0x14000d679
test eax, eax
je 0x14000d679
jg 0x14000d600
mov ebx, eax
jmp 0x14000d609
movzx ebx, ax
or ebx, 0x80070000
mov r10, qword [section..data]
cmp r10, r13
je 0x14000d6b8
test byte [r10 + 0x1c], 2
je 0x14000d680
movzx eax, byte [r10 + 0x19]
mov ecx, ebx
sar ecx, 0x1f
and ecx, 0xfffffffd
add ecx, 5
cmp eax, ecx
jl 0x14000d680
mov edx, 0x1c
jmp 0x14000d658
mov ebx, 0x80070057
cmp r10, r13
je 0x14000d6b8
test byte [r10 + 0x1c], 2
je 0x14000d680
cmp byte [r10 + 0x19], 2
jb 0x14000d680
mov edx, reloc.OLEAUT32.dll_DispGetParam
mov eax, dword [r14]
mov r9d, ebx
mov rcx, qword [r10 + 0x10]
mov dword [rsp + 0x48], ebp
mov dword [rsp + 0x40], eax
mov dword [rsp + 0x38], r15d
mov qword [rsp + 0x30], rsi
call fcn.1400198cc
mov r10, qword [section..data]
cmp r10, r13
je 0x14000d6b8
test byte [r10 + 0x1c], 1
je 0x14000d6b8
movzx eax, byte [r10 + 0x19]
mov edx, ebx
sar edx, 0x1f
and edx, 0xfffffffd
add edx, 5
cmp eax, edx
jl 0x14000d6b8
mov rcx, qword [r10 + 0x10]
lea r8, [0x1400b4390]
mov edx, 0x1d
mov r9d, ebx
call fcn.14000637c
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
test rdi, rdi
je 0x14000d6df
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
mov eax, ebx
mov rbx, qword [rsp + 0xb0]
add rsp, 0x60
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x140011b94
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x30
call fcn.14009bf60
mov esi, eax
lea rdx, str.SOFTWAREMicrosoftWindows_Media_Player_NSS3.0
lea rax, [rsp + 0x58]
xor ebx, ebx
and qword [rsp + 0x58], rbx
mov r9d, 0x2011f
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
nop dword [rax + rax]
mov edi, eax
test eax, eax
jne 0x140011be6
mov rbx, qword [rsp + 0x58]
mov r10, qword [section..data]
lea rbp, section..data
cmp r10, rbp
je 0x140011c34
mov edx, 2
test byte [r10 + 0x1c], dl
je 0x140011c34
movzx ecx, byte [r10 + 0x19]
lea eax, [rdx + 3]
test edi, edi
cmovne eax, edx
cmp ecx, eax
jb 0x140011c34
mov rcx, qword [r10 + 0x10]
lea r8, [0x1400b4390]
mov edx, 0x85
mov r9d, edi
call fcn.14000ad20
mov r10, qword [section..data]
test edi, edi
jne 0x140011c6f
lea r9d, [rdi + 4]
mov dword [rsp + 0x50], esi
lea rax, [rsp + 0x50]
mov dword [rsp + 0x28], r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.WakeOnMagicPacketEnabled
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
nop dword [rax + rax]
mov r10, qword [section..data]
cmp r10, rbp
je 0x140011c9a
test byte [r10 + 0x1c], 1
je 0x140011c9a
cmp byte [r10 + 0x19], 5
jb 0x140011c9a
mov rcx, qword [r10 + 0x10]
lea r8, [0x1400b4390]
mov edx, 0x86
mov r9d, esi
call fcn.1400063c0
test rbx, rbx
je 0x140011cae
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
mov rbx, qword [rsp + 0x60]
mov eax, esi
add rsp, 0x30
pop rdi
pop rsi
pop rbp
ret

Function at 0x140013998
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rsi
push rdi
sub rsp, 0x30
mov eax, dword [r9]
mov rbx, r8
mov rcx, qword [rcx]
add eax, eax
mov dword [rsp + 0x40], eax
mov rdi, r9
lea rax, [r11 + 8]
xor esi, esi
mov dword [r9], esi
xor r8d, r8d
mov qword [r11 - 0x10], rax
lea r9, [r11 + 0x20]
mov qword [r11 - 0x18], rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
nop dword [rax + rax]
test eax, eax
jne 0x140013a10
mov eax, dword [rsp + 0x58]
dec eax
cmp eax, 1
ja 0x140013a0b
mov ecx, dword [rsp + 0x40]
test rbx, rbx
je 0x140013a24
test ecx, ecx
je 0x140013a21
test cl, 1
jne 0x140013a0b
mov eax, ecx
shr rax, 1
cmp word [rbx + rax*2 - 2], si
je 0x140013a24
mov eax, SafeArrayGetDim
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
mov word [rbx], si
shr ecx, 1
mov dword [rdi], ecx
xor eax, eax
jmp 0x140013a10
Function at 0x140034008
Capabilities:
Monitor local ipv4 address changes

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 r14
sub rsp, 0x30
xor ebp, ebp
mov esi, ebp
call fcn.140034a20
test eax, eax
je 0x1400341e3
call fcn.1400349a8
test eax, eax
je 0x1400341e3
lea r14, [0x1400cdd60]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
nop dword [rax + rax]
xorps xmm0, xmm0
mov dword [0x1400cf8b0], ebp
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
movups xmmword [0x1400cf650], xmm0
movups xmmword [0x1400cf660], xmm0
call qword [sym.imp.KERNEL32.dll_CreateEventW]
nop dword [rax + rax]
mov qword [0x1400cf668], rax
test rax, rax
jne 0x140034161
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
mov edi, ebp
test ebx, ebx
je 0x14003414b
mov rcx, r14
mov dword [0x1400cf8b0], 1
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
nop dword [rax + rax]
mov rax, qword [0x1400cf8b8]
test esi, esi
mov rcx, r14
cmovne rax, rbp
mov qword [0x1400cf8b8], rax
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
nop dword [rax + rax]
test edi, edi
je 0x1400340fd
lea rcx, [0x1400cf650]
call qword [sym.imp.IPHLPAPI.DLL_CancelIPChangeNotify]
nop dword [rax + rax]
mov rcx, qword [0x1400cf668]
test rcx, rcx
je 0x140034115
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
mov rcx, qword [0x1400cf8c8]
xorps xmm0, xmm0
movups xmmword [0x1400cf650], xmm0
movups xmmword [0x1400cf660], xmm0
test rcx, rcx
je 0x14003413e
call fcn.140003b28
mov qword [0x1400cf8c8], rbp
mov qword [0x1400cf8c0], rbp
mov dword [0x1400cf8ac], ebp
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
nop dword [rax + rax]
mov eax, ebx
jmp 0x14003421c
mov dword [rsp + 0x28], ebp
lea r8, [0x1400343d0]
or dword [rsp + 0x20], 0xffffffff
lea rcx, [0x1400cf8b8]
xor r9d, r9d
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_RegisterWaitForSingleObject]
nop dword [rax + rax]
test eax, eax
je 0x140034092
lea rdx, [0x1400cf650]
mov esi, 1
lea rcx, [0x1400cf8c0]
call qword [sym.imp.IPHLPAPI.DLL_NotifyAddrChange]
nop dword [rax + rax]
mov ebx, eax
cmp eax, 0x3e5
jne 0x1400340a0
lea rcx, [0x1400cf8c8]
mov edi, esi
call fcn.14003435c
mov ebx, eax
test eax, eax
jne 0x1400340aa
mov ebx, ebp
mov dword [0x1400cf8ac], esi
jmp 0x14003414b
mov rcx, qword [section..data]
lea rax, section..data
cmp rcx, rax
je 0x140034217
test byte [rcx + 0x1c], 4
je 0x140034217
cmp byte [rcx + 0x19], 2
jb 0x140034217
mov rcx, qword [rcx + 0x10]
lea r8, [0x1400b50a8]
mov edx, SafeArrayUnlock
call fcn.1400062b0
mov eax, 0x8000ffff
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r14
ret