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

Disassembly:
push rbp
push rbx
push rsi
push rdi
mov rbp, rsp
sub rsp, 0x68
mov qword [rbp - 0x28], 0xfffffffffffffffe
test byte [rcx + 0xd54], 0x80
jne 0x14003e4e8
xor eax, eax
add rsp, 0x68
pop rdi
pop rsi
pop rbx
pop rbp
ret
add rcx, 0xa60
call fcn.140026ef0
mov rdi, rax
test rax, rax
je 0x14003e4dd
xor esi, esi
mov qword [rbp - 0x20], rsi
mov dword [rbp - 0x18], esi
mov qword [rbp - 0x10], rsi
lea rdx, [0x140281968]
lea rcx, [rbp - 0x30]
call fcn.140011c00
mov dword [rbp + 0x28], esi
lea r9d, [rsi + 1]
lea r8, str.SOFTWAREDolbyPCEE4DynamicKeys
mov rdx, 0xffffffff80000002
lea rcx, [rbp - 0x20]
call fcn.14000e2b0
mov rdx, qword [rbp - 0x30]
test eax, eax
jne 0x14003e5b2
mov dword [rbp + 0x40], 4
lea rax, [rbp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x28]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x38]
xor r8d, r8d
mov rcx, qword [rbp - 0x20]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14003e5ae
cmp dword [rbp - 0x38], 4
jne 0x14003e5ae
mov eax, dword [rbp + 0x28]
mov dword [rbp + 0x30], eax
mov rdx, qword [rbp - 0x30]
add rdx, 0xffffffffffffffe8
mov eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14003e59a
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rcx, qword [rbp - 0x20]
test rcx, rcx
je 0x14003e5a9
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, dword [rbp + 0x30]
jmp 0x14003e5e3
mov rdx, qword [rbp - 0x30]
add rdx, 0xffffffffffffffe8
mov eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14003e5cf
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rcx, qword [rbp - 0x20]
test rcx, rcx
je 0x14003e5de
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, 1
mov ecx, 0x1f4
call qword [sym.imp.KERNEL32.dll_Sleep]
mov dword [rbp + 0x38], esi
mov rax, qword [rdi + 0x1d0]
mov rcx, qword [rax + 0x10]
test rcx, rcx
je 0x14003e66c
cmp dword [rcx + 0x14], 0
je 0x14003e66c
mov rax, qword [rcx]
lea rdx, [rbp + 0x38]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
cmp dword [rbp + 0x38], 0
je 0x14003e66c
cmp ebx, 1
jne 0x14003e6d6
xor r8d, r8d
lea rdx, [0x140281968]
lea rcx, str.SOFTWAREDolbyPCEE4DynamicKeys
call fcn.140012cc0
test eax, eax
je 0x14003e4dd
call fcn.14005adc8
mov rcx, qword [rax + 8]
mov rax, qword [rcx]
mov r9d, ebx
lea r8, str.RestorePCEE4On
lea rdx, str.Others
call qword [rax + 0x100]
mov eax, ebx
add rsp, 0x68
pop rdi
pop rsi
pop rbx
pop rbp
ret
call fcn.14005adc8
mov rcx, qword [rax + 8]
mov rax, qword [rcx]
xor r9d, r9d
lea r8, str.RestorePCEE4On
lea rdx, str.Others
call qword [rax + 0xf8]
cmp eax, 1
jne 0x14003e6d6
mov r8d, eax
lea rdx, [0x140281968]
lea rcx, str.SOFTWAREDolbyPCEE4DynamicKeys
call fcn.140012cc0
test eax, eax
je 0x14003e4dd
call fcn.14005adc8
mov rcx, qword [rax + 8]
mov r10, qword [rcx]
xor r9d, r9d
lea r8, str.RestorePCEE4On
lea rdx, str.Others
call qword [r10 + 0x100]
mov eax, 1
add rsp, 0x68
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x140040ba0
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 - 0x48], 0xfffffffffffffffe
movaps xmmword [rsp + 0x70], xmm6
mov r14, rcx
add rcx, 0xc00
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov r15, qword [r14 + 0xb98]
xor r12d, r12d
mov edi, r12d
test r15d, r15d
je 0x140040d5d
movss xmm6, dword [0x14028c71c]
cmp edi, dword [r14 + 0xb98]
jae 0x140040d52
mov edx, edi
lea rcx, [r14 + 0xb80]
call fcn.14004c12c
test rax, rax
je 0x140040d8c
mov rsi, qword [rax + 0x10]
test rsi, rsi
je 0x140040d52
cmp dword [rsi + 0x15c], 8
jne 0x140040d52
mov dword [rbp + 0x48], r12d
lea rax, [rbp - 0x50]
mov qword [rbp + 0x40], rax
call fcn.14004adf0
test rax, rax
je 0x140040d81
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + reloc.OLEAUT32.dll_SafeArrayGetElement]
add rax, 0x18
mov qword [rbp - 0x50], rax
lea rdx, str.PbDefaultVol_SPDIF
lea rcx, [rbp - 0x50]
call fcn.1400050a0
test al, al
jne 0x140040c84
mov r8d, SafeArrayUnaccessData
lea rdx, str.PbDefaultVol_SPDIF
lea rcx, [rbp - 0x50]
call fcn.1400054e0
nop
mov qword [rbp - 0x30], r12
mov dword [rbp - 0x28], r12d
mov qword [rbp - 0x20], r12
mov dword [rbp + 0x40], r12d
mov r9d, 1
lea r8, str.SOFTWARERealtekRealtekEffectsDriver
mov rdx, 0xffffffff80000002
lea rcx, [rbp - 0x30]
call fcn.14000e2b0
test eax, eax
je 0x140040cc0
mov rcx, qword [rbp - 0x30]
test rcx, rcx
je 0x140040d0f
jmp 0x140040d09
mov dword [rbp + 0x50], 4
lea rax, [rbp + 0x50]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x40]
mov qword [rsp + 0x20], rax
lea r9, [rbp + 0x58]
xor r8d, r8d
mov rdx, qword [rbp - 0x50]
mov rbx, qword [rbp - 0x30]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140040d01
cmp dword [rbp + 0x58], 4
jne 0x140040d01
mov eax, dword [rbp + 0x40]
mov dword [rbp + 0x48], eax
test rbx, rbx
je 0x140040d0f
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdx, qword [rbp - 0x50]
add rdx, 0xffffffffffffffe8
mov eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140040d2f
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
movups xmm0, xmmword [0x140281230]
movaps xmmword [rbp - 0x40], xmm0
movd xmm1, dword [rbp + 0x48]
cvtdq2ps xmm1, xmm1
divss xmm1, xmm6
lea r8, [rbp - 0x40]
mov rcx, rsi
call fcn.14000bd90
inc edi
cmp edi, r15d
jb 0x140040bf0
lea rcx, [r14 + 0xbf0]
mov rax, qword [rcx]
movaps xmm6, xmmword [rsp + 0x70]
add rsp, 0x80
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
jmp qword [rax + 0x28]
mov ecx, 0x80004005
call fcn.140005680
int3
call fcn.14004ba44
int3
Function at 0x1400412c0
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
mov rbp, rsp
sub rsp, 0x80
mov qword [rbp - 0x38], 0xfffffffffffffffe
mov rsi, rcx
xor r14d, r14d
mov dword [rbp + 0x40], r14d
lea rax, [rbp - 0x48]
mov qword [rbp + 0x38], rax
call fcn.14004adf0
mov rcx, rax
test rax, rax
je 0x1400414d9
mov rax, qword [rax]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
add rax, 0x18
mov qword [rbp - 0x48], rax
lea rdi, str.Mode
mov rdx, rdi
lea rcx, [rbp - 0x48]
call fcn.1400050a0
lea rbx, [r14 - 1]
test al, al
jne 0x14004134a
mov rax, rbx
nop dword [rax + rax]
inc rax
cmp word [rdi + rax*2], 0
jne 0x140041330
mov r8d, eax
mov rdx, rdi
lea rcx, [rbp - 0x48]
call fcn.1400054e0
nop
mov qword [rbp - 0x20], r14
mov dword [rbp - 0x18], r14d
mov qword [rbp - 0x10], r14
mov dword [rbp + 0x38], r14d
mov r9d, 1
lea r8, str.SOFTWARELenovoMoccaMode
mov rdx, 0xffffffff80000002
lea rcx, [rbp - 0x20]
call fcn.14000e2b0
test eax, eax
je 0x1400413ae
mov rcx, qword [rbp - 0x20]
test rcx, rcx
je 0x14004138a
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdx, qword [rbp - 0x48]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], ebx
sub ebx, 1
jg 0x1400414c6
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
jmp 0x1400414c6
mov dword [rbp + 0x48], 4
lea rax, [rbp + 0x48]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x38]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x50]
xor r8d, r8d
mov rdx, qword [rbp - 0x48]
mov rdi, qword [rbp - 0x20]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14004149c
cmp dword [rbp - 0x50], 4
jne 0x14004149c
mov eax, dword [rbp + 0x38]
mov dword [rbp + 0x40], eax
test rdi, rdi
je 0x140041405
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdx, qword [rbp - 0x48]
add rdx, 0xffffffffffffffe8
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140041422
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
movups xmm0, xmmword [str._alsC]
movaps xmmword [rbp - 0x30], xmm0
mov rdx, qword [rsi + 0xe80]
lea rcx, [rbp - 0x40]
call fcn.1400051a0
nop
mov dword [rsp + 0x28], 4
lea rax, [rbp + 0x40]
mov qword [rsp + 0x20], rax
mov r9d, 1
lea r8d, [r9 + 0x53]
lea rdx, [rbp - 0x30]
mov rcx, qword [rbp - 0x40]
call fcn.140011820
test eax, eax
sete dil
mov rdx, qword [rbp - 0x40]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], ebx
sub ebx, 1
jg 0x140041487
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
test dil, dil
je 0x1400414c6
xor eax, eax
add rsp, 0x80
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret
test rdi, rdi
je 0x1400414aa
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdx, qword [rbp - 0x48]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], ebx
sub ebx, 1
jg 0x1400414c6
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
mov eax, 1
add rsp, 0x80
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret
mov ecx, 0x80004005
call fcn.140005680
int3
Function at 0x1400414f0
Capabilities:
Print debug messages

Disassembly:
sub rsp, 0x68
mov rax, qword [0x1402da8d8]
xor rax, rsp
mov qword [rsp + 0x50], rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rsp + 0x38]
mov edx, 0x28
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x140041529
lea rcx, str.OpenProcessToken_fail_r_n
jmp 0x140041586
lea r8, [rsp + 0x44]
xor ecx, ecx
lea rdx, str.SeSystemEnvironmentPrivilege
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x40]
xor r9d, r9d
mov qword [rsp + 0x20], 0
xor edx, edx
mov dword [rsp + 0x40], 1
mov dword [rsp + 0x4c], 2
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x14004158c
lea rcx, str.Failed_RisePrivileges___r_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.1401e3920
add rsp, 0x68
ret
Function at 0x140043150
Capabilities:
Log keystrokes

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x70
movzx ebx, cl
mov rdi, rdx
mov ecx, ebx
xor edx, edx
call qword [sym.imp.USER32.dll_MapVirtualKeyW]
test rdi, rdi
je 0x140043194
test dword [rdi + 0x1c], 0x10000
je 0x140043194
cmp bl, 0xaf
movzx eax, bl
mov edx, 0xd1
cmovne edx, eax
mov eax, 0xd2
cmp dl, 0xae
movzx ebx, dl
cmove ebx, eax
xor ecx, ecx
movzx eax, bl
mov word [rsp + 0x2a], cx
lea rdx, [rsp + 0x20]
mov word [rsp + 0x52], cx
mov qword [rsp + 0x2c], rcx
lea r8d, [rcx + 0x28]
mov qword [rsp + 0x60], rcx
lea ecx, [r8 - 0x26]
mov dword [rsp + 0x20], 1
mov dword [rsp + 0x48], 1
mov word [rsp + 0x28], ax
mov word [rsp + 0x50], ax
mov qword [rsp + 0x54], 2
call qword [sym.imp.USER32.dll_SendInput]
mov rbx, qword [rsp + 0x80]
mov eax, 1
add rsp, 0x70
pop rdi
ret
Function at 0x1400455d0
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 0x18], r8
push rdi
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x58], rsi
mov rsi, r8
cmp dword [rcx + 0x28], 0
jne 0x140045603
mov rdx, qword [r8]
mov edi, 0xffffffff
jmp 0x1400456a9
mov rcx, qword [rcx + 0x30]
test rcx, rcx
jne 0x140045617
mov rdx, qword [r8]
lea edi, [rcx - 1]
jmp 0x1400456a9
mov edi, 0xffffffff
test edx, edx
jne 0x1400456a6
call qword [sym.imp.SECOMN64.dll_SEAPOCOMAPI_GetLastError]
mov ebx, eax
call fcn.14004adf0
mov rcx, rax
test rax, rax
je 0x1400456d0
mov rax, qword [rax]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
add rax, 0x18
mov qword [rsp + 0x40], rax
cmp ebx, 0xffffff00
jne 0x140045666
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9d, eax
lea rdx, str._s_WinError___d_n
jmp 0x140045670
mov r9d, ebx
lea rdx, str._s_Error___d_n
mov r8, qword [rsi]
lea rcx, [rsp + 0x40]
call fcn.140004e30
mov rbx, qword [rsp + 0x40]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
nop
lea rdx, [rbx - 0x18]
mov eax, edi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400456a6
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsi]
sub rdx, 0x18
lock xadd dword [rdx + 0x10], edi
sub edi, 1
jg 0x1400456c0
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
mov ecx, 0x80004005
call fcn.140005680
int3
Function at 0x140045d40
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push rsi
push rdi
push r14
push r15
mov rbp, rsp
sub rsp, 0x70
mov qword [rbp - 0x28], 0xfffffffffffffffe
mov qword [rsp + 0xa0], rbx
mov r14, rcx
call fcn.140028d50
test eax, eax
je 0x140045e01
call fcn.140028ed0
test eax, eax
jne 0x140045e01
call fcn.140029050
test eax, eax
je 0x140045d8f
mov eax, 1
jmp 0x140045f67
mov ecx, 1
call fcn.140029190
mov ebx, eax
mov rcx, r14
call fcn.1400459b0
mov r15d, eax
test ebx, ebx
je 0x140045f65
lea rdx, str.PreviosSRSApoStatus
lea rcx, [rbp - 0x30]
call fcn.1400051a0
xor esi, esi
test r15d, r15d
setne sil
mov r8d, esi
mov rdx, rax
lea rcx, str.SOFTWARERealtekRealtekEffectsBG
call fcn.140012b20
test eax, eax
je 0x140045f65
test r15d, r15d
je 0x140045f67
xor edx, edx
mov rcx, r14
call fcn.140045b70
test eax, eax
jne 0x140045f67
jmp 0x140045f65
call fcn.140029050
test eax, eax
je 0x140045d85
xor ecx, ecx
call fcn.140029190
lea rax, [rbp - 0x38]
mov qword [rbp + 0x38], rax
call fcn.14004adf0
mov rcx, rax
test rax, rax
je 0x140045f7b
mov rax, qword [rax]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
add rax, 0x18
mov qword [rbp - 0x38], rax
lea rdi, str.PreviosSRSApoStatus
mov rdx, rdi
lea rcx, [rbp - 0x38]
call fcn.1400050a0
mov rbx, 0xffffffffffffffff
test al, al
jne 0x140045e7a
mov rax, rbx
nop dword [rax]
inc rax
cmp word [rdi + rax*2], 0
jne 0x140045e60
mov r8d, eax
mov rdx, rdi
lea rcx, [rbp - 0x38]
call fcn.1400054e0
nop
xor esi, esi
mov qword [rbp - 0x20], rsi
mov dword [rbp - 0x18], esi
mov qword [rbp - 0x10], rsi
mov dword [rbp + 0x38], esi
lea r9d, [rsi + 1]
lea r8, str.SOFTWARERealtekRealtekEffectsBG
mov rdx, 0xffffffff80000002
lea rcx, [rbp - 0x20]
call fcn.14000e2b0
test eax, eax
je 0x140045ebb
mov rcx, qword [rbp - 0x20]
test rcx, rcx
je 0x140045f4a
jmp 0x140045f44
mov dword [rbp + 0x40], 4
lea rax, [rbp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x38]
mov qword [rsp + 0x20], rax
lea r9, [rbp + 0x48]
xor r8d, r8d
mov rdx, qword [rbp - 0x38]
mov rdi, qword [rbp - 0x20]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140045f3c
cmp dword [rbp + 0x48], 4
jne 0x140045f3c
mov eax, dword [rbp + 0x38]
mov dword [rbp - 0x40], eax
test rdi, rdi
je 0x140045f0a
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdx, qword [rbp - 0x38]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], ebx
sub ebx, 1
jg 0x140045f25
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
cmp dword [rbp - 0x40], esi
setne sil
mov edx, esi
mov rcx, r14
call fcn.140045b70
test eax, eax
je 0x140045f65
jmp 0x140045f67
test rdi, rdi
je 0x140045f4a
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdx, qword [rbp - 0x38]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], ebx
sub ebx, 1
jg 0x140045f65
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
xor eax, eax
mov rbx, qword [rsp + 0xa0]
add rsp, 0x70
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
mov ecx, 0x80004005
call fcn.140005680
int3
Function at 0x140046900
Capabilities:
Check if file exists
Create process on windows
Get common file path
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
push rbp
lea rbp, [rsp - 0x1fff0]
mov eax, 0x200f0
call fcn.1401e44e0
sub rsp, rax
mov rax, qword [0x1402da8d8]
xor rax, rsp
mov qword [rbp + 0x1ffe0], rax
xor edx, edx
lea rcx, [rbp - 0x20]
mov r8d, 0xfffe
call fcn.1401e6b00
xor edx, edx
lea rcx, [rbp + 0xffe0]
mov r8d, 0xfffe
call fcn.1401e6b00
mov edx, 0x7fff
lea rcx, [rbp - 0x20]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
xor ebx, ebx
test eax, eax
je 0x140046a4f
lea rcx, [rbp - 0x20]
mov rax, 0xffffffffffffffff
cmp word [rcx + rax*2 + 2], bx
lea rax, [rax + 1]
jne 0x140046975
cmp word [rbp + rax*2 - 0x22], 0x5c
jne 0x1400469a1
lea rax, [rax*2 - 2]
cmp rax, 0xfffe
jae 0x140046aff
mov word [rbp + rax - 0x20], bx
lea r8, [0x140281228]
mov edx, 0x7fff
lea rcx, [rbp - 0x20]
call fcn.1401ee944
lea r8, str.SRSLabs
mov edx, 0x7fff
lea rcx, [rbp - 0x20]
call fcn.1401ee944
lea r8, [0x140281228]
mov edx, 0x7fff
lea rcx, [rbp - 0x20]
call fcn.1401ee944
lea r8, str.176F4E15_8F7C_4833_ADED_81FAE8CCD186
mov edx, 0x7fff
lea rcx, [rbp - 0x20]
call fcn.1401ee944
lea r8, str._slInit64.dll
mov edx, 0x7fff
lea rcx, [rbp - 0x20]
call fcn.1401ee944
lea r8, str.rundll32.exe
mov edx, 0x7fff
lea rcx, [rbp + 0xffe0]
call fcn.1401ee944
lea r8, [rbp - 0x20]
mov edx, 0x7fff
lea rcx, [rbp + 0xffe0]
call fcn.1401ee944
lea r8, str._SRS_InitializeEndpoints_Rundll32
mov edx, 0x7fff
lea rcx, [rbp + 0xffe0]
call fcn.1401ee944
lea rcx, [rbp - 0x20]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140046add
xor edx, edx
lea rcx, [rsp + 0x74]
lea r8d, [rdx + 0x64]
call fcn.1401e6b00
xor eax, eax
mov dword [rsp + 0x70], 0x68
mov qword [rsp + 0x50], rax
lea rdx, [rbp + 0xffe0]
mov qword [rsp + 0x58], rax
xor r9d, r9d
mov qword [rsp + 0x60], rax
xor r8d, r8d
lea rax, [rsp + 0x50]
xor ecx, ecx
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], ebx
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x140046add
mov rcx, qword [rsp + 0x50]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, 1
jmp 0x140046adf
xor eax, eax
mov rcx, qword [rbp + 0x1ffe0]
xor rcx, rsp
call fcn.1401e3920
mov rbx, qword [rsp + 0x20100]
add rsp, 0x200f0
pop rbp
ret
call fcn.1401e4044
int3
Function at 0x1400496b0
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 0x10], rdx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0xd0
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rsp + 0x110], rbx
mov rdi, rdx
mov r14, rcx
lea rcx, str.CWmiEventSink::ServiceBIOSPackage_enter_r_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov qword [rsp + 0x128], 0
lea rdx, [rsp + 0x128]
mov rcx, qword [rdi + 8]
call qword [sym.imp.OLEAUT32.dll_SafeArrayUnaccessData]
test eax, eax
jne 0x140049895
mov rax, qword [rsp + 0x128]
movups xmm2, xmmword [rax]
movaps xmmword [rsp + 0x50], xmm2
movups xmm0, xmmword [rax + 0x10]
movaps xmmword [rsp + 0x60], xmm0
movups xmm1, xmmword [rax + 0x20]
movaps xmmword [rsp + 0x70], xmm1
movups xmm0, xmmword [rax + 0x30]
movaps xmmword [rsp + 0x80], xmm0
movups xmm1, xmmword [rax + 0x40]
movaps xmmword [rsp + 0x90], xmm1
movups xmm0, xmmword [rax + 0x50]
movaps xmmword [rsp + 0xa0], xmm0
movups xmm1, xmmword [rax + 0x60]
movaps xmmword [rsp + 0xb0], xmm1
movups xmm0, xmmword [rax + 0x70]
movaps xmmword [rsp + 0xc0], xmm0
movq r15, xmm2
mov rbp, r15
shr rbp, 0x10
mov word [rsp + 0x32], bp
mov rsi, r15
shr rsi, 0x20
mov word [rsp + 0x34], si
mov rbx, r15
shr rbx, 0x30
mov word [rsp + 0x36], bx
psrldq xmm2, 8
movq r13, xmm2
mov r12, r13
shr r12, 0x10
mov word [rsp + 0x3a], r12w
call fcn.14004adf0
mov rcx, rax
test rax, rax
je 0x1400498cd
mov rax, qword [rax]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
add rax, 0x18
mov qword [rsp + 0x120], rax
movzx eax, si
movzx r9d, bp
movzx r8d, r15w
mov dword [rsp + 0x20], eax
lea rdx, str.WmiBuffer0_x_WmiBuffer1_x_WmiBuffer2_x_r_n
lea rcx, [rsp + 0x120]
call fcn.140004e30
mov rcx, qword [rsp + 0x120]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
movzx eax, r12w
movzx r9d, r13w
mov r8d, ebx
mov dword [rsp + 0x20], eax
lea rdx, str.WmiBuffer3_x_WmiBuffer4_x_WmiBuffer5_x_r_n
lea rcx, [rsp + 0x120]
call fcn.140004e30
mov rbx, qword [rsp + 0x120]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp r15w, 2
jne 0x140049879
mov eax, 0xffef
test ax, bp
jne 0x140049879
mov eax, 0x150
cmp si, ax
jne 0x140049879
lea rcx, str.Wmi_Event_Key_______r_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rcx, qword [r14 + 0x10]
xor r9d, r9d
xor r8d, r8d
mov edx, 0x8063
mov rcx, qword [rcx + 0x40]
call qword [sym.imp.USER32.dll_PostMessageW]
nop
lea rdx, [rbx - 0x18]
mov eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140049895
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rcx, qword [rdi + 8]
call qword [sym.imp.OLEAUT32.dll_SafeArrayGetElement]
mov rcx, rdi
call qword [sym.imp.OLEAUT32.dll_VariantCopy]
nop
mov rcx, rdi
call qword [sym.imp.OLEAUT32.dll_VariantCopy]
mov rbx, qword [rsp + 0x110]
add rsp, 0xd0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov ecx, 0x80004005
call fcn.140005680
int3
Function at 0x1400529c8
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x20
xor edi, edi
xor ebx, ebx
mov rsi, rdx
mov r14, rcx
test rdx, rdx
je 0x140052a30
call fcn.14005adc8
mov r8d, 0xf0
mov rdx, rsi
mov rbp, qword [rax + 0x18]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_FindResourceW]
test rax, rax
je 0x140052a30
mov rdx, rax
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rbx, rax
test rax, rax
je 0x140052a52
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rdi, rax
mov rdx, rdi
mov rcx, r14
call fcn.140063820
mov esi, eax
test rdi, rdi
je 0x140052a50
test rbx, rbx
je 0x140052a50
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret

Function at 0x1400537d4
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 r14
push r15
sub rsp, 0x20
mov rsi, rdx
mov rbx, rcx
test rcx, rcx
je 0x1400538ac
mov rcx, qword [rcx + 0x40]
test rcx, rcx
je 0x1400538ac
call qword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x1400538ac
test rsi, rsi
je 0x1400538ac
xor r15d, r15d
xor ebp, ebp
xor edi, edi
call fcn.14005adc8
lea r8, str.AFX_DIALOG_LAYOUT
mov rdx, rsi
mov r14, qword [rax + 0x18]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rsi, rax
test rax, rax
je 0x140053879
mov rdx, rax
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov rdx, rsi
mov rcx, r14
mov r15d, eax
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rdi, rax
test rax, rax
je 0x1400538ac
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbp, rax
mov r8d, r15d
mov rdx, rbp
mov rcx, rbx
call fcn.140069528
mov esi, eax
test rbp, rbp
je 0x14005389c
test rdi, rdi
je 0x14005389c
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeResource]
test esi, esi
je 0x1400538a8
mov rcx, rbx
call fcn.140053494
mov eax, esi
jmp 0x1400538ae
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret