joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140014490
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
sub rsp, 0x40
mov rdi, rdx
mov rdx, qword [rcx]
lea rax, [rsp + 0x30]
mov rbp, r9
mov r12, r8
mov rsi, rcx
mov r9d, 1
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140014570
mov rbx, qword [rsp + 0x30]
mov rdx, qword [rdi]
lea r9, [rsp + 0x60]
mov rcx, rbx
xor r8d, r8d
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], r12
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140014562
cmp dword [rsp + 0x60], 3
jne 0x140014562
test rbx, rbx
je 0x14001451e
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdx, qword [rsi]
sub rdx, 0x18
or ebx, 0xffffffff
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
add eax, ebx
test eax, eax
jg 0x14001453e
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rdx, qword [rdi]
sub rdx, 0x18
lock xadd dword [rdx + 0x10], ebx
add ebx, 0xffffffff
test ebx, ebx
jg 0x14001455b
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
mov eax, 1
jmp 0x1400145ae
test rbx, rbx
je 0x140014570
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdx, qword [rsi]
or ebx, 0xffffffff
sub rdx, 0x18
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
add eax, ebx
test eax, eax
jg 0x140014590
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rdx, qword [rdi]
sub rdx, 0x18
lock xadd dword [rdx + 0x10], ebx
add ebx, 0xffffffff
test ebx, ebx
jg 0x1400145ac
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
xor eax, eax
mov rbx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x70]
add rsp, 0x40
pop r12
pop rdi
pop rsi
ret
Function at 0x140014940
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rdi
sub rsp, 0x150
mov rax, qword [0x1400e2bd8]
xor rax, rsp
mov qword [rsp + 0x140], rax
mov rbp, rcx
mov rcx, qword [0x1400ecc68]
lea rdx, [0x1400b7228]
xor ebx, ebx
mov dword [rsp + 0x20], ebx
call fcn.140083bf0
test eax, eax
jne 0x140014adb
lea rcx, [rsp + 0x30]
mov edx, 0x104
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
or r8, 0xffffffffffffffff
xor eax, eax
lea rdi, [rsp + 0x30]
mov rcx, r8
repne scasb al, byte [rdi]
not rcx
sub rcx, 1
test ecx, ecx
mov rdi, rcx
jne 0x140014a2c
mov rax, qword [0x1400ecc68]
cmp dword [rax - 0x10], ebx
mov rdi, qword [rax - 0x18]
lea rdx, [rax - 0x18]
je 0x140014ae2
cmp dword [rdx + 0x10], ebx
jge 0x1400149fb
cmp dword [rax - 0xc], ebx
jge 0x1400149e3
mov ecx, 0x80070057
call fcn.1400120d0
int3
mov dword [rax - 0x10], ebx
mov rax, qword [0x1400ecc68]
mov byte [rax], bl
mov rax, qword [0x1400ecc68]
jmp 0x140014ae2
lock xadd dword [rdx + 0x10], r8d
add r8d, 0xffffffff
test r8d, r8d
jg 0x140014a13
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
add rax, 0x18
mov qword [0x1400ecc68], rax
jmp 0x140014ae2
mov r10, qword [0x1400ecc68]
mov qword [rsp + 0x168], rsi
mov ecx, 1
mov eax, dword [r10 - 0xc]
sub ecx, dword [r10 - 8]
mov ebx, dword [r10 - 0x10]
lea rsi, [rsp + 0x30]
sub eax, edi
sub rsi, r10
or ecx, eax
jge 0x140014a6f
lea rcx, [0x1400ecc68]
mov edx, edi
call fcn.140015a40
mov r10, qword [0x1400ecc68]
cmp rsi, rbx
ja 0x140014a8b
movsxd rbx, edi
lea r8, [r10 + rsi]
mov rcx, r10
mov r9, rbx
mov rdx, rbx
call fcn.140082460
jmp 0x140014aa1
movsxd rbx, edi
lea r8, [rsp + 0x30]
mov rcx, r10
mov r9, rbx
mov rdx, rbx
call fcn.140082b00
test edi, edi
mov rsi, qword [rsp + 0x168]
js 0x140014ad0
mov rax, qword [0x1400ecc68]
cmp edi, dword [rax - 0xc]
jg 0x140014ad0
mov dword [rax - 0x10], edi
mov rax, qword [0x1400ecc68]
mov byte [rbx + rax], 0
mov rax, qword [0x1400ecc68]
jmp 0x140014ae2
mov ecx, 0x80070057
call fcn.1400120d0
int3
mov rax, qword [0x1400ecc68]
mov rcx, qword [rax - 0x18]
lea rdi, [rax - 0x18]
mov rax, qword [rcx]
call qword [rax + 0x20]
cmp dword [rdi + 0x10], 0
mov rcx, rax
jl 0x140014b08
cmp rax, qword [rdi]
jne 0x140014b08
mov rbx, rdi
lock add dword [rdi + 0x10], 1
jmp 0x140014b43
mov rax, qword [rax]
mov edx, dword [rdi + 8]
mov r8d, 1
call qword [rax]
test rax, rax
mov rbx, rax
jne 0x140014b24
call fcn.1400158b0
int3
mov ecx, dword [rdi + 8]
lea r8, [rdi + 0x18]
mov dword [rax + 8], ecx
mov ecx, dword [rdi + 8]
add ecx, 1
movsxd rdx, ecx
lea rcx, [rax + 0x18]
mov r9, rdx
call fcn.140082b00
lea rcx, [rbx + 0x18]
mov rax, rbp
mov qword [rbp], rcx
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.140082440
lea r11, [rsp + 0x150]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x140014b80
Capabilities:
Check os version

Disassembly:
sub rsp, 0x28
mov eax, dword [0x1400ebb04]
test eax, eax
jne 0x140014bab
lea rcx, [0x1400ebb00]
mov dword [0x1400ebb00], 0x114
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
mov eax, dword [0x1400ebb04]
cmp eax, 6
jne 0x140014bc3
cmp dword [0x1400ebb08], 2
jne 0x140014bc3
mov eax, 1
add rsp, 0x28
ret
xor eax, eax
add rsp, 0x28
ret
Function at 0x1400158c0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
sub rsp, 0x40
mov eax, r8d
mov rsi, rdx
mov ebx, r8d
shr eax, 4
mov rbp, rcx
mov r8d, 6
add ax, 1
mov rcx, rsi
movzx edx, ax
call qword [sym.imp.KERNEL32.dll_FindResourceW]
test rax, rax
mov r12, rax
je 0x140015a29
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x140015a29
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
test rax, rax
mov rdi, rax
je 0x140015a29
mov rdx, r12
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov r11d, eax
add r11, rdi
and ebx, 0xf
jbe 0x14001595a
cmp rdi, r11
jae 0x140015a29
add ebx, 0xffffffff
movzx eax, word [rdi]
lea rdi, [rdi + rax*2 + 2]
jne 0x140015944
cmp rdi, r11
jae 0x140015a29
movzx eax, word [rdi]
test ax, ax
je 0x140015a29
mov qword [rsp + 0x60], r13
movzx ebx, ax
call qword [str.__n_]
xor r13d, r13d
lea r12, [rdi + 2]
mov r9d, ebx
mov qword [rsp + 0x38], r13
mov qword [rsp + 0x30], r13
mov ecx, eax
mov r8, r12
xor edx, edx
mov dword [rsp + 0x28], r13d
mov qword [rsp + 0x20], r13
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov rcx, qword [rbp]
mov edx, 1
movsxd rsi, eax
sub edx, dword [rcx - 8]
mov ecx, dword [rcx - 0xc]
sub ecx, esi
or edx, ecx
jge 0x1400159ca
mov edx, esi
mov rcx, rbp
call fcn.140015a40
mov rbx, qword [rbp]
movzx edi, word [rdi]
call qword [str.__n_]
mov qword [rsp + 0x38], r13
mov qword [rsp + 0x30], r13
mov ecx, eax
mov r9d, edi
mov r8, r12
xor edx, edx
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test esi, esi
mov r13, qword [rsp + 0x60]
js 0x140015a1e
mov rcx, qword [rbp]
cmp esi, dword [rcx - 0xc]
jg 0x140015a1e
mov dword [rcx - 0x10], esi
mov rcx, qword [rbp]
mov eax, 1
mov byte [rsi + rcx], 0
jmp 0x140015a2b
mov ecx, 0x80070057
call fcn.1400120d0
int3
xor eax, eax
mov rbx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x70]
add rsp, 0x40
pop r12
pop rdi
pop rsi
ret
Function at 0x14001bbc0
Capabilities:
Get common file path

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x70], rbx
mov r13, rcx
call fcn.1400578b4
mov rcx, rax
xor ebx, ebx
mov edx, ebx
test rax, rax
setne dl
test edx, edx
jne 0x14001bc02
mov ecx, 0x80004005
call fcn.1400120d0
int3
mov rax, qword [rax]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
lea rdi, [rax + 0x18]
mov qword [rsp + 0x78], rdi
mov qword [rsp + 0x80], rbx
lea r9, [rsp + 0x80]
xor r8d, r8d
xor edx, edx
lea rcx, [0x1400b5158]
call sub.SHELL32.dll_SHGetKnownFolderPath
or rsi, 0xffffffffffffffff
test eax, eax
js 0x14001bd8d
mov rdx, qword [rsp + 0x80]
test rdx, rdx
je 0x14001bc5c
xor eax, eax
mov rcx, rsi
mov rdi, rdx
repne scasw ax, word [rdi]
not rcx
lea ebx, [rcx - 1]
mov r8d, ebx
lea rcx, [rsp + 0x78]
call fcn.140011e30
xor eax, eax
mov rcx, rsi
lea r12, str.driversDTSU2PClearAudio.DAT
mov rdi, r12
repne scasw ax, word [rdi]
not rcx
lea r15, [rcx - 1]
mov rbp, r12
mov rdi, qword [rsp + 0x78]
sub rbp, rdi
sar rbp, 1
mov r14d, dword [rdi - 0x10]
lea ebx, [r14 + rcx - 1]
mov edx, 1
sub edx, dword [rdi - 8]
mov eax, dword [rdi - 0xc]
sub eax, ebx
or eax, edx
jge 0x14001bcbb
mov edx, ebx
lea rcx, [rsp + 0x78]
call fcn.140011a20
mov rdi, qword [rsp + 0x78]
cmp rbp, r14
ja 0x14001bcc4
lea r12, [rdi + rbp*2]
movsxd rdx, r15d
add rdx, rdx
lea rcx, [rdi + r14*2]
mov r9, rdx
mov r8, r12
call fcn.140082b00
test ebx, ebx
js 0x14001bd82
cmp ebx, dword [rdi - 0xc]
jg 0x14001bd82
mov dword [rdi - 0x10], ebx
movsxd rax, ebx
mov word [rdi + rax*2], 0
mov rcx, qword [rdi - 0x18]
mov rax, qword [rcx]
call qword [rax + 0x20]
mov rcx, rax
cmp dword [rdi - 8], 0
jl 0x14001bd1f
cmp rax, qword [rdi - 0x18]
jne 0x14001bd1f
lea rbp, [rdi - 0x18]
lock add dword [rdi - 8], 1
mov rdi, qword [rsp + 0x78]
jmp 0x14001bd5d
mov rax, qword [rax]
mov r8d, 2
mov edx, dword [rdi - 0x10]
call qword [rax]
mov rbp, rax
test rax, rax
jne 0x14001bd3b
call fcn.1400158b0
int3
mov eax, dword [rdi - 0x10]
mov dword [rbp + 8], eax
mov eax, dword [rdi - 0x10]
add eax, 1
movsxd rdx, eax
lea r9, [rdx + rdx]
mov r8, rdi
add rdx, rdx
lea rcx, [rbp + 0x18]
call fcn.140082b00
lea rax, [rbp + 0x18]
mov qword [rsp + 0x88], rax
lea r8, [rsp + 0x88]
lea rdx, [0x1400b5da0]
mov rcx, r13
call fcn.1400135a0
jmp 0x14001bd8d
mov ecx, 0x80070057
call fcn.1400120d0
int3
mov rcx, qword [rsp + 0x80]
test rcx, rcx
je 0x14001bda1
call qword [sym.imp.ole32.dll_CoTaskMemFree]
nop
lea rdx, [rdi - 0x18]
lock xadd dword [rdx + 0x10], esi
add esi, 0xffffffff
test esi, esi
jg 0x14001bdba
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rbx, qword [rsp + 0x70]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x14001bdf0
Capabilities:
Get common file path

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x70], rbx
mov r13, rcx
call fcn.1400578b4
mov rcx, rax
xor ebx, ebx
mov edx, ebx
test rax, rax
setne dl
test edx, edx
jne 0x14001be32
mov ecx, 0x80004005
call fcn.1400120d0
int3
mov rax, qword [rax]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
lea rdi, [rax + 0x18]
mov qword [rsp + 0x78], rdi
mov qword [rsp + 0x80], rbx
lea r9, [rsp + 0x80]
xor r8d, r8d
xor edx, edx
lea rcx, [0x1400b5158]
call sub.SHELL32.dll_SHGetKnownFolderPath
or rsi, 0xffffffffffffffff
test eax, eax
js 0x14001bfbd
mov rdx, qword [rsp + 0x80]
test rdx, rdx
je 0x14001be8c
xor eax, eax
mov rcx, rsi
mov rdi, rdx
repne scasw ax, word [rdi]
not rcx
lea ebx, [rcx - 1]
mov r8d, ebx
lea rcx, [rsp + 0x78]
call fcn.140011e30
xor eax, eax
mov rcx, rsi
lea r12, str.driversDTSU2PParamEQ.DAT
mov rdi, r12
repne scasw ax, word [rdi]
not rcx
lea r15, [rcx - 1]
mov rbp, r12
mov rdi, qword [rsp + 0x78]
sub rbp, rdi
sar rbp, 1
mov r14d, dword [rdi - 0x10]
lea ebx, [r14 + rcx - 1]
mov edx, 1
sub edx, dword [rdi - 8]
mov eax, dword [rdi - 0xc]
sub eax, ebx
or eax, edx
jge 0x14001beeb
mov edx, ebx
lea rcx, [rsp + 0x78]
call fcn.140011a20
mov rdi, qword [rsp + 0x78]
cmp rbp, r14
ja 0x14001bef4
lea r12, [rdi + rbp*2]
movsxd rdx, r15d
add rdx, rdx
lea rcx, [rdi + r14*2]
mov r9, rdx
mov r8, r12
call fcn.140082b00
test ebx, ebx
js 0x14001bfb2
cmp ebx, dword [rdi - 0xc]
jg 0x14001bfb2
mov dword [rdi - 0x10], ebx
movsxd rax, ebx
mov word [rdi + rax*2], 0
mov rcx, qword [rdi - 0x18]
mov rax, qword [rcx]
call qword [rax + 0x20]
mov rcx, rax
cmp dword [rdi - 8], 0
jl 0x14001bf4f
cmp rax, qword [rdi - 0x18]
jne 0x14001bf4f
lea rbp, [rdi - 0x18]
lock add dword [rdi - 8], 1
mov rdi, qword [rsp + 0x78]
jmp 0x14001bf8d
mov rax, qword [rax]
mov r8d, 2
mov edx, dword [rdi - 0x10]
call qword [rax]
mov rbp, rax
test rax, rax
jne 0x14001bf6b
call fcn.1400158b0
int3
mov eax, dword [rdi - 0x10]
mov dword [rbp + 8], eax
mov eax, dword [rdi - 0x10]
add eax, 1
movsxd rdx, eax
lea r9, [rdx + rdx]
mov r8, rdi
add rdx, rdx
lea rcx, [rbp + 0x18]
call fcn.140082b00
lea rax, [rbp + 0x18]
mov qword [rsp + 0x88], rax
lea r8, [rsp + 0x88]
lea rdx, [0x1400b5e18]
mov rcx, r13
call fcn.1400135a0
jmp 0x14001bfbd
mov ecx, 0x80070057
call fcn.1400120d0
int3
mov rcx, qword [rsp + 0x80]
test rcx, rcx
je 0x14001bfd1
call qword [sym.imp.ole32.dll_CoTaskMemFree]
nop
lea rdx, [rdi - 0x18]
lock xadd dword [rdx + 0x10], esi
add esi, 0xffffffff
test esi, esi
jg 0x14001bfea
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rbx, qword [rsp + 0x70]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x140022800
Capabilities:
Connect to wmi namespace via wbemlocator

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
push rdi
sub rsp, 0x50
xor edi, edi
mov rbx, rcx
xor r9d, r9d
mov qword [rax - 0x18], rdi
mov dword [rax - 0x20], edi
mov qword [rax - 0x28], rdi
mov dword [rax - 0x30], 3
xor r8d, r8d
or edx, 0xffffffff
xor ecx, ecx
mov qword [rax + 8], rdi
mov dword [rax - 0x38], edi
call qword [sym.imp.ole32.dll_CoInitializeSecurity]
lea r11, [rsp + 0x60]
lea r9, [0x1400ac050]
lea r8d, [rdi + 1]
lea rcx, [0x1400ac120]
xor edx, edx
mov qword [rsp + 0x20], r11
call qword [sym.imp.ole32.dll_CoCreateInstance]
mov rcx, qword [rsp + 0x60]
mov rax, qword [rcx]
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x30], rdi
lea rdx, str.rootHPInstrumentedBIOS
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], rdi
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
mov rcx, qword [rbx]
mov dword [rsp + 0x38], edi
mov qword [rsp + 0x30], rdi
lea edx, [rdi + 0xa]
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x28], 3
mov dword [rsp + 0x20], 3
call qword [sym.imp.ole32.dll_CoSetProxyBlanket]
test eax, eax
jns 0x1400228d6
mov rcx, qword [rsp + 0x60]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
xor eax, eax
mov rbx, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret
mov rcx, qword [rbx]
lea rax, [rbx + 8]
lea rdx, str.HPBIOS_BIOSSettingInterface
mov r10, qword [rcx]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rax
call qword [r10 + 0x30]
test eax, eax
mov rcx, qword [rsp + 0x60]
js 0x1400228c3
mov rdx, qword [rcx]
call qword [rdx + reloc.OLEAUT32.dll_SafeArrayGetDim]
mov rbx, qword [rsp + 0x68]
mov eax, 1
add rsp, 0x50
pop rdi
ret
Function at 0x1400249c0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
sub rsp, 0x30
mov rbp, rdx
movzx edx, r8w
mov rsi, rcx
lea r8, [0x1400ba8d0]
xor ebx, ebx
mov rcx, rbp
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_FindResourceW]
test rax, rax
mov r12, rax
je 0x140024acf
mov rdx, rax
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SizeofResource]
test eax, eax
mov edi, eax
je 0x140024acf
mov rdx, r12
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
test rax, rax
mov rbp, rax
je 0x140024acf
lea ecx, [rbx + 2]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
test rax, rax
mov rbx, rax
je 0x140024acf
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
test rax, rax
je 0x140024ab0
mov r8, rdi
mov rdx, rbp
mov rcx, rax
call fcn.140086c00
lea r8, [rsp + 0x20]
xor edx, edx
mov rcx, rbx
mov qword [rsp + 0x20], 0
call qword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
js 0x140024acf
mov rdx, qword [rsp + 0x20]
mov rcx, rsi
call fcn.1400241e0
test eax, eax
js 0x140024acf
mov rcx, qword [rsp + 0x20]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GlobalFree]
cmp dword [rsp + 0x60], 0
je 0x140024ac8
mov rcx, rsi
call fcn.140024b20
mov eax, 1
jmp 0x140024b01
mov rcx, qword [rsp + 0x20]
test rcx, rcx
je 0x140024ae8
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
mov qword [rsp + 0x20], 0
test rbx, rbx
je 0x140024aff
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GlobalFree]
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r12
ret
Function at 0x140025870
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
sub rsp, 0x20
mov eax, r8d
mov rbp, rdx
mov ebx, r8d
shr eax, 4
mov rsi, rcx
mov edx, 6
add ax, 1
mov rcx, rbp
movzx r8d, ax
call qword [sym.imp.KERNEL32.dll_FindResourceExW]
test rax, rax
mov r12, rax
je 0x1400259d2
mov rdx, rax
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x1400259d2
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
test rax, rax
mov rdi, rax
je 0x1400259d2
mov rdx, r12
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov r11d, eax
add r11, rdi
and ebx, 0xf
jbe 0x140025916
nop
cmp rdi, r11
jae 0x1400259d2
add ebx, 0xffffffff
movzx eax, word [rdi]
lea rdi, [rdi + rax*2 + 2]
jne 0x140025900
cmp rdi, r11
jae 0x1400259d2
movzx eax, word [rdi]
test ax, ax
je 0x1400259d2
movzx ebx, ax
mov rax, qword [rsi]
mov ecx, 1
sub ecx, dword [rax - 8]
mov eax, dword [rax - 0xc]
sub eax, ebx
or ecx, eax
jge 0x14002594c
mov edx, ebx
mov rcx, rsi
call fcn.140011a20
movzx ecx, word [rdi]
lea r8, [rdi + 2]
cmp ecx, 0xffffffff
jne 0x140025969
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, r8
repne scasw ax, word [rdi]
not rcx
and ecx, ecx
movsxd r9, ecx
mov rcx, qword [rsi]
lea rdi, [rbx + rbx]
mov rdx, rdi
add r9, r9
call fcn.140082b00
test eax, eax
je 0x1400259a8
cmp eax, 0xc
je 0x1400259a2
cmp eax, 0x16
je 0x14002599c
cmp eax, 0x22
je 0x14002599c
cmp eax, 0x50
je 0x1400259a8
call fcn.140057a98
int3
call fcn.140057a98
int3
call fcn.140057a50
int3
test ebx, ebx
js 0x1400259c7
mov rcx, qword [rsi]
cmp ebx, dword [rcx - 0xc]
jg 0x1400259c7
mov dword [rcx - 0x10], ebx
mov rcx, qword [rsi]
mov eax, 1
mov word [rdi + rcx], 0
jmp 0x1400259d4
mov ecx, 0x80070057
call fcn.1400120d0
int3
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 r12
ret
Function at 0x140028a10
Capabilities:
Get common file path

