joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18000aec8
Capabilities:
Initialize winsock library
Set socket configuration

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r13
push r14
push r15
lea rbp, [rsp - 0xf0]
sub rsp, 0x1f0
xor r15d, r15d
movzx esi, cx
mov r14, rdx
mov qword [rdx], r15
lea rcx, [rsp + 0x52]
mov r8d, 0x196
xor edx, edx
mov word [rsp + 0x50], r15w
call fcn.180013ca0
lea rdx, [rsp + 0x50]
mov ecx, 0x202
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x18000af2c
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
jmp 0x18000b015
mov edx, 1
mov ebx, r15d
lea ecx, [rdx + 0x16]
lea r8d, [rdx + 5]
call qword [sym.imp.WS2_32.dll_socket]
mov r13d, 2
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x18000af85
lea r9, [rbp + 0x128]
lea edx, [r13 + 0x27]
lea r8d, [r13 + 0x19]
mov rcx, rax
mov dword [rbp + 0x128], r15d
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
jne 0x18000af9c
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
mov ebx, 1
mov ecx, r13d
lea r8d, [rbx + 5]
mov edx, ebx
call qword [sym.imp.WS2_32.dll_socket]
mov rdi, rax
xor eax, eax
mov word [rsp + 0x30], r15w
mov qword [rsp + 0x32], rax
mov qword [rsp + 0x3a], rax
mov qword [rsp + 0x42], rax
mov word [rsp + 0x4a], ax
test ebx, ebx
je 0x18000afd3
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_htons]
mov word [rsp + 0x30], r13w
movzx eax, ax
mov dword [rsp + 0x34], eax
jmp 0x18000afea
movups xmm0, xmmword [0x180024050]
mov eax, reloc.WS2_32.dll_socket
mov word [rsp + 0x30], ax
movdqu xmmword [rsp + 0x38], xmm0
movzx ecx, si
call qword [sym.imp.WS2_32.dll_htons]
neg ebx
lea rdx, [rsp + 0x30]
sbb r8d, r8d
mov r9, r14
mov rcx, rdi
and r8d, 0xfffffff4
mov word [rsp + 0x32], ax
add r8d, 0x1c
call fcn.18000ae50
lea r11, [rsp + 0x1f0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop rdi
pop rbp
ret

Function at 0x18000b038
Capabilities:
Get socket status

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x240
mov rax, qword [rcx + 8]
mov rsi, rcx
mov rcx, qword [rcx + 0x28]
mov rbx, qword [rax + 0x60]
mov edi, edx
call fcn.18000cc88
and dword [rsp + 0x30], 0
mov rax, qword [rbx]
and dword [rsp + 0x250], 0
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x254], edi
mov ecx, dword [rbx]
lea rax, [rsp + 0x250]
lea rdx, [rsp + 0x30]
xor r9d, r9d
xor r8d, r8d
inc ecx
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_select]
mov rcx, qword [rsi + 0x28]
mov ebx, eax
call fcn.18000cca8
lea r11, [rsp + 0x240]
mov rsi, qword [r11 + 0x20]
mov eax, ebx
mov rbx, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
Function at 0x18000cecc
Capabilities:
Create thread

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
mov rsi, r9
mov rbp, r8
mov r14, rdx
mov rdi, rcx
test rcx, rcx
jne 0x18000cefd
xor eax, eax
jmp 0x18000cf7d
mov ecx, 0x38
call fcn.180013344
mov rbx, rax
test rax, rax
je 0x18000cef6
xor edx, edx
mov rcx, rax
lea r8d, [rdx + 0x38]
call fcn.180013ca0
call fcn.18000ccc8
mov qword [rbx + 0x10], rax
test rax, rax
jne 0x18000cf35
mov rcx, rbx
call fcn.180013304
jmp 0x18000cef6
lea r8, [0x18000d0c0]
mov r9, rbx
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x28], rbx
mov qword [rbx + 0x20], r14
mov qword [rbx + 0x28], rbp
mov qword [rbx + 0x30], rsi
mov qword [rbx + 0x18], rdi
mov dword [rsp + 0x20], 4
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rbx + 8], rax
test rax, rax
jne 0x18000cf7a
mov rcx, qword [rbx + 0x10]
call fcn.18000cd24
jmp 0x18000cf2b
mov rax, rbx
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

Function at 0x18000cfd8
Capabilities:
Resume thread

Disassembly:
sub rsp, 0x28
test rcx, rcx
jne 0x18000cfe5
xor eax, eax
jmp 0x18000cff4
mov rcx, qword [rcx + 8]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, 1
add rsp, 0x28
ret

Function at 0x18000d018
Capabilities:
Terminate thread

Disassembly:
push rbx
sub rsp, 0x20
xor ebx, ebx
test rcx, rcx
jne 0x18000d029
xor eax, eax
jmp 0x18000d03d
mov rcx, qword [rcx + 8]
or edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_TerminateThread]
test eax, eax
setne bl
mov eax, ebx
add rsp, 0x20
pop rbx
ret
Function at 0x18000e21c
Capabilities:
Compute adler32 checksum

Disassembly:
movzx r9d, cx
shr ecx, 0x10
mov r10, rdx
test rdx, rdx
jne 0x18000e353
lea eax, [rdx + 1]
ret
mov edx, 0x15b0
cmp r8d, edx
cmovb edx, r8d
sub r8d, edx
cmp edx, 0x10
jl 0x18000e318
mov r11d, edx
shr r11, 4
mov eax, r11d
neg eax
shl eax, 4
add edx, eax
movzx eax, byte [r10]
add r10, 0x10
add r9d, eax
movzx eax, byte [r10 - 0xf]
add ecx, r9d
add r9d, eax
movzx eax, byte [r10 - 0xe]
add ecx, r9d
add r9d, eax
movzx eax, byte [r10 - 0xd]
add ecx, r9d
add r9d, eax
movzx eax, byte [r10 - 0xc]
add ecx, r9d
add r9d, eax
movzx eax, byte [r10 - 0xb]
add ecx, r9d
add r9d, eax
movzx eax, byte [r10 - 0xa]
add ecx, r9d
add r9d, eax
movzx eax, byte [r10 - 9]
add ecx, r9d
add r9d, eax
movzx eax, byte [r10 - 8]
add ecx, r9d
add r9d, eax
movzx eax, byte [r10 - 7]
add ecx, r9d
add r9d, eax
movzx eax, byte [r10 - 6]
add ecx, r9d
add r9d, eax
movzx eax, byte [r10 - 5]
add ecx, r9d
add r9d, eax
movzx eax, byte [r10 - 4]
add ecx, r9d
add r9d, eax
movzx eax, byte [r10 - 3]
add ecx, r9d
add r9d, eax
movzx eax, byte [r10 - 2]
add ecx, r9d
add r9d, eax
movzx eax, byte [r10 - 1]
add ecx, r9d
add r9d, eax
add ecx, r9d
dec r11
jne 0x18000e25c
test edx, edx
je 0x18000e32d
movzx eax, byte [r10]
inc r10
add r9d, eax
add ecx, r9d
dec edx
jne 0x18000e31c
mov eax, 0x80078071
mul r9d
shr edx, 0xf
imul eax, edx, 0xffff000f
add r9d, eax
mov eax, 0x80078071
mul ecx
shr edx, 0xf
imul eax, edx, 0xffff000f
add ecx, eax
test r8d, r8d
jne 0x18000e233
shl ecx, 0x10
or ecx, r9d
mov eax, ecx
ret
Function at 0x18000ef38
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, dword [rcx + 0x38]
mov rbx, rcx
mov edx, dword [rbx + 0x8c]
mov edi, dword [rbx + 0x50]
mov eax, dword [rbx + 0x94]
sub edi, edx
sub edi, eax
jne 0x18000ef76
test edx, edx
jne 0x18000ef85
test eax, eax
jne 0x18000ef85
mov edi, esi
jmp 0x18000f00a
cmp edi, 0xffffffff
jne 0x18000ef85
mov edi, 0xfffffffe
jmp 0x18000f00a
mov ecx, dword [rbx + 0x38]
add ecx, 0xfffffefa
add ecx, esi
cmp edx, ecx
jb 0x18000f00a
mov rcx, qword [rbx + 0x48]
mov r8, rsi
lea rdx, [rcx + rsi]
call fcn.180013410
mov r9d, dword [rbx + 0x6c]
mov rax, qword [rbx + 0x60]
sub dword [rbx + 0x90], esi
sub dword [rbx + 0x8c], esi
sub dword [rbx + 0x7c], esi
lea r8, [rax + r9*2]
xor eax, eax
lea r8, [r8 - 2]
movzx edx, word [r8]
movzx ecx, dx
sub cx, si
cmp edx, esi
cmovae ax, cx
mov word [r8], ax
dec r9d
jne 0x18000efbf
mov rax, qword [rbx + 0x58]
mov r9d, esi
lea r8, [rax + rsi*2]
xor eax, eax
lea r8, [r8 - 2]
movzx edx, word [r8]
movzx ecx, dx
sub cx, si
cmp edx, esi
cmovae ax, cx
mov word [r8], ax
dec r9d
jne 0x18000efe9
add edi, esi
mov rcx, qword [rbx]
cmp dword [rcx + 8], 0
je 0x18000f081
mov edx, dword [rbx + 0x94]
mov eax, dword [rbx + 0x8c]
mov r8d, edi
add rdx, rax
add rdx, qword [rbx + 0x48]
call fcn.18000f9fc
add dword [rbx + 0x94], eax
mov r9d, dword [rbx + 0x94]
cmp r9d, 3
jb 0x18000f06b
mov eax, dword [rbx + 0x8c]
mov rdx, qword [rbx + 0x48]
mov ecx, dword [rbx + 0x78]
movzx r8d, byte [rax + rdx]
mov dword [rbx + 0x68], r8d
shl r8d, cl
inc eax
movzx eax, byte [rax + rdx]
xor r8d, eax
and r8d, dword [rbx + 0x74]
mov dword [rbx + 0x68], r8d
cmp r9d, 0x106
jae 0x18000f081
mov rax, qword [rbx]
cmp dword [rax + 8], 0
jne 0x18000ef52
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x141623058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.1416231df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x141623089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14162306f
add dl, dl
jne 0x141623096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1416230f6
xor eax, eax
add dl, dl
jne 0x1416230a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1416231ad
add dl, dl
jne 0x1416230b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1416230c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1416230d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1416230dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1416230ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x14162307e
mov eax, 1
add dl, dl
jne 0x141623106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x141623113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1416230fb
sub eax, ebx
mov ebx, 1
jne 0x14162314c
mov ecx, 1
add dl, dl
jne 0x14162312e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14162313b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x141623123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14162307e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x141623168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x141623175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14162315d
cmp eax, 0x7d00
jae 0x14162319b
cmp eax, 0x500
jb 0x141623196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14162307e
cmp eax, 0x7f
ja 0x14162319e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14162307e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1416231d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x14162307e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140025a20
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x140025a2d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x140025a3d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x140025a25
lea eax, [rcx + 1]
call r11
adc eax, eax
add ebx, ebx
jne 0x140025a55
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x140025a42
sub eax, 3
jb 0x140025a6f
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x140025aa6
movsxd rbp, eax
lea eax, [rcx + 1]
call r11
adc ecx, ecx
call r11
adc ecx, ecx
jne 0x140025a96
mov ecx, eax
add eax, 2
call r11
adc ecx, ecx
add ebx, ebx
jne 0x140025a94
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x140025a83
cmp rbp, 0xfffffffffffff300
adc ecx, eax
call fcn.1400259e2
jmp 0x140025a2d
pop rsi
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x16a00
mov dl, 5
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x140025af2
cmp rsi, rcx
jae 0x140025afa
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x140025ad9
cmp al, 0x8f
ja 0x140025ad9
cmp byte [rsi - 2], 0xf
je 0x140025adf
sub al, 0xe8
cmp al, 1
ja 0x140025ac3
cmp rsi, rcx
jae 0x140025afa
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x140025ac9
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x140025afa
lodsb al, byte [rsi]
jmp 0x140025ad9
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x23000]
mov eax, dword [rdi]
or eax, eax
je 0x140025b57
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x26780]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x140025b07
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x140025b51
mov qword [rbx], rax
add rbx, 8
jmp 0x140025b27
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x1af]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x140025baf
sub rsp, 0xffffffffffffff80
jmp section.UPX0
Function at 0x1400014f0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov edi, r8d
mov rsi, rdx
mov rbp, rcx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x140001565
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
test rax, rax
je 0x140001565
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, eax
add rcx, rbx
and edi, 0xf
jbe 0x140001555
nop
cmp rbx, rcx
jae 0x140001565
movzx eax, word [rbx]
lea rbx, [rbx + rax*2]
add rbx, 2
add edi, 0xffffffff
jne 0x140001540
cmp rbx, rcx
jae 0x140001565
cmp word [rbx], 0
je 0x140001565
mov rax, rbx
jmp 0x140001567
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140002760
Capabilities:
Get common file path
Get program files directory

Disassembly:
push rdi
mov eax, 0x10060
call fcn.140026fd0
sub rsp, rax
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov qword [rsp + 0x10078], rbx
mov qword [rsp + 0x10080], rsi
mov rax, qword [0x14003b010]
xor rax, rsp
mov qword [rsp + 0x10050], rax
mov rdi, rcx
mov qword [rsp + 0x40], rcx
xor esi, esi
mov dword [rsp + 0x30], esi
call fcn.140001230
mov rcx, rax
test rax, rax
je 0x1400028c2
mov rax, qword [rax]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
add rax, 0x18
mov qword [rdi], rax
lea rdx, [0x140031900]
lea rbx, [rsi - 1]
cmp rdx, 0x10000
jae 0x1400027e7
movzx edx, dx
mov rcx, rdi
call fcn.140002e30
jmp 0x140002806
mov rax, rbx
nop word [rax + rax]
inc rax
cmp word [rdx + rax*2], 0
jne 0x1400027f0
mov r8d, eax
mov rcx, rdi
call fcn.1400030e0
nop
mov dword [rsp + 0x30], 1
xor edx, edx
mov r8d, 0xfffe
lea rcx, [rsp + 0x50]
call fcn.140013460
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 0x26]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x14000289a
lea rcx, [rsp + 0x50]
mov rax, rbx
nop dword [rax + rax]
lea rax, [rax + 1]
cmp word [rcx + rax*2], 0
jne 0x140002850
cmp word [rsp + rax*2 + 0x4e], 0x5c
jne 0x140002878
lea rax, [rax*2 - 2]
cmp rax, 0xfffe
jae 0x1400028cd
mov word [rsp + rax + 0x50], si
lea rax, [rsp + 0x50]
nop dword [rax]
inc rbx
cmp word [rax + rbx*2], 0
jne 0x140002880
mov r8d, ebx
lea rdx, [rsp + 0x50]
mov rcx, rdi
call fcn.1400030e0
mov rax, rdi
mov rcx, qword [rsp + 0x10050]
xor rcx, rsp
call fcn.140010f70
lea r11, [rsp + 0x10060]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
mov ecx, 0x80004005
call fcn.1400014c0
int3
call fcn.14001169c
int3
Function at 0x1400036c0
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r15
sub rsp, 0x50
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov rbx, rdx
mov r15, rcx
test rdx, rdx
jne 0x1400036ec
xor eax, eax
add rsp, 0x50
pop r15
pop rdi
pop rsi
pop rbp
pop rbx
ret
lea rcx, [0x140031cc0]
call fcn.140001130
xor edi, edi
mov qword [rsp + 0x38], rdi
mov dword [rsp + 0x40], edi
mov qword [rsp + 0x48], rdi
call fcn.140001230
mov rcx, rax
test rax, rax
je 0x14000388a
mov rax, qword [rax]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
add rax, 0x18
mov qword [rsp + 0x98], rax
lea rdx, str.SYSTEMCurrentControlSetEnum_
lea rsi, [rdi - 1]
cmp rdx, 0x10000
jae 0x140003751
movzx edx, dx
lea rcx, [rsp + 0x98]
call fcn.140002e30
jmp 0x14000376f
mov rax, rsi
inc rax
cmp word [rdx + rax*2], 0
jne 0x140003754
mov r8d, eax
lea rcx, [rsp + 0x98]
call fcn.1400030e0
nop
mov rax, rsi
inc rax
cmp word [rbx + rax*2], 0
jne 0x140003772
mov r8d, eax
mov rdx, rbx
lea rcx, [rsp + 0x98]
call fcn.140003200
lea rdx, str.Device_Parameters
mov rax, rsi
nop dword [rax]
inc rax
cmp word [rdx + rax*2], 0
jne 0x1400037a0
mov r8d, eax
lea rcx, [rsp + 0x98]
call fcn.140003200
mov r9d, 0x20019
mov rbx, qword [rsp + 0x98]
mov r8, rbx
lea rcx, [rsp + 0x38]
call fcn.1400015b0
test eax, eax
jne 0x140003855
mov dword [rsp + 0x88], 0x100
lea rax, [rsp + 0x88]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r15
lea r9, [rsp + 0x90]
xor r8d, r8d
lea rdx, str.EDID
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebp, eax
test eax, eax
jne 0x14000382b
mov ebp, edi
mov eax, 0xd
cmp dword [rsp + 0x90], 3
cmovne ebp, eax
cmp qword [rsp + 0x38], 0
je 0x140003843
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x38], rdi
mov dword [rsp + 0x40], edi
test ebp, ebp
jne 0x140003855
mov rcx, r15
call fcn.140003cf0
mov edi, eax
lea rdx, [rbx - 0x18]
lock xadd dword [rdx + 0x10], esi
sub esi, 1
jg 0x14000386d
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x14000387d
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
add rsp, 0x50
pop r15
pop rdi
pop rsi
pop rbp
pop rbx
ret
mov ecx, 0x80004005
call fcn.1400014c0
int3
Function at 0x1400053b0
Capabilities:
Create thread

Disassembly:
push rsi
sub rsp, 0x40
mov qword [rcx + 0x18], rdx
mov rsi, rcx
test rdx, rdx
je 0x140005577
mov eax, dword [rdx + 0x19c]
shr eax, 2
and eax, 7
mov dword [rcx + 0x20], eax
je 0x140005577
cmp dword [rcx + 0x14], 0
jne 0x140005577
mov qword [rsp + 0x58], rbx
xor r9d, r9d
mov dword [rcx + 0x14], 1
xor r8d, r8d
mov qword [rsp + 0x60], rbp
xor ecx, ecx
xor edx, edx
mov qword [rsp + 0x38], rdi
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov ebx, dword [rsi + 0x20]
mov ecx, 0xb0
mov qword [rsi], rax
call fcn.140011830
mov rdi, rax
mov qword [rsp + 0x50], rax
xor ebp, ebp
lea rax, vtable.CMMEndpointNotify.0
mov qword [rdi + 0x48], rax
lea rax, vtable.CMMControlNotify.1.0
mov qword [rdi + 0x50], rbp
mov qword [rdi + 0x58], rax
lea rax, vtable.CMMControlNotify.0
mov qword [rdi + 0x60], rax
lea rax, vtable.CHpDevMonitor.0
mov qword [rdi + 0x68], rbp
mov qword [rdi + 0x40], rbp
mov qword [rdi + 0x20], rbp
mov qword [rdi + 8], rbp
mov qword [rdi + 0x10], rbp
mov qword [rdi + 0x18], rbp
mov qword [rdi + 0x28], rbp
mov qword [rdi + 0x30], rbp
mov qword [rdi], rax
call fcn.140001230
test rax, rax
je 0x14000557d
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + reloc.OLEAUT32.dll_SafeArrayGetElement]
add rax, 0x18
mov qword [rdi + 0x90], rax
call fcn.140001230
test rax, rax
je 0x14000557d
mov rdx, qword [rax]
mov rcx, rax
mov qword [rsp + 0x30], r14
call qword [rdx + reloc.OLEAUT32.dll_SafeArrayGetElement]
lea r14, [rdi + 0xa8]
mov qword [0x14003db58], rdi
add rax, 0x18
mov qword [rdi + 0x98], rax
mov qword [rdi + 0x70], rbp
mov qword [rdi + 0x78], rbp
mov qword [rdi + 0x80], rbp
mov qword [rdi + 0x88], rbp
mov qword [rdi + 0xa0], rbp
mov dword [r14], ebp
test bl, 4
je 0x1400054f7
mov dword [rdi + 0x70], 1
test bl, 2
je 0x140005503
mov dword [rdi + 0x78], 1
mov rcx, rdi
call fcn.1400102f0
mov rcx, rdi
movzx ebx, al
call fcn.140010230
test bl, bl
je 0x14000553e
mov qword [rsp + 0x28], r14
lea r8, [0x1400100d0]
mov r9, rdi
mov dword [rsp + 0x20], ebp
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rdi + 0xa0], rax
lea rax, [rsi + 0x10]
mov r9, rsi
mov qword [rsp + 0x28], rax
lea r8, [0x140005740]
xor edx, edx
mov dword [rsp + 0x20], ebp
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov r14, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x60]
mov rbx, qword [rsp + 0x58]
mov rdi, qword [rsp + 0x38]
mov qword [rsi + 8], rax
add rsp, 0x40
pop rsi
ret
mov ecx, 0x80004005
call fcn.1400014c0
int3
Function at 0x1400083f0
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
lea rbp, [rsp - 0xff80]
mov eax, 0x10080
call fcn.140026fd0
sub rsp, rax
mov qword [rsp + 0x60], 0xfffffffffffffffe
mov qword [rsp + 0x10090], rbx
mov qword [rsp + 0x10098], rsi
mov qword [rsp + 0x100a0], rdi
mov rax, qword [0x14003b010]
xor rax, rsp
mov qword [rbp + 0xff70], rax
test dword [rcx + 0x15c], 0x200
jne 0x14000844c
xor eax, eax
jmp 0x14000857f
xor ebx, ebx
mov qword [rsp + 0x48], rbx
mov dword [rsp + 0x50], ebx
mov qword [rsp + 0x58], rbx
call fcn.140001230
mov rcx, rax
test rax, rax
je 0x140008634
mov rax, qword [rax]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
add rax, 0x18
mov qword [rsp + 0x38], rax
lea rdx, [0x140031900]
lea rdi, [rbx - 1]
cmp rdx, 0x10000
jae 0x14000849f
movzx edx, dx
lea rcx, [rsp + 0x38]
call fcn.140002e30
jmp 0x1400084ba
mov rax, rdi
inc rax
cmp word [rdx + rax*2], 0
jne 0x1400084a2
mov r8d, eax
lea rcx, [rsp + 0x38]
call fcn.1400030e0
nop
mov r9d, 0x20019
lea r8, str.SOFTWARERealtekWOV
lea rcx, [rsp + 0x48]
call fcn.1400015b0
mov rsi, qword [rsp + 0x48]
test eax, eax
jne 0x140008538
mov dword [rsp + 0x30], 0xfffe
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x40]
xor r8d, r8d
lea rdx, str.VoiceAssistantApplication
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140008538
mov eax, dword [rsp + 0x40]
dec eax
cmp eax, 1
ja 0x140008538
mov eax, dword [rsp + 0x30]
test eax, eax
je 0x1400085a7
test al, 1
jne 0x140008538
shr rax, 1
cmp word [rsp + rax*2 + 0x6e], 0
je 0x1400085ac
test rsi, rsi
je 0x14000854b
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x48], rbx
mov dword [rsp + 0x50], ebx
mov rdx, qword [rsp + 0x38]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], edi
sub edi, 1
jg 0x14000856d
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
nop
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x14000857d
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rbp + 0xff70]
xor rcx, rsp
call fcn.140010f70
lea r11, [rsp + 0x10080]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
mov word [rsp + 0x70], bx
lea rcx, [rsp + 0x70]
mov rax, rdi
inc rax
cmp word [rcx + rax*2], 0
jne 0x1400085b4
mov r8d, eax
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x38]
call fcn.1400030e0
mov rdx, qword [rsp + 0x38]
lea r8, str.LenovoVoiceAssistant
mov rcx, rdi
nop
movzx eax, word [rdx + rcx*2 + 2]
cmp ax, word [r8 + rcx*2 + 2]
jne 0x140008602
add rcx, 2
cmp rcx, 0x15
je 0x140008630
movzx eax, word [rdx + rcx*2]
cmp ax, word [r8 + rcx*2]
je 0x1400085e0
sbb eax, eax
or eax, 1
test eax, eax
jne 0x140008538
test rsi, rsi
je 0x140008622
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x48], rbx
mov dword [rsp + 0x50], ebx
mov ebx, 1
jmp 0x14000854f
mov eax, ebx
jmp 0x140008607
mov ecx, 0x80004005
call fcn.1400014c0
int3