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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
cmp dword [0x501e48], 0xffffffff
jne 0x43c72d
push ebx
push edi
push 4
pop eax
mov dword [ebp - 0x10], eax
xor edi, edi
mov dword [ebp - 0xc], eax
mov ebx, 0x20019
lea eax, [ebp - 4]
mov dword [0x501e48], edi
push eax
push ebx
push edi
push str.SOFTWAREMicrosoftNET_Framework_SetupNDP_v2.0.50727
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x43c6f8
lea eax, [ebp - 4]
push eax
push ebx
push edi
push str.SOFTWAREWow6432NodeMicrosoftNET_Framework_SetupNDP_v2.0.50727
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x43c72b
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
push edi
push str.Install
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x43c722
inc eax
cmp dword [ebp - 8], eax
jne 0x43c722
mov dword [0x501e48], eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop ebx
mov eax, dword [0x501e48]
leave
ret

Function at 0x43c734
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
cmp dword [0x501e50], 0xffffffff
jne 0x43c7f7
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, 0x20019
push edi
push 4
pop eax
mov dword [ebp - 0x10], eax
xor edi, edi
mov dword [ebp - 0xc], eax
lea eax, [ebp - 4]
push eax
push ebx
push edi
push str.SOFTWAREMicrosoftNET_Framework_SetupNDP_v4Client
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [0x501e50], edi
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
call esi
test eax, eax
je 0x43c798
lea eax, [ebp - 4]
push eax
push ebx
push edi
push str.SOFTWAREMicrosoftNET_Framework_SetupNDP_v4Full
push reloc.OLEAUT32.dll_SysReAllocString
call esi
test eax, eax
jne 0x43c7f4
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
push edi
push str.Install
push dword [ebp - 4]
call esi
test eax, eax
jne 0x43c7eb
xor ebx, ebx
inc ebx
cmp dword [ebp - 8], ebx
jne 0x43c7eb
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
push edi
push str.Release
push dword [ebp - 4]
call esi
test eax, eax
jne 0x43c7eb
cmp dword [ebp - 8], 0x80ea8
jb 0x43c7eb
mov dword [0x501e50], ebx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebx
mov eax, dword [0x501e50]
leave
ret
Function at 0x43c7fe
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
cmp dword [0x501e4c], 0xffffffff
jne 0x43c8c4
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, 0x20019
push edi
push 4
pop eax
mov dword [ebp - 0x10], eax
xor edi, edi
mov dword [ebp - 0xc], eax
lea eax, [ebp - 4]
push eax
push ebx
push edi
push str.SOFTWAREMicrosoftNET_Framework_SetupNDP_v4Client
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [0x501e4c], edi
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
call esi
test eax, eax
je 0x43c88e
lea eax, [ebp - 4]
push eax
push ebx
push edi
push str.SOFTWAREMicrosoftNET_Framework_SetupNDP_v4Full
push reloc.OLEAUT32.dll_SysReAllocString
call esi
test eax, eax
je 0x43c88e
lea eax, [ebp - 4]
push eax
push ebx
push edi
push str.SOFTWAREWOW6432NodeMicrosoftNET_Framework_SetupNDP_v4Client
push reloc.OLEAUT32.dll_SysReAllocString
call esi
test eax, eax
je 0x43c88e
lea eax, [ebp - 4]
push eax
push ebx
push edi
push str.SOFTWAREWOW6432NodeMicrosoftNET_Framework_SetupNDP_v4Full
push reloc.OLEAUT32.dll_SysReAllocString
call esi
test eax, eax
jne 0x43c8c1
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
push edi
push str.Install
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x43c8b8
inc eax
cmp dword [ebp - 8], eax
jne 0x43c8b8
mov dword [0x501e4c], eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebx
mov eax, dword [0x501e4c]
leave
ret

Function at 0x43c975
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x114
mov eax, 0x4bdde1
call fcn.0048f706
mov eax, dword [0x501e58]
xor esi, esi
cmp eax, 0xffffffff
jne 0x43c9bb
push esi
push 1
push 5
call fcn.0043cb2e
add esp, 0xc
test eax, eax
je 0x43c9b4
push esi
push esi
push 6
call fcn.0043cb2e
add esp, 0xc
test eax, eax
jne 0x43c9b4
inc eax
jmp 0x43c9b6
mov eax, esi
mov dword [0x501e58], eax
test eax, eax
je 0x43caa1
mov eax, 0x100
mov dword [ebp - 0x120], 4
push eax
mov dword [ebp - 0x11c], eax
lea eax, [ebp - 0x110]
push esi
push eax
mov dword [ebp - 0x114], esi
call fcn.00490cd0
add esp, 0xc
lea ecx, [ebp - 0x118]
call fcn.004026b1
mov dword [ebp - 4], esi
lea eax, [ebp - 0x114]
push eax
push 0x20019
push esi
push str.SoftwareMicrosoftWindowsCurrentVersionThemeManager_
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x43ca8d
lea eax, [ebp - 0x11c]
push eax
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x120]
push eax
push esi
push str.ThemeActive
push dword [ebp - 0x114]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x43ca81
lea eax, [ebp - 0x110]
push eax
call fcn.00494153
pop ecx
push eax
lea eax, [ebp - 0x110]
push eax
lea ecx, [ebp - 0x118]
call fcn.00402053
push esi
push 0x4c76b4
lea ecx, [ebp - 0x118]
call fcn.00407548
test eax, eax
jne 0x43ca81
xor esi, esi
inc esi
push dword [ebp - 0x114]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x118]
add ecx, 0xfffffff0
call fcn.00401fe9
mov eax, esi
call fcn.0048f6b5
ret
Function at 0x43ed25
Capabilities:
Delete file

Disassembly:
push 8
mov eax, 0x4be203
call fcn.0048f6d3
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword fs:[0x2c]
mov ecx, dword [0x50e854]
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x5056f4]
cmp eax, dword [ecx + 4]
jg 0x43ee80
lea ecx, [ebp - 0x10]
call fcn.004026b1
mov byte [ebp - 4], 2
call fcn.0043f18d
sub eax, dword [0x5056f0]
push eax
lea eax, [ebp - 0x10]
push 0x4d5b54
push eax
call fcn.00402a35
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x10]
add esp, 0xc
push dword [eax - 0xc]
push eax
call fcn.004029a9
mov esi, 0x4c93d0
push esi
call fcn.00494153
pop ecx
push eax
push esi
lea ecx, [ebp - 0x10]
call fcn.004029a9
push 0x4c5940
push 0x4d5b60
lea ecx, [ebp - 0x10]
call fcn.00408d85
cmp dword [0x501e68], 0
mov esi, 0x5054e8
je 0x43ee01
mov edi, 0x104
push edi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0x2e
push esi
call fcn.004911e0
pop ecx
pop ecx
test eax, eax
je 0x43edf4
push 0x4d5b64
xor ecx, ecx
push edi
push esi
mov word [eax], cx
call fcn.0049c79c
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [0x501e68], ebx
cmp dword [0x5054e0], 0
jne 0x43ee0c
jmp 0x43ee5d
push 0x4d5b70
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], ebx
push esi
push eax
call fcn.004a038c
add esp, 0xc
cmp dword [ebp - 0x14], 0
je 0x43ee4a
push dword [ebp - 0x10]
push 0x4c6a74
push dword [ebp - 0x14]
call fcn.0043f317
push dword [ebp - 0x14]
call fcn.004a0838
push dword [ebp - 0x14]
call fcn.004a04f8
add esp, 0x14
cmp dword [0x5054e0], 2
jne 0x43ee5d
push ebx
push ebx
push dword [ebp - 0x10]
call fcn.0046dcdc
mov byte [ebp - 4], bl
mov ecx, dword [ebp - 0x10]
lea ecx, [ecx - 0x10]
call fcn.00401fe9
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp + 8]
lea ecx, [ecx - 0x10]
call fcn.00401fe9
call fcn.0048f6a1
ret
mov esi, 0x5056f4
push esi
call fcn.0048f36c
cmp dword [0x5056f4], 0xffffffff
pop ecx
jne 0x43ed56
mov byte [ebp - 4], 1
call fcn.0043f18d
mov dword [0x5056f0], eax
mov byte [ebp - 4], bl
push esi
call fcn.0048f322
pop ecx
jmp 0x43ed56
Function at 0x43eeb6
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x248
mov eax, dword [0x50254c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
lea eax, [ebp - 0x238]
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
push 0x34
push edi
push eax
mov dword [ebp - 0x248], edi
call fcn.00490cd0
push 0x200
lea eax, [ebp - 0x204]
mov dword [ebp - 0x23c], edi
push edi
push eax
mov dword [ebp - 0x244], edi
call fcn.00490cd0
add esp, 0x18
lea eax, [ebp - 0x248]
push eax
push esi
call sub.VERSION.dll_GetFileVersionInfoSizeW
xor ecx, ecx
mov dword [ebp - 0x240], eax
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004625c1
pop ecx
mov edi, eax
push edi
push dword [ebp - 0x240]
push 0
push esi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x43f01c
lea eax, [ebp - 0x240]
push eax
lea eax, [ebp - 0x23c]
push eax
push 0x4c6744
push edi
call sub.VERSION.dll_VerQueryValueW
push 0x34
push dword [ebp - 0x23c]
lea eax, [ebp - 0x238]
push eax
call fcn.00490750
add esp, 0xc
lea eax, [ebp - 0x240]
push eax
lea eax, [ebp - 0x23c]
push eax
push str.VarFileInfoTranslation
push edi
call sub.VERSION.dll_VerQueryValueW
push 4
push dword [ebp - 0x23c]
lea eax, [ebp - 0x244]
push eax
call fcn.00490750
mov ecx, dword [ebp - 0x244]
mov eax, ecx
push 0x4d5bac
shr eax, 0x10
push eax
movzx eax, cx
push eax
lea eax, [ebp - 0x204]
push str.StringFileInfo_04X_04X_s
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x20
lea eax, [ebp - 0x240]
push eax
lea eax, [ebp - 0x23c]
push eax
lea eax, [ebp - 0x204]
push eax
push edi
call sub.VERSION.dll_VerQueryValueW
push dword [ebp - 0x23c]
mov esi, 0x100
lea eax, [ebp - 0x204]
push esi
push eax
call fcn.00499f89
add esp, 0xc
test ebx, ebx
je 0x43f01c
push dword [ebp - 0x23c]
push esi
push ebx
call fcn.00499f89
add esp, 0xc
push edi
call fcn.004625bc
lea eax, [ebp - 0x204]
mov dword [esp], 0x4c5940
push eax
call fcn.004944db
pop ecx
pop ecx
pop edi
pop esi
pop ebx
test eax, eax
je 0x43f058
lea eax, [ebp - 0x204]
push eax
call fcn.004a0242
fmul qword [0x4cc850]
pop ecx
call fcn.0048f990
jmp 0x43f05a
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0048f693
leave
ret

Function at 0x43f066
Capabilities:
Read .ini file

Disassembly:
push 4
mov eax, 0x4b45cb
call fcn.0048f6d3
push dword [ebp + 0xc]
lea ecx, [ebp - 0x10]
call fcn.004012a3
and dword [ebp - 4], 0
lea ecx, [ebp - 0x10]
push str._3D
push 0x4d5c20
call fcn.00408d85
push 0x4d5c24
push 0x4cf840
lea ecx, [ebp - 0x10]
call fcn.00408d85
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp - 0x10]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov esi, eax
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.00401fe9
mov eax, esi
call fcn.0048f6a1
ret
Function at 0x43f0d0
Capabilities:
Read .ini file

Disassembly:
push 8
mov eax, 0x4be245
call fcn.0048f6d3
push dword [ebp + 0xc]
lea ecx, [ebp - 0x14]
call fcn.004012a3
and dword [ebp - 4], 0
mov ebx, 0x4d5c20
push str._3D
push ebx
lea ecx, [ebp - 0x14]
call fcn.00408d85
push 0x4d5c24
mov edi, 0x4cf840
lea ecx, [ebp - 0x14]
push edi
call fcn.00408d85
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp - 0x14]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push dword [ebp + 0x14]
lea ecx, [ebp - 0x10]
mov esi, eax
call fcn.004012a3
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x10]
push ebx
push str._3D
call fcn.00408d85
push edi
push 0x4d5c24
lea ecx, [ebp - 0x10]
call fcn.00408d85
push dword [ebp - 0x10]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.00499f89
add esp, 0xc
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x10]
lea ecx, [ecx - 0x10]
call fcn.00401fe9
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.00401fe9
mov eax, esi
call fcn.0048f6a1
ret
Function at 0x44de2d
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4bff97
mov eax, dword fs:[0]
push eax
mov eax, 0x1040
call fcn.0048f7d0
mov eax, dword [0x50254c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x18]
lea ecx, [ebp - 0x1048]
mov ebx, dword [ebp + 0x14]
mov dword [ebp - 0x104c], eax
call fcn.004026b1
xor edi, edi
mov dword [ebp - 4], edi
lea eax, [ebp - 0x1048]
push dword [ebp + 8]
push str..PhysicalDrive_d
push eax
call fcn.00402a35
add esp, 0xc
push edi
push 0x80
push 3
push edi
push 3
push 0xc0000000
push dword [ebp - 0x1048]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push 0x1030
mov esi, eax
lea eax, [ebp - 0x1040]
push edi
push eax
call fcn.00490cd0
add esp, 0xc
mov dword [ebp - 0x1030], edi
xor eax, eax
mov dword [ebp - 0x103c], edi
inc eax
mov dword [ebp - 0x1044], edi
mov dword [ebp - 0x1034], eax
mov ecx, 0x1030
push edi
mov edi, dword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov dword [ebp - 0x102c], eax
lea eax, [ebp - 0x1044]
push eax
push ecx
lea eax, [ebp - 0x1040]
mov dword [ebp - 0x1038], 3
push eax
push ecx
push eax
push 0x2d1400
push esi
mov dword [ebp - 0x1028], 0x28
mov dword [ebp - 0x1024], 0x1000
mov dword [ebp - 0x1040], 0x31
call edi
test eax, eax
je 0x44df7a
push dword [ebp - 0x100c]
mov cl, byte [ebp - 0xf8e]
xor eax, eax
push dword [ebp - 0x1010]
inc eax
shl eax, cl
cdq
push edx
push eax
call fcn.0048fae0
push 0
push 0x3e8
push edx
push eax
call fcn.0048fc50
push 0
push 0x3e8
push edx
push eax
call fcn.0048fc50
mov ecx, dword [ebp - 0x104c]
mov dword [ecx], eax
push 0x1030
lea eax, [ebp - 0x1040]
push 0
push eax
call fcn.00490cd0
add esp, 0xc
mov dword [ebp - 0x1038], 3
xor eax, eax
mov dword [ebp - 0x1028], 0x28
xor ecx, ecx
mov dword [ebp - 0x103c], eax
inc ecx
mov dword [ebp - 0x102c], eax
push eax
mov dword [ebp - 0x1044], eax
lea eax, [ebp - 0x1044]
push eax
mov dword [ebp - 0x1034], ecx
lea eax, [ebp - 0x1040]
mov dword [ebp - 0x1030], ecx
mov ecx, 0x1030
push ecx
push eax
push ecx
push eax
push 0x2d1400
push esi
mov dword [ebp - 0x1024], 0x1000
mov dword [ebp - 0x1040], 0x31
call edi
mov edi, eax
test esi, esi
je 0x44e007
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, 0x1000
lea eax, [ebp - 0x1010]
push ecx
push eax
push ecx
push ebx
call fcn.0040256c
add esp, 0x10
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x1048]
lea ecx, [ecx - 0x10]
call fcn.00401fe9
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0048f693
leave
ret 0x14
Function at 0x453978
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c0a3e
mov eax, dword fs:[0]
push eax
mov eax, 0x1040
call fcn.0048f7d0
mov eax, dword [0x50254c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x14]
lea ecx, [ebp - 0x1044]
mov dword [ebp - 0x104c], eax
call fcn.004026b1
xor ebx, ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x1044]
push dword [ebp + 8]
push str..PhysicalDrive_d
push eax
call fcn.00402a35
add esp, 0xc
push ebx
push 0x80
push 3
pop edi
push edi
push ebx
push edi
push 0xc0000000
push dword [ebp - 0x1044]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push 0x1010
mov esi, eax
lea eax, [ebp - 0x1020]
push ebx
push eax
call fcn.00490cd0
add esp, 0xc
mov dword [ebp - 0x102c], ebx
mov ecx, 0x1030
mov dword [ebp - 0x103c], ebx
mov dword [ebp - 0x1048], ebx
mov dword [ebp - 0x1038], edi
push 2
pop eax
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov dword [ebp - 0x1034], eax
mov dword [ebp - 0x1030], eax
lea eax, [ebp - 0x1048]
push eax
push ecx
lea eax, [ebp - 0x1040]
mov dword [ebp - 0x1028], 0x28
push eax
push ecx
push eax
push 0x2d1400
push esi
mov dword [ebp - 0x1024], 0x1000
mov dword [ebp - 0x1040], 0x31
call ebx
mov edi, eax
test edi, edi
jne 0x453aa6
or dword [ebp - 0x102c], 0xffffffff
mov ecx, 0x1030
push eax
lea eax, [ebp - 0x1048]
push eax
push ecx
lea eax, [ebp - 0x1040]
push eax
push ecx
push eax
push 0x2d1400
push esi
call ebx
mov edi, eax
test esi, esi
je 0x453ab1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, 0x200
lea eax, [ebp - 0x1010]
push ecx
push eax
mov eax, dword [ebp - 0x104c]
push ecx
add eax, 0x1000
push eax
call fcn.0040256c
add esp, 0x10
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x1044]
lea ecx, [ecx - 0x10]
call fcn.00401fe9
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0048f693
leave
ret 0x10
Function at 0x45afea
Capabilities:
Query service status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x50254c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
push 0x20000000
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, eax
test esi, esi
je 0x45b059
push 4
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
test edi, edi
je 0x45b052
push 0x1c
lea eax, [ebp - 0x20]
push ebx
push eax
call fcn.00490cd0
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x45b04b
cmp dword [ebp - 0x1c], 4
jne 0x45b04b
mov bl, 1
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, dword [ebp - 4]
mov al, bl
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0048f693
leave
ret 4
Function at 0x45f52a
Capabilities:
Read file on windows

Disassembly:
push 0x20c
mov eax, 0x4c1a83
call fcn.0048f706
mov esi, ecx
lea ecx, [ebp - 0x214]
call fcn.004026b1
xor ebx, ebx
mov dword [ebp - 4], ebx
cmp dword [ebp + 8], ebx
jl 0x45f5da
cmp dword [esi + 0x150], ebx
jne 0x45f5da
push dword [ebp + 8]
lea eax, [ebp - 0x214]
push str..PhysicalDrive_d
push eax
call fcn.00402a35
add esp, 0xc
push ebx
push ebx
push 3
push ebx
push 1
push SysReAllocStringLen
push dword [ebp - 0x214]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x45f5da
mov edi, 0x200
lea eax, [ebp - 0x210]
push edi
push ebx
push eax
call fcn.00490cd0
add esp, 0xc
mov dword [ebp - 0x218], ebx
push ebx
push ebx
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebx
lea eax, [ebp - 0x218]
push eax
push edi
lea eax, [ebp - 0x210]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test esi, esi
je 0x45f5da
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x214]
lea ecx, [ecx - 0x10]
call fcn.00401fe9
call fcn.0048f6b5
ret 4
Function at 0x460ec7
Capabilities:
Persist via windows service
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x50254c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x214], 0x104
push 0x208
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x210], ebx
push ebx
push eax
mov dword [ebp - 0x218], ebx
call fcn.00490cd0
add esp, 0xc
lea eax, [ebp - 0x210]
mov esi, 0xf003f
mov edi, str.SYSTEMCurrentControlSetServicesEventLogApplicationCrystalDiskInfo
push eax
push esi
push ebx
push edi
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x460f4a
push ebx
lea eax, [ebp - 0x210]
push eax
push ebx
push esi
push ebx
push ebx
push ebx
push edi
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x460fc6
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x20c]
push eax
push ebx
push ebx
push str.EventMessageFile
push dword [ebp - 0x210]
call esi
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x460fd7
push 0x104
lea eax, [ebp - 0x20c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x20c]
push eax
call fcn.00494153
pop ecx
lea eax, [eax*2 + 2]
push eax
lea eax, [ebp - 0x20c]
push eax
push 2
push ebx
push str.EventMessageFile
push dword [ebp - 0x210]
call edi
test eax, eax
je 0x460fd7
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0048f693
leave
ret
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x218]
push eax
push ebx
push ebx
push str.TypesSupported
push dword [ebp - 0x210]
call esi
test eax, eax
je 0x461026
push 4
pop ecx
push ecx
lea eax, [ebp - 0x218]
mov dword [ebp - 0x218], 7
push eax
push ecx
push ebx
push str.TypesSupported
push dword [ebp - 0x210]
mov dword [ebp - 0x214], ecx
call edi
test eax, eax
jne 0x460fba
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x460fc6
inc eax
jmp 0x460fc8

Function at 0x46104f
Capabilities:
Access the windows event log

Disassembly:
push 4
mov eax, 0x4c20fe
call fcn.0048f6d3
xor esi, esi
mov dword [ebp - 4], esi
push dword [ebp + 0x10]
push esi
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov edi, eax
test edi, edi
je 0x4610b5
mov ecx, dword [ebp + 0x14]
lea eax, [ebp - 0x10]
push esi
push eax
push esi
push 1
push esi
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebp + 8]
push 0x63
pop edx
lea eax, [ecx - 0x258]
cmp edx, eax
sbb eax, eax
add ecx, 0x80000000
and eax, 0xc0000000
add eax, ecx
push eax
push esi
push dword [ebp + 0xc]
push edi
call dword [sym.imp.ADVAPI32.dll_ReportEventW]
test eax, eax
je 0x4610b5
push edi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
mov esi, eax
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp + 0x14]
lea ecx, [ecx - 0x10]
call fcn.00401fe9
mov eax, esi
call fcn.0048f6a1
ret