Disassembly:
mov rax, rsp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x260
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov rax, qword [0x1400e2bd8]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov rsi, rcx
mov qword [rsp + 0x30], rcx
xor edi, edi
mov dword [rsp + 0x20], edi
call fcn.1400578b4
mov rcx, rax
test rax, rax
setne dil
test edi, edi
jne 0x140028a71
mov ecx, 0x80004005
call fcn.1400120d0
int3
mov rax, qword [rax]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
add rax, 0x18
mov qword [rsi], rax
lea rdx, [0x1400b70b8]
test rdx, 0xffffffffffff0000
jne 0x140028aad
movzx edi, dx
mov ecx, edi
call fcn.1400578a0
test rax, rax
je 0x140028ac9
mov r8d, edi
mov rdx, rax
mov rcx, rsi
call fcn.140011800
jmp 0x140028ac9
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rdx
repne scasw ax, word [rdi]
not rcx
lea r8d, [rcx - 1]
mov rcx, rsi
call fcn.140011e30
nop
mov ebx, 1
mov dword [rsp + 0x20], ebx
mov edx, 0x104
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0x40]
repne scasw ax, word [rdi]
not rcx
lea r8d, [rcx - 1]
lea rdx, [rsp + 0x40]
mov rcx, rsi
call fcn.140011e30
xor eax, eax
or rcx, 0xffffffffffffffff
lea r12, str.Drivers_rtwavesskdy.dat
mov rdi, r12
repne scasw ax, word [rdi]
not rcx
lea r14, [rcx - 1]
mov rax, qword [rsi]
mov rbp, r12
sub rbp, rax
sar rbp, 1
mov r13d, dword [rax - 0x10]
lea edi, [r13 + rcx - 1]
sub ebx, dword [rax - 8]
mov eax, dword [rax - 0xc]
sub eax, edi
or eax, ebx
jge 0x140028b49
mov edx, edi
mov rcx, rsi
call fcn.140011a20
mov rax, qword [rsi]
cmp rbp, r13
ja 0x140028b55
lea r12, [rax + rbp*2]
movsxd rdx, r14d
add rdx, rdx
lea rcx, [rax + r13*2]
mov r9, rdx
mov r8, r12
call fcn.140082b00
test edi, edi
js 0x140028b8a
mov rax, qword [rsi]
cmp edi, dword [rax - 0xc]
jg 0x140028b8a
mov dword [rax - 0x10], edi
movsxd rdx, edi
mov rcx, qword [rsi]
mov word [rcx + rdx*2], 0
mov rax, rsi
jmp 0x140028b95
mov ecx, 0x80070057
call fcn.1400120d0
nop
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.140082440
lea r11, [rsp + 0x260]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsp, r11
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret
Function at 0x140028c20
Capabilities:
Get common file path

