joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403430
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4aeb7d
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
push edi
mov eax, dword [0x503074]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x14], edi
call fcn.00403060
mov dword [ebp - 4], 0
lea esi, [edi + 4]
mov dword [edi], vtable.BIOSWireless2.0
mov dword [ebp - 0x10], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.0040aa40
mov dword [esi], eax
mov byte [ebp - 4], 1
lea esi, [edi + 0xc]
mov dword [ebp - 0x10], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.0040aa40
mov dword [esi], eax
lea eax, [edi + 0x18]
xorps xmm0, xmm0
push eax
movups xmmword [eax], xmm0
call dword [sym.imp.OLEAUT32.dll_VariantClear]
mov byte [ebp - 4], 3
lea ecx, [edi + 0x2c]
push 0x4c982c
mov dword [edi + 0x28], 0
call fcn.0040d430
lea ecx, [edi + 0x30]
mov byte [ebp - 4], 4
push str.ClassGuid
call fcn.0040d430
push str.DeviceDbcc
lea ecx, [edi + 0x34]
mov byte [ebp - 4], 5
call fcn.0040d430
push str.ComPort
lea ecx, [edi + 0x38]
mov byte [ebp - 4], 6
call fcn.0040d430
lea ecx, [edi + 0x3c]
mov byte [ebp - 4], 7
push 0
call fcn.00476940
push 0x4c965c
push 0x4c9880
push 0
mov byte [ebp - 4], 8
call fcn.00422b80
push eax
call fcn.0047bd80
xor esi, esi
add esp, 0x10
mov dword [ebp - 0x10], esi
mov byte [ebp - 4], 9
call fcn.00422b80
mov al, byte [eax + 0x38]
test al, al
je 0x403570
push 0x28
call fcn.00475970
mov esi, eax
add esp, 4
mov dword [ebp - 0x18], esi
push 0x4c9880
mov byte [ebp - 4], 0xa
call fcn.00422b80
push eax
mov ecx, esi
call fcn.00477bf0
mov esi, eax
mov byte [ebp - 4], 9
mov dword [ebp - 0x10], esi
lea ecx, [edi + 0x3c]
call fcn.004769e0
mov byte [ebp - 4], 0xc
lea ecx, [edi + 0xc]
mov eax, dword [ecx]
push dword [eax + 4]
call fcn.0040a1f0
mov eax, dword [edi + 0xc]
lea ecx, [edi + 0x3c]
mov dword [eax + 4], eax
mov eax, dword [edi + 0xc]
mov dword [eax], eax
mov eax, dword [edi + 0xc]
mov dword [ebp - 4], 9
mov dword [eax + 8], eax
mov dword [edi + 0x10], 0
call fcn.00476a30
lea ecx, [edi + 0x2c]
call fcn.0041db40
lea ecx, [edi + 0x30]
call fcn.0041db40
push 0x4c965c
push 0x4c9880
push 1
mov byte [edi + 0x58], 0
call fcn.00422b80
push eax
call fcn.0047bd80
add esp, 0x10
test esi, esi
je 0x4035f4
mov ecx, esi
call fcn.00478c00
push 0x28
push esi
call fcn.00475d73
add esp, 8
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40ceb0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x40cec5
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x40cf06
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x40cf02
nop word [eax + eax]
cmp esi, edx
jae 0x40cf06
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x40cef0
cmp esi, edx
jb 0x40cf0b
xor eax, eax
pop esi
pop ebp
ret
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
pop esi
pop ebp
ret
Function at 0x419be0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
mov eax, dword [edi]
add eax, eax
mov dword [edi], 0
mov dword [ebp + 0x10], eax
lea eax, [ebp + 0x10]
push eax
push esi
lea eax, [ebp + 0xc]
push eax
push 0
push dword [ebp + 8]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x419c51
mov eax, dword [ebp + 0xc]
cmp eax, 1
je 0x419c1f
cmp eax, 2
jne 0x419c3b
mov ecx, dword [ebp + 0x10]
test esi, esi
je 0x419c4b
test ecx, ecx
je 0x419c46
test cl, 1
jne 0x419c3b
mov eax, ecx
shr eax, 1
cmp word [esi + eax*2 - 2], 0
je 0x419c4b
pop edi
mov eax, 0xd
pop esi
pop ebp
ret 0xc
xor eax, eax
mov word [esi], ax
shr ecx, 1
xor eax, eax
mov dword [edi], ecx
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x41ace0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
push esi
mov esi, ecx
test edx, edx
jne 0x41acf5
lea eax, [edx + 0xd]
pop esi
pop ebp
ret 0xc
mov eax, edx
push edi
lea edi, [eax + 2]
nop dword [eax + eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x41ad00
sub eax, edi
sar eax, 1
lea eax, [eax*2 + 2]
push eax
push edx
push 1
push 0
push dword [ebp + 8]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x41b770
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4aec57
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x503074]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 0x4c965c
push str.CControlEvent::Queue::PushEvent
push 0
call fcn.00422b80
push eax
call fcn.0047bd80
xor esi, esi
add esp, 0x10
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], esi
call fcn.00422b80
mov al, byte [eax + 0x38]
test al, al
je 0x41b7f6
push 0x28
call fcn.00475970
mov esi, eax
add esp, 4
mov dword [ebp - 0x14], esi
push str.CControlEvent::Queue::PushEvent
mov byte [ebp - 4], 1
call fcn.00422b80
push eax
mov ecx, esi
call fcn.00477bf0
mov esi, eax
mov byte [ebp - 4], 0
mov dword [ebp - 0x10], esi
lea eax, [edi + 8]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [edi]
push dword [ebp + 8]
mov ebx, dword [eax]
push dword [ebx + 4]
push ebx
call fcn.0041bd90
mov edx, eax
mov ecx, 0x38e38e2
mov eax, dword [edi + 4]
sub ecx, eax
cmp ecx, 1
jae 0x41b82b
push str.list_T__too_long
call fcn.004725e8
inc eax
mov dword [edi + 4], eax
mov dword [ebx + 4], edx
mov eax, dword [edx + 4]
mov dword [eax], edx
cmp byte [edi + 0x20], 0
mov ebx, dword [edi + 4]
jne 0x41b85f
cmp byte [edi + 0x21], 0
jne 0x41b85f
push edi
push 0
push 0x41b910
call fcn.0048f44d
add esp, 0xc
cmp eax, 0xffffffff
setne al
mov byte [edi + 0x21], al
lea eax, [edi + 8]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
movzx eax, byte [edi + 0x21]
push eax
push ebx
push str.size___d__m_bThreadActive___x
push str.CControlEvent::Queue::PushEvent
push 1
call fcn.00422b80
push eax
call fcn.0047bd80
add esp, 0x18
test esi, esi
je 0x41b89f
mov ecx, esi
call fcn.00478c00
push 0x28
push esi
call fcn.00475d73
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x41b8c0
Capabilities:
Create thread

Disassembly:
push 0x50bfa4
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp byte [0x50bfbd], 0
mov byte [0x50bfbc], 0
jne 0x41b902
cmp dword [0x50bfa0], 0
je 0x41b902
push 0x50bf9c
push 0
push 0x41b910
call fcn.0048f44d
add esp, 0xc
cmp eax, 0xffffffff
setne byte [0x50bfbd]
push 0x50bfa4
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
ret
Function at 0x41e200
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x228
mov eax, dword [0x503074]
xor eax, esp
mov dword [esp + 0x224], eax
mov eax, dword [ecx + 4]
mov edx, dword [ebp + 8]
or eax, 0x2001f
push esi
push edi
push eax
push edx
push dword [ecx]
mov dword [esp + 0x28], ecx
lea ecx, [esp + 0x18]
mov dword [esp + 0x24], edx
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
call fcn.0041aa70
mov esi, eax
test esi, esi
jne 0x41e2f7
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea eax, [esp + 0x20]
push eax
push esi
push esi
push esi
lea eax, [esp + 0x18]
mov dword [esp + 0x18], 0x100
push eax
lea eax, [esp + 0x3c]
push eax
push esi
push dword [esp + 0x28]
call edi
test eax, eax
jne 0x41e2c9
nop dword [eax]
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x10]
call fcn.0041e200
mov esi, eax
test esi, esi
jne 0x41e2f7
lea eax, [esp + 0x20]
mov dword [esp + 8], 0x100
push eax
push esi
push esi
push esi
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x3c]
push eax
push esi
push dword [esp + 0x28]
call edi
test eax, eax
je 0x41e290
mov eax, dword [esp + 0xc]
test eax, eax
je 0x41e2e0
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0xc], 0
push dword [esp + 0x18]
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x14], 0
call fcn.0041a970
mov esi, eax
mov eax, dword [esp + 0xc]
test eax, eax
je 0x41e306
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x22c]
mov eax, esi
pop edi
pop esi
xor ecx, esp
call fcn.004756da
mov esp, ebp
pop ebp
ret 4
Function at 0x421360
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b0c46
mov eax, dword fs:[0]
push eax
sub esp, 0x42c
mov eax, dword [0x503074]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x428], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x424], eax
mov dword [ebp - 0x438], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x430], ecx
mov dword [ebp - 0x434], 0
mov dword [ebp - 0x420], 0
push 0x60
push 0
mov byte [ebp - 4], 1
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
push esi
call ebx
mov edi, eax
mov dword [ebp - 0x42c], edi
test edi, edi
jne 0x42140c
push 2
push eax
push esi
call ebx
mov edi, eax
mov dword [ebp - 0x42c], eax
test edi, edi
jne 0x42140c
call fcn.0041fc80
mov esi, eax
jmp 0x4214fc
push dword [ebp - 0x424]
push dword [ebp - 0x428]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x42142f
call fcn.0041fc80
jmp 0x4214ef
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
mov dword [ebp - 0x428], ebx
test ebx, ebx
jne 0x42144d
call fcn.0041fc80
jmp 0x4214ef
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
mov dword [ebp - 0x424], esi
lea eax, [esi + 1]
cmp eax, esi
jae 0x42146e
mov esi, 0x8007000e
jmp 0x4214f1
push eax
lea ecx, [ebp - 0x420]
mov byte [ebp - 4], 2
call fcn.0041fc30
jmp 0x421498
mov dword [ebp - 4], 1
cmp dword [ebp - 0x420], 0
jne 0x4214af
mov esi, 0x8007000e
jmp 0x4214f1
push esi
push dword [ebp - 0x420]
push esi
push ebx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
jne 0x4214cf
call fcn.0041fc80
jmp 0x4214ef
mov eax, dword [ebp - 0x420]
xor edx, edx
push dword [ebp + 0x14]
mov word [eax + ecx*2], dx
lea ecx, [ebp - 0x434]
push dword [ebp - 0x420]
call fcn.00421200
mov esi, eax
test edi, edi
je 0x4214fc
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x41c]
cmp dword [ebp - 0x420], eax
je 0x421520
lea ecx, [ebp - 0x420]
call fcn.0041fbe0
nop word [eax + eax]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004756da
mov esp, ebp
pop ebp
ret 0x10
Function at 0x422a70
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4aec57
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x503074]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
push 0x4c965c
push str.ChpqEvntFlag::hpqDeleteFileEventFlag
push 0
call fcn.00422b80
push eax
call fcn.0047bd80
xor esi, esi
add esp, 0x10
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], esi
call fcn.00422b80
mov al, byte [eax + 0x38]
test al, al
je 0x422af6
push 0x28
call fcn.00475970
mov esi, eax
add esp, 4
mov dword [ebp - 0x14], esi
push str.ChpqEvntFlag::hpqDeleteFileEventFlag
mov byte [ebp - 4], 1
call fcn.00422b80
push eax
mov ecx, esi
call fcn.00477bf0
mov esi, eax
mov byte [ebp - 4], 0
mov dword [ebp - 0x10], esi
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x422b05
xor edi, edi
jmp 0x422b2c
mov edi, 0x80004005
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ebx
push str.Failed_to_Delete__s__GetLastError____0x_08X
push str.ChpqEvntFlag::hpqDeleteFileEventFlag
push 2
call fcn.00422b80
push eax
call fcn.0047bd80
add esp, 0x18
push 0x4c965c
push str.ChpqEvntFlag::hpqDeleteFileEventFlag
push 1
call fcn.00422b80
push eax
call fcn.0047bd80
add esp, 0x10
test esi, esi
je 0x422b5c
mov ecx, esi
call fcn.00478c00
push 0x28
push esi
call fcn.00475d73
add esp, 8
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4243f0
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
push esi
push edi
push 0x4c965c
push str.ChpqWmiExModule::RegisterAppId
push 0
call fcn.00422b80
push eax
call fcn.0047bd80
add esp, 0x10
xor esi, esi
call fcn.00422b80
cmp byte [eax + 0x38], 0
je 0x424440
push 0x28
call fcn.00475970
add esp, 4
mov esi, eax
push str.ChpqWmiExModule::RegisterAppId
call fcn.00422b80
push eax
mov ecx, esi
call fcn.00477bf0
mov esi, eax
xor edi, edi
call fcn.00423d50
test eax, eax
jne 0x424476
inc edi
push edi
push str.Uninstall___d_failed__so_will_retry.
push str.ChpqWmiExModule::RegisterAppId
push 2
call fcn.00422b80
push eax
call fcn.0047bd80
add esp, 0x14
cmp edi, 5
jl 0x424442
mov edi, 0x80004005
jmp 0x4245d2
lea eax, [ebp - 0x28]
mov dword [ebp - 0x28], str.APPID
push eax
push 1
mov edx, 0x64
mov dword [ebp - 0x24], str.20ED5D44_3C74_4E20_B62A_4FB59ED919B0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
call fcn.00421540
mov edi, eax
test edi, edi
js 0x4245d2
push 0x20006
push 0x4d004c
push SysReAllocString
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
call fcn.0041aa70
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x42450b
mov ecx, eax
call fcn.00420800
mov edi, eax
push edi
push str.Error_opening_registry._hr:_0x_08lX
push str.ChpqWmiExModule::RegisterAppId
push 2
call fcn.00422b80
push eax
call fcn.0047bd80
add esp, 0x14
jmp 0x4245c8
lea eax, [ebp - 0xc]
mov dword [ebp - 0x18], 0
push eax
lea eax, [ebp - 8]
mov dword [ebp - 0x14], 0
push eax
push 0
push 0x2001f
push 0
push 0
push 0
push str.20ED5D44_3C74_4E20_B62A_4FB59ED919B0
push dword [ebp - 0x24]
mov dword [ebp - 0x10], 0
mov dword [ebp - 8], 0
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x4245ae
mov ebx, dword [ebp - 8]
push str.LocalService
push ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push ecx
push 0x50c040
push str.LocalService
lea ecx, [ebp - 0x18]
call fcn.0041ace0
call fcn.00423420
test eax, eax
jne 0x42459f
mov edi, 0x80004005
push edi
push str.Error_installing_service._hr:_0x_08lX
push str.ChpqWmiExModule::RegisterAppId
push 2
call fcn.00422b80
push eax
call fcn.0047bd80
add esp, 0x14
test ebx, ebx
je 0x4245c2
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call ebx
jmp 0x4245c8
mov ecx, eax
call fcn.00420800
mov edi, eax
push edi
push str.Error_creating_registry_key._hr:_0x_08lX
jmp 0x4244f1
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x4245d2
push eax
call ebx
push edi
push str.hr:_0x_08lX
push str.ChpqWmiExModule::RegisterAppId
push 1
call fcn.00422b80
push eax
call fcn.0047bd80
add esp, 0x14
test esi, esi
je 0x424603
mov ecx, esi
call fcn.00478c00
push 0x28
push esi
call fcn.00475d73
add esp, 8
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x424610
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
push 0x4c965c
push str.ChpqWmiExModule::UnregisterAppId
push 0
call fcn.00422b80
push eax
call fcn.0047bd80
add esp, 0x10
xor esi, esi
call fcn.00422b80
cmp byte [eax + 0x38], 0
je 0x424660
push 0x28
call fcn.00475970
add esp, 4
mov esi, eax
push str.ChpqWmiExModule::UnregisterAppId
call fcn.00422b80
push eax
mov ecx, esi
call fcn.00477bf0
mov esi, eax
call fcn.00423d50
test eax, eax
jne 0x42468e
mov edi, 0x80004005
push edi
push str.Error_UNinstalling_service._hr:_0x_08lX
push str.ChpqWmiExModule::UnregisterAppId
push 2
call fcn.00422b80
push eax
call fcn.0047bd80
add esp, 0x14
jmp 0x424778
push 0x20006
push 0x4d004c
push SysReAllocString
lea ecx, [ebp - 0xc]
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
call fcn.0041aa70
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x4246ed
mov ecx, eax
call fcn.00420800
mov edi, eax
push edi
push str.Error_opening_AppID_registry._hr:_0x_08lX
push str.ChpqWmiExModule::UnregisterAppId
push 2
call fcn.00422b80
push eax
call fcn.0047bd80
add esp, 0x14
jmp 0x42476e
push 0x20006
push str.20ED5D44_3C74_4E20_B62A_4FB59ED919B0
push dword [ebp - 0xc]
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
call fcn.0041aa70
mov ebx, dword [ebp - 0x18]
test eax, eax
je 0x424744
mov ecx, eax
call fcn.00420800
mov edi, eax
push edi
push str.Error_opening_AppID_registry_subkey._hr:_0x_08lX
push str.ChpqWmiExModule::UnregisterAppId
push 2
call fcn.00422b80
push eax
call fcn.0047bd80
add esp, 0x14
jmp 0x424759
push str.LocalService
push ebx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
xor ecx, ecx
call fcn.004300d0
mov edi, eax
test ebx, ebx
je 0x424768
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call ebx
jmp 0x42476e
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x424778
push eax
call ebx
push edi
push str.hr:_0x_08lX
push str.ChpqWmiExModule::UnregisterAppId
push 1
call fcn.00422b80
push eax
call fcn.0047bd80
add esp, 0x14
test esi, esi
je 0x4247a9
mov ecx, esi
call fcn.00478c00
push 0x28
push esi
call fcn.00475d73
add esp, 8
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x426af0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4aec57
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x503074]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
push 0x4c965c
push str.ChpqWmiExModule::ResumeEvents
push 0
call fcn.00422b80
push eax
call fcn.0047bd80
xor esi, esi
add esp, 0x10
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], esi
call fcn.00422b80
mov al, byte [eax + 0x38]
test al, al
je 0x426b76
push 0x28
call fcn.00475970
mov esi, eax
add esp, 4
mov dword [ebp - 0x14], esi
push str.ChpqWmiExModule::ResumeEvents
mov byte [ebp - 4], 1
call fcn.00422b80
push eax
mov ecx, esi
call fcn.00477bf0
mov esi, eax
mov byte [ebp - 4], 0
mov dword [ebp - 0x10], esi
mov edi, 1
test ebx, ebx
jne 0x426ba0
push str.NULL__this._Doing_nothing.
push str.ChpqWmiExModule::ResumeEvents
push 2
call fcn.00422b80
push eax
call fcn.0047bd80
add esp, 0x10
mov edi, 0x80004003
jmp 0x426bbb
call fcn.0041b8c0
push 0
push 0
push ebx
push 0x429b10
push 0
push 0
call fcn.0048f4d9
add esp, 0x18
push edi
push str.hr:_0x_08lX
push str.ChpqWmiExModule::ResumeEvents
push 1
call fcn.00422b80
push eax
call fcn.0047bd80
add esp, 0x14
test esi, esi
je 0x426bec
mov ecx, esi
call fcn.00478c00
push 0x28
push esi
call fcn.00475d73
add esp, 8
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x42a600
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 8
cmp byte [0x50c420], 0
je 0x42a61b
or eax, 0xffffffff
mov esp, ebp
pop ebp
ret 4
mov dword [esp + 4], 0
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea ecx, [esp + 4]
push ecx
push eax
call fcn.00424a70
cmp al, 1
jne 0x42a642
push ecx
call fcn.004251d0
mov dword [esp + 4], eax
cmp dword [0x50c260], 0
jne 0x42a659
cmp byte [0x50c03e], 0
je 0x42a659
call fcn.00427f40
mov eax, dword [esp + 4]
mov esp, ebp
pop ebp
ret 4

Function at 0x42a750
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push 0
push 0
push 0
push 0
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + 0x30], eax
test eax, eax
jne 0x42a771
pop esi
mov esp, ebp
pop ebp
ret
push edi
lea eax, [ebp - 4]
push eax
push 0
push esi
push 0x42ae00
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edi, eax
test edi, edi
jne 0x42a79a
push dword [esi + 0x30]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x30], edi
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x42a840
Capabilities:
Access the windows event log

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x214
mov eax, dword [0x503074]
xor eax, esp
mov dword [esp + 0x210], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp + 0x10]
push eax
push 0
push dword [ebp + 0xc]
lea eax, [esp + 0x14]
push 0xff
push 0x100
push eax
call fcn.0041ca60
push dword [eax + 4]
push dword [eax]
call fcn.0049235d
xor eax, eax
add esp, 0x20
cmp dword [esi + 0x260], 0
mov word [esp + 0x206], ax
lea eax, [esp + 8]
mov dword [esp + 4], eax
jne 0x42a8ac
push eax
call fcn.00492691
add esp, 4
lea eax, [esi + 0x40]
push eax
push 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov esi, eax
test esi, esi
je 0x42a8df
push 0
lea eax, [esp + 8]
push eax
push 0
push 1
push 0
push 0
push 0
push 4
push esi
call dword [sym.imp.ADVAPI32.dll_ReportEventW]
push esi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
mov ecx, dword [esp + 0x214]
pop esi
xor ecx, esp
call fcn.004756da
mov esp, ebp
pop ebp
ret
Function at 0x432e00
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b25c7
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x503074]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 0x4c965c
push str.PMCEvent::KickOffPMCEventThread
push 0
call fcn.00422b80
push eax
call fcn.0047bd80
xor esi, esi
add esp, 0x10
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], esi
call fcn.00422b80
mov al, byte [eax + 0x38]
test al, al
je 0x432e85
push 0x28
call fcn.00475970
mov esi, eax
add esp, 4
mov dword [ebp - 0x14], esi
push str.PMCEvent::KickOffPMCEventThread
mov byte [ebp - 4], 1
call fcn.00422b80
push eax
mov ecx, esi
call fcn.00477bf0
mov esi, eax
mov byte [ebp - 4], 0
mov dword [ebp - 0x10], esi
test edi, edi
jne 0x432ea8
push str.NULL__this._Doing_nothing.
push str.PMCEvent::KickOffPMCEventThread
push 2
call fcn.00422b80
push eax
call fcn.0047bd80
add esp, 0x10
jmp 0x432f3c
mov eax, dword [edi + 0x28]
test eax, eax
je 0x432ecf
cmp dword [edi + 0x40], 0
je 0x432ecf
cmp eax, 0xffffffff
je 0x432ec8
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi + 0x28], 0
mov dword [ebp - 4], 0
cmp dword [edi + 0x28], 0
jne 0x432f3c
lea eax, [edi + 0x2c]
mov dword [edi + 0x40], 0
push eax
push 0
push edi
push 0x433170
push 0
push 0
mov dword [edi + 0x38], 1
call fcn.0048f4d9
add esp, 0x18
mov dword [edi + 0x28], eax
cmp dword [edi + 0x30], 0
jne 0x432f1d
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
xor ecx, ecx
cmp eax, 0xffffffff
cmove eax, ecx
mov dword [edi + 0x30], eax
cmp dword [edi + 0x34], 0
jne 0x432f3c
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
xor ecx, ecx
cmp eax, 0xffffffff
cmove eax, ecx
mov dword [edi + 0x34], eax
push 0x4c965c
push str.PMCEvent::KickOffPMCEventThread
push 1
call fcn.00422b80
push eax
call fcn.0047bd80
add esp, 0x10
test esi, esi
je 0x432f6c
mov ecx, esi
call fcn.00478c00
push 0x28
push esi
call fcn.00475d73
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret