joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000ede0
Capabilities:
Get local ipv4 addresses

Disassembly:
mov qword [rsp + 8], rcx
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r15
sub rsp, 0x30
xor esi, esi
mov dword [rsp + 0x80], 0x3480
lea rbx, [0x1402379e0]
xor edx, edx
mov rcx, rbx
mov r8d, 0x3480
mov edi, esi
mov r15d, esi
mov r13d, esi
mov r12d, esi
call fcn.14015cb20
lea rbp, [0x14023aea0]
xor edx, edx
mov rcx, rbp
mov r8d, 0x2fd0
call fcn.14015cb20
lea rcx, [0x1402371e0]
mov dword [0x140237308], esi
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, 1
lea rcx, [0x1402371e0]
xchg dword [0x14023ae6c], eax
mov dword [rsp + 0x78], eax
mov eax, dword [rsp + 0x78]
test eax, eax
je 0x14000ee84
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, 0x420
add rsp, 0x30
pop r15
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
nop word [rax + rax]
lea rax, [rsp + 0x80]
mov r9, rbx
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov edx, 0x884
xor ecx, ecx
inc edi
call qword [sym.imp.IPHLPAPI.DLL_GetAdaptersAddresses]
cmp eax, 0x6f
je 0x14000efcb
cmp edi, 1
jl 0x14000ee90
mov qword [rsp + 0x88], r14
lea rdi, [0x14023afc8]
mov r14, rsi
cmp qword [rbx + 0x40], 0
je 0x14000ef37
movsxd rax, r15d
imul rcx, rax, 0x198
add rbp, rcx
mov rcx, rbx
mov rdx, rbp
call fcn.14000e3d0
test eax, eax
je 0x14000ef18
inc dword [0x140237308]
mov rcx, rbp
call fcn.14000d7c0
mov eax, dword [rdi - 0x28]
cmp eax, 0x14
jne 0x14000ef10
inc r13d
jmp 0x14000ef18
cmp eax, 0x13
jne 0x14000ef18
inc r12d
inc esi
cmp dword [rdi], 0
je 0x14000ef30
mov rdx, rbp
mov rcx, rbx
call fcn.14000d590
mov dword [rdi - 0x110], eax
lea rbp, [0x14023aea0]
mov rbx, qword [rbx + 8]
inc r15d
inc r14
add rdi, 0x198
test rbx, rbx
jne 0x14000eed2
mov r14, qword [rsp + 0x88]
mov dword [rsp + 0x70], esi
mov rsi, rbx
test r13d, r13d
je 0x14000ef9a
test r12d, r12d
jne 0x14000ef9a
movzx ecx, byte [0x140237056]
test rcx, rcx
je 0x14000ef9a
lea rax, [0x14023afc4]
nop dword [rax]
cmp dword [rax - 0x24], 0x14
jne 0x14000ef8e
mov dword [rax], esi
mov dword [rax - 0x10c], esi
add rax, 0x198
sub rcx, 1
jne 0x14000ef80
mov edx, dword [rsp + 0x70]
call fcn.14000f2b0
lea rcx, [0x1402371e0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, esi
lea rcx, [0x1402371e0]
xchg dword [0x14023ae6c], eax
mov dword [rsp + 0x78], eax
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x14000efd0
mov esi, 0x6f
mov eax, esi
add rsp, 0x30
pop r15
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x14000f580
Capabilities:
Persist via windows service
Set registry value

Disassembly:
push rbx
sub rsp, 0x50
xor ebx, ebx
lea rdx, str.SYSTEMCurrentControlSetServicesIntel_Connectivity_Network_ServiceSLibCFG
cmp ecx, 2
mov qword [rsp + 0x70], rbx
mov eax, 6
mov dword [rsp + 0x60], ebx
cmove ecx, eax
lea rax, [rsp + 0x70]
mov dword [rsp + 0x68], ecx
lea r9d, [rbx + 2]
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x14000f60c
lea rax, [rsp + 0x60]
xor r9d, r9d
mov qword [rsp + 0x40], rax
lea rdx, str.SYSTEMCurrentControlSetServicesIntel_Connectivity_Network_ServiceSLibCFG
lea rax, [rsp + 0x70]
xor r8d, r8d
mov qword [rsp + 0x38], rax
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], 0xf003f
mov dword [rsp + 0x20], ebx
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x14000f64d
mov rcx, qword [rsp + 0x70]
lea rax, [rsp + 0x68]
mov dword [rsp + 0x28], 4
lea rdx, str.Redir
mov r9d, 4
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x70]
mov ebx, eax
test rcx, rcx
je 0x14000f64b
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
add rsp, 0x50
pop rbx
ret
Function at 0x140013660
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
push rbp
push rsi
push rdi
sub rsp, 0x38
xor ebp, ebp
lea rdx, str.SUBSYS_E0001458
mov rbx, 0xffffffffffffffff
mov qword [rsp + 0x78], rbp
mov dword [rsp + 0x60], ebp
mov rsi, rbx
mov dword [rsp + 0x68], ebp
nop dword [rax]
inc rsi
cmp word [rdx + rsi*2], bp
jne 0x140013690
add esi, esi
lea rcx, [0x14023f330]
mov r8d, esi
call fcn.14015c680
mov r8d, esi
lea rdx, str.SUBSYS_12021462
lea rcx, [0x14023f384]
mov dword [0x14023f380], esi
mov dword [0x14023f3d4], esi
call fcn.14015c680
mov r8d, esi
lea rdx, str.SUBSYS_7A921462
lea rcx, [0x14023f3d8]
call fcn.14015c680
mov r8d, esi
lea rdx, str.SUBSYS_B9121462
lea rcx, [0x14023f42c]
mov dword [0x14023f428], esi
call fcn.14015c680
mov r8d, esi
lea rdx, str.SUBSYS_121C1462
lea rcx, [0x14023f480]
mov dword [0x14023f47c], esi
call fcn.14015c680
lea rdx, str.SUBSYS_30001A56
mov dword [0x14023f4d0], esi
inc rbx
cmp word [rdx + rbx*2], bp
jne 0x140013727
add ebx, ebx
lea rcx, [0x14023f4d4]
mov r8d, ebx
call fcn.14015c680
mov dword [0x14023f524], ebx
lea rax, [rsp + 0x78]
mov ebx, 1
mov qword [rsp + 0x20], rax
mov r9d, ebx
lea rdx, str.SYSTEMCurrentControlSetServicesIntel_Connectivity_Network_ServiceSLibCFG
xor r8d, r8d
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140013837
mov rcx, qword [rsp + 0x78]
lea rax, [0x14023f578]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x60]
lea rax, [0x14023f528]
mov dword [0x14023f578], 0x46
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.MultiGig_ID
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1400137ca
cmp dword [rsp + 0x60], ebx
jne 0x1400137ca
mov dword [reloc.OLEAUT32.dll_SysStringLen], 7
jmp 0x1400137d0
mov dword [0x14023f578], ebp
mov rcx, qword [rsp + 0x78]
lea rax, [rsp + 0x70]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x60]
lea rax, [rsp + 0x68]
mov dword [rsp + 0x60], 4
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.MgNumRanges
mov dword [rsp + 0x70], 4
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140013823
cmp dword [rsp + 0x60], 4
jne 0x140013823
mov ebx, dword [0x140228cd8]
add ebx, dword [rsp + 0x68]
mov dword [0x140228cd8], ebx
test ebx, ebx
je 0x140013837
mov rcx, qword [rsp + 0x78]
call fcn.140013170
mov rcx, qword [rsp + 0x78]
test rcx, rcx
je 0x140013847
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp qword [0x14023f588], rbp
jne 0x140013855
call fcn.140013860
add rsp, 0x38
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140013860
Capabilities:
Link many functions at runtime

Disassembly:
sub rsp, 0x28
xor edx, edx
lea rcx, str.SetupAPI.dll
mov r8d, 0x1000
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov qword [0x14023f588], rax
test rax, rax
je 0x14001396f
lea rdx, str.SetupDiGetClassDevsW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14023f770], rax
test rax, rax
je 0x14001394f
mov rcx, qword [0x14023f588]
lea rdx, [0x1401d5210]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14023f760], rax
test rax, rax
je 0x14001394f
mov rcx, qword [0x14023f588]
lea rdx, [0x1401d5228]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14023f748], rax
test rax, rax
je 0x14001394f
mov rcx, qword [0x14023f588]
lea rdx, [0x1401d5250]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14023f750], rax
test rax, rax
je 0x14001394f
mov rcx, qword [0x14023f588]
lea rdx, str.SetupDiEnumDeviceInterfaces
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14023f758], rax
test rax, rax
je 0x140013948
mov rcx, qword [0x14023f588]
lea rdx, str.SetupDiGetDeviceInterfaceDetailW
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14023f768], rax
mov al, 1
add rsp, 0x28
ret
mov rax, qword [0x14023f588]
test rax, rax
je 0x14001396f
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov qword [0x14023f588], 0
xor al, al
add rsp, 0x28
ret

Function at 0x140016350
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
sub r8, rdx
movabs rax, 0xcbf29ce484222325
sar r8, 1
mov r9d, 0
add r8, r8
je 0x140016394
movabs r10, 0x100000001b3
nop word [rax + rax]
movzx ecx, byte [r9 + rdx]
inc r9
xor rax, rcx
imul rax, r10
cmp r9, r8
jb 0x140016380
ret
Function at 0x1400212f0
Capabilities:
Start service

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
lea rbp, [rsp - 0x37]
sub rsp, 0xd0
mov qword [rbp - 0x79], 0xfffffffffffffffe
mov rax, qword [0x140228058]
xor rax, rsp
mov qword [rbp + 0x27], rax
mov rbx, rdx
mov qword [rbp - 0x31], rdx
xor sil, sil
mov rcx, qword [rcx + 8]
xor r14d, r14d
test rcx, rcx
je 0x140021433
cmp qword [rdx + 0x18], 8
jb 0x14002133d
mov rdx, qword [rdx]
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rdi, rax
mov qword [rbp - 0x21], r14
xorps xmm0, xmm0
movdqa xmmword [rbp - 0x19], xmm0
xorps xmm1, xmm1
movdqa xmmword [rbp - 9], xmm1
movdqa xmmword [rbp + 7], xmm0
mov qword [rbp - 0x39], r14
mov r8, r14
lea rdx, vtable.std::_Func_impl_no_alloc_int____cdecl___struct_SC_HANDLE______ptr64___int__struct_SC_HANDLE______ptr64_.0
cmp qword [sym.imp.ADVAPI32.dll_CloseServiceHandle], r14
je 0x140021391
mov qword [rbp - 0x71], rdx
mov rax, qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov qword [rbp - 0x69], rax
lea rax, [rbp - 0x71]
mov qword [rbp - 0x39], rax
lea r8, [rbp - 0x71]
mov rcx, rdi
mov qword [rbp - 0x29], rcx
mov rax, r14
mov qword [rbp + 0x17], rax
test r8, r8
je 0x1400213d6
mov qword [rbp - 0x21], rdx
mov rax, qword [r8 + 8]
mov qword [rbp - 0x19], rax
lea rax, [rbp - 0x21]
mov qword [rbp + 0x17], rax
lea rdx, [rbp - 0x71]
cmp r8, rdx
je 0x1400213d6
mov edx, 0x10
mov rcx, r8
call fcn.14013db80
mov rax, qword [rbp + 0x17]
mov rcx, qword [rbp - 0x29]
test rdi, rdi
je 0x1400213f7
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
setne sil
mov rax, qword [rbp + 0x17]
mov rcx, qword [rbp - 0x29]
test rcx, rcx
je 0x140021417
test rax, rax
je 0x14002149c
mov rax, qword [rax + 8]
call qword [case.0x14001ac40.0]
mov qword [rbp - 0x29], r14
mov rax, qword [rbp + 0x17]
test rax, rax
je 0x140021433
lea rcx, [rbp - 0x21]
cmp rax, rcx
je 0x140021433
mov edx, 0x10
mov rcx, rax
call fcn.14013db80
nop
mov rdx, qword [rbx + 0x18]
cmp rdx, 8
jb 0x14002146e
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbx]
cmp rdx, 0x1000
jb 0x140021469
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1400214a2
mov rcx, r8
call fcn.14013db80
mov qword [rbx + 0x10], r14
mov qword [rbx + 0x18], 7
mov word [rbx], r14w
movzx eax, sil
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.14013df50
add rsp, 0xd0
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret
call fcn.14011b9e0
nop
call fcn.14015fb1c
int3
Function at 0x140021910
Capabilities:
Query service status

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x2f]
sub rsp, 0xf8
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov rax, qword [0x140228058]
xor rax, rsp
mov qword [rbp + 0x17], rax
mov rsi, r8
mov rbx, rdx
mov qword [rbp - 0x61], rdx
xor r14b, r14b
mov dword [r8], 0xffffffff
mov rcx, qword [rcx + 8]
xor r15d, r15d
test rcx, rcx
je 0x140021a79
cmp qword [rdx + 0x18], 8
jb 0x14002196a
mov rdx, qword [rdx]
mov r8d, r9d
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rdi, rax
mov qword [rbp - 0x51], r15
xorps xmm0, xmm0
movdqa xmmword [rbp - 0x49], xmm0
xorps xmm1, xmm1
movdqa xmmword [rbp - 0x39], xmm1
movdqa xmmword [rbp - 0x29], xmm0
mov qword [rbp - 0x69], r15
mov rcx, r15
lea rdx, vtable.std::_Func_impl_no_alloc_int____cdecl___struct_SC_HANDLE______ptr64___int__struct_SC_HANDLE______ptr64_.0
cmp qword [sym.imp.ADVAPI32.dll_CloseServiceHandle], r15
je 0x1400219c5
mov qword [rsp + 0x28], rdx
mov rax, qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x28]
mov qword [rbp - 0x69], rax
lea rcx, [rsp + 0x28]
mov qword [rbp - 0x59], rdi
mov rax, r15
mov qword [rbp - 0x19], rax
test rcx, rcx
je 0x140021a01
mov qword [rbp - 0x51], rdx
mov rax, qword [rcx + 8]
mov qword [rbp - 0x49], rax
lea rax, [rbp - 0x51]
mov qword [rbp - 0x19], rax
lea rdx, [rsp + 0x28]
cmp rcx, rdx
je 0x140021a01
mov edx, 0x10
call fcn.14013db80
mov rax, qword [rbp - 0x19]
test rdi, rdi
je 0x140021a37
xor eax, eax
mov qword [rbp - 9], rax
mov qword [rbp - 1], rax
mov qword [rbp + 7], rax
mov dword [rbp + 0xf], eax
lea rdx, [rbp - 9]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
setne r14b
test eax, eax
je 0x140021a33
mov eax, dword [rbp - 5]
mov dword [rsi], eax
mov rax, qword [rbp - 0x19]
cmp qword [rbp - 0x59], 0
je 0x140021a5d
test rax, rax
je 0x140021ae4
mov rcx, qword [rbp - 0x59]
mov rax, qword [rax + 8]
call qword [case.0x14001ac40.0]
mov qword [rbp - 0x59], r15
mov rax, qword [rbp - 0x19]
test rax, rax
je 0x140021a79
lea rcx, [rbp - 0x51]
cmp rax, rcx
je 0x140021a79
mov edx, 0x10
mov rcx, rax
call fcn.14013db80
nop
mov rdx, qword [rbx + 0x18]
cmp rdx, 8
jb 0x140021ab4
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbx]
cmp rdx, 0x1000
jb 0x140021aaf
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140021aea
mov rcx, r8
call fcn.14013db80
mov qword [rbx + 0x10], r15
mov qword [rbx + 0x18], 7
mov word [rbx], r15w
movzx eax, r14b
mov rcx, qword [rbp + 0x17]
xor rcx, rsp
call fcn.14013df50
add rsp, 0xf8
pop r15
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret
call fcn.14011b9e0
nop
call fcn.14015fb1c
int3
Function at 0x140021af0
Capabilities:
Query service status

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x2f]
sub rsp, 0xe8
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov rax, qword [0x140228058]
xor rax, rsp
mov qword [rbp + 0x17], rax
mov rsi, r8
mov rbx, rdx
mov qword [rsp + 0x38], rdx
xor r14b, r14b
xor r15d, r15d
mov dword [r8], r15d
mov rcx, qword [rcx + 8]
test rcx, rcx
je 0x140021c6c
cmp qword [rdx + 0x18], 8
jb 0x140021b47
mov rdx, qword [rdx]
mov r8d, r9d
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rdi, rax
mov qword [rbp - 0x71], r15
xorps xmm0, xmm0
movdqa xmmword [rbp - 0x69], xmm0
xorps xmm1, xmm1
movdqa xmmword [rbp - 0x59], xmm1
movdqa xmmword [rbp - 0x49], xmm0
mov qword [rbp + 0xf], r15
mov rcx, r15
lea rdx, vtable.std::_Func_impl_no_alloc_int____cdecl___struct_SC_HANDLE______ptr64___int__struct_SC_HANDLE______ptr64_.0
cmp qword [sym.imp.ADVAPI32.dll_CloseServiceHandle], r15
je 0x140021b9e
mov qword [rbp - 0x29], rdx
mov rax, qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov qword [rbp - 0x21], rax
lea rax, [rbp - 0x29]
mov qword [rbp + 0xf], rax
lea rcx, [rbp - 0x29]
mov qword [rbp - 0x79], rdi
mov rax, r15
mov qword [rbp - 0x39], rax
test rcx, rcx
je 0x140021bd9
mov qword [rbp - 0x71], rdx
mov rax, qword [rcx + 8]
mov qword [rbp - 0x69], rax
lea rax, [rbp - 0x71]
mov qword [rbp - 0x39], rax
lea rdx, [rbp - 0x29]
cmp rcx, rdx
je 0x140021bd9
mov edx, 0x10
call fcn.14013db80
mov rax, qword [rbp - 0x39]
test rdi, rdi
je 0x140021c2a
xor eax, eax
mov qword [rbp - 0x29], rax
mov qword [rbp - 0x21], rax
mov qword [rbp - 0x19], rax
mov qword [rbp - 0x11], rax
mov dword [rbp - 9], eax
mov dword [rsp + 0x38], r15d
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov r9d, 0x24
lea r8, [rbp - 0x29]
xor edx, edx
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
setne r14b
test eax, eax
je 0x140021c26
mov eax, dword [rbp - 0xd]
mov dword [rsi], eax
mov rax, qword [rbp - 0x39]
cmp qword [rbp - 0x79], 0
je 0x140021c50
test rax, rax
je 0x140021cd7
mov rcx, qword [rbp - 0x79]
mov rax, qword [rax + 8]
call qword [case.0x14001ac40.0]
mov qword [rbp - 0x79], r15
mov rax, qword [rbp - 0x39]
test rax, rax
je 0x140021c6c
lea rcx, [rbp - 0x71]
cmp rax, rcx
je 0x140021c6c
mov edx, 0x10
mov rcx, rax
call fcn.14013db80
nop
mov rdx, qword [rbx + 0x18]
cmp rdx, 8
jb 0x140021ca7
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbx]
cmp rdx, 0x1000
jb 0x140021ca2
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140021cdd
mov rcx, r8
call fcn.14013db80
mov qword [rbx + 0x10], r15
mov qword [rbx + 0x18], 7
mov word [rbx], r15w
movzx eax, r14b
mov rcx, qword [rbp + 0x17]
xor rcx, rsp
call fcn.14013df50
add rsp, 0xe8
pop r15
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret
call fcn.14011b9e0
nop
call fcn.14015fb1c
int3
Function at 0x140022600
Capabilities:
Access the windows event log

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x100
mov rax, qword [0x140228058]
xor rax, rsp
mov qword [rsp + 0xf0], rax
movzx esi, dx
mov r14d, r9d
mov rdx, qword [rsp + 0x150]
movzx ebp, r8w
mov rbx, rcx
cmp qword [rdx + 0x18], 8
jb 0x14002263f
mov rdx, qword [rdx]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov rdi, rax
test rax, rax
je 0x14002274a
cmp qword [rbx + 0x18], 8
jb 0x14002265d
mov rbx, qword [rbx]
xor eax, eax
mov qword [rsp + 0x98], rbx
xor ebx, ebx
mov qword [rsp + 0xa0], rax
mov qword [rsp + 0xa8], rax
mov qword [rsp + 0xb0], rax
mov qword [rsp + 0xb8], rax
mov qword [rsp + 0xc0], rax
mov qword [rsp + 0xc8], rax
mov qword [rsp + 0xd0], rax
mov qword [rsp + 0xd8], rax
mov qword [rsp + 0xe0], rax
mov qword [rsp + 0x90], rbx
cmp qword [sym.imp.ADVAPI32.dll_DeregisterEventSource], rax
je 0x1400226e7
lea rax, vtable.std::_Func_impl_no_alloc_int____cdecl___void____ptr64___int__void____ptr64_.0
mov qword [rsp + 0x58], rax
mov rax, qword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
mov qword [rsp + 0x60], rax
lea rax, [rsp + 0x58]
mov qword [rsp + 0x90], rax
lea r8, [rsp + 0x58]
mov rdx, rdi
lea rcx, [rsp + 0xa0]
call fcn.1400152b0
mov qword [rsp + 0x40], rbx
lea rax, [rsp + 0x98]
mov qword [rsp + 0x38], rax
mov ecx, 1
mov dword [rsp + 0x30], ebx
mov r9d, r14d
mov word [rsp + 0x28], cx
movzx r8d, bp
mov rcx, rdi
mov qword [rsp + 0x20], rbx
movzx edx, si
call qword [sym.imp.ADVAPI32.dll_ReportEventW]
cmp eax, 1
lea rcx, [rsp + 0xa0]
sete bl
call fcn.1400151c0
movzx eax, bl
mov rcx, qword [rsp + 0xf0]
xor rcx, rsp
call fcn.14013df50
add rsp, 0x100
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret

Function at 0x140022820
Capabilities:
Get system information on windows

Disassembly:
sub rsp, 0xe8
mov rax, qword [0x140228058]
xor rax, rsp
mov qword [rsp + 0xd0], rax
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0xb0
call fcn.14015cb20
xor r9d, r9d
lea rdx, [rsp + 0x20]
mov r8d, 0xb0
lea ecx, [r9 + 0x50]
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
test eax, eax
js 0x1400228ae
mov rax, qword [rsp + 0x80]
add rax, qword [rsp + 0x78]
add rax, qword [rsp + 0x70]
add rax, qword [rsp + 0x68]
add rax, qword [rsp + 0x60]
add rax, qword [rsp + 0x58]
add rax, qword [rsp + 0x50]
add rax, qword [rsp + 0x48]
shl rax, 0xc
mov rcx, qword [rsp + 0xd0]
xor rcx, rsp
call fcn.14013df50
add rsp, 0xe8
ret
xor eax, eax
mov rcx, qword [rsp + 0xd0]
xor rcx, rsp
call fcn.14013df50
add rsp, 0xe8
ret
Function at 0x140028690
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
mov rbp, rsp
sub rsp, 0x80
mov qword [rbp - 0x50], 0xfffffffffffffffe
mov rax, qword [0x140228058]
xor rax, rsp
mov qword [rbp - 8], rax
mov r15, r9
mov rsi, r8
xor eax, eax
mov qword [rbp - 0x18], rax
xor r12d, r12d
mov qword [rbp - 0x20], r12
mov dword [rbp - 0x18], r12d
mov qword [rbp - 0x10], r12
cmp qword [rdx + 0x18], 8
jb 0x1400286e0
mov rdx, qword [rdx]
movzx r9d, byte [rbp + 0x60]
shl r9d, 9
add r9d, 0x20019
mov r8, rdx
mov rdx, rcx
lea rcx, [rbp - 0x20]
call fcn.14002e180
mov edi, eax
test eax, eax
jne 0x140028862
mov qword [rbp - 0x40], r12
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x38], xmm0
mov eax, r12d
mov dword [rbp - 0x48], eax
mov rbx, qword [rbp - 0x20]
test rbx, rbx
je 0x140028764
mov rdx, rsi
cmp qword [rsi + 0x18], 8
jb 0x140028731
mov rdx, qword [rsi]
lea rax, [rbp - 0x48]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r12
lea r9, [rbp - 0x28]
xor r8d, r8d
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, eax
cmp eax, 0xea
mov eax, dword [rbp - 0x48]
je 0x140028764
test ecx, ecx
cmovne eax, r12d
mov dword [rbp - 0x48], eax
mov edx, eax
lea r8, [rbp - 0x40]
lea rcx, [rbp - 0x40]
call fcn.140022c40
mov rax, qword [rbp - 0x38]
mov r14, qword [rbp - 0x40]
sub rax, r14
cmp qword [rsi + 0x18], 8
jb 0x140028788
mov rsi, qword [rsi]
add eax, eax
mov dword [rbp - 0x48], eax
lea rax, [rbp - 0x48]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r14
lea r9, [rbp - 0x28]
xor r8d, r8d
mov rdx, rsi
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
test eax, eax
jne 0x140028815
mov eax, dword [rbp - 0x28]
dec eax
cmp eax, 1
jbe 0x1400287c5
mov edi, SafeArrayDestroy
jmp 0x140028815
test r14, r14
je 0x1400287ec
mov eax, dword [rbp - 0x48]
test eax, eax
je 0x1400287e8
test al, 1
jne 0x1400287e1
shr rax, 1
cmp word [r14 + rax*2 - 2], 0
je 0x1400287ec
mov edi, SafeArrayDestroy
jmp 0x140028815
mov word [r14], r12w
mov edi, r12d
mov rcx, qword [rbp - 0x40]
cmp qword [rbp - 0x38], rcx
je 0x140028819
mov r8, 0xffffffffffffffff
inc r8
cmp word [rcx + r8*2], r12w
jne 0x140028800
mov rdx, rcx
mov rcx, r15
call fcn.1400159c0
mov rcx, qword [rbp - 0x40]
test rbx, rbx
je 0x14002882e
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbx, r12
mov rcx, qword [rbp - 0x40]
test rcx, rcx
je 0x140028866
mov rdx, qword [rbp - 0x30]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x14002885b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140028894
call fcn.14013db80
jmp 0x140028866
mov rbx, qword [rbp - 0x20]
test rbx, rbx
je 0x140028874
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.14013df50
add rsp, 0x80
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
call fcn.14015fb1c
nop
int3
Function at 0x140028c00
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
push rbp
push rsi
push rdi
sub rsp, 0x68
mov rax, qword [0x140228058]
xor rax, rsp
mov qword [rsp + 0x50], rax
xor ebp, ebp
mov rsi, r9
cmp qword [rdx + 0x18], 8
mov rbx, r8
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x38], rbp
mov qword [rsp + 0x48], rbp
jb 0x140028c39
mov rdx, qword [rdx]
movzx r9d, byte [rsp + 0xb0]
mov r8, rdx
shl r9d, 9
mov rdx, rcx
add r9d, 0x20019
lea rcx, [rsp + 0x38]
call fcn.14002e180
mov edi, eax
test eax, eax
jne 0x140028cc4
cmp qword [rbx + 0x18], 8
jb 0x140028c6d
mov rbx, qword [rbx]
mov rdi, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x34]
mov rcx, rdi
mov qword [rsp + 0x20], rsi
xor r8d, r8d
mov dword [rsp + 0x30], 4
mov rdx, rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, eax
test eax, eax
jne 0x140028cb2
cmp dword [rsp + 0x34], 4
mov ebx, ebp
mov eax, SafeArrayDestroy
cmovne ebx, eax
test rdi, rdi
je 0x140028cc0
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
jmp 0x140028cd6
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x140028cd6
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.14013df50
add rsp, 0x68
pop rdi
pop rsi
pop rbp
pop rbx
ret

Function at 0x140028cf0
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
push rbp
push rsi
push rdi
sub rsp, 0x68
mov rax, qword [0x140228058]
xor rax, rsp
mov qword [rsp + 0x58], rax
xor ebp, ebp
mov dword [rsp + 0x30], r9d
cmp qword [rdx + 0x18], 8
mov esi, r9d
mov rdi, r8
mov qword [rsp + 0x48], rbp
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x50], rbp
jb 0x140028d2e
mov rdx, qword [rdx]
movzx r9d, byte [rsp + 0xb0]
mov r8, rdx
shl r9d, 9
mov rdx, rcx
add r9d, 0x20019
lea rcx, [rsp + 0x40]
call fcn.14002e180
mov ebx, eax
test eax, eax
jne 0x140028db6
cmp qword [rdi + 0x18], 8
jb 0x140028d62
mov rdi, qword [rdi]
lea rax, [rsp + 0x34]
mov dword [rsp + 0x34], 4
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x38]
mov rdx, rdi
lea rax, [rsp + 0x30]
mov rdi, qword [rsp + 0x40]
xor r8d, r8d
mov rcx, rdi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, eax
test eax, eax
jne 0x140028dac
cmp dword [rsp + 0x38], 4
mov ebx, ebp
mov eax, SafeArrayDestroy
cmovne ebx, eax
test rdi, rdi
je 0x140028dc6
mov rcx, rdi
jmp 0x140028dc0
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x140028dc6
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [rsp + 0x30]
test ebx, ebx
cmovne eax, esi
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14013df50
add rsp, 0x68
pop rdi
pop rsi
pop rbp
pop rbx
ret