Disassembly:
mov rax, rsp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x260
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov rax, qword [0x1400e2bd8]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov rsi, rcx
mov qword [rsp + 0x30], rcx
xor edi, edi
mov dword [rsp + 0x20], edi
call fcn.1400578b4
mov rcx, rax
test rax, rax
setne dil
test edi, edi
jne 0x140028c81
mov ecx, 0x80004005
call fcn.1400120d0
int3
mov rax, qword [rax]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
add rax, 0x18
mov qword [rsi], rax
lea rdx, [0x1400b70b8]
test rdx, 0xffffffffffff0000
jne 0x140028cbd
movzx edi, dx
mov ecx, edi
call fcn.1400578a0
test rax, rax
je 0x140028cd9
mov r8d, edi
mov rdx, rax
mov rcx, rsi
call fcn.140011800
jmp 0x140028cd9
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rdx
repne scasw ax, word [rdi]
not rcx
lea r8d, [rcx - 1]
mov rcx, rsi
call fcn.140011e30
nop
mov ebx, 1
mov dword [rsp + 0x20], ebx
mov edx, 0x104
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0x40]
repne scasw ax, word [rdi]
not rcx
lea r8d, [rcx - 1]
lea rdx, [rsp + 0x40]
mov rcx, rsi
call fcn.140011e30
xor eax, eax
or rcx, 0xffffffffffffffff
lea r12, str.Drivers_rtwavesMFX.dat
mov rdi, r12
repne scasw ax, word [rdi]
not rcx
lea r14, [rcx - 1]
mov rax, qword [rsi]
mov rbp, r12
sub rbp, rax
sar rbp, 1
mov r13d, dword [rax - 0x10]
lea edi, [r13 + rcx - 1]
sub ebx, dword [rax - 8]
mov eax, dword [rax - 0xc]
sub eax, edi
or eax, ebx
jge 0x140028d59
mov edx, edi
mov rcx, rsi
call fcn.140011a20
mov rax, qword [rsi]
cmp rbp, r13
ja 0x140028d65
lea r12, [rax + rbp*2]
movsxd rdx, r14d
add rdx, rdx
lea rcx, [rax + r13*2]
mov r9, rdx
mov r8, r12
call fcn.140082b00
test edi, edi
js 0x140028d9a
mov rax, qword [rsi]
cmp edi, dword [rax - 0xc]
jg 0x140028d9a
mov dword [rax - 0x10], edi
movsxd rdx, edi
mov rcx, qword [rsi]
mov word [rcx + rdx*2], 0
mov rax, rsi
jmp 0x140028da5
mov ecx, 0x80070057
call fcn.1400120d0
nop
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.140082440
lea r11, [rsp + 0x260]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsp, r11
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret