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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
sub esp, 0x34
mov eax, dword [0x100163f4]
xor eax, esp
mov dword [esp + 0x30], eax
mov eax, dword [ebp + 8]
push ebx
mov eax, dword [eax*4 + 0x10019220]
push esi
xor ecx, ecx
xor ebx, ebx
xor esi, esi
xorps xmm0, xmm0
push edi
mov dword [esp + 0x10], ebx
movlpd qword [esp + 0x28], xmm0
mov dword [esp + 0x30], ecx
mov word [esp + 0x34], cx
mov dword [esp + 0x1c], eax
test eax, eax
jne 0x10001b3a
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.10003a18
mov esp, ebp
pop ebp
ret
mov edi, dword [eax]
lea ecx, [eax + 8]
mov dword [esp + 0x24], ecx
lea ecx, [eax + 0x1c]
push 0x31
add eax, 0x1f0
push 0
push eax
mov dword [esp + 0x2c], ecx
call fcn.10007f90
mov eax, dword [ebp + 0xc]
add esp, 0xc
nop
cmp eax, 0xffffffff
je 0x10001b6d
cmp esi, eax
jge 0x10001c5b
mov eax, dword [esp + 0x1c]
mov eax, dword [eax + 0x18]
test eax, eax
jne 0x10001bab
push ecx
mov ecx, dword [esp + 0x28]
lea edx, [esp + 0x10]
call fcn.100012e0
add esp, 4
test eax, eax
jne 0x10001bc2
mov eax, 0xfffffffe
test ebx, ebx
cmove esi, eax
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.10003a18
mov esp, ebp
pop ebp
ret
push eax
push 1
lea eax, [esp + 0x14]
push 1
push eax
call fcn.10004407
add esp, 0x10
mov byte [esp + 0xd], 0
cmp eax, 1
jne 0x10001c7c
inc ebx
test edi, edi
je 0x10001c3c
cmp dword [esp + 0x10], 0
jne 0x10001c28
lea eax, [esp + 0x28]
push eax
call fcn.100044b3
fild qword [esp + 0x2c]
movzx eax, word [esp + 0x34]
movd xmm0, eax
cvtdq2pd xmm0, xmm0
fstp qword [esp + 0x14]
fld qword [esp + 0x14]
fstp qword [esp + 0x14]
push ecx
divsd xmm0, qword [0x10014d48]
addsd xmm0, qword [esp + 0x18]
movsd qword [esp], xmm0
push str._n_.3lf:
push edi
call fcn.10003e53
add esp, 0x10
mov dword [esp + 0x10], 1
movzx eax, byte [esp + 0xc]
push eax
push str.__02X
push edi
call fcn.10003e53
add esp, 0xc
mov dl, byte [esp + 0xc]
mov ecx, dword [esp + 0x20]
call fcn.10003800
cmp eax, 1
mov eax, dword [ebp + 0xc]
jne 0x10001b60
inc esi
jmp 0x10001b60
test edi, edi
je 0x10001c68
push edi
call fcn.10003d1a
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.10003a18
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x3c]
pop edi
pop esi
pop ebx
xor ecx, esp
mov eax, 0xfffffffd
call fcn.10003a18
mov esp, ebp
pop ebp
ret

Function at 0x10001ca0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, dword [eax*4 + 0x10019220]
test ecx, ecx
je 0x10001ccb
mov eax, dword [ebp + 0xc]
cmp eax, 0x30
ja 0x10001cc3
movzx eax, byte [ecx + eax + 0x1f0]
pop ebp
ret
push eax
push str.ERROR:_Invalid_dataType_to_TG_GetValue__:__d_n
jmp 0x10001cd1
push eax
push str.ERROR:_Invalid_connectionId_to_TG_GetValue__:__d_n
call fcn.10003b8b
add eax, 0x40
push eax
call fcn.10003e53
add esp, 0xc
push 1
call fcn.10004b86
int3
Function at 0x10001cf0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, dword [eax*4 + 0x10019220]
test ecx, ecx
je 0x10001d22
mov eax, dword [ebp + 0xc]
cmp eax, 0x30
ja 0x10001d1a
mov byte [ecx + eax + 0x1f0], 0
fld dword [ecx + eax*4 + 0x12c]
pop ebp
ret
push eax
push str.ERROR:_Invalid_dataType_to_TG_GetValue__:__d_n
jmp 0x10001d28
push eax
push str.ERROR:_Invalid_connectionId_to_TG_GetValue__:__d_n
call fcn.10003b8b
add eax, 0x40
push eax
call fcn.10003e53
add esp, 0xc
push 1
call fcn.10004b86
int3
Function at 0x1000aba4
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x100163f4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
xor edi, edi
push edi
mov dword [ebp - 0x20], eax
call ebx
mov esi, eax
mov dword [ebp - 0x18], esi
call fcn.100074d9
mov dword [ebp - 0x14], eax
cmp dword [0x100180a0], edi
jne 0x1000ac95
push 0x800
push edi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
jne 0x1000ac22
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x1000ad75
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x1000ad75
push str.MessageBoxW
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1000ad75
push eax
call ebx
push str.GetActiveWindow
push esi
mov dword [0x100180a0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push esi
mov dword [0x100180a4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push esi
mov dword [0x100180a8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x100180b0], eax
test eax, eax
je 0x1000ac92
push str.GetProcessWindowStation
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x100180ac], eax
mov esi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x1000acba
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x1000acad
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], edi
je 0x1000accf
push 4
pop eax
jmp 0x1000ad77
cmp dword [ebp - 0x14], edi
je 0x1000accf
push dword [0x100180a0]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x1000acb4
mov eax, dword [0x100180ac]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, esi
je 0x1000ad2d
cmp dword [0x100180b0], esi
je 0x1000ad2d
push eax
call ebx
push dword [0x100180b0]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x1000ad2d
test eax, eax
je 0x1000ad2d
call ecx
test eax, eax
je 0x1000ad22
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x1000ad22
test byte [ebp - 8], 1
jne 0x1000ad2d
mov esi, dword [ebp + 0x10]
or esi, 0x200000
jmp 0x1000ad5d
mov eax, dword [0x100180a4]
cmp eax, esi
je 0x1000ad5a
push eax
call ebx
test eax, eax
je 0x1000ad5a
call eax
mov edi, eax
test edi, edi
je 0x1000ad5a
mov eax, dword [0x100180a8]
cmp eax, esi
je 0x1000ad5a
push eax
call ebx
test eax, eax
je 0x1000ad5a
push edi
call eax
mov edi, eax
mov esi, dword [ebp + 0x10]
push dword [0x100180a0]
call ebx
test eax, eax
je 0x1000ad75
push esi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push edi
call eax
jmp 0x1000ad77
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10003a18
leave
ret
Function at 0x4014f3
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov esi, eax
push ebx
mov ebx, edx
sub esp, 0x14c
lea eax, [ebp - 0x1c]
mov dword [esp + 0x10], eax
mov eax, dword [0x7a6364]
mov dword [ebp - 0x130], ecx
mov dword [esp + 8], 0
mov dword [esp + 4], edx
or eax, 8
mov dword [esp + 0xc], eax
mov dword [esp], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
sub esp, 0x14
test eax, eax
je 0x40156c
jmp 0x401607
cmp dword [ebp - 0x130], 0
mov eax, dword [ebp - 0x1c]
je 0x40155d
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
push ecx
jmp 0x401607
xor ecx, ecx
mov edx, edi
call fcn.004014f3
test eax, eax
je 0x40157d
jmp 0x4015a4
mov eax, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
lea edi, [ebp - 0x121]
mov dword [ebp - 0x12c], eax
mov eax, dword [ebp - 0x1c]
mov dword [esp + 0xc], 0x105
mov dword [esp + 8], edi
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [ebp - 0x12c]
sub esp, 0x10
test eax, eax
je 0x40153d
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
mov dword [esp], 2
call fcn.00407ccf
test eax, eax
push edx
je 0x4015e2
mov edx, dword [0x7a6364]
mov dword [esp + 0xc], 0
mov dword [esp + 4], ebx
mov dword [esp], esi
mov dword [esp + 8], edx
call eax
sub esp, 0x10
jmp 0x401607
cmp dword [0x7a6364], 0
mov eax, 1
jne 0x401607
mov dword [esp + 4], ebx
mov dword [esp], esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
push ecx
setne al
push ecx
movzx eax, al
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x40397d
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
jmp loc.007c2258
Function at 0x407254
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
lea eax, [ebp - 0x18]
mov dword [esp + 0x24], eax
mov eax, dword [ebp + 8]
mov dword [0x7a4978], 0x44
mov dword [esp + 0x20], 0x7a4978
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], eax
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
xor edx, edx
jmp loc.007c2640

Function at 0x407580
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x14
mov ebx, dword [ebp + 8]
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
push edx
je 0x4075ab
and eax, 0xfffffffe
mov dword [esp], ebx
mov dword [esp + 4], eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push ebx
push ebx
mov ebx, dword [ebp - 4]
leave
ret 4

Function at 0x4075b2
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x24
mov ebx, dword [ebp + 8]
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov edx, 0
cmp eax, 0xffffffff
push ecx
cmove eax, edx
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 0x10]
mov dword [esp], ebx
mov dword [esp + 0x18], 0
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 8], 1
mov dword [esp + 4], eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, dword [ebp - 4]
sub esp, 0x1c
leave
ret 0xc

Function at 0x40760e
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov esi, 0x65
push ebx
sub esp, 0x3c
mov ebx, dword [ebp + 8]
lea edi, [ebp - 0x1c]
jmp 0x40766c
mov dword [ebp - 0x1c], 0x61736e
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x1a
xor edx, edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0
mov dword [esp + 4], edi
mov dword [ebp - 0x2c], eax
div ecx
mov dword [ebp - 0x30], edx
mov cl, byte [ebp - 0x30]
add ecx, 0x61
mov byte [ebp - 0x1a], cl
mov ecx, dword [ebp + 0xc]
mov dword [esp], ecx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
sub esp, 0x10
test eax, eax
jne 0x407674
dec esi
jne 0x407624
mov byte [ebx], 0
xor ebx, ebx
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret 8
Function at 0x407680
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x34
mov ebx, dword [ebp + 0x14]
cmp dword [ebp + 0x18], 1
lea edx, [ebp - 0x14]
sbb eax, eax
xor al, al
add eax, 0x20119
mov byte [ebx], 0
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x10], edx
mov dword [esp + 8], 0
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
sub esp, 0x14
test eax, eax
jne 0x407722
lea eax, [ebp - 0x10]
mov dword [esp + 0x14], eax
lea eax, [ebp - 0xc]
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x10], 0x400
mov dword [esp + 0x10], ebx
mov dword [esp + 8], 0
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
sub esp, 0x18
test eax, eax
jne 0x40770b
mov eax, dword [ebp - 0xc]
dec eax
cmp eax, 1
jbe 0x40770e
mov byte [ebx], 0
mov eax, dword [ebp - 0x14]
mov byte [ebx + 0x3ff], 0
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
mov ebx, dword [ebp - 4]
leave
ret 0x14
Function at 0x407c18
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x10
mov eax, dword [ebp + 8]
mov dword [esp], 0x7a4dbc
mov dword [esp + 4], eax
call fcn.004077ed
push ebx
push ebx
mov dword [esp], 0x7a4dbc
call fcn.00407468
mov ebx, eax
xor eax, eax
test ebx, ebx
push esi
je 0x407cc6
mov dword [esp], ebx
call fcn.0040782b
test byte [0x7a63bc], 0x80
push ecx
je 0x407c86
mov al, byte [ebx]
cmp al, 0x5c
je 0x407cc4
test al, al
jne 0x407c86
jmp 0x407cc4
call fcn.00407be0
test eax, eax
push edx
je 0x407c77
test byte [eax], 0x10
je 0x407cc4
mov dword [esp], 0x7a4dbc
call fcn.004073fc
push ecx
jmp 0x407c92
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
sub ebx, 0x7a4dbc
mov dword [esp], 0x7a4dbc
call esi
cmp eax, ebx
push edx
mov dword [esp], 0x7a4dbc
jg 0x407c68
call fcn.00407386
push ecx
mov dword [esp], 0x7a4dbc
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
inc eax
setne al
push ebx
movzx eax, al
jmp 0x407cc6
xor eax, eax
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret 4
Function at 0x4082c0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
cmp dword [0x7a5f00], 0
mov ebp, esp
push edi
mov ecx, dword [ebp + 0xc]
push esi
push ebx
mov ebx, dword [ebp + 0x10]
jne 0x408301
xor edx, edx
mov eax, edx
mov esi, 8
mov edi, eax
and eax, 1
neg eax
shr edi, 1
and eax, 0xedb88320
xor eax, edi
dec esi
jne 0x4082de
mov dword [edx*4 + 0x7a5efc], eax
inc edx
cmp edx, 0x100
jne 0x4082d7
mov eax, dword [ebp + 8]
not eax
jmp 0x40831b
mov dl, byte [ecx]
dec ebx
inc ecx
xor edx, eax
movzx edx, dl
shr eax, 8
xor eax, dword [edx*4 + 0x7a5efc]
test ebx, ebx
jne 0x408308
pop ebx
not eax
pop esi
pop edi
pop ebp
ret 0xc

Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
pop eax
nop
nop
nop
nop
nop
add eax, 0x403daa
sub eax, 0x403d50
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
nop
jl 0x430030
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43001e
nop
nop
nop
nop
nop
popal
nop
jmp loc.00401219
Function at 0x4023b0
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4290c8]
jne 0x4023ba
repz ret
jmp fcn.0040560e

Function at 0x40523a
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0040394c
and dword [ebp - 4], 0
cmp dword [0x42e1cc], 0
mov ebx, eax
jne 0x4052eb
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40539c
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x40539c
push eax
call fcn.004038da
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x42e1cc], eax
call esi
push eax
call fcn.004038da
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x42e1d0], eax
call esi
push eax
call fcn.004038da
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x42e1d4], eax
call esi
push eax
call fcn.004038da
pop ecx
mov dword [0x42e1dc], eax
test eax, eax
je 0x4052eb
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004038da
pop ecx
mov dword [0x42e1d8], eax
mov eax, dword [0x42e1d8]
cmp eax, ebx
je 0x405343
cmp dword [0x42e1dc], ebx
je 0x405343
push eax
call fcn.00403955
push dword [0x42e1dc]
mov esi, eax
call fcn.00403955
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x405343
test edi, edi
je 0x405343
call esi
test eax, eax
je 0x40533a
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40533a
test byte [ebp - 0xc], 1
jne 0x405343
or dword [ebp + 0x10], 0x200000
jmp 0x40537c
mov eax, dword [0x42e1d0]
cmp eax, ebx
je 0x40537c
push eax
call fcn.00403955
pop ecx
test eax, eax
je 0x40537c
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40537c
mov eax, dword [0x42e1d4]
cmp eax, ebx
je 0x40537c
push eax
call fcn.00403955
pop ecx
test eax, eax
je 0x40537c
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x42e1cc]
call fcn.00403955
pop ecx
test eax, eax
je 0x40539c
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40539e
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401350
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
call fcn.00401060
test eax, eax
je 0x401362
jmp 0x4014e5
cmp dword [0x410df0], 0
je 0x401393
mov eax, dword [0x410df8]
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
push 0x64
mov ecx, dword [0x410df0]
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [0x410df0]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [0x410df4], 0
je 0x4013a8
mov eax, dword [0x410df4]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [0x410df8], 0
je 0x4013be
mov ecx, dword [0x410df8]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [0x410dfc], 0
je 0x4013d4
mov edx, dword [0x410dfc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [0x410df4], eax
cmp dword [0x410df4], 0
jne 0x4013f6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [0x410df8], eax
cmp dword [0x410df8], 0
jne 0x401418
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0
push 0
push 0
push section..text
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x410df0], eax
cmp dword [0x410df0], 0
jne 0x401441
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x410dfc
push 0xf003f
push 0
push str.Control_PanelPowerCfg
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 4], eax
push 0xffffffffffffffff
mov eax, dword [0x410dc0]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0x100
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_SetPriorityClass]
push 0xf
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
call fcn.004014f0
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_SetPriorityClass]
mov ecx, dword [0x410dc0]
push ecx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov dword [0x410e00], 0
push 1
mov edx, dword [0x410df4]
push edx
push 4
push 0
mov eax, dword [0x410dfc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegNotifyChangeKeyValue]
mov dword [ebp - 4], eax
mov esp, ebp
pop ebp
ret
Function at 0x401cc0
Capabilities:
Check os version
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50c
mov eax, dword [0x410350]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [0x410e48], 0
mov dword [0x410e4c], 0
mov dword [0x410e50], 0
mov dword [0x410e54], 0
mov dword [0x410e58], 0
mov dword [ebp - 0x4c0], 0x9c
lea eax, [ebp - 0x4c0]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x4bc], 6
jne 0x401e3b
push 0x40fce4
push str.powercfg__l
call fcn.00403b39
add esp, 8
mov dword [ebp - 0x40c], eax
cmp dword [ebp - 0x40c], 0
je 0x401d92
mov ecx, dword [ebp - 0x40c]
push ecx
push 0x3ff
lea edx, [ebp - 0x408]
push edx
call fcn.00403a8f
add esp, 0xc
test eax, eax
je 0x401d92
lea eax, [ebp - 0x509]
push eax
push 0x410e08
push str._s__s__s__s__s__c
lea ecx, [ebp - 0x408]
push ecx
call fcn.00403a5b
add esp, 0x10
cmp eax, 2
jne 0x401d90
jmp 0x401d92
jmp 0x401d4a
push 0x44
push 0
lea edx, [ebp - 0x508]
push edx
call fcn.004039d0
add esp, 0xc
mov dword [ebp - 0x508], 0x44
push 0x10
push 0
lea eax, [ebp - 0x420]
push eax
call fcn.004039d0
add esp, 0xc
push str.powercfg__s_8c5e7fda_e8bf_4a96_9a85_a6e23a8c635c
call fcn.00403a30
add esp, 4
mov dword [ebp - 0x410], eax
lea ecx, [ebp - 0x420]
push ecx
lea edx, [ebp - 0x508]
push edx
push 0
push 0
push 0x8000000
push 0
push 0
push 0
mov eax, dword [ebp - 0x410]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
push 0xffffffffffffffff
mov ecx, dword [ebp - 0x420]
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [ebp - 0x420]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x41c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x410e48], 1
mov eax, 1
jmp 0x401e95
push 0
push 0x401eb0
call sub.POWRPROF.dll_EnumPwrSchemes
cmp dword [0x410e48], 0
jne 0x401e78
call fcn.00401f00
push 0
push 0x401eb0
call sub.POWRPROF.dll_EnumPwrSchemes
cmp dword [0x410e48], 0
jne 0x401e6e
xor eax, eax
jmp 0x401e95
mov dword [0x410e4c], 1
push 0x410e50
call sub.POWRPROF.dll_GetActivePwrScheme
push 0
push 0
mov ecx, dword [0x410e54]
push ecx
call sub.POWRPROF.dll_SetActivePwrScheme
movzx eax, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004039b9
mov esp, ebp
pop ebp
ret
Function at 0x402040
Capabilities:
Check os version
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x148
mov eax, dword [0x410350]
xor eax, ebp
mov dword [ebp - 0x18], eax
cmp dword [0x410e48], 0
jne 0x402063
xor eax, eax
jmp 0x402177
mov dword [ebp - 0xb8], 0x9c
lea eax, [ebp - 0xb8]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0xb4], 6
jne 0x40212f
push 0x44
push 0
lea ecx, [ebp - 0x100]
push ecx
call fcn.004039d0
add esp, 0xc
mov dword [ebp - 0x100], 0x44
push 0x10
push 0
lea edx, [ebp - 0x14]
push edx
call fcn.004039d0
add esp, 0xc
push 0x410e08
push str.powercfg__s__s
lea eax, [ebp - 0x148]
push eax
call fcn.0040421d
add esp, 0xc
lea ecx, [ebp - 0x148]
push ecx
call fcn.00403a30
add esp, 4
mov dword [ebp - 4], eax
lea edx, [ebp - 0x14]
push edx
lea eax, [ebp - 0x100]
push eax
push 0
push 0
push 0x8000000
push 0
push 0
push 0
lea ecx, [ebp - 0x148]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
push 0xffffffffffffffff
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
jmp 0x402177
push 0
push 0
mov edx, dword [0x410e50]
push edx
call sub.POWRPROF.dll_SetActivePwrScheme
movzx eax, al
mov dword [ebp - 0x104], eax
cmp dword [0x410e4c], 0
je 0x40215d
mov ecx, dword [0x410e58]
push ecx
call sub.POWRPROF.dll_DeletePwrScheme
mov dword [0x410e48], 0
mov dword [0x410e4c], 0
mov eax, dword [ebp - 0x104]
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.004039b9
mov esp, ebp
pop ebp
ret

Function at 0x402190
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
lea eax, [ebp - 0xc]
push eax
push 0xf003f
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x4021bc
xor eax, eax
jmp 0x4021ee
lea eax, [ebp + 0x18]
push eax
mov ecx, dword [ebp + 0x14]
push ecx
lea edx, [ebp - 4]
push edx
push 0
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 8], eax
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
cmp dword [ebp - 8], 0
sete al
mov esp, ebp
pop ebp
ret