joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14002e1f0
Capabilities:
Print debug messages

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x70
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0x98], rbx
mov rsi, rdx
mov rbx, rcx
lea rcx, [rsp + 0x50]
call qword [sym.imp.OLEAUT32.dll_VariantClear]
nop
mov rdi, qword [rbx + 0x58]
lea rcx, str.Data
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov rbx, rax
mov qword [rsp + 0xa8], rax
test rax, rax
jne 0x14002e247
mov ecx, 0x8007000e
call fcn.1400120e0
nop
mov rax, qword [rdi]
xor ebp, ebp
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], rbp
lea r9, [rsp + 0x50]
xor r8d, r8d
mov rdx, rbx
mov rcx, rdi
call qword [rax + 0x20]
mov edi, eax
mov rcx, rbx
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
test edi, edi
je 0x14002e296
lea rcx, str.RtkMute:__Failed_to_get_Data_property_of_OutParams__n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
nop
lea rcx, [rsp + 0x50]
call qword [sym.imp.OLEAUT32.dll_VariantCopy]
xor eax, eax
jmp 0x14002e3c2
mov qword [rsp + 0x90], rbp
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x14002e2bd
mov rax, qword [rcx]
lea r8, [rsp + 0x90]
lea rdx, [0x1400ba3d8]
call qword [rax]
nop
lea rcx, [rsp + 0x38]
call qword [sym.imp.OLEAUT32.dll_VariantClear]
nop
lea rcx, [rsp + 0x38]
call qword [sym.imp.OLEAUT32.dll_VariantClear]
mov rdi, qword [rsp + 0x90]
lea rcx, str.Bytes
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov rbx, rax
mov qword [rsp + 0xa8], rax
test rax, rax
jne 0x14002e304
mov ecx, 0x8007000e
call fcn.1400120e0
nop
mov rax, qword [rdi]
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], rbp
lea r9, [rsp + 0x38]
xor r8d, r8d
mov rdx, rbx
mov rcx, rdi
call qword [rax + 0x20]
nop
mov rcx, rbx
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov qword [rsp + 0xa0], rbp
lea rdx, [rsp + 0xa0]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.OLEAUT32.dll_SafeArrayUnaccessData]
mov rcx, qword [rsp + 0xa0]
mov rax, qword [rcx]
mov qword [rsi], rax
mov rax, qword [rcx + 8]
mov qword [rsi + 8], rax
mov rax, qword [rcx + 0x10]
mov qword [rsi + 0x10], rax
mov rax, qword [rcx + 0x18]
mov qword [rsi + 0x18], rax
mov rax, qword [rcx + 0x20]
mov qword [rsi + 0x20], rax
mov eax, dword [rcx + 0x28]
mov dword [rsi + 0x28], eax
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.OLEAUT32.dll_SafeArrayGetElement]
lea rcx, [rsp + 0x38]
call qword [sym.imp.OLEAUT32.dll_VariantCopy]
nop
lea rcx, [rsp + 0x38]
call qword [sym.imp.OLEAUT32.dll_VariantCopy]
nop
mov rcx, qword [rsp + 0x90]
test rcx, rcx
je 0x14002e3b2
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
nop
lea rcx, [rsp + 0x50]
call qword [sym.imp.OLEAUT32.dll_VariantCopy]
mov eax, 1
mov rbx, qword [rsp + 0x98]
add rsp, 0x70
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400381c0
Capabilities:
Check mutex on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rbx, rcx
lea rcx, [rdx + 2]
mov rdx, r8
mov rsi, r9
call fcn.1400852f0
test eax, eax
jne 0x140038224
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, rsi
repne scasw ax, word [rdi]
mov edi, 1
not rcx
cmp rcx, rdi
je 0x140038226
mov r8, rsi
mov edx, edi
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x140038226
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor edi, edi
or dword [rbx + 0x140], edi
mov rsi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x30]
mov eax, edi
add rsp, 0x20
pop rdi
ret
Function at 0x140041eb0
Capabilities:
Resume thread

Disassembly:
mov rax, rsp
push rsi
push rdi
push r12
sub rsp, 0x50
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rbp
mov rsi, rcx
call fcn.140042120
mov rcx, rsi
call fcn.14003b5a0
mov rcx, rsi
call fcn.14003c680
mov rcx, rsi
call fcn.14003cb40
mov rcx, rsi
call fcn.14003ba60
mov rcx, rsi
call fcn.14003c050
mov rcx, rsi
call fcn.14003c1c0
lea rcx, [rsi + 0x8b8]
call fcn.140030850
mov r12, qword [rsi + 0x860]
xor edi, edi
test r12d, r12d
je 0x14004200b
cmp edi, dword [rsi + 0x860]
jae 0x140041ff2
mov edx, edi
lea rcx, [rsi + 0x848]
call fcn.140056e3c
test rax, rax
je 0x140042005
mov rcx, qword [rax + 0x10]
test rcx, rcx
je 0x140041ff2
lea rdx, [rsp + 0x70]
call fcn.140035450
nop
mov rbx, qword [rsp + 0x70]
mov rcx, qword [rbx - 0x18]
mov rax, qword [rcx]
call qword [rax + 0x20]
mov rcx, rax
cmp dword [rbx - 8], 0
jl 0x140041f86
cmp rax, qword [rbx - 0x18]
jne 0x140041f86
lea rbp, [rbx - 0x18]
lock add dword [rbx - 8], 1
jmp 0x140041fbe
mov rax, qword [rax]
mov r8d, 2
mov edx, dword [rbx - 0x10]
call qword [rax]
mov rbp, rax
test rax, rax
je 0x140041fff
mov ecx, dword [rbx - 0x10]
mov dword [rax + 8], ecx
mov ecx, dword [rbx - 0x10]
add ecx, 1
movsxd rdx, ecx
lea r9, [rdx + rdx]
mov r8, rbx
add rdx, rdx
lea rcx, [rax + 0x18]
call fcn.140082af0
lea rax, [rbp + 0x18]
mov qword [rsp + 0x78], rax
lea rdx, [rsp + 0x78]
mov rcx, rsi
call fcn.140043420
nop
or eax, 0xffffffff
lock xadd dword [rbx - 8], eax
add eax, 0xffffffff
test eax, eax
jg 0x140041ff2
mov rcx, qword [rbx - 0x18]
mov rax, qword [rcx]
lea rdx, [rbx - 0x18]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
add edi, 1
cmp edi, r12d
jae 0x14004200b
jmp 0x140041f22
call fcn.1400158c0
nop
call fcn.140057a80
int3
lea rcx, [rsi + 0x8b8]
mov rax, qword [rcx]
call qword [rax + 0x28]
mov qword [rsi + 0xd48], rsi
cmp qword [rsi + 0xd30], 0
jne 0x140042040
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rsi + 0xd30], rax
cmp qword [rsi + 0xd38], 0
jne 0x140042061
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rsi + 0xd38], rax
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 4
xor r9d, r9d
xor r8d, r8d
lea rdx, [rsi + 0xcf0]
lea rcx, [0x1400337a0]
call fcn.140065bd0
mov rbp, rax
test rax, rax
je 0x1400420e5
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov dword [rsp + 0x30], 2
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
lea r9, [rsi + 0xd28]
mov r8, rbx
mov rdx, qword [rbp + 0x58]
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
mov rcx, qword [rbp + 0x58]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov dword [rsi + 0xd40], 1
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r12
pop rdi
pop rsi
ret
Function at 0x140047b20
Capabilities:
Log keystrokes

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x70
lea rdx, [rax + 0x10]
xor edi, edi
add rcx, 0x900
mov dword [rax + 8], edi
call fcn.140052dd0
lea rdx, [rsp + 0x80]
mov rcx, rax
call fcn.1400177d0
test eax, eax
jne 0x140047b57
add rsp, 0x70
pop rdi
ret
mov qword [rsp + 0x90], rbx
mov ebx, dword [rsp + 0x80]
xor edx, edx
movzx ecx, bl
call qword [sym.imp.USER32.dll_MapVirtualKeyW]
movzx ecx, bl
mov r8d, 0x28
mov word [rsp + 0x28], cx
mov word [rsp + 0x50], cx
lea rdx, [rsp + 0x20]
lea ecx, [r8 - 0x26]
mov dword [rsp + 0x20], 1
mov dword [rsp + 0x48], 1
mov word [rsp + 0x2a], di
mov word [rsp + 0x52], di
mov dword [rsp + 0x30], edi
mov dword [rsp + 0x58], edi
mov qword [rsp + 0x60], rdi
mov dword [rsp + 0x2c], edi
mov dword [rsp + 0x54], 2
call qword [sym.imp.USER32.dll_SendInput]
mov rbx, qword [rsp + 0x90]
mov eax, 1
add rsp, 0x70
pop rdi
ret

Function at 0x14004a7d0
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push rdi
sub rsp, 0x70
mov qword [rsp + 0x60], 0xfffffffffffffffe
mov qword [rsp + 0x88], rbx
mov rdi, rcx
lea rcx, str.CRtHDVBgProcWnd::OnUserLogOff__d__d_n
call fcn.140001030
xor ebx, ebx
mov qword [rsp + 0x58], rbx
mov dword [rsp + 0x80], ebx
bt dword [rdi + 0x9b4], 0xf
jae 0x14004a9b1
mov qword [rsp + 0x98], rbx
lea rax, [rsp + 0x98]
mov qword [rsp + 0x20], rax
mov r9d, 0x2001f
xor r8d, r8d
lea rdx, [0x1400bcd70]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14004a8d4
mov rbx, qword [rsp + 0x98]
mov qword [rsp + 0x58], rbx
mov dword [rsp + 0x98], 4
lea rax, [rsp + 0x98]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x80]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x50]
xor r8d, r8d
lea rdx, str.Logoff
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [rsp + 0x98], 2
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x98]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
lea rdx, str.Logoff
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
jmp 0x14004a9a3
mov qword [rsp + 0x50], rbx
lea rax, [rsp + 0x98]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], 0x20006
mov dword [rsp + 0x20], ebx
xor r9d, r9d
xor r8d, r8d
lea rdx, [0x1400bcd70]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x14004a9a3
mov rbx, qword [rsp + 0x50]
mov qword [rsp + 0x58], rbx
mov dword [rsp + 0x98], 4
lea rax, [rsp + 0x98]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x80]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x50]
xor r8d, r8d
lea rdx, str.Logoff
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [rsp + 0x98], 2
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x98]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
lea rdx, str.Logoff
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edx, 2
mov rcx, rdi
call fcn.140049ba0
nop
test rbx, rbx
je 0x14004a9cb
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
movabs rax, 1
jmp 0x14004a9d5
movabs rax, 1
mov rbx, qword [rsp + 0x88]
add rsp, 0x70
pop rdi
ret
Function at 0x14004ca10
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
xor ebp, ebp
lea rsi, [rcx + 0x4a0]
lea rbx, [rcx + 0x800]
mov rdi, rcx
lea edx, [rbp + 2]
xor r9d, r9d
xor r8d, r8d
mov rcx, rbx
mov qword [rsi], rbp
mov dword [rsp + 0x20], ebp
call fcn.140030b20
lea rcx, [0x14004cae0]
xor r9d, r9d
xor r8d, r8d
mov rdx, rdi
mov qword [rsp + 0x28], rbp
mov qword [0x1400eba18], rbx
mov dword [rsp + 0x20], 4
call fcn.140065bd0
test rax, rax
mov rdi, rax
je 0x14004cabc
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rdx, qword [rdi + 0x58]
mov dword [rsp + 0x30], 2
mov r9, rsi
mov r8, rbx
mov rcx, rax
mov dword [rsp + 0x28], ebp
mov dword [rsp + 0x20], ebp
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
mov rcx, qword [rdi + 0x58]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret

Function at 0x14004d560
Capabilities:
Log keystrokes

Disassembly:
push rbx
sub rsp, 0x70
movzx ebx, cl
xor edx, edx
mov ecx, ebx
call qword [sym.imp.USER32.dll_MapVirtualKeyW]
xor ecx, ecx
lea rdx, [rsp + 0x20]
lea r8d, [rcx + 0x28]
mov dword [rsp + 0x30], ecx
mov dword [rsp + 0x58], ecx
mov qword [rsp + 0x60], rcx
mov dword [rsp + 0x2c], ecx
lea ecx, [r8 - 0x26]
mov dword [rsp + 0x20], 1
mov dword [rsp + 0x48], 1
mov word [rsp + 0x28], bx
mov word [rsp + 0x50], bx
mov word [rsp + 0x2a], 0
mov word [rsp + 0x52], 0
mov dword [rsp + 0x54], 2
call qword [sym.imp.USER32.dll_SendInput]
mov eax, 1
add rsp, 0x70
pop rbx
ret
Function at 0x14004f610
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
sub rsp, 0x20
cmp dword [rcx], 0
mov rbx, rcx
je 0x14004f629
mov eax, 1
add rsp, 0x20
pop rbx
ret
lea rcx, str.SRCOM64.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
test rax, rax
mov qword [rbx + 8], rax
je 0x14004f7c8
lea rdx, str.sffxInit
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx + 8]
lea rdx, str.sffxFree
mov qword [rbx + 0x10], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx + 8]
lea rdx, str.sffxGetPower
mov qword [rbx + 0x18], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx + 8]
lea rdx, str.sffxSetPower
mov qword [rbx + 0x20], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx + 8]
lea rdx, str.sffxGetUserControlValue
mov qword [rbx + 0x28], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx + 8]
lea rdx, str.sffxSetUserControlValue
mov qword [rbx + 0x30], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx + 8]
lea rdx, str.sffxResetPreset
mov qword [rbx + 0x38], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx + 8]
lea rdx, str.sffxGetPreset
mov qword [rbx + 0x40], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx + 8]
lea rdx, str.sffxSetPreset
mov qword [rbx + 0x48], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx + 8]
lea rdx, str.sffxGetNumPresets
mov qword [rbx + 0x50], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx + 8]
lea rdx, str.sffxGetDefaultPlaybackDevice
mov qword [rbx + 0x58], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx + 8]
lea rdx, str.sffxSetSelectedPlaybackDevice
mov qword [rbx + 0x60], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx + 8]
lea rdx, str.sffxGetNumPlaybackDevices
mov qword [rbx + 0x68], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx + 8]
lea rdx, str.sffxGetPlaybackDeviceIndex
mov qword [rbx + 0x70], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx + 8]
lea rdx, str.sffxSetJackState
mov qword [rbx + 0x78], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx + 8]
lea rdx, str.sffxGetNumJackStates
mov qword [rbx + 0x80], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx + 8]
lea rdx, str.sffxGetJackStateInfo
mov qword [rbx + 0x88], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx + 0x90], rax
mov rax, qword [rbx + 0x10]
test rax, rax
je 0x14004f7c8
call rax
cmp eax, 0x80000001
je 0x14004f7c8
mov dword [rbx], 1
mov eax, dword [rbx]
add rsp, 0x20
pop rbx
ret
Function at 0x1400515f0
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x60
mov qword [rsp + 0x58], 0xfffffffffffffffe
test rcx, rcx
jne 0x14005160d
xor eax, eax
jmp 0x1400517c2
mov dword [rsp + 0x80], 1
lea rdx, [rsp + 0x48]
call fcn.140035450
nop
mov rsi, qword [rsp + 0x48]
mov rcx, qword [rsi - 0x18]
mov rax, qword [rcx]
call qword [rax + 0x20]
mov rcx, rax
cmp dword [rsi - 8], 0
jl 0x14005164c
cmp rax, qword [rsi - 0x18]
jne 0x14005164c
lea rbx, [rsi - 0x18]
lock add dword [rsi - 8], 1
jmp 0x14005168a
mov rax, qword [rax]
mov r8d, 2
mov edx, dword [rsi - 0x10]
call qword [rax]
mov rbx, rax
test rax, rax
jne 0x140051668
call fcn.1400158c0
int3
mov eax, dword [rsi - 0x10]
mov dword [rbx + 8], eax
mov eax, dword [rsi - 0x10]
add eax, 1
movsxd rdx, eax
lea r9, [rdx + rdx]
mov r8, rsi
add rdx, rdx
lea rcx, [rbx + 0x18]
call fcn.140082af0
lea rax, [rbx + 0x18]
mov qword [rsp + 0x50], rax
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x40]
call fcn.140051ff0
nop
xor ebx, ebx
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x98], rbx
lea rax, [rsp + 0x98]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rdx, qword [rsp + 0x40]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14005176c
mov rbx, qword [rsp + 0x98]
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], 0
test rbx, rbx
je 0x14005176c
lea rdx, [rsp + 0x30]
lea rcx, [0x1400b62a8]
call fcn.1400132b0
test eax, eax
js 0x14005175c
mov dword [rsp + 0x88], 4
lea rax, [rsp + 0x88]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x80]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x90]
xor r8d, r8d
mov rdi, qword [rsp + 0x30]
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, rdi
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ebx, ebx
mov qword [rsp + 0x38], rbx
mov edi, dword [rsp + 0x80]
test rbx, rbx
je 0x140051782
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
mov rdx, qword [rsp + 0x40]
add rdx, 0xffffffffffffffe8
or ebx, 0xffffffff
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
add eax, ebx
test eax, eax
jg 0x1400517a5
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
lock xadd dword [rsi - 8], ebx
add ebx, 0xffffffff
test ebx, ebx
jg 0x1400517c0
mov rcx, qword [rsi - 0x18]
mov r8, qword [rcx]
lea rdx, [rsi - 0x18]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
mov eax, edi
add rsp, 0x60
pop rdi
pop rsi
pop rbx
ret
Function at 0x140051db0
Capabilities:
Check if file exists
Create process on windows
Get common file path
Get file attributes

Disassembly:
mov eax, 0x200f8
call fcn.1400a5fd0
sub rsp, rax
mov rax, qword [0x1400e2bd8]
xor rax, rsp
mov qword [rsp + 0x200e0], rax
lea rcx, [rsp + 0xe2]
xor edx, edx
mov r8d, 0xfffc
mov word [rsp + 0xe0], 0
call fcn.140086930
lea rcx, [rsp + 0x100e2]
xor edx, edx
mov r8d, 0xfffc
mov word [rsp + 0x100e0], 0
call fcn.140086930
lea rcx, [rsp + 0xe0]
mov edx, 0x7fff
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x140051f28
mov qword [rsp + 0x200f0], rdi
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [rsp + 0xe0]
repne scasw ax, word [rdi]
mov rdi, qword [rsp + 0x200f0]
not rcx
cmp word [rsp + rcx*2 + 0xdc], 0x5c
jne 0x140051e5f
mov word [rsp + rcx*2 + 0xdc], ax
lea r8, [0x1400b6b78]
lea rcx, [rsp + 0xe0]
mov edx, 0x7fff
call fcn.140083540
lea r8, str.SRSLabs
lea rcx, [rsp + 0xe0]
mov edx, 0x7fff
call fcn.140083540
lea r8, [0x1400b6b78]
lea rcx, [rsp + 0xe0]
mov edx, 0x7fff
call fcn.140083540
lea r8, str.176F4E15_8F7C_4833_ADED_81FAE8CCD186
lea rcx, [rsp + 0xe0]
mov edx, 0x7fff
call fcn.140083540
lea r8, str._slInit64.dll
lea rcx, [rsp + 0xe0]
mov edx, 0x7fff
call fcn.140083540
lea r8, str.rundll32.exe
lea rcx, [rsp + 0x100e0]
mov edx, 0x7fff
call fcn.140083540
lea r8, [rsp + 0xe0]
lea rcx, [rsp + 0x100e0]
mov edx, 0x7fff
call fcn.140083540
lea r8, str._SRS_InitializeEndpoints_Rundll32
lea rcx, [rsp + 0x100e0]
mov edx, 0x7fff
call fcn.140083540
lea rcx, [rsp + 0xe0]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140051fd5
xor edx, edx
lea rcx, [rsp + 0x70]
lea r8d, [rdx + 0x68]
call fcn.140086930
xor eax, eax
lea rdx, [rsp + 0x100e0]
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rax
lea rax, [rsp + 0x50]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x70]
xor ecx, ecx
mov qword [rsp + 0x40], rax
xor eax, eax
mov dword [rsp + 0x70], 0x68
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x140051fd5
mov rcx, qword [rsp + 0x50]
or edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, 1
mov rcx, qword [rsp + 0x200e0]
xor rcx, rsp
call fcn.140082430
add rsp, 0x200f8
ret
xor eax, eax
mov rcx, qword [rsp + 0x200e0]
xor rcx, rsp
call fcn.140082430
add rsp, 0x200f8
ret
Function at 0x140055f60
Capabilities:
Print debug messages

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0xe0
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rsp + 0x130], rbx
mov rax, qword [0x1400e2bd8]
xor rax, rsp
mov qword [rsp + 0xd0], rax
mov rdi, rdx
mov r13, rcx
mov qword [rsp + 0x48], rdx
lea rcx, str.CWmiEventSink::ServiceBIOSPackage_enter_r_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
xor ebx, ebx
mov qword [rsp + 0x38], rbx
lea rdx, [rsp + 0x38]
mov rcx, qword [rdi + 8]
call qword [sym.imp.OLEAUT32.dll_SafeArrayUnaccessData]
test eax, eax
jne 0x1400560e8
lea rcx, [rsp + 0x50]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x80
call fcn.140086bf0
mov r12, qword [rsp + 0x50]
mov rsi, r12
shr rsi, 0x10
mov rbp, r12
shr rbp, 0x20
mov r14, r12
shr r14, 0x30
mov r15, qword [rsp + 0x58]
shr r15, 0x10
call fcn.1400578a4
mov rcx, rax
test rax, rax
setne bl
test ebx, ebx
jne 0x140056021
mov ecx, 0x80004005
call fcn.1400120e0
int3
mov rax, qword [rax]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
add rax, 0x18
mov qword [rsp + 0x30], rax
movzx eax, bp
movzx r9d, si
movzx r8d, r12w
mov dword [rsp + 0x20], eax
lea rdx, str.WmiBuffer0_x_WmiBuffer1_x_WmiBuffer2_x_r_n
lea rcx, [rsp + 0x30]
call fcn.140015bb0
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
movzx r11d, r15w
movzx r9d, word [rsp + 0x58]
mov r8d, r14d
mov dword [rsp + 0x20], r11d
lea rdx, str.WmiBuffer3_x_WmiBuffer4_x_WmiBuffer5_x_r_n
lea rcx, [rsp + 0x30]
call fcn.140015bb0
mov rbx, qword [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp r12w, 2
jne 0x1400560cc
test si, si
je 0x14005609e
cmp si, 0x10
jne 0x1400560cc
cmp bp, 0x150
jne 0x1400560cc
lea rcx, str.Wmi_Event_Key_______r_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rcx, qword [r13 + 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]
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x1400560e8
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 rcx, qword [rsp + 0xd0]
xor rcx, rsp
call fcn.140082430
mov rbx, qword [rsp + 0x130]
add rsp, 0xe0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret