joyce8/EMBER2024-capa huggingface dataset:
Function at 0x448c70
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b4227
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 dword [ebp - 0x14], ecx
mov ebx, dword [ebp + 8]
push ebx
push str.dwWait:__u
push str.WirelessEvent::OnResume
push 0
call fcn.00422b80
push eax
call fcn.0047bd80
xor esi, esi
add esp, 0x14
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], esi
call fcn.00422b80
mov al, byte [eax + 0x38]
test al, al
je 0x448cfb
push 0x28
call fcn.00475970
mov esi, eax
add esp, 4
mov dword [ebp + 8], esi
push str.WirelessEvent::OnResume
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 0xc
call fcn.00475970
mov edi, eax
add esp, 4
xorps xmm0, xmm0
movq qword [edi], xmm0
mov dword [edi + 8], 0
call fcn.0040cd90
mov ecx, eax
test ecx, ecx
jne 0x448d2a
push 0x80004005
call fcn.00402a20
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
lea ecx, [edi + 4]
mov dword [ecx], eax
test edi, edi
jne 0x448d42
mov edi, 0x8007000e
jmp 0x448db2
mov eax, dword [ebp - 0x14]
mov dword [edi], eax
add eax, 0x40
push eax
call fcn.0040ca50
lea eax, [ebp + 8]
mov dword [edi + 8], ebx
push eax
push 0
push edi
push 0x445980
push 0
push 0
mov dword [ebp + 8], 0
call fcn.0048f4d9
add esp, 0x18
mov edi, eax
push dword [ebp + 8]
push edi
push str._beginthreadex_returns_hThread:_0x_08X__uThreadId:__u
push str.WirelessEvent::OnResume
push 2
call fcn.00422b80
push eax
call fcn.0047bd80
add esp, 0x18
test edi, edi
je 0x448dad
cmp edi, 0xffffffff
je 0x448dad
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], 0
xor edi, edi
jmp 0x448db2
mov edi, 0x80004029
push edi
push str.hr:_0x_08lX
push str.WirelessEvent::OnResume
push 1
call fcn.00422b80
push eax
call fcn.0047bd80
add esp, 0x14
test esi, esi
je 0x448de3
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 4
Function at 0x460d30
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b0166
mov eax, dword fs:[0]
push eax
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 8
mov dword [edi], vtable.std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__.0
call fcn.00475970
mov esi, eax
push 1
mov dword [ebp - 4], 0
call fcn.004728d5
mov dword [esi + 4], eax
lea ecx, [edi + 8]
lea eax, [edi + 4]
mov dword [edi + 0x34], esi
mov dword [edi + 0xc], eax
add esp, 8
lea eax, [edi + 0x14]
mov dword [edi + 0x10], ecx
mov dword [edi + 0x1c], eax
lea eax, [edi + 0x18]
mov dword [edi + 0x20], eax
lea eax, [edi + 0x24]
mov dword [edi + 0x2c], eax
lea eax, [edi + 0x28]
mov dword [edi + 0x30], eax
mov dword [ecx], 0
mov eax, dword [edi + 0x20]
mov dword [eax], 0
mov eax, dword [edi + 0x30]
mov dword [eax], 0
mov eax, dword [edi + 0xc]
mov dword [eax], 0
mov eax, dword [edi + 0x1c]
mov dword [eax], 0
mov eax, dword [edi + 0x2c]
mov dword [eax], 0
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 0x4796a0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0x410
cmp dword [eax + 0x14], 8
jb 0x4796b4
mov eax, dword [eax]
push 0
push 0
push 0
push 0
push 0x100
lea ecx, [ebp - 0x208]
push ecx
push 3
lea ecx, [ebp - 8]
push ecx
push eax
call fcn.00492de2
add esp, 0x24
test eax, eax
jne 0x47971a
push eax
push eax
lea eax, [ebp - 0x208]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x410]
push 0x104
push eax
call fcn.0049cde7
add esp, 0x18
test eax, eax
jne 0x47971a
push eax
lea eax, [ebp - 0x410]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
xor ecx, ecx
cmp eax, 0xb7
cmove eax, ecx
mov esp, ebp
pop ebp
ret
Function at 0x479a90
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4b82d8
push eax
mov dword fs:[0], esp
sub esp, 0x20
push esi
mov esi, ecx
cmp dword [esi + 0x218], 0xffffffff
jne 0x479ba9
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 4
test eax, eax
je 0x479ad6
cmp word [eax], 0
jne 0x479adb
mov eax, str.MaxLogSize
push eax
lea ecx, [ebp - 0x2c]
call fcn.0041c410
mov dword [ebp - 4], 0
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x479b2d
cmp dword [ebp - 0x18], 8
lea edx, [ebp - 0x14]
push edx
lea edx, [ebp - 0x10]
mov dword [ebp + 0x10], 0
push edx
lea edx, [ebp + 0x10]
push edx
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x479b2d
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x479b2d
mov dword [esi + 0x218], eax
jmp 0x479b79
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x479b6f
cmp dword [ebp - 0x18], 8
lea edx, [ebp - 0x14]
push edx
lea edx, [ebp - 0x10]
mov dword [ebp + 0x10], 0
push edx
lea edx, [ebp + 0x10]
push edx
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x479b6f
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x479b6f
mov dword [esi + 0x218], eax
jmp 0x479b79
mov dword [esi + 0x218], 0x800
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x18]
cmp eax, 8
jb 0x479b95
inc eax
lea ecx, [ebp - 0x2c]
push eax
push dword [ebp - 0x2c]
call fcn.00402920
xor eax, eax
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x2c], ax
mov eax, dword [esi + 0x218]
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x479cd0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b8321
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push ebx
push esi
mov dword [ebp - 4], 0
xor eax, eax
mov dword [ebp - 0x18], 0
mov esi, dword [ebp + 8]
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov word [esi], ax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x1c]
push eax
push dword [ebp + 0xc]
mov dword [ebp - 0x18], 1
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
je 0x479e16
push edi
push ebx
call fcn.00475bfe
mov edi, eax
add esp, 4
mov dword [ebp - 0x20], edi
mov dword [ebp - 4], 1
test edi, edi
je 0x479df2
push edi
push ebx
push dword [ebp - 0x1c]
push dword [ebp + 0xc]
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x479df2
lea eax, [ebp - 0x10]
mov dword [ebp - 0x14], 0
push eax
lea eax, [ebp - 0x14]
mov dword [ebp - 0x10], 0
push eax
push str.StringFileInfo040904E4ProductName
push edi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x479da2
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x479da2
push eax
push dword [ebp - 0x14]
lea ecx, [ebp - 0x38]
call fcn.00474c1d
mov byte [ebp - 4], 2
jmp 0x479dde
lea eax, [ebp - 0x10]
mov dword [ebp - 0x14], 0
push eax
lea eax, [ebp - 0x14]
mov dword [ebp - 0x10], 0
push eax
push str.StringFileInfo040904B0ProductName
push edi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x479df2
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x479df2
push eax
push dword [ebp - 0x14]
lea ecx, [ebp - 0x38]
call fcn.00474c1d
mov byte [ebp - 4], 3
push eax
mov ecx, esi
call fcn.0044d150
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x38]
call fcn.004029a0
mov byte [ebp - 4], 0
test edi, edi
je 0x479e03
push edi
call fcn.00475c07
add esp, 4
pop edi
mov eax, esi
pop esi
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x47ace0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
lea eax, [ebp - 0x40]
push ebx
push esi
push 0x40
push 0
push eax
mov esi, ecx
xor bl, bl
call fcn.0048b3f0
push dword [esi + 0x224]
lea eax, [ebp - 0x40]
push 0x18
push 2
push eax
call fcn.0049d3d9
add esp, 0x1c
test eax, eax
je 0x47ad54
cmp word [ebp - 0x38], 0x2f
jne 0x47ad4c
cmp word [ebp - 0x32], 0x2f
jne 0x47ad4c
cmp word [ebp - 0x2c], 0x20
jne 0x47ad4c
cmp word [ebp - 0x26], 0x3a
jne 0x47ad4c
cmp word [ebp - 0x20], 0x3a
jne 0x47ad4c
cmp word [ebp - 0x1a], 0x2e
jne 0x47ad4c
cmp word [ebp - 0x12], 0x7c
jne 0x47ad4c
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
push dword [esi + 0x224]
call fcn.0049cffb
add esp, 4
movzx ecx, bl
test eax, eax
mov edx, 1
cmovne ecx, edx
pop esi
mov al, cl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x47aef0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
cmp word [esi + 0x10], 0
je 0x47af33
mov ecx, dword [esi + 0x230]
test ecx, ecx
je 0x47af17
cmp byte [esi + 0x220], 0
je 0x47af17
pop esi
pop ebp
jmp fcn.0047b3b0
mov ecx, esi
call fcn.0047ad80
test eax, eax
je 0x47af33
push dword [ebp + 8]
mov ecx, esi
call fcn.0047bf00
mov ecx, esi
call fcn.00479650
pop esi
pop ebp
ret 4

Function at 0x47b820
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
cmp dword [ebp + 8], 0
je 0x47b8ac
push 0x200
lea eax, [ebp - 0x208]
push 0
push eax
call fcn.0048b3f0
add esp, 0xc
mov dword [ebp - 8], 0x100
lea eax, [ebp - 8]
mov dword [ebp - 4], 0
push eax
lea eax, [ebp - 0x208]
push eax
lea eax, [ebp - 4]
push eax
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x47b8ac
cmp dword [ebp - 4], 1
jne 0x47b8ac
lea ecx, [ebp - 0x208]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x47b883
sub ecx, edx
sar ecx, 1
je 0x47b8ac
mov ecx, dword [ebp + 0x10]
lea eax, [ebp - 0x208]
push eax
call fcn.0041bc30
mov eax, 1
mov esp, ebp
pop ebp
ret
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x47bf00
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, ecx
cmp dword [edi + 0x224], 0
je 0x47bfaa
mov eax, dword [edi + 0x218]
mov edx, dword [edi + 0x21c]
lea ecx, [eax + eax*4]
add ecx, ecx
lea eax, [edx + 1]
mov dword [edi + 0x21c], eax
cmp edx, ecx
jle 0x47bf5b
push 0
mov ecx, edi
call fcn.00479e30
test al, al
je 0x47bf4a
mov dword [edi + 0x21c], 0
jmp 0x47bf5b
mov eax, dword [edi + 0x21c]
cdq
sub eax, edx
sar eax, 1
mov dword [edi + 0x21c], eax
mov ecx, dword [ebp + 8]
push ebx
push esi
call fcn.004797a0
mov ecx, dword [ebp + 8]
mov ebx, dword [eax + 0x10]
call fcn.004797a0
cmp dword [eax + 0x14], 8
jb 0x47bf78
mov eax, dword [eax]
push dword [edi + 0x224]
push ebx
push 2
push eax
call fcn.0049d742
push dword [edi + 0x224]
mov esi, eax
push 1
push 2
push dword [0x5030cc]
call fcn.0049d742
add esp, 0x20
add eax, esi
pop esi
pop ebx
pop edi
pop ebp
ret 4
xor eax, eax
pop edi
pop ebp
ret 4
Function at 0x481a40
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4b8f5c
push eax
mov dword fs:[0], esp
sub esp, 0x208
mov eax, dword fs:[0x2c]
mov ecx, dword [0x509308]
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x50936c]
cmp eax, dword [ecx + 4]
jle 0x481ac4
push 0x50936c
call fcn.00475ad7
add esp, 4
cmp dword [0x50936c], 0xffffffff
jne 0x481ac4
mov dword [ebp - 4], 0
mov ecx, 0x509354
push 0x4c965c
call fcn.0041c410
push 0x4bad00
call fcn.0047595b
mov dword [ebp - 4], 0xffffffff
push 0x50936c
call fcn.00475a98
add esp, 8
push esi
xor esi, esi
cmp dword [0x509364], esi
jne 0x481bce
push 0x208
lea eax, [ebp - 0x214]
push esi
push eax
call fcn.0048b3f0
add esp, 0xc
lea eax, [ebp - 0x214]
cmp dword [0x5093d0], esi
mov ecx, str._ProgramFiles_
push 0x103
push eax
mov eax, 0x4bf840
cmove eax, ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x481bb9
cmp word [ebp - 0x214], si
jne 0x481b23
xor ecx, ecx
jmp 0x481b3f
lea ecx, [ebp - 0x214]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x481b30
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x214]
mov ecx, 0x509354
push eax
call fcn.00402730
mov eax, dword [0x509364]
test eax, eax
je 0x481bb2
cmp word [ebp + eax*2 - 0x216], 0x5c
je 0x481b74
push 0x4ce720
mov ecx, 0x509354
call fcn.00471ba0
push 0x4da930
mov ecx, 0x509354
call fcn.00471ba0
push 0x4ce720
mov ecx, 0x509354
call fcn.00471ba0
push str.Shared
mov ecx, 0x509354
call fcn.00471ba0
push 0x4ce720
mov ecx, 0x509354
call fcn.00471ba0
jmp 0x481bce
mov esi, 0x80004005
jmp 0x481bce
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x481bce
movzx esi, si
or esi, 0x80070000
mov ecx, dword [ebp + 8]
cmp ecx, 0x509354
je 0x481be7
push 0xffffffffffffffff
push 0
push 0x509354
call fcn.004023c0
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x481f50
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b8fa0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x84
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
xor bl, bl
mov byte [ebp - 0x11], bl
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x20], 0xffffffff
lea eax, [ebp - 0x90]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x2c], 0
mov word [ebp - 0x28], 0x500
lea eax, [ebp - 0x20]
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x482095
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x18]
push 0
push 2
push dword [ebp - 0x20]
mov esi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
call esi
test eax, eax
jne 0x482095
push dword [ebp - 0x18]
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
mov dword [ebp - 0x24], edi
test edi, edi
je 0x482095
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x18]
push edi
push 2
push dword [ebp - 0x20]
call esi
test eax, eax
je 0x482095
lea eax, [ebp - 0x1c]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push dword [ebp + 8]
push 0x20
push 2
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x482051
xor esi, esi
cmp dword [edi], esi
jbe 0x482054
add edi, 4
push dword [edi]
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x48204f
inc esi
add edi, 8
mov eax, dword [ebp - 0x24]
cmp esi, dword [eax]
jb 0x482033
jmp 0x482054
mov bl, 1
mov byte [ebp - 0x11], bl
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x482070
push eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov dword [ebp - 0x1c], 0
mov dword [ebp - 4], 0xffffffff
jmp 0x482089
lea eax, [ebp - 0x24]
push eax
call fcn.00481cd0
add esp, 4
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4850e0
Capabilities:
Get uefi variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80
push edi
xor edi, edi
push edi
push 2
push 6
call fcn.0047fcf0
add esp, 0xc
test al, al
jne 0x485116
cmp dword [0x5093d0], edi
je 0x485162
push edi
push 1
push 6
call fcn.0047fcf0
add esp, 0xc
test al, al
je 0x485162
push esi
push 0x80
lea eax, [ebp - 0x80]
push 0
push eax
call fcn.0048b3f0
add esp, 0xc
lea eax, [ebp - 0x80]
push 0x80
push eax
push str.00000000_0000_0000_0000_000000000000
push 0x4c965c
call dword [sym.imp.KERNEL32.dll_GetFirmwareEnvironmentVariableW]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
test esi, esi
pop esi
jne 0x485155
cmp eax, 1
je 0x485162
cmp eax, 0x3e6
mov ecx, 1
cmove edi, ecx
mov eax, edi
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x485cf0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b974f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push esi
push edi
push 0x4c965c
xor edi, edi
push str.HP::Shared::ChpqwmiexClient::GetRegImagePath
push edi
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 0x485d72
push 0x28
call fcn.00475970
mov esi, eax
add esp, 4
mov dword [ebp - 0x14], esi
mov byte [ebp - 4], 1
test esi, esi
je 0x485d69
push str.HP::Shared::ChpqwmiexClient::GetRegImagePath
call fcn.00422b80
push eax
mov ecx, esi
call fcn.00477bf0
mov esi, eax
jmp 0x485d6b
xor esi, esi
mov byte [ebp - 4], 0
mov dword [ebp - 0x10], esi
cmp dword [ebp + 8], 0
push ebx
je 0x485e40
mov ebx, dword [ebp + 0xc]
test ebx, ebx
je 0x485e60
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x20]
push 0x20019
push str.SYSTEMCurrentControlSet_serviceshpqcaslwmiex
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.0041aa70
test eax, eax
mov eax, dword [ebp - 0x20]
jne 0x485e1f
mov ecx, dword [ebp + 8]
mov dword [ebp + 8], ecx
lea ecx, [ebp + 8]
push ecx
push ebx
lea ecx, [ebp + 0xc]
mov dword [ebp + 0xc], 2
push ecx
push 0
push str.ImagePath
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x485e09
push eax
push str.Error_reading_ImagePath_value:_0x_08lx.
push str.HP::Shared::ChpqwmiexClient::GetRegImagePath
push 2
xor edi, edi
call fcn.00422b80
push eax
call fcn.0047bd80
mov eax, dword [ebp - 0x20]
add esp, 0x14
jmp 0x485e21
push 0x4df318
push ebx
call dword [sym.imp.SHLWAPI.dll_StrTrimW]
mov eax, dword [ebp - 0x20]
mov edi, 1
jmp 0x485e21
xor edi, edi
mov byte [ebp - 4], 0
test eax, eax
je 0x485e37
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
jmp 0x485e7a
push str.Invalid_parameter:_ulBytes_is_zero.
push str.HP::Shared::ChpqwmiexClient::GetRegImagePath
push 2
call fcn.00422b80
push eax
call fcn.0047bd80
add esp, 0x10
cmp dword [ebp + 0xc], 0
jne 0x485e7a
push str.Invalid_parameter:_pszImagePath_is_nullptr.
push str.HP::Shared::ChpqwmiexClient::GetRegImagePath
push 2
call fcn.00422b80
push eax
call fcn.0047bd80
add esp, 0x10
push 0x4c965c
push str.HP::Shared::ChpqwmiexClient::GetRegImagePath
push 1
call fcn.00422b80
push eax
call fcn.0047bd80
add esp, 0x10
mov dword [ebp - 4], 0xffffffff
pop ebx
test esi, esi
je 0x485eb2
mov ecx, esi
call fcn.00478c00
push 0x28
push esi
call fcn.00475d73
add esp, 8
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8
Function at 0x487300
Capabilities:
Create new key via cryptacquirecontext

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4b9958
push eax
mov eax, dword [ebp + 8]
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, ecx
lea ebx, [edi + 8]
mov dword [ebx], 0
mov dword [edi], eax
mov eax, dword [ebp + 0xc]
mov dword [edi + 4], eax
cmp dword [esi + 0x14], 8
jb 0x487341
mov eax, dword [esi]
jmp 0x487343
mov eax, esi
push 0x10
push 0x18
push 0x4c0270
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
cmp dword [esi + 0x14], 8
jb 0x48735c
mov esi, dword [esi]
push 8
push 0x18
push 0x4c0270
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x4873d5
push 0x21
mov dword [ebp - 0x14], eax
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x10], eax
push str.Error_during_CryptAcquireContext.
mov dword [ebx], eax
mov dword [ebp - 0x10], 0xf
mov dword [ebp - 0x14], eax
mov byte [ebp - 0x24], al
call fcn.004685a0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x24]
push eax
mov ecx, edi
call fcn.00487760
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
cmp eax, 0x10
jb 0x4873c3
inc eax
lea ecx, [ebp - 0x24]
push eax
push dword [ebp - 0x24]
call fcn.00468a80
mov dword [ebp - 0x10], 0xf
mov dword [ebp - 0x14], 0
mov byte [ebp - 0x24], 0
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x488780
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4b9c28
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push ebx
mov ebx, ecx
cmp dword [ebx + 0x38], 0
je 0x4888f2
cmp byte [ebx + 0x3d], 0
je 0x4888f2
mov eax, dword [ebx]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
jne 0x4887cf
xor al, al
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
mov ecx, 0xf
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x14], ecx
lea eax, [ebp - 0x28]
mov byte [ebp - 0x28], 0
xorps xmm0, xmm0
cmp ecx, 0x10
movq qword [ebp - 0x28], xmm0
mov dword [ebp - 0x18], 0
cmovae eax, dword [ebp - 0x28]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x18], 8
mov byte [eax + 8], 0
mov dword [ebp - 4], 0
push esi
push edi
mov edx, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x14]
nop dword [eax]
cmp ecx, 0x10
lea eax, [ebp - 0x10]
mov ecx, dword [ebx + 0x38]
lea edi, [ebp - 0x28]
push eax
mov eax, dword [ebp - 0x18]
lea esi, [ebp - 0x28]
cmovae edi, edx
cmovae esi, edx
mov edx, dword [ecx]
add eax, edi
push eax
push esi
lea eax, [ebx + 0x40]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x488859
sub eax, 1
je 0x48885d
sub eax, 2
je 0x4888af
xor bl, bl
jmp 0x4888b1
mov byte [ebx + 0x3d], 0
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x28]
mov edx, dword [ebp - 0x28]
cmp ecx, 0x10
mov esi, dword [ebp - 0x10]
cmovae eax, edx
sub esi, eax
je 0x488895
push dword [ebx + 0x4c]
cmp ecx, 0x10
lea eax, [ebp - 0x28]
push esi
cmovae eax, edx
push 1
push eax
call fcn.0049d742
add esp, 0x10
cmp esi, eax
jne 0x488855
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x28]
cmp byte [ebx + 0x3d], 0
je 0x4888af
test esi, esi
jne 0x488820
push esi
push 8
lea ecx, [ebp - 0x28]
call fcn.00468960
jmp 0x488816
mov bl, 1
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
pop edi
pop esi
cmp eax, 0x10
jb 0x4888cf
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00468a80
mov al, bl
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0xc]
mov al, 1
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x4a8d5d
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004a8a20

Function at 0x4a8d68
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004a8ba1

Function at 0x4ad08c
Capabilities:
Write file on windows

Disassembly:
push 0x20
mov eax, 0x4b9d55
call fcn.00476262
mov ebx, ecx
cmp dword [ebx + 0x38], 0
je 0x4ad1a9
cmp byte [ebx + 0x3e], 0
je 0x4ad1a9
mov eax, dword [ebx]
mov edi, 0xffff
push edi
mov esi, dword [eax + 0xc]
mov ecx, esi
call fcn.00476202
mov ecx, ebx
call esi
movzx eax, ax
cmp di, ax
sete al
test al, al
je 0x4ad0d8
xor al, al
jmp 0x4ad1ab
xor eax, eax
mov dword [ebp - 0x14], 0xf
push eax
push 8
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], eax
mov byte [ebp - 0x28], al
call fcn.00473e92
and dword [ebp - 4], 0
mov ecx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x14]
mov edx, ecx
cmp eax, 0x10
jae 0x4ad108
lea edx, [ebp - 0x28]
mov ecx, edx
mov edi, dword [ebx + 0x38]
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [ebp - 0x18]
add eax, edx
mov esi, dword [edi]
push eax
push ecx
lea eax, [ebx + 0x40]
mov ecx, dword [esi + 0x20]
push eax
call fcn.00476202
mov ecx, edi
call dword [esi + 0x20]
sub eax, 0
je 0x4ad13d
sub eax, 1
je 0x4ad141
dec eax
sub eax, 1
je 0x4ad197
xor bl, bl
jmp 0x4ad199
mov byte [ebx + 0x3e], 0
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x28]
mov edx, ecx
cmp eax, 0x10
jae 0x4ad151
lea edx, [ebp - 0x28]
mov esi, dword [ebp - 0x2c]
sub esi, edx
je 0x4ad179
cmp eax, 0x10
jae 0x4ad160
lea ecx, [ebp - 0x28]
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call fcn.0049d742
add esp, 0x10
cmp esi, eax
jne 0x4ad139
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x28]
cmp byte [ebx + 0x3e], 0
je 0x4ad197
test esi, esi
jne 0x4ad0fc
push esi
push 8
lea ecx, [ebp - 0x28]
call fcn.00468960
jmp 0x4ad0f6
mov bl, 1
push 0
push 1
lea ecx, [ebp - 0x28]
call fcn.00468ad0
mov al, bl
jmp 0x4ad1ab
mov al, 1
call fcn.0047621d
ret