joyce8/EMBER2024-capa huggingface dataset:
Function at 0x420680
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49f474
mov eax, dword fs:[0]
push eax
sub esp, 0x484
mov eax, dword [0x4c448c]
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 + 8]
xor edi, edi
mov esi, ecx
mov dword [ebp - 0x470], eax
mov dword [ebp - 0x490], edi
mov dword [ebp - 4], edi
mov edx, dword [esi]
mov eax, dword [edx + 0xc]
call eax
cmp dword [ebp + 0x20], 0x10
mov eax, dword [ebp + 0xc]
jae 0x4206d7
lea eax, [ebp + 0xc]
push 0x4afe58
push eax
call fcn.00474cdf
mov ebx, eax
add esp, 8
cmp ebx, edi
jne 0x4207c9
lea ecx, [ebp - 0x46c]
push str.Cannot_read_file__
push ecx
lea ebx, [ebp + 0xc]
call fcn.004243f0
push eax
mov eax, 0x4afe5c
lea ecx, [ebp - 0x48c]
mov byte [ebp - 4], 1
call fcn.004244c0
add esp, 0xc
xor ebx, ebx
mov esi, 0xf
mov dword [ebp - 0x418], esi
mov dword [ebp - 0x41c], ebx
mov byte [ebp - 0x42c], bl
push 0xffffffffffffffff
push ebx
lea edx, [ebp - 0x48c]
mov byte [ebp - 4], 3
push edx
lea ecx, [ebp - 0x42c]
mov dword [ebp - 0x430], 1
call fcn.004038c0
cmp dword [ebp - 0x478], 0x10
jb 0x42076f
mov eax, dword [ebp - 0x48c]
push eax
call fcn.00472958
add esp, 4
mov dword [ebp - 0x478], esi
mov dword [ebp - 0x47c], ebx
mov byte [ebp - 0x48c], bl
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x430]
push 0xffffffffffffffff
push ebx
lea edx, [ebp - 0x42c]
mov dword [ebp - 0x450], ecx
push edx
lea ecx, [ebp - 0x44c]
mov dword [ebp - 0x438], esi
mov dword [ebp - 0x43c], ebx
mov byte [ebp - 0x44c], bl
call fcn.004038c0
push 0x4bc7c4
lea eax, [ebp - 0x450]
push eax
call fcn.00475f21
push ebx
push 0x400
lea ecx, [ebp - 0x410]
push 1
push ecx
call fcn.00474fa4
add esp, 0x10
cmp eax, edi
je 0x420810
mov edx, dword [esi]
mov edx, dword [edx + 8]
push eax
lea eax, [ebp - 0x410]
push eax
mov ecx, esi
call edx
push ebx
push 0x400
lea eax, [ebp - 0x410]
push 1
push eax
call fcn.00474fa4
add esp, 0x10
cmp eax, edi
jne 0x4207e4
push ebx
call fcn.004750d3
mov edx, dword [esi]
mov edi, dword [ebp - 0x470]
mov eax, dword [edx]
add esp, 4
push edi
mov ecx, esi
call eax
cmp dword [ebp + 0x20], 0x10
jb 0x42083a
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.00472958
add esp, 4
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.00474985
mov esp, ebp
pop ebp
ret 0x20

Function at 0x420c30
Capabilities:
Hash data using sha1

Disassembly:
lea eax, [ecx + 0x24]
xor ecx, ecx
cmp eax, ecx
je 0x420c6d
xor edx, edx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x18], ecx
mov word [eax + 0x1c], dx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], 0xc3d2e1f0
mov dword [eax + 0x60], ecx
mov dword [eax + 0x64], ecx
ret
Function at 0x422e80
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49cc6b
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x4c448c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.00471c07
push 4
mov dword [ebp - 4], 0
call fcn.00473e79
mov edi, eax
add esp, 4
test edi, edi
je 0x422efc
call fcn.004719ba
mov dword [edi], eax
call fcn.004716fb
push 0
lea ecx, [ebp - 0x10]
mov ebx, eax
call fcn.00471b48
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x422ef2
inc eax
mov dword [ebx + 4], eax
lea ecx, [ebp - 0x10]
call fcn.00471b70
jmp 0x422efe
xor edi, edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi + 0x38], edi
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov eax, esi
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 0x4256c0
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49cb5b
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x4c448c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
lea esi, [edi + 4]
call fcn.00460c80
xor ebx, ebx
push str.powrprof.dll
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [edi], eax
cmp dword [0x4c7d88], ebx
jne 0x42571e
push str.CallNtPowerInformation
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4c7d88], eax
lea eax, [ebp - 0x30]
push eax
mov byte [edi + 0xc8], bl
mov dword [edi + 0xc0], ebx
mov dword [edi + 0xc4], ebx
mov dword [edi + 0xb8], ebx
mov dword [edi + 0xbc], ebx
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x20]
mov dword [edi + 0xb4], ecx
mov dword [edi + 0xb0], ebx
xor ecx, ecx
mov eax, 1
nop
mov edx, esi
shr edx, cl
test al, dl
je 0x42576e
add dword [edi + 0xb0], eax
add ecx, eax
cmp ecx, 0x20
jb 0x425760
push ebx
mov esi, edi
call fcn.00425840
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 0x425840
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push edi
xor edi, edi
lea eax, [ebp - 0x18]
push eax
mov dword [ebp - 0x10], edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], edi
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
cmp dword [esi + 0xb4], edi
jbe 0x425925
xor ebx, ebx
test edi, edi
je 0x42587e
cmp byte [esi + 0x69], 0
jne 0x4258ec
cmp dword [esi + 0x98], 0
jne 0x4258ac
mov eax, dword [esi + 0xac]
xor ecx, ecx
mov edx, 0x30
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0047125f
add esp, 4
mov dword [esi + 0x98], eax
mov edx, dword [esi + 0x98]
lea eax, [ebp - 4]
push eax
mov eax, dword [esi + 0xac]
lea ecx, [eax + eax*2]
mov eax, dword [esi + 0x50]
shl ecx, 4
push ecx
push edx
push 8
call eax
test eax, eax
jne 0x425989
mov eax, dword [esi + 0xac]
lea ecx, [eax + eax*2]
shl ecx, 4
cmp dword [ebp - 4], ecx
jne 0x425989
mov byte [esi + 0x69], 1
cmp edi, dword [esi + 0xac]
jge 0x425907
mov eax, dword [esi + 0x98]
mov edx, dword [ebx + eax]
mov eax, dword [ebx + eax + 4]
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x20]
add dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x1c]
adc dword [ebp - 0xc], edx
inc edi
add ebx, 0x30
cmp edi, dword [esi + 0xb4]
jb 0x425874
xor edi, edi
mov eax, dword [esi + 0xb8]
mov ecx, dword [esi + 0xbc]
mov edx, eax
or edx, ecx
je 0x4259c3
mov edx, dword [ebp - 0x18]
sub edx, eax
mov eax, dword [ebp - 0x14]
sbb eax, ecx
mov ecx, dword [esi + 0xb0]
push edi
push ecx
push eax
push edx
call fcn.00492bc0
mov edi, eax
mov ebx, edx
mov edx, edi
or edx, ebx
je 0x4259a5
mov eax, dword [ebp - 0x10]
sub eax, dword [esi + 0xc0]
mov ecx, dword [ebp - 0xc]
sbb ecx, dword [esi + 0xc4]
push 0
push 0x64
push ecx
push eax
call fcn.00492bc0
push ebx
push edi
push edx
push eax
call fcn.0049c660
mov dword [ebp - 0x1c], edx
jmp 0x4259b1
push 0x10
push 0x4b1a58
push str.Windows_OS_compatibility_failure._Exiting_for_safety._Notify_Bitsum_Technologies_at_support_bitsum.com.
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov eax, 0x64
mov dword [ebp - 0x1c], 0
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x4259d0
mov edx, 0x64
sub edx, eax
mov dword [ecx], edx
jmp 0x4259d0
mov eax, dword [ebp + 8]
cmp eax, edi
je 0x4259d0
mov dword [eax], 0xffffffff
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x10]
mov dword [esi + 0xb8], eax
mov eax, dword [ebp - 0xc]
pop edi
mov dword [esi + 0xc4], eax
mov dword [esi + 0xbc], ecx
mov dword [esi + 0xc0], edx
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4261a0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x804
mov eax, dword [0x4c448c]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
push esi
lea eax, [ebp + 0xc]
push eax
push ecx
lea edx, [ebp - 0x804]
push edx
call dword [sym.imp.USER32.dll_wvsprintfW]
mov eax, dword [0x4c41fc]
mov edx, dword [eax + 0xc]
mov ecx, 0x4c41fc
call edx
mov esi, eax
lea eax, [ebp - 0x804]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea ecx, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x426200
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00474985
mov esp, ebp
pop ebp
ret

Function at 0x4266e0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp + 8]
lea ecx, [ebp + 8]
push ecx
push 0
push 0x102
push 0
push 0
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x42672d
mov edx, dword [ebp + 0xc]
push 4
lea ecx, [ebp + 0x10]
push ecx
push 4
push eax
mov eax, dword [ebp + 8]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x426735
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
mov esp, ebp
pop ebp
ret 0xc
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
mov esp, ebp
pop ebp
ret 0xc

Function at 0x426750
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push edi
push esi
push str.Loading__s__s
call fcn.004261a0
mov edx, dword [ebp + 8]
add esp, 0xc
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 4]
push ecx
push 0
push 0x101
push 0
push 0
push 0
push esi
push edx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x4267bb
mov ecx, dword [ebp + 0xc]
mov eax, 4
mov dword [ebp + 8], eax
mov dword [ebp - 8], eax
lea eax, [ebp + 8]
push eax
mov eax, dword [ebp - 4]
push ecx
lea edx, [ebp - 8]
push edx
push 0
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x4267c3
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
mov esp, ebp
pop ebp
ret 8
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
mov esp, ebp
pop ebp
ret 8
Function at 0x426830
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp + 8]
lea ecx, [ebp + 8]
push ecx
push 0
push 0x102
push 0
push 0
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x426895
mov eax, esi
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x426860
sub eax, edx
mov edx, dword [ebp + 0xc]
sar eax, 1
lea ecx, [eax + eax + 2]
mov eax, dword [ebp + 8]
push ecx
push esi
push 1
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x42689d
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
mov esp, ebp
pop ebp
ret 8
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
mov esp, ebp
pop ebp
ret 8

Function at 0x4268b0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
lea eax, [ebp - 4]
push eax
push 0x101
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x426963
mov edx, dword [ebp - 4]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push 0
lea ecx, [ebp - 0xc]
push ecx
push 0
push edi
push edx
mov dword [ebp - 0xc], 3
call esi
test eax, eax
jne 0x426950
mov eax, dword [ebp - 8]
test eax, eax
je 0x426950
add eax, 0x100
push eax
call fcn.0047125f
mov ecx, dword [ebp + 8]
add esp, 4
lea edx, [ebp - 8]
push edx
push eax
mov dword [ecx], eax
mov ecx, dword [ebp - 4]
lea eax, [ebp - 0xc]
push eax
push 0
push edi
push ecx
call esi
test eax, eax
je 0x42693c
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 8]
pop esi
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 4
xor eax, eax
mov esp, ebp
pop ebp
ret 4

Function at 0x4269e0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp + 8]
lea ecx, [ebp + 8]
push ecx
push 0
push 0x101
push 0
push 0
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x426a42
mov edx, dword [ebp + 0x10]
lea ecx, [ebp - 4]
push ecx
mov ecx, dword [ebp + 0xc]
push edx
mov edx, dword [ebp + 8]
lea eax, [ebp - 8]
push eax
push 0
push ecx
push edx
mov dword [ebp - 4], 8
mov dword [ebp - 8], 0xb
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x426a4a
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
mov esp, ebp
pop ebp
ret 0xc
Function at 0x426b70
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
lea eax, [ebp - 0x10]
push eax
push esi
push SysReAllocString
mov edx, str.Softwareiologovernor
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
call fcn.004269e0
mov ecx, dword [ebp - 0x10]
add ecx, dword [ebp + 8]
mov edx, dword [ebp - 0xc]
adc edx, dword [ebp + 0xc]
lea eax, [ebp - 4]
push eax
mov dword [ebp - 0x18], ecx
lea ecx, [ebp + 0xc]
push ecx
push 0
push 0x102
push 0
push 0
push 0
push str.Softwareiologovernor
push SysReAllocString
mov dword [ebp - 0x14], edx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x426bf5
push 8
lea edx, [ebp - 0x18]
push edx
push 0xb
push eax
mov eax, dword [ebp + 0xc]
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x426bfd
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
mov esp, ebp
pop ebp
ret 8
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
mov esp, ebp
pop ebp
ret 8
Function at 0x426c10
Capabilities:
Link many functions at runtime

Disassembly:
mov eax, dword [0x4c41fc]
mov edx, dword [eax + 0xc]
mov ecx, 0x4c41fc
call edx
add eax, 0x10
mov dword [ebx + 4], eax
mov eax, dword [0x4c41fc]
mov edx, dword [eax + 0xc]
mov ecx, 0x4c41fc
call edx
add eax, 0x10
cmp byte [0x4c7dca], 0
mov dword [ebx + 0x18], eax
jne 0x426c48
call fcn.0042de30
cmp byte [0x4c7dcb], 1
jne 0x426e07
xor eax, eax
mov dword [ebx + 8], eax
push esi
mov dword [ebx + 0xc], eax
xor esi, esi
mov dword [ebx + 0x10], eax
mov dword [ebx + 0x14], eax
cmp dword [0x4c7d8c], eax
jne 0x426d4c
push edi
push str.CVistaPower___Imports_not_loaded__doing_initial_load_lookup_...
call fcn.004261a0
add esp, 4
push str.powrprof.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
push str.CallNtPowerInformation
push esi
call edi
push str.PowerSetActiveScheme
push esi
mov dword [0x4c7dc4], eax
call edi
push str.PowerGetActiveScheme
push esi
mov dword [0x4c7d90], eax
call edi
push str.PowerEnumerate
push esi
mov dword [0x4c7d94], eax
call edi
push str.PowerReadFriendlyName
push esi
mov dword [0x4c7d98], eax
call edi
push str.PowerDuplicateScheme
push esi
mov dword [0x4c7d9c], eax
call edi
push str.PowerWriteFriendlyName
push esi
mov dword [0x4c7da0], eax
call edi
push str.PowerWriteDescription
push esi
mov dword [0x4c7da4], eax
call edi
push str.PowerDeleteScheme
push esi
mov dword [0x4c7da8], eax
call edi
push str.PowerReadACValueIndex
push esi
mov dword [0x4c7dac], eax
call edi
push str.PowerReadDCValueIndex
push esi
mov dword [0x4c7db0], eax
call edi
push str.PowerWriteACValueIndex
push esi
mov dword [0x4c7db4], eax
call edi
push str.PowerWriteDCValueIndex
push esi
mov dword [0x4c7db8], eax
call edi
push str.PowerWriteSettingAttributes
push esi
mov dword [0x4c7dbc], eax
call edi
mov dword [0x4c7dc0], eax
pop edi
jmp 0x426d64
push str.CVistaPower___Imports_already_loaded__no_action_necessary
call fcn.004261a0
add esp, 4
push str.powrprof.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
cmp dword [0x4c7d90], 0
je 0x426df3
cmp dword [0x4c7d9c], 0
je 0x426df3
cmp dword [0x4c7dc0], 0
je 0x426df3
cmp dword [0x4c7d98], 0
je 0x426df3
cmp dword [0x4c7d94], 0
je 0x426df3
cmp dword [0x4c7da0], 0
je 0x426df3
cmp dword [0x4c7da4], 0
je 0x426df3
cmp dword [0x4c7da8], 0
je 0x426df3
cmp dword [0x4c7dac], 0
je 0x426df3
cmp dword [0x4c7db0], 0
je 0x426df3
cmp dword [0x4c7db4], 0
je 0x426df3
cmp dword [0x4c7db8], 0
je 0x426df3
cmp dword [0x4c7dbc], 0
je 0x426df3
cmp dword [0x4c7d8c], 0
mov byte [ebx], 1
mov eax, ebx
jne 0x426df1
mov dword [0x4c7d8c], esi
pop esi
ret
push str.ERROR:_Initializing_power_APIs..
call fcn.004261a0
add esp, 4
mov byte [ebx], 0
mov eax, ebx
pop esi
ret
mov byte [ebx], 0
mov eax, ebx
ret
Function at 0x427290
Capabilities:
Delete file
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp byte [0x4cb970], 0
je 0x4272b8
push 0x4cb970
call fcn.00427370
test al, al
jne 0x4272c0
push str.recovery_file_name_could_not_be_resolved
call fcn.004261a0
add esp, 4
xor al, al
mov esp, ebp
pop ebp
ret 4
mov eax, dword [0x4cb974]
push esi
push 0
push 0
push 3
push 0
push 0
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x42735a
push str.Reading_GUID_from_crash_recovery_...
mov dword [ebp - 4], 0
call fcn.004261a0
mov edx, dword [ebp + 8]
add esp, 4
push 0
lea ecx, [ebp - 4]
push ecx
push 0x10
push edx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x42733d
cmp dword [ebp - 4], 0x10
jne 0x42733d
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push str.Deleting_crash_recovery_file_since_weve_used_it..
call fcn.004261a0
mov eax, dword [0x4cb974]
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret 4
push str.file_read_error_in_pwrprof_safety
call fcn.004261a0
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 4
push str.Could_not_open_crash_recovery_file
call fcn.004261a0
add esp, 4
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x427370
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1004
call fcn.004929f0
mov eax, dword [0x4c448c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
cmp byte [eax], 0
jne 0x4273a1
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00474985
mov esp, ebp
pop ebp
ret 4
push edi
lea edi, [eax + 4]
mov eax, dword [edi]
cmp dword [eax - 0xc], 0
jne 0x4273fc
lea ecx, [ebp - 0x1004]
push ecx
push 0x800
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x4273d6
xor al, al
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00474985
mov esp, ebp
pop ebp
ret 4
push 0xffffffffffffffff
push str.last_power_profile_safety_restore.guid
lea edx, [ebp - 0x1004]
push 0x800
push edx
call fcn.00474660
add esp, 0x10
lea edx, [ebp - 0x1004]
call fcn.00402c40
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov al, 1
pop edi
call fcn.00474985
mov esp, ebp
pop ebp
ret 4
Function at 0x427ee0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49de8b
mov eax, dword fs:[0]
push eax
sub esp, 0x808
mov eax, dword [0x4c448c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [0x4c41fc]
mov edx, dword [eax + 0xc]
mov ecx, 0x4c41fc
call edx
add eax, 0x10
mov dword [ebp - 0x814], eax
push 0x400
lea eax, [ebp - 0x810]
push eax
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea ecx, [ebp - 0x810]
push ecx
push str._spowercfg.exe
lea edi, [ebp - 0x814]
call fcn.004020e0
mov esi, dword [ebp - 0x814]
add esp, 8
cmp dword [esi - 4], 1
jle 0x427f76
mov edx, dword [esi - 0xc]
push edx
mov eax, edi
push eax
call fcn.00401ff0
mov esi, dword [ebp - 0x814]
push esi
mov ecx, str._setactive_scheme_current
call fcn.0042d3b0
add esp, 4
or edx, 0xffffffff
test al, al
lea eax, [esi - 0x10]
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
jne 0x427faf
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x427fab
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor al, al
jmp 0x427fc4
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x427fc2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00474985
mov esp, ebp
pop ebp
ret

Function at 0x4284e0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 4]
push ecx
push 0
push 0x20106
push 0
push 0
push 0
push str.SoftwareioloGovernor
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x428535
mov edx, dword [ebp + 8]
push 0x10
push edx
push 3
push eax
mov eax, dword [ebp - 4]
push str.CustomHighPerfGUID
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x42853d
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
mov esp, ebp
pop ebp
ret 4
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
mov esp, ebp
pop ebp
ret 4

Function at 0x428550
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 4]
push ecx
push 0
push 0x102
push 0
push 0
push 0
push str.SoftwareioloGovernor
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x42859c
mov edx, dword [ebp - 4]
push str.CustomHighPerfGUID
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
je 0x4285a2
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
mov esp, ebp
pop ebp
ret