joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10058e00
Capabilities:
Get common file path
Manipulate boot configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x1013b7e0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
mov eax, dword [esi]
cmp dword [eax - 0xc], 0
jne 0x10058f5a
push ebx
push edi
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.100c56b0
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov edx, dword [esi]
mov ebx, 1
mov ecx, ebx
mov eax, dword [edx - 8]
sub ecx, dword [edx - 4]
sub eax, 0x104
or ecx, eax
jge 0x10058e72
push 0x104
mov ecx, esi
call fcn.10006d60
mov edx, dword [esi]
cmp dword [edx - 8], 0x104
jl 0x10058f69
mov dword [edx - 0xc], 0x104
xor ecx, ecx
mov eax, dword [esi]
push str.cmd.exe
mov word [eax + 0x208], cx
lea eax, [ebp - 0x20c]
push eax
push edx
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
mov ecx, dword [esi + 4]
mov eax, dword [ecx - 8]
sub ebx, dword [ecx - 4]
sub eax, 0x104
or ebx, eax
jge 0x10058ec6
push 0x104
lea ecx, [esi + 4]
call fcn.10006d60
mov ecx, dword [esi + 4]
cmp dword [ecx - 8], 0x104
jl 0x10058f69
mov dword [ecx - 0xc], 0x104
xor edx, edx
mov eax, dword [esi + 4]
push str.bcdedit.exe
mov word [eax + 0x208], dx
lea eax, [ebp - 0x20c]
push eax
push ecx
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
mov eax, dword [esi]
test eax, eax
jne 0x10058f03
xor ecx, ecx
jmp 0x10058f15
push dword [eax - 8]
push eax
call fcn.100cc32e
mov ecx, eax
add esp, 8
test ecx, ecx
js 0x10058f69
mov eax, dword [esi]
cmp ecx, dword [eax - 8]
jg 0x10058f69
mov dword [eax - 0xc], ecx
xor edx, edx
mov eax, dword [esi]
mov word [eax + ecx*2], dx
mov eax, dword [esi + 4]
test eax, eax
jne 0x10058f32
xor ecx, ecx
jmp 0x10058f44
push dword [eax - 8]
push eax
call fcn.100cc32e
mov ecx, eax
add esp, 8
test ecx, ecx
js 0x10058f69
mov eax, dword [esi + 4]
cmp ecx, dword [eax - 8]
jg 0x10058f69
mov dword [eax - 0xc], ecx
xor edx, edx
mov eax, dword [esi + 4]
pop edi
pop ebx
mov word [eax + ecx*2], dx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.10089d41
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.100060c0
int3
Function at 0x10059de0
Capabilities:
Terminate process

Disassembly:
push esi
mov esi, ecx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esi]
test eax, eax
je 0x10059df9
push eax
call edi
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x10059e0a
push eax
call edi
mov dword [esi + 4], 0
mov eax, dword [esi + 8]
test eax, eax
je 0x10059e1b
push eax
call edi
mov dword [esi + 8], 0
mov eax, dword [esi + 0xc]
test eax, eax
je 0x10059e2c
push eax
call edi
mov dword [esi + 0xc], 0
mov eax, dword [esi + 0x10]
test eax, eax
je 0x10059e62
push 0x3e8
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x10059e51
push 0xffffffffffffffff
push dword [esi + 0x10]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push dword [esi + 0x10]
call edi
push dword [esi + 0x14]
call edi
xorps xmm0, xmm0
movups xmmword [esi + 0x10], xmm0
pop edi
pop esi
ret
Function at 0x10059f10
Capabilities:
Create a process with modified i/o handles and window
Create pipe
Create process on windows
Create two anonymous pipes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x470
mov eax, dword [0x1013b7e0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
mov dword [ebp - 0x418], eax
push 0
lea ecx, [ebp - 0x424]
mov dword [ebp - 0x424], 0xc
push ecx
lea eax, [edi + 0xc]
mov dword [ebp - 0x41c], 1
push eax
lea ebx, [edi + 8]
mov dword [ebp - 0x420], 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
je 0x1005a14e
push 0
push 1
push dword [ebx]
mov ebx, dword [sym.imp.KERNEL32.dll_SetHandleInformation]
call ebx
push 0
lea ecx, [ebp - 0x424]
push ecx
lea eax, [edi + 4]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
je 0x1005a14e
push 0
push 1
push dword [edi + 4]
call ebx
xor eax, eax
mov dword [ebp - 0x470], 0x44
xorps xmm0, xmm0
mov word [ebp - 0x43a], ax
lea ebx, [edi + 0x10]
movlpd qword [ebp - 0x46c], xmm0
movups xmmword [ebx], xmm0
mov eax, dword [edi + 0xc]
xor ecx, ecx
mov dword [ebp - 0x430], eax
mov dword [ebp - 0x434], eax
mov eax, dword [edi]
mov dword [ebp - 0x438], eax
mov eax, dword [ebp + 0x14]
neg eax
mov dword [ebp - 0x43e], ecx
push 0x208
sbb eax, eax
movlpd qword [ebp - 0x464], xmm0
and eax, 5
movlpd qword [ebp - 0x45c], xmm0
mov word [ebp - 0x440], ax
or ecx, 0x101
lea eax, [ebp - 0x414]
movlpd qword [ebp - 0x454], xmm0
push 0
push eax
movlpd qword [ebp - 0x44c], xmm0
mov dword [ebp - 0x444], ecx
call fcn.100c56b0
push dword [ebp - 0x418]
lea eax, [ebp - 0x414]
push esi
push str.__s___s
push 0x208
push eax
call fcn.1005a5a0
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.100c56b0
add esp, 0x2c
cmp dword [ebp + 0x10], 0
jne 0x1005a0c8
push esi
call dword [sym.imp.SHLWAPI.dll_PathIsRelativeW]
test eax, eax
jne 0x1005a0c8
lea eax, [ebp - 0x20c]
mov edx, 0x104
mov ecx, eax
sub esi, ecx
nop word [eax + eax]
lea ecx, [edx + 0x7ffffefa]
test ecx, ecx
je 0x1005a0ae
movzx ecx, word [esi + eax]
test cx, cx
je 0x1005a0ae
mov word [eax], cx
add eax, 2
sub edx, 1
jne 0x1005a090
lea ecx, [eax - 2]
test edx, edx
cmovne ecx, eax
xor eax, eax
mov word [ecx], ax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea ecx, [ebp - 0x42c]
call fcn.10057f50
push ebx
lea eax, [ebp - 0x470]
push eax
lea eax, [ebp - 0x20c]
push eax
push 0
push 0
push 1
push 0
push 0
lea eax, [ebp - 0x414]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov esi, eax
test esi, esi
jne 0x1005a121
lea ecx, [ebp - 0x42c]
call fcn.10057fa0
pop edi
mov eax, esi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10089d41
mov esp, ebp
pop ebp
ret 0x10
push 0xffffffffffffffff
push dword [ebx]
call dword [sym.imp.USER32.dll_WaitForInputIdle]
lea ecx, [ebp - 0x42c]
call fcn.10057fa0
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10089d41
mov esp, ebp
pop ebp
ret 0x10
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10089d41
mov esp, ebp
pop ebp
ret 0x10
Function at 0x1005a1d0
Capabilities:
Check for time delay via gettickcount
Read file on windows
Read pipe

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.1005a1e0
Function at 0x1005a620
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100f79e9
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x1013b7e0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x14], 0
mov ebx, dword [ebp + 8]
mov dword [ebp - 4], 0
mov eax, dword [ebx]
mov ecx, dword [eax - 0x10]
test ecx, ecx
je 0x1005a66f
mov eax, dword [ecx]
call dword [eax + 0x10]
mov ecx, eax
test ecx, ecx
jne 0x1005a685
call fcn.100063a0
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x10]
mov ecx, eax
test ecx, ecx
je 0x1005a7ad
mov eax, dword [ecx]
call dword [eax + 0xc]
mov dword [ebp - 0x14], 1
lea esi, [eax + 0x10]
mov eax, dword [ebx]
mov dword [ebp + 8], esi
mov dword [ebp - 0x18], eax
mov edx, dword [eax - 0xc]
mov dword [ebp - 0x10], edx
lea ebx, [edx + 2]
test ebx, ebx
js 0x1005a7b7
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, ebx
or eax, ecx
jge 0x1005a6cd
push ebx
lea ecx, [ebp + 8]
call fcn.1001e830
mov esi, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
push edx
push dword [ebp - 0x18]
push edx
push esi
call fcn.100071f0
mov ecx, dword [ebp - 0x10]
add esp, 0x10
add ecx, esi
jne 0x1005a6f4
call fcn.100c8d62
mov dword [eax], 0x16
call fcn.100c8c89
jmp 0x1005a6fd
mov ax, word [0x101094c0]
mov word [ecx], ax
cmp ebx, dword [esi - 8]
jg 0x1005a7b7
mov dword [esi - 0xc], ebx
mov byte [ebx + esi], 0
cmp dword [edi], 0
je 0x1005a776
cmp dword [edi + 4], 0
je 0x1005a776
cmp dword [edi + 8], 0
je 0x1005a776
cmp dword [edi + 0xc], 0
je 0x1005a776
mov ebx, dword [esi - 0xc]
xor ecx, ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp + 8], ecx
test ebx, ebx
je 0x1005a76f
cmp dword [edi], 0
je 0x1005a76f
mov edx, dword [edi + 4]
test edx, edx
je 0x1005a76f
cmp dword [edi + 8], 0
je 0x1005a76f
cmp dword [edi + 0xc], 0
je 0x1005a76f
push 0
lea eax, [ebp + 8]
push eax
push ebx
lea eax, [ecx + esi]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1005a76f
mov ecx, dword [ebp - 0x10]
add ecx, dword [ebp + 8]
mov dword [ebp - 0x10], ecx
sub ebx, dword [ebp + 8]
jne 0x1005a733
mov edi, 1
jmp 0x1005a778
xor edi, edi
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x1005a797
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
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
push 0x80004005
call fcn.100060c0
push 0x80070057
call fcn.100060c0
int3
Function at 0x1005e720
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100f5e21
mov eax, dword fs:[0]
push eax
sub esp, 0x2d4
mov eax, dword [0x1013b7e0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esi + 0xc], eax
call fcn.1006fec0
mov dword [esi], eax
test eax, eax
jne 0x1005e8e4
push 0x208
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.100c56b0
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push str.ComputerZTray.exe
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x218]
push eax
call fcn.10081f60
add esp, 4
test eax, eax
jne 0x1005e8a3
call fcn.10088cd0
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x1005e8e4
push 0x66
push str.d:jenkins.jenkinsworkspacemaster_lucomputerz_cncompuerz_cnludashi_srcconfig_mgrconfig_mgr.cpp
lea ecx, [ebp - 0x248]
mov dword [ebp - 0x238], eax
mov dword [ebp - 0x234], 0xf
mov byte [ebp - 0x248], al
call fcn.100070f0
push 3
push 0x10102f98
lea ecx, [ebp - 0x230]
mov dword [ebp - 4], 0
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 0xf
mov byte [ebp - 0x230], 0
call fcn.100070f0
mov byte [ebp - 4], 1
call fcn.10088cd0
mov edi, eax
lea ecx, [ebp - 0x2e0]
push 0x2b
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0x230]
push eax
call fcn.10007cd0
mov esi, eax
push str.Tray_HasMsSign_failed
push esi
mov byte [ebp - 4], 2
call fcn.10008a00
mov edx, dword [edi]
add esp, 8
mov ecx, edi
push esi
call dword [edx + 0x1c]
lea ecx, [ebp - 0x2e0]
call fcn.10008b30
lea ecx, [ebp - 0x230]
call fcn.10005ec0
lea ecx, [ebp - 0x248]
call fcn.10005ec0
jmp 0x1005e8e4
call fcn.100063a0
mov ecx, eax
test ecx, ecx
je 0x1005e8ff
mov eax, dword [ecx]
call dword [eax + 0xc]
push 0xa
push 0
lea esi, [eax + 0x10]
push esi
lea eax, [ebp - 0x218]
push eax
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x1005e8e4
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
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.10089d41
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.100060c0
int3
Function at 0x10066b40
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100f89c8
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x1013b7e0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
test edi, edi
je 0x10066b78
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebp + 8]
push 0x38
mov dword [ebp - 4], 0
mov ebx, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebp + 8], eax
call fcn.10089997
mov esi, eax
add esp, 4
mov dword [ebp - 0x14], esi
test esi, esi
je 0x10066bc8
mov ecx, dword [ebp + 8]
lea eax, [esi + 0x10]
mov dword [esi + 4], 1
mov dword [esi + 8], 1
mov dword [esi], vtable.std::_Ref_count_obj_class_std::function_int____cdecl___void___.0
mov dword [eax], vtable.std::_Func_impl_no_alloc_class_std::_Binder_struct_std::_Unforced__class_std::_Binder_struct_std::_Unforced__unsigned_char____cdecl_PageManager::__int__void___class_PageManager_______int___.0
mov dword [eax + 4], ebx
mov dword [eax + 8], ecx
mov dword [eax + 0x24], eax
jmp 0x10066bca
xor esi, esi
lea eax, [esi + 0x10]
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x18], eax
test esi, esi
je 0x10066bdb
lock inc dword [esi + 4]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], esi
mov eax, dword [edi + 0x30]
mov ecx, dword [edi + 0x28]
inc eax
mov byte [ebp - 4], 2
cmp ecx, eax
ja 0x10066bfd
push 1
lea ecx, [edi + 0x20]
call fcn.10021a70
mov ecx, dword [edi + 0x28]
lea eax, [ecx - 1]
and dword [edi + 0x2c], eax
mov ecx, dword [edi + 0x30]
add ecx, dword [edi + 0x2c]
mov eax, dword [edi + 0x28]
dec eax
and ecx, eax
lea eax, [ecx*4]
mov ecx, dword [edi + 0x24]
mov dword [ebp + 8], eax
cmp dword [ecx + eax], 0
jne 0x10066c3a
push 0x28
call fcn.10089997
mov ecx, dword [edi + 0x24]
add esp, 4
mov edx, dword [ebp + 8]
mov dword [edx + ecx], eax
mov eax, edx
mov ecx, dword [edi + 0x24]
mov eax, dword [eax + ecx]
lea ecx, [esi + 0x10]
mov dword [eax], vtable.std::_Func_impl_no_alloc_class__lambda_9ca36816c6fc7798495779f42d5f9647___void___.0
mov dword [eax + 4], ecx
mov dword [eax + 8], esi
mov dword [eax + 0x24], eax
inc dword [edi + 0x30]
cmp dword [edi + 0x18], 0
jne 0x10066c79
lea eax, [edi + 0x1c]
push eax
push 0
push edi
push 0x10020690
push 0
push 0
call fcn.100cd9ef
add esp, 0x18
mov dword [edi + 0x18], eax
mov byte [ebp + 0xb], 1
jmp 0x10066c7d
mov byte [ebp + 0xb], 0
test esi, esi
je 0x10066ca2
or ebx, 0xffffffff
mov eax, ebx
lock xadd dword [esi + 4], eax
jne 0x10066ca2
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], ebx
dec ebx
jne 0x10066ca2
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 4]
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov al, byte [ebp + 0xb]
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 0x1006c130
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100f9156
mov eax, dword fs:[0]
push eax
sub esp, 0x424
mov eax, dword [0x1013b7e0]
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 - 0x420], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x41c], eax
mov dword [ebp - 0x430], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x428], ecx
mov dword [ebp - 0x42c], 0
mov dword [ebp - 0x418], 0
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
push 0x60
push 0
push esi
mov byte [ebp - 4], 1
call ebx
mov edi, eax
mov dword [ebp - 0x424], edi
test edi, edi
jne 0x1006c1dc
push 2
push eax
push esi
call ebx
mov edi, eax
mov dword [ebp - 0x424], eax
test edi, edi
jne 0x1006c1dc
call fcn.1006a0e0
mov esi, eax
jmp 0x1006c2cc
push dword [ebp - 0x41c]
push dword [ebp - 0x420]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x1006c1ff
call fcn.1006a0e0
jmp 0x1006c2bf
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
mov dword [ebp - 0x420], ebx
test ebx, ebx
jne 0x1006c21d
call fcn.1006a0e0
jmp 0x1006c2bf
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
mov dword [ebp - 0x41c], esi
lea eax, [esi + 1]
cmp eax, esi
jae 0x1006c23e
mov esi, 0x8007000e
jmp 0x1006c2c1
push eax
lea ecx, [ebp - 0x418]
mov byte [ebp - 4], 2
call fcn.10069fb0
jmp 0x1006c268
cmp dword [ebp - 0x418], 0
mov dword [ebp - 4], 1
jne 0x1006c27f
mov esi, 0x8007000e
jmp 0x1006c2c1
push esi
push dword [ebp - 0x418]
push esi
push ebx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
jne 0x1006c29f
call fcn.1006a0e0
jmp 0x1006c2bf
mov eax, dword [ebp - 0x418]
xor edx, edx
push dword [ebp + 0x14]
mov word [eax + ecx*2], dx
lea ecx, [ebp - 0x42c]
push dword [ebp - 0x418]
call fcn.1006bf90
mov esi, eax
test edi, edi
je 0x1006c2cc
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x1006c2f0
lea ecx, [ebp - 0x418]
call fcn.1006b250
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.10089d41
mov esp, ebp
pop ebp
ret 0x10
Function at 0x1006e8c0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40c
mov eax, dword [0x1013b7e0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x404]
push 0x400
push 0
push eax
mov dword [ebp - 0x408], esi
call fcn.100c56b0
add esp, 0xc
mov dword [ebp - 0x408], 1
lea eax, [ebp - 0x40c]
mov dword [ebp - 0x40c], 0x400
push eax
lea eax, [ebp - 0x404]
push eax
lea eax, [ebp - 0x408]
push eax
push 0x1010c16c
push str.SOFTWAREMicrosoftWindows_NTCurrentVersion
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
mov ecx, esi
test eax, eax
jne 0x1006e954
lea eax, [ebp - 0x404]
push eax
call fcn.1000b150
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10089d41
mov esp, ebp
pop ebp
ret
push 6
xor eax, eax
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
push str.unknow
mov word [esi], ax
call fcn.1000c350
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.10089d41
mov esp, ebp
pop ebp
ret

Function at 0x1006e990
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100f93f0
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x1013b7e0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x14]
push 0
push eax
call fcn.10090790
add esp, 8
mov dword [ebp - 4], 0
call fcn.100063a0
mov ecx, eax
test ecx, ecx
je 0x1006eaa8
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x10], esi
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, 0xa
or eax, ecx
mov edi, dword [ebp - 0x14]
mov byte [ebp - 4], 1
jge 0x1006ea0c
push 0xa
lea ecx, [ebp - 0x10]
call fcn.10006d60
mov esi, dword [ebp - 0x10]
push edi
push 0xa
push esi
push 0x10105b18
push str.SchemeIndex
push str.PowerSave
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push dword [esi - 8]
push esi
call fcn.100cc32e
add esp, 8
test eax, eax
js 0x1006ea9e
cmp eax, dword [esi - 8]
jg 0x1006ea9e
xor ecx, ecx
mov dword [esi - 0xc], eax
push esi
mov word [esi + eax*2], cx
call fcn.100cd847
lea edx, [esi - 0x10]
mov byte [ebp - 4], 0
or esi, 0xffffffff
add esp, 4
mov edi, eax
mov ecx, esi
lock xadd dword [edx + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x1006ea6c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x14]
mov dword [ebp - 4], 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x1006ea8b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
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
push 0x80070057
call fcn.100060c0
push 0x80004005
call fcn.100060c0
int3
Function at 0x1006eac0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100f9420
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x1013b7e0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x14]
push 0
push eax
call fcn.10090790
add esp, 8
mov dword [ebp - 4], 0
call fcn.100063a0
mov ecx, eax
test ecx, ecx
je 0x1006ec0e
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x10], esi
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, 0xa
or eax, ecx
mov edi, dword [ebp - 0x14]
mov byte [ebp - 4], 1
jge 0x1006eb3d
push 0xa
lea ecx, [ebp - 0x10]
call fcn.10006d60
mov esi, dword [ebp - 0x10]
push edi
push 0xa
push esi
push 0x10105b18
push str.PowerSaveStarting
push str.PowerSave
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push dword [esi - 8]
push esi
call fcn.100cc32e
add esp, 8
test eax, eax
js 0x1006ec04
cmp eax, dword [esi - 8]
jg 0x1006ec04
xor ecx, ecx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
mov ecx, 0x101083c4
mov eax, esi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x1006eba9
test dx, dx
je 0x1006eba5
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x1006eba9
add eax, 4
add ecx, 4
test dx, dx
jne 0x1006eb83
xor eax, eax
jmp 0x1006ebae
sbb eax, eax
or eax, 1
test eax, eax
mov byte [ebp - 4], 0
lea edx, [esi - 0x10]
sete bl
or esi, 0xffffffff
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1006ebd1
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x14]
mov dword [ebp - 4], 0xffffffff
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], esi
dec esi
test esi, esi
jg 0x1006ebf0
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.100060c0
push 0x80004005
call fcn.100060c0
int3
Function at 0x1006ec20
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100f944b
mov eax, dword fs:[0]
push eax
sub esp, 0x210
mov eax, dword [0x1013b7e0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x21c]
mov esi, dword [ebp + 0xc]
push 0
push eax
mov dword [ebp - 0x21c], edi
call fcn.10090790
push 0x208
lea eax, [ebp - 0x218]
mov dword [ebp - 4], 0
push 0
push eax
call fcn.100c56b0
add esp, 0x14
lea eax, [ebp - 0x218]
push dword [ebp - 0x21c]
push 0x104
push eax
push 0x101018f8
push esi
push str.Sensor
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
xor eax, eax
mov dword [edi + 0x10], 0
lea ecx, [ebp - 0x218]
mov dword [edi + 0x14], 7
mov word [edi], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1006ecc3
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
mov ecx, edi
call fcn.1000c350
mov eax, dword [ebp - 0x21c]
or ecx, 0xffffffff
mov dword [ebp - 4], 0xffffffff
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x1006ed06
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, edi
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.10089d41
mov esp, ebp
pop ebp
ret

Function at 0x1006f340
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x1013b7e0]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x18]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x1006f3bc
lea eax, [ebp - 0x10]
push eax
push str.SeShutdownPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
push 0
push 0
push 0
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 1
push eax
push 0
push dword [ebp - 0x18]
mov dword [ebp - 8], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1006f3bc
push eax
push 2
call dword [sym.imp.USER32.dll_ExitWindowsEx]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10089d41
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
call fcn.10089d41
mov esp, ebp
pop ebp
ret