joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400efe40
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, 0x90
mov rbp, rdx
xor edx, edx
mov rbx, r8
mov rsi, rcx
lea rcx, [rsp + 0x20]
lea r8d, [rdx + 0x64]
call fcn.140148fe0
lea r8, str.WAVE
mov rdx, rbx
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_FindResourceW]
test rbx, rbx
mov rdi, rax
je 0x1400f002d
test rax, rax
je 0x1400f002d
mov rdx, rax
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rdx, rdi
mov rcx, rbp
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov rcx, rbx
mov edi, eax
call qword [sym.imp.KERNEL32.dll_LockResource]
lea rdx, [rsp + 0x20]
xor r8d, r8d
xor ecx, ecx
mov dword [rsp + 0x24], 0x204d454d
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x3c], edi
call qword [sym.imp.WINMM.dll_mmioOpenW]
lea rdx, [rsi + 0x260]
mov r9d, 0x20
xor r8d, r8d
mov rcx, rax
mov rbx, rax
mov dword [rsi + 0x268], 0x45564157
call qword [sym.imp.WINMM.dll_mmioDescend]
mov rcx, rbx
test eax, eax
jne 0x1400f0025
lea r9d, [rax + 0x10]
lea r8, [rsi + 0x260]
lea rdx, [rsi + 0x24c]
mov dword [rsi + 0x24c], 0x20746d66
call qword [sym.imp.WINMM.dll_mmioDescend]
mov rcx, rbx
test eax, eax
jne 0x1400f0025
lea rdx, [rsi + 0x24c]
xor r8d, r8d
call qword [sym.imp.WINMM.dll_mmioAscend]
lea r8, [rsi + 0x260]
lea rdx, [rsi + 0x238]
mov r9d, 0x10
mov rcx, rbx
mov dword [rsi + 0x238], 0x61746164
call qword [sym.imp.WINMM.dll_mmioDescend]
mov rcx, rbx
test eax, eax
jne 0x1400f0025
lea rdx, [rsi + 0x238]
xor r8d, r8d
call qword [sym.imp.WINMM.dll_mmioAscend]
mov edx, dword [rsi + 0x258]
xor r8d, r8d
mov rcx, rbx
call qword [sym.imp.WINMM.dll_mmioSeek]
mov r8d, dword [rsi + 0x250]
lea rdx, [rsi + 0x210]
mov rcx, rbx
call qword [sym.imp.WINMM.dll_mmioRead]
cmp dword [rsi + 0x250], eax
jne 0x1400f0022
cmp word [rsi + 0x212], 1
jne 0x1400f0022
cmp word [rsi + 0x21e], 0x10
jne 0x1400f0022
mov eax, dword [rsi + 0x23c]
mov rdx, qword [rsp + 0xc0]
mov rcx, rsi
mov dword [rsi + 0xd4], eax
call fcn.1400f0050
test eax, eax
jne 0x1400f0009
xor edx, edx
mov rcx, rbx
call qword [sym.imp.WINMM.dll_mmioClose]
mov rcx, rsi
call fcn.1400f0570
jmp 0x1400f002d
mov dword [rsi + 0xd0], 1
mov dword [rsi + 0xdc], 0
mov rax, rbx
jmp 0x1400f002f
mov rcx, rbx
xor edx, edx
call qword [sym.imp.WINMM.dll_mmioClose]
xor eax, eax
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x1400f0050
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov rdi, rdx
mov rsi, rcx
lea rdx, [rcx + 0x10]
lea rcx, [0x1400f0420]
call sub.DSOUND.dll_DirectSoundEnumerateW
mov r11, qword [rsi + 0x10]
test r11, r11
je 0x1400f00af
nop
mov rdx, qword [r11]
cmp rdx, qword [rsi + 0x288]
jne 0x1400f009d
mov rdx, qword [r11 + 8]
cmp rdx, qword [rsi + 0x290]
jne 0x1400f009d
xor eax, eax
jmp 0x1400f00a2
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x1400f00c1
mov r11, qword [r11 + 0x18]
test r11, r11
jne 0x1400f0080
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
mov rdx, rdi
mov rcx, rsi
mov qword [rsi + 0x18], r11
call fcn.1400f0170
test eax, eax
je 0x1400f00af
xor ebx, ebx
lea rdi, [rsi + 0x68]
nop
nop
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
test rax, rax
mov qword [rdi], rax
je 0x1400f00af
add rbx, 1
add rdi, 8
cmp rbx, 4
jl 0x1400f00e0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
test rax, rax
mov qword [rsi + 0x60], rax
je 0x1400f00af
lea rax, [rsi + 0x90]
lea r8, [0x1400f0330]
mov r9, rsi
mov qword [rsp + 0x28], rax
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_CreateThread]
test rax, rax
mov qword [rsi + 0x88], rax
je 0x1400f00af
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov eax, 1
add rsp, 0x30
pop rdi
ret
Function at 0x1400f2400
Capabilities:
Check if file exists
Create directory
Extract resource via kernel32 functions
Get common file path
Get file attributes
Write file on windows

Disassembly:
push rdi
mov eax, 0x100a0
call fcn.140167340
sub rsp, rax
mov qword [rsp + 0x80], 0xfffffffffffffffe
mov qword [rsp + 0x100b8], rbx
mov qword [rsp + 0x100c0], rbp
mov qword [rsp + 0x100c8], rsi
mov rax, qword [0x1401ea158]
xor rax, rsp
mov qword [rsp + 0x10090], rax
lea rbx, [rcx + 0x188]
mov rax, qword [rbx]
cmp dword [rax - 0x10], 0
jne 0x1400f24c9
lea rdx, [rsp + 0x90]
mov ecx, 0x7fff
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0x90]
repne scasw ax, word [rdi]
not rcx
cmp word [rsp + rcx*2 + 0x8c], 0x5c
jne 0x1400f248f
mov word [rsp + rcx*2 + 0x8c], ax
lea rcx, [rsp + 0x90]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x1400f24b2
xor edx, edx
lea rcx, [rsp + 0x90]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea r8, [rsp + 0x90]
lea rdx, str._sDemoMusic.mp3
mov rcx, rbx
call fcn.140004aa0
lea rcx, [rsp + 0x50]
call fcn.14013f948
nop
xor r8d, r8d
mov rdx, qword [rbx]
lea rcx, [rsp + 0x50]
call fcn.14013fa68
test eax, eax
jne 0x1400f25fa
xor ebp, ebp
mov qword [rsp + 0x40], rbp
mov rcx, qword [0x140206cc0]
mov rax, qword [rcx]
mov qword [rsp + 0x20], rbp
xor r9d, r9d
lea r8, [rsp + 0x40]
mov edx, 0x10000077
call qword [rax + 0x10]
lea r8, str.WAVE
lea edx, [rbp + 0x65]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rsi, rax
test rax, rax
jne 0x1400f2540
lea rcx, [rsp + 0x50]
call fcn.14013f9a0
xor eax, eax
jmp 0x1400f2609
mov rdx, rax
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
test eax, eax
jne 0x1400f2565
lea rcx, [rsp + 0x50]
call fcn.14013f9a0
xor eax, eax
jmp 0x1400f2609
mov rdx, rsi
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rsi, rax
test rax, rax
jne 0x1400f2592
lea rcx, [rsp + 0x50]
call fcn.14013f9a0
xor eax, eax
jmp 0x1400f2609
mov qword [rsp + 0x30], rbp
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 2
xor r9d, r9d
mov edx, 0x40000000
lea r8d, [r9 + 2]
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x1400f25d3
lea rcx, [rsp + 0x50]
call fcn.14013f9a0
xor eax, eax
jmp 0x1400f2609
mov dword [rsp + 0x48], ebp
mov qword [rsp + 0x20], rbp
lea r9, [rsp + 0x48]
mov r8d, edi
mov rdx, rsi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
lea rcx, [rsp + 0x50]
call fcn.14013f9a0
mov eax, 1
mov rcx, qword [rsp + 0x10090]
xor rcx, rsp
call fcn.140144dc0
lea r11, [rsp + 0x100a0]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x1400f2ec0
Capabilities:
Terminate thread

Disassembly:
push rbx
sub rsp, 0x20
cmp qword [rcx + 0x58], 0
lea rax, [0x1401980a0]
mov rbx, rcx
mov qword [rcx], rax
je 0x1400f2f19
mov rcx, qword [rcx + 0x60]
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov rcx, qword [rbx + 0x58]
mov edx, 0x1388
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x1400f2f07
mov rcx, qword [rbx + 0x58]
or edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_TerminateThread]
mov rcx, qword [rbx + 0x60]
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov qword [rbx + 0x58], 0
mov rcx, qword [rbx + 0x68]
test rcx, rcx
je 0x1400f2f30
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 0x68], 0
mov rcx, qword [rbx + 0x60]
mov dword [rbx + 8], 0
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdx, qword [rbx + 0x10]
sub rdx, 0x18
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x1400f2f61
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
add rsp, 0x20
pop rbx
ret
Function at 0x1400fb6e0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
sub rsp, 0x20
mov r12d, ecx
lea rcx, [0x140206820]
xor r13d, r13d
xor edx, edx
mov rbx, r13
call fcn.140163a3c
lea ebp, [r13 + 1]
test rax, rax
mov rsi, rax
je 0x1400fb7e6
nop
test rbx, rbx
jne 0x1400fb7e6
mov eax, r12d
lea edx, [rbx + 6]
xor r9d, r9d
shr eax, 4
mov rcx, rsi
add ax, 1
movzx r8d, ax
call qword [sym.imp.KERNEL32.dll_FindResourceExW]
test rax, rax
mov rdi, rax
jne 0x1400fb753
mov rbx, r13
jmp 0x1400fb7c9
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
jne 0x1400fb769
mov rbx, r13
jmp 0x1400fb7c4
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
test rax, rax
mov rbx, rax
jne 0x1400fb77f
mov rbx, r13
jmp 0x1400fb7c4
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, r12d
mov r11d, eax
add r11, rbx
and ecx, 0xf
jbe 0x1400fb7b2
nop
nop
cmp rbx, r11
jae 0x1400fb7b7
add ecx, 0xffffffff
movzx eax, word [rbx]
lea rbx, [rbx + rax*2 + 2]
jne 0x1400fb7a0
cmp rbx, r11
jb 0x1400fb7bc
mov rbx, r13
jmp 0x1400fb7c4
cmp word [rbx], r13w
cmove rbx, r13
test rbx, rbx
jne 0x1400fb801
lea rcx, [0x140206820]
mov edx, ebp
call fcn.140163a3c
add ebp, 1
test rax, rax
mov rsi, rax
jne 0x1400fb720
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r13
pop r12
pop rdi
ret
mov rax, rsi
jmp 0x1400fb7e8
Function at 0x140102990
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 0x10], rdx
push rbx
sub rsp, 0x50
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov ebx, r9d
mov qword [rsp + 0x40], 0
mov rdx, r8
lea rcx, [rsp + 0x38]
call fcn.1400db3f0
mov qword [rsp + 0x30], 0
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov r9d, 2
xor r8d, r8d
lea rdx, str.SOFTWARESRS_LabsAPO
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140102a9b
mov rcx, qword [rsp + 0x30]
mov qword [rsp + 0x40], rcx
mov dword [rsp + 0x68], ebx
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x68]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
mov rdx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x140102a62
mov rdx, qword [rsp + 0x38]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x140102a4e
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x140102a5e
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x140102abf
mov rdx, qword [rsp + 0x38]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x140102a84
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x140102a94
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
jmp 0x140102abf
mov rdx, qword [rsp + 0x38]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x140102abd
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
xor eax, eax
add rsp, 0x50
pop rbx
ret
Function at 0x14010ff90
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
sub rsp, 0x90
mov rbx, rdx
xor edx, edx
mov rsi, rcx
lea r8d, [rdx + 0x64]
lea rcx, [rsp + 0x20]
call fcn.140148fe0
call fcn.14013c798
lea r8, str.WAVE
mov rcx, qword [rax + 0x10]
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_FindResourceW]
test rbx, rbx
mov rbp, rax
je 0x140110159
test rax, rax
je 0x140110159
mov qword [rsp + 0xa0], rdi
call fcn.14013c798
mov rdx, rbp
mov rcx, qword [rax + 0x10]
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rdi, rax
call fcn.14013c798
mov rdx, rbp
mov rcx, qword [rax + 0x10]
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov rcx, rdi
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_LockResource]
lea rdx, [rsp + 0x20]
xor r8d, r8d
xor ecx, ecx
mov dword [rsp + 0x24], 0x204d454d
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x3c], ebx
call qword [sym.imp.WINMM.dll_mmioOpenW]
lea rdx, [rsi + 0x94]
mov r9d, 0x20
xor r8d, r8d
mov rcx, rax
mov rbx, rax
mov dword [rsi + 0x9c], 0x45564157
call qword [sym.imp.WINMM.dll_mmioDescend]
test eax, eax
jne 0x14011014a
lea r9d, [rax + 0x10]
lea r8, [rsi + 0x94]
lea rdx, [rsi + 0x80]
mov rcx, rbx
mov dword [rsi + 0x80], 0x20746d66
call qword [sym.imp.WINMM.dll_mmioDescend]
test eax, eax
jne 0x14011014a
lea rdx, [rsi + 0x80]
xor r8d, r8d
mov rcx, rbx
call qword [sym.imp.WINMM.dll_mmioAscend]
lea r8, [rsi + 0x94]
lea rdx, [rsi + 0x6c]
mov r9d, 0x10
mov rcx, rbx
mov dword [rsi + 0x6c], 0x61746164
call qword [sym.imp.WINMM.dll_mmioDescend]
test eax, eax
jne 0x14011014a
lea rdx, [rsi + 0x6c]
xor r8d, r8d
mov rcx, rbx
call qword [sym.imp.WINMM.dll_mmioAscend]
mov edx, dword [rsi + 0x8c]
xor r8d, r8d
mov rcx, rbx
call qword [sym.imp.WINMM.dll_mmioSeek]
mov r8d, dword [rsi + 0x84]
lea rdx, [rsi + 0x44]
mov rcx, rbx
call qword [sym.imp.WINMM.dll_mmioRead]
cmp dword [rsi + 0x84], eax
jne 0x14011014a
cmp word [rsi + 0x46], 1
jne 0x14011014a
cmp word [rsi + 0x52], 0x10
jne 0x14011014a
mov dword [rsi + 0xe8], 0
mov rax, rbx
mov rdi, qword [rsp + 0xa0]
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsp, r11
pop rsi
ret
xor edx, edx
mov rcx, rbx
call qword [sym.imp.WINMM.dll_mmioClose]
xor eax, eax
jmp 0x14011012d
xor eax, eax
jmp 0x140110135
Function at 0x140119bd0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rdi
sub rsp, 0x20
cmp qword [rcx + 8], 0
mov rdi, rcx
je 0x140119bf3
mov rcx, qword [rcx + 8]
mov rax, qword [rcx]
add rsp, 0x20
pop rdi
jmp qword [rax + 0x88]
cmp dword [0x140206cd4], 0
jne 0x140119cc2
lea r8, str.Finished
lea rdx, str.DefLevel
lea rcx, [0x140206e90]
xor r9d, r9d
call fcn.1401386a8
test eax, eax
mov dword [0x140206cd4], eax
jne 0x140119cc2
call fcn.14007a0b0
mov rcx, qword [0x140207df8]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x140119c72
lea r8, str.Finished
lea rdx, str.DefLevel
lea rcx, [0x140206e90]
mov r9d, 1
call fcn.140138748
mov dword [0x140206cd4], 1
add rsp, 0x20
pop rdi
ret
mov ecx, 0x20
mov qword [rsp + 0x30], rbx
call fcn.1401287b0
test rax, rax
mov rbx, rax
je 0x140119cbd
lea rax, method..44.virtual_0
mov rcx, rbx
mov qword [rbx], rax
xor eax, eax
mov qword [rbx + 8], rax
mov dword [rbx + 0x10], eax
mov dword [rbx + 0x14], eax
mov dword [rbx + 0x18], eax
mov rdx, qword [rdi + 0x10]
call fcn.140079ef0
mov r11, qword [rbx]
mov edx, 1
mov rcx, rbx
call qword [r11 + reloc.OLEAUT32.dll_VariantClear]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x140123da0
Capabilities:
Check os version
Set registry value

Disassembly:
push rbx
sub rsp, 0x1e0
mov rax, qword [0x1401ea158]
xor rax, rsp
mov qword [rsp + 0x1d0], rax
mov ebx, ecx
lea rcx, [rsp + 0xb0]
mov dword [rsp + 0xb0], 0x114
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [rsp + 0xb4], 6
jae 0x140123dec
mov ecx, ebx
call fcn.140123fe0
jmp 0x140123fba
mov rax, qword [0x140208420]
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x1f0], rsi
mov qword [rcx], rax
mov rax, qword [0x140208428]
mov qword [rsp + 0x1f8], rdi
mov qword [rcx + 8], rax
mov rax, qword [0x140208430]
xor edi, edi
test ebx, ebx
mov qword [rcx + 0x10], rax
mov rax, qword [0x140208438]
mov qword [rcx + 0x18], rax
mov rax, qword [0x140208440]
lea esi, [rdi + 1]
mov qword [rcx + 0x20], rax
mov rax, qword [0x140208448]
mov qword [rcx + 0x28], rax
mov rax, qword [0x140208450]
mov qword [rcx + 0x30], rax
mov rax, qword [0x140208458]
mov qword [rcx + 0x38], rax
mov eax, dword [0x140208460]
mov dword [rcx + 0x40], eax
mov dword [rsp + 0x64], edi
mov dword [rsp + 0x68], edi
mov dword [rsp + 0x6c], edi
mov dword [rsp + 0x70], edi
je 0x140123eda
sub ebx, esi
je 0x140123eb8
sub ebx, esi
je 0x140123e9f
cmp ebx, esi
je 0x140123e90
mov edi, 0x80000000
jmp 0x140123fa8
test byte [0x140208438], 8
je 0x140123e86
mov dword [rsp + 0x70], esi
jmp 0x140123eda
mov eax, dword [0x140208438]
test al, 4
je 0x140123e86
test sil, al
mov dword [rsp + 0x6c], esi
je 0x140123eda
mov dword [rsp + 0x64], esi
jmp 0x140123eda
mov eax, dword [0x140208438]
test al, 2
je 0x140123ed1
test sil, al
mov dword [rsp + 0x68], esi
je 0x140123eda
mov dword [rsp + 0x64], esi
jmp 0x140123eda
test sil, al
je 0x140123e86
mov dword [rsp + 0x64], esi
cmp dword [0x14020847c], edi
mov dword [rsp + 0x60], 0xaeaeaeae
jne 0x140123f00
lea rdx, [rsp + 0x60]
lea rcx, [0x140208420]
call fcn.140126580
jmp 0x140123fa8
mov qword [rsp + 0x40], rdi
lea rax, [rsp + 0x50]
lea rdx, str.SoftwareRealtekAEAPO
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rdi
xor r9d, r9d
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov dword [rsp + 0x28], 0x102
mov dword [rsp + 0x20], edi
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x140123f8a
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x60]
lea rdx, str.CapProperties
mov r9d, 3
xor r8d, r8d
mov dword [rsp + 0x28], 0x44
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x50]
test eax, eax
mov ebx, edi
cmove ebx, esi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
je 0x140123f8a
lea rdx, str.WriteRegistry_successful
jmp 0x140123f91
lea rdx, str.WriteRegistry_failed
or r9d, 0xffffffff
lea rcx, [0x140208420]
mov dword [rsp + 0x20], edi
or r8d, r9d
call fcn.140126a00
mov rsi, qword [rsp + 0x1f0]
mov eax, edi
mov rdi, qword [rsp + 0x1f8]
mov rcx, qword [rsp + 0x1d0]
xor rcx, rsp
call fcn.140144dc0
add rsp, 0x1e0
pop rbx
ret
Function at 0x140124210
Capabilities:
Check os version

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x1b0
mov rax, qword [0x1401ea158]
xor rax, rsp
mov qword [rsp + 0x1a0], rax
lea rcx, [rsp + 0x80]
xor ebx, ebx
mov dword [rsp + 0x80], 0x114
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [rsp + 0x84], 6
jb 0x1401242e0
cmp dword [0x140208470], ebx
lea edi, [rbx + 1]
jne 0x1401242ba
mov r8d, edi
xor edx, edx
xor ecx, ecx
mov dword [0x140208474], ebx
mov dword [0x140208470], edi
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
test rax, rax
mov rsi, rax
je 0x1401242ba
lea r8d, [rbx + 4]
lea rdx, str.AERTFilters
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
test rax, rax
je 0x1401242b1
mov rcx, rax
mov dword [0x140208474], edi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
cmp dword [0x140208474], ebx
je 0x1401243d7
mov eax, dword [0x140208438]
test dil, al
jne 0x1401242d9
test al, 2
je 0x1401243d7
mov eax, edi
jmp 0x1401243d9
xor r9d, r9d
mov qword [rsp + 0x30], rbx
lea rcx, str..AndreaFilterRealtek
lea r8d, [r9 + 3]
mov edx, 0xc0000000
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
cmp rax, 0xffffffffffffffff
mov rsi, rax
je 0x1401243d7
mov qword [rsp + 0x38], rbx
lea rax, [rsp + 0x40]
lea r8, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x48]
mov r9d, 0x34
mov edx, 0x222004
mov rcx, rsi
mov dword [rsp + 0x28], 0x34
mov dword [rsp + 0x48], ebx
mov dword [rsp + 0x40], 0x34
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x140124374
cmp dword [rsp + 0x40], ebx
je 0x140124374
cmp dword [rsp + 0x50], ebx
je 0x140124374
mov ebx, 1
jmp 0x1401243ce
mov qword [rsp + 0x38], rbx
lea rax, [rsp + 0x40]
mov edi, 1
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x48]
lea r8, [rsp + 0x48]
lea r9d, [rdi + 0x33]
mov edx, 0x222004
mov rcx, rsi
mov dword [rsp + 0x28], 0x34
mov dword [rsp + 0x48], edi
mov dword [rsp + 0x40], 0x34
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x1401243ce
cmp dword [rsp + 0x40], ebx
je 0x1401243ce
cmp dword [rsp + 0x50], ebx
cmovne ebx, edi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
mov rcx, qword [rsp + 0x1a0]
xor rcx, rsp
call fcn.140144dc0
lea r11, [rsp + 0x1b0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
Function at 0x140124400
Capabilities:
Check os version

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x1b0
mov rax, qword [0x1401ea158]
xor rax, rsp
mov qword [rsp + 0x1a0], rax
lea rcx, [rsp + 0x80]
xor ebx, ebx
mov dword [rsp + 0x80], 0x114
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [rsp + 0x84], 6
jb 0x1401244c5
cmp dword [0x140208470], ebx
jne 0x1401244a8
mov edi, 1
xor edx, edx
xor ecx, ecx
mov r8d, edi
mov dword [0x140208474], ebx
mov dword [0x140208470], edi
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
test rax, rax
mov rsi, rax
je 0x1401244a8
lea r8d, [rbx + 4]
lea rdx, str.AERTFilters
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
test rax, rax
je 0x14012449f
mov rcx, rax
mov dword [0x140208474], edi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
cmp dword [0x140208474], ebx
je 0x140124561
mov eax, dword [0x140208438]
shr eax, 2
and eax, 1
jmp 0x140124563
xor r9d, r9d
mov qword [rsp + 0x30], rbx
lea rcx, str..AndreaFilterRealtek
lea r8d, [r9 + 3]
mov edx, 0xc0000000
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
cmp rax, 0xffffffffffffffff
mov rsi, rax
je 0x140124561
mov qword [rsp + 0x38], rbx
lea rax, [rsp + 0x40]
lea r8, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x48]
mov r9d, 0x34
mov edx, 0x222004
mov rcx, rsi
mov dword [rsp + 0x28], 0x34
mov dword [rsp + 0x48], 3
mov dword [rsp + 0x40], 0x34
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x140124558
cmp dword [rsp + 0x40], ebx
je 0x140124558
cmp dword [rsp + 0x50], ebx
mov edi, 1
cmovne ebx, edi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
mov rcx, qword [rsp + 0x1a0]
xor rcx, rsp
call fcn.140144dc0
lea r11, [rsp + 0x1b0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
Function at 0x140124590
Capabilities:
Check os version

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x1b0
mov rax, qword [0x1401ea158]
xor rax, rsp
mov qword [rsp + 0x1a0], rax
lea rcx, [rsp + 0x80]
xor ebx, ebx
mov dword [rsp + 0x80], 0x114
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [rsp + 0x84], 6
jb 0x140124655
cmp dword [0x140208470], ebx
jne 0x140124638
mov edi, 1
xor edx, edx
xor ecx, ecx
mov r8d, edi
mov dword [0x140208474], ebx
mov dword [0x140208470], edi
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
test rax, rax
mov rsi, rax
je 0x140124638
lea r8d, [rbx + 4]
lea rdx, str.AERTFilters
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
test rax, rax
je 0x14012462f
mov rcx, rax
mov dword [0x140208474], edi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
cmp dword [0x140208474], ebx
je 0x1401246f1
mov eax, dword [0x140208438]
shr eax, 3
and eax, 1
jmp 0x1401246f3
xor r9d, r9d
mov qword [rsp + 0x30], rbx
lea rcx, str..AndreaFilterRealtek
lea r8d, [r9 + 3]
mov edx, 0xc0000000
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
cmp rax, 0xffffffffffffffff
mov rsi, rax
je 0x1401246f1
mov qword [rsp + 0x38], rbx
lea rax, [rsp + 0x40]
lea r8, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x48]
mov r9d, 0x34
mov edx, 0x222004
mov rcx, rsi
mov dword [rsp + 0x28], 0x34
mov dword [rsp + 0x48], 2
mov dword [rsp + 0x40], 0x34
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x1401246e8
cmp dword [rsp + 0x40], ebx
je 0x1401246e8
cmp dword [rsp + 0x50], ebx
mov edi, 1
cmovne ebx, edi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
mov rcx, qword [rsp + 0x1a0]
xor rcx, rsp
call fcn.140144dc0
lea r11, [rsp + 0x1b0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret