joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4269b9
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4269f8
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4269f8
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4269f8
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x4269f8
cmp dword [ecx + 0x74], 0xe
jbe 0x4269f8
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x438da0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x438dcd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x438dcd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x433000
Capabilities:
Encode data using xor

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43300c
nop
nop
nop
pop eax
nop
nop
add eax, 0x40a063
nop
sub eax, 0x40a009
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
nop
cmp ebx, ecx
jl 0x433030
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x43301e
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x403a80
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
mov edi, edx
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x403a99
pop edi
pop ebx
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x403ad4
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 8]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x403ad0
lea ebx, [ebx]
cmp esi, edx
jae 0x403ad4
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
dec ecx
jne 0x403ac0
cmp esi, edx
jb 0x403adb
pop esi
pop edi
xor eax, eax
pop ebx
pop ebp
ret
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x404450
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x50d6e8
mov eax, dword fs:[0]
push eax
sub esp, 0x64
mov eax, dword [0x5723f8]
xor eax, esp
mov dword [esp + 0x5c], eax
push esi
push edi
mov eax, dword [0x5723f8]
xor eax, esp
push eax
lea eax, [esp + 0x70]
mov dword fs:[0], eax
mov edi, ecx
push str.btn_close
lea ecx, [edi + 0x30]
call fcn.0048a900
push str.btn_finish
lea ecx, [edi + 0x30]
mov dword [edi + 0x6d0], eax
call fcn.0048a900
push str.btn_mod
lea ecx, [edi + 0x30]
mov dword [edi + 0x6d8], eax
call fcn.0048a900
push str.lab_title
lea ecx, [edi + 0x30]
mov dword [edi + 0x6d4], eax
call fcn.0048a900
push str.lab_time
lea ecx, [edi + 0x30]
mov dword [edi + 0x6e0], eax
call fcn.0048a900
push str.edit_detail
lea ecx, [edi + 0x30]
mov dword [edi + 0x6e4], eax
call fcn.0048a900
push str.lab_logo
lea ecx, [edi + 0x30]
mov dword [edi + 0x6e8], eax
call fcn.0048a900
sub esp, 0x18
mov dword [edi + 0x6dc], eax
mov ecx, esp
xor eax, eax
push 0xffffffffffffffff
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
push eax
mov word [ecx], ax
lea eax, [edi + 0x6f0]
push eax
call fcn.004024f0
lea eax, [esp + 0x2c]
push eax
call fcn.004056e0
mov dword [esp + 0x78], 0
cmp dword [esp + 0x28], 0
jne 0x404558
push 1
mov ecx, edi
call fcn.00487f08
jmp 0x4045a6
mov ecx, dword [edi + 0x6e0]
lea edx, [esp + 0x18]
cmp dword [esp + 0x2c], 8
cmovae edx, dword [esp + 0x18]
mov eax, dword [ecx]
push edx
call dword [eax + 0x2c]
mov ecx, dword [edi + 0x6e4]
lea edx, [esp + 0x30]
cmp dword [esp + 0x44], 8
cmovae edx, dword [esp + 0x30]
mov eax, dword [ecx]
push edx
call dword [eax + 0x2c]
mov ecx, dword [edi + 0x6e8]
lea edx, [esp + 0x4c]
cmp dword [esp + 0x60], 8
cmovae edx, dword [esp + 0x4c]
mov eax, dword [ecx]
push edx
call dword [eax + 0x2c]
lea ecx, [esp + 0x14]
call fcn.00401e90
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x5c]
xor ecx, esp
call fcn.0044ed21
mov esp, ebp
pop ebp
ret
Function at 0x407370
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50dba0
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x5723f8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov dword [ebp - 4], 0
lea eax, [ebp - 0x34]
mov dword [ebp - 0x58], vtable.._AV___Func_impl_U___Callable_obj_V_lambda_7cfc4cde948b804924dc5f21525f617e____0A__std__V__allocator_V___Func_class_X___V_std___2_X___V_std__.0
mov dword [ebp - 0x54], eax
lea eax, [ebp - 0x58]
mov dword [ebp - 0x48], eax
lea eax, [ebp - 0x30]
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x5c], eax
push eax
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 4
call dword [vtable.._AV___Func_impl_U___Callable_obj_V_lambda_7cfc4cde948b804924dc5f21525f617e____0A__std__V__allocator_V___Func_class_X___V_std___2_X___V_std__.0]
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x48]
mov dword [ebp - 0x20], eax
mov byte [ebp - 0x18], 0
test ecx, ecx
je 0x4073f3
mov edx, dword [ecx]
lea eax, [ebp - 0x58]
cmp ecx, eax
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
cmp dword [ebp + 0x1c], 8
lea ecx, [ebp - 0x34]
push ecx
push 0x20019
lea eax, [ebp + 8]
cmovae eax, dword [ebp + 8]
push 0
push eax
push reloc.WS2_32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40746e
cmp dword [ebp + 0x34], 8
lea ecx, [ebp - 0x40]
push ecx
push 0
lea ecx, [ebp - 0x38]
push ecx
lea eax, [ebp + 0x20]
cmovae eax, dword [ebp + 0x20]
push 0
push eax
push dword [ebp - 0x34]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40746e
cmp dword [ebp - 0x38], 4
jne 0x40746e
cmp dword [ebp + 0x34], 8
lea ecx, [ebp - 0x40]
push ecx
lea ecx, [ebp - 0x3c]
push ecx
lea ecx, [ebp - 0x38]
push ecx
lea eax, [ebp + 0x20]
cmovae eax, dword [ebp + 0x20]
push 0
push eax
push dword [ebp - 0x34]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40746e
mov esi, dword [ebp - 0x3c]
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 1
call fcn.00402690
cmp dword [ebp + 0x1c], 8
jb 0x40748b
push dword [ebp + 8]
call fcn.0044ef7f
add esp, 4
xor eax, eax
mov dword [ebp + 0x1c], 7
cmp dword [ebp + 0x34], 8
mov dword [ebp + 0x18], 0
mov word [ebp + 8], ax
jb 0x4074b0
push dword [ebp + 0x20]
call fcn.0044ef7f
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0044ed21
mov esp, ebp
pop ebp
ret
Function at 0x4074d0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50dc08
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x5723f8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 4], 0
lea eax, [ebp - 0x34]
mov dword [ebp - 0x50], vtable.._AV___Func_impl_U___Callable_obj_V_lambda_834044dcc4f2b70ceb6445c6eed5f2f8____0A__std__V__allocator_V___Func_class_X___V_std___2_X___V_std__.0
mov dword [ebp - 0x4c], eax
lea eax, [ebp - 0x50]
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0x30]
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x54], eax
push eax
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 5
call dword [vtable.._AV___Func_impl_U___Callable_obj_V_lambda_834044dcc4f2b70ceb6445c6eed5f2f8____0A__std__V__allocator_V___Func_class_X___V_std___2_X___V_std__.0]
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x40]
mov dword [ebp - 0x20], eax
mov byte [ebp - 0x18], 0
test ecx, ecx
je 0x407554
mov edx, dword [ecx]
lea eax, [ebp - 0x50]
cmp ecx, eax
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
cmp dword [ebp + 0x1c], 8
lea ecx, [ebp - 0x34]
push ecx
push 0x2001f
lea eax, [ebp + 8]
cmovae eax, dword [ebp + 8]
push 0
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x40757a
xor bl, bl
jmp 0x4075af
mov eax, dword [ebp + 0x48]
lea edx, [ebp + 0x38]
cmp dword [ebp + 0x4c], 8
lea ecx, [ebp + 0x20]
cmovae edx, dword [ebp + 0x38]
cmp dword [ebp + 0x34], 8
lea eax, [eax*2 + 4]
push eax
cmovae ecx, dword [ebp + 0x20]
push edx
push 1
push 0
push ecx
push dword [ebp - 0x34]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
sete bl
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 2
call fcn.00402690
cmp dword [ebp + 0x1c], 8
jb 0x4075cc
push dword [ebp + 8]
call fcn.0044ef7f
add esp, 4
xor eax, eax
mov dword [ebp + 0x1c], 7
cmp dword [ebp + 0x34], 8
mov dword [ebp + 0x18], 0
mov word [ebp + 8], ax
jb 0x4075f1
push dword [ebp + 0x20]
call fcn.0044ef7f
add esp, 4
xor eax, eax
mov dword [ebp + 0x34], 7
cmp dword [ebp + 0x4c], 8
mov dword [ebp + 0x30], 0
mov word [ebp + 0x20], ax
jb 0x407616
push dword [ebp + 0x38]
call fcn.0044ef7f
add esp, 4
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0044ed21
mov esp, ebp
pop ebp
ret
Function at 0x407640
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50dc60
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x5723f8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x38], edx
mov dword [ebp - 4], 0
lea eax, [ebp - 0x34]
mov dword [ebp - 0x50], vtable.._AV___Func_impl_U___Callable_obj_V_lambda_110873d8c573e8d6a55b8b21535740f9____0A__std__V__allocator_V___Func_class_X___V_std___2_X___V_std__.0
mov dword [ebp - 0x4c], eax
lea eax, [ebp - 0x50]
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0x30]
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x54], eax
push eax
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 4
call dword [vtable.._AV___Func_impl_U___Callable_obj_V_lambda_110873d8c573e8d6a55b8b21535740f9____0A__std__V__allocator_V___Func_class_X___V_std___2_X___V_std__.0]
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x40]
mov dword [ebp - 0x20], eax
mov byte [ebp - 0x18], 0
test ecx, ecx
je 0x4076c4
mov edx, dword [ecx]
lea eax, [ebp - 0x50]
cmp ecx, eax
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
cmp dword [ebp + 0x1c], 8
lea ecx, [ebp - 0x34]
push ecx
push 0x2001f
lea eax, [ebp + 8]
cmovae eax, dword [ebp + 8]
push 0
push eax
push reloc.WS2_32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x4076ee
xor bl, bl
jmp 0x407712
cmp dword [ebp + 0x34], 8
lea ecx, [ebp - 0x38]
push 4
push ecx
push 4
lea eax, [ebp + 0x20]
cmovae eax, dword [ebp + 0x20]
push 0
push eax
push dword [ebp - 0x34]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
sete bl
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 1
call fcn.00402690
cmp dword [ebp + 0x1c], 8
jb 0x40772f
push dword [ebp + 8]
call fcn.0044ef7f
add esp, 4
xor eax, eax
mov dword [ebp + 0x1c], 7
cmp dword [ebp + 0x34], 8
mov dword [ebp + 0x18], 0
mov word [ebp + 8], ax
jb 0x407754
push dword [ebp + 0x20]
call fcn.0044ef7f
add esp, 4
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0044ed21
mov esp, ebp
pop ebp
ret
Function at 0x4079a0
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50dd38
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x5723f8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea ecx, [ebp - 0x34]
mov dword [ebp - 4], 1
cmp dword [ebp + 0x1c], 8
lea eax, [ebp + 8]
push ecx
cmovae eax, dword [ebp + 8]
push 0x2001f
push 0
push eax
push reloc.WS2_32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x4079fa
xor bl, bl
jmp 0x407a3c
sub esp, 0x18
mov eax, esp
mov dword [eax], vtable.._AV___Func_impl_U___Callable_obj_V_lambda_167c2e2dcbb67ac2d955dfee07a0ca70____0A__std__V__allocator_V___Func_class_X___V_std___2_X___V_std__.0
lea ecx, [ebp - 0x34]
mov dword [eax + 4], ecx
lea ecx, [ebp - 0x30]
mov dword [eax + 0x10], eax
mov byte [ebp - 4], 1
call fcn.004027a0
cmp dword [ebp + 0x34], 8
lea eax, [ebp + 0x20]
cmovae eax, dword [ebp + 0x20]
push eax
push dword [ebp - 0x34]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
lea ecx, [ebp - 0x30]
sete bl
call fcn.00402690
cmp dword [ebp + 0x1c], 8
jb 0x407a4d
push dword [ebp + 8]
call fcn.0044ef7f
add esp, 4
xor eax, eax
mov dword [ebp + 0x1c], 7
cmp dword [ebp + 0x34], 8
mov dword [ebp + 0x18], 0
mov word [ebp + 8], ax
jb 0x407a72
push dword [ebp + 0x20]
call fcn.0044ef7f
add esp, 4
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0044ed21
mov esp, ebp
pop ebp
ret

Function at 0x409500
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50de3b
mov eax, dword fs:[0]
push eax
sub esp, 0x88
mov eax, dword [0x5723f8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea ecx, [ebp - 0x94]
call fcn.00488706
push 4
mov dword [ebp - 4], 0
call fcn.0048faf0
add esp, 4
push 0x53655c
push 0x6e
call fcn.0048b0e9
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x4095a0
push esi
call fcn.0048b0e9
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x409599
push esi
call fcn.0048b0e9
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
test eax, eax
je 0x409599
push 0
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
push eax
call fcn.0048fafd
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
lea ecx, [ebp - 0x94]
mov dword [ebp - 4], 0xffffffff
call fcn.004887ca
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.0044ed21
mov esp, ebp
pop ebp
ret
Function at 0x40aa30
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x50e00b
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push esi
push edi
mov eax, dword [0x5723f8]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 8]
mov dword [eax], 0
cmp ecx, 0x8002
jne 0x40ab9d
cmp dword [ebp + 0xc], 0x65
mov dword [eax], 1
je 0x40aa9a
mov eax, 1
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x10
mov eax, dword [ebp + 0x10]
sub eax, 0x201
je 0x40ab55
sub eax, 4
jne 0x40ac06
mov edi, dword [esi + 0x6f0]
test edi, edi
je 0x40aae0
mov al, byte [edi + 0x21]
mov ecx, edi
test al, al
je 0x40ab8f
call fcn.0049af45
push edi
call fcn.0044ef7f
add esp, 4
mov dword [esi + 0x6f0], 0
push 0x6dc
call fcn.0044f140
add esp, 4
mov dword [esp + 0x10], eax
mov dword [esp + 0x28], 0
test eax, eax
je 0x40ab06
mov ecx, eax
call fcn.0049ae02
jmp 0x40ab08
xor eax, eax
mov dword [esp + 0x28], 0xffffffff
lea ecx, [esp + 0x14]
mov dword [esi + 0x6f0], eax
call fcn.0048864d
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
push 0x11
push 0
lea eax, [esi + 0x30]
push eax
push dword [esp + 0x24]
push dword [esp + 0x24]
push ecx
mov eax, esp
push 0
mov dword [eax], 0x5368fc
mov ecx, dword [esi + 0x6f0]
call fcn.0049c927
jmp 0x40ac06
mov ecx, esi
call fcn.0047e500
mov ecx, eax
call fcn.0040da80
test al, al
je 0x40ab77
push 1
push 0
mov ecx, esi
call fcn.0048847f
jmp 0x40ac06
push str.WM_LBUTTONDOWN
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push 1
push 1
mov ecx, esi
call fcn.0048847f
mov ecx, esi
call fcn.0047e500
push eax
call dword [sym.imp.USER32.dll_SetForegroundWindow]
jmp 0x40ac06
cmp ecx, 0x8003
jne 0x40abb8
lea ecx, [esi + 0xab4]
mov dword [eax], 1
call fcn.00405110
jmp 0x40ac06
cmp ecx, 0x8004
jne 0x40abe8
cmp dword [ebp + 0xc], 0
mov dword [eax], 1
mov ecx, dword [esi + 0x6e4]
mov eax, dword [ecx]
je 0x40abde
push 0x536928
call dword [eax + 0x2c]
jmp 0x40ac06
push 0x536930
call dword [eax + 0x2c]
jmp 0x40ac06
cmp ecx, 0x81a
jne 0x40ac06
push 1
mov ecx, esi
mov dword [eax], 1
mov byte [0x57d3e0], 1
call fcn.00487f08
xor eax, eax
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x10
Function at 0x40cdd0
Capabilities:
Enumerate processes
Get session information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50e378
mov eax, dword fs:[0]
push eax
sub esp, 0x25c
mov eax, dword [0x5723f8]
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
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
mov dword [ebp - 4], eax
mov dword [ebp - 0x25c], eax
call fcn.0040cfa0
mov ebx, eax
mov dword [ebp - 0x264], 0
lea eax, [ebp - 0x264]
push eax
lea eax, [ebp - 0x25c]
push eax
push 4
push 0xffffffffffffffff
push 0
call dword [sym.imp.WTSAPI32.dll_WTSQuerySessionInformationW]
test eax, eax
je 0x40ce59
mov eax, dword [ebp - 0x25c]
push eax
mov ebx, dword [eax]
call dword [sym.imp.WTSAPI32.dll_WTSFreeMemory]
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
cmp edi, 0xffffffff
je 0x40cf53
push 0x208
lea eax, [ebp - 0x234]
mov dword [ebp - 0x258], 0x22c
push 0
push eax
call fcn.0045abe0
add esp, 0xc
lea eax, [ebp - 0x258]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x40cf53
lea eax, [ebp - 0x234]
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40ceb0
sub eax, edx
lea ecx, [ebp - 0x28]
sar eax, 1
push eax
lea eax, [ebp - 0x234]
push eax
call fcn.00403630
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push str.explorer.exe
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCmpIW]
test eax, eax
jne 0x40cf3d
lea eax, [ebp - 0x260]
push eax
push dword [ebp - 0x250]
call dword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
test eax, eax
je 0x40cf3d
cmp dword [ebp - 0x260], ebx
jne 0x40cf3d
push dword [ebp - 0x250]
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x40cf3d
lea eax, [ebp - 0x268]
push eax
push 8
push esi
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
push esi
test eax, eax
jne 0x40cf84
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x258]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x40cea4
xor ebx, ebx
cmp dword [ebp - 0x14], 8
jb 0x40cf66
push dword [ebp - 0x28]
call fcn.0044ef7f
add esp, 4
mov eax, ebx
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.0044ed21
mov esp, ebp
pop ebp
ret
mov ebx, dword [ebp - 0x268]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40cf55

Function at 0x40d460
Capabilities:
Check mutex on windows

Disassembly:
push str.dlg_AideClock_win_AideClock.exe
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [0x57d3ec], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x40d4b4
push 0
push str.dlg_AideClock_win_AideClock.exe
call dword [sym.imp.USER32.dll_FindWindowW]
test eax, eax
je 0x40d4a5
push 3
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
push dword [0x57d3ec]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
ret
mov eax, 1
ret
Function at 0x40d4c0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50e410
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x5723f8]
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 edi, ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov edx, eax
mov dword [ebp - 0x2c], 0xf
mov dword [ebp - 0x30], 0
mov byte [ebp - 0x40], 0
cmp byte [edx], 0
jne 0x40d510
xor ecx, ecx
jmp 0x40d51e
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40d515
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x40]
call fcn.004071b0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x28]
push 0
xor bl, bl
mov dword [ebp - 0x14], 0xf
push 0x53643a
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], bl
call fcn.004071b0
mov ecx, edi
mov byte [ebp - 4], 1
call fcn.004087e0
xor esi, esi
cmp dword [ebp - 0x30], esi
je 0x40d646
jmp 0x40d570
cmp dword [ebp - 0x2c], 0x10
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
cmp byte [eax + esi], 0x22
jne 0x40d5ba
test bl, bl
jne 0x40d5b6
xor eax, eax
mov bl, 1
cmp dword [ebp - 0x18], eax
setne al
test eax, eax
je 0x40d63c
lea eax, [ebp - 0x28]
mov ecx, edi
push eax
call fcn.0040e380
push 0
push 0x53643a
lea ecx, [ebp - 0x28]
call fcn.004071b0
jmp 0x40d63c
xor bl, bl
jmp 0x40d597
mov ecx, dword [ebp - 0x2c]
lea eax, [ebp - 0x40]
mov edx, dword [ebp - 0x40]
cmp ecx, 0x10
cmovae eax, edx
cmp byte [eax + esi], 0x20
jne 0x40d622
test bl, bl
je 0x40d5de
cmp ecx, 0x10
lea eax, [ebp - 0x40]
cmovae eax, edx
jmp 0x40d62d
cmp dword [ebp - 0x14], 0x10
lea ecx, [ebp - 0x28]
push 0
cmovae ecx, dword [ebp - 0x28]
mov edx, 0x53643a
call fcn.00406af0
add esp, 4
test eax, eax
jne 0x40d606
cmp dword [ebp - 0x18], eax
setne al
test eax, eax
je 0x40d63c
lea eax, [ebp - 0x28]
mov ecx, edi
push eax
call fcn.0040e380
push 0
push 0x53643a
lea ecx, [ebp - 0x28]
call fcn.004071b0
jmp 0x40d63c
cmp dword [ebp - 0x2c], 0x10
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
movzx eax, byte [eax + esi]
lea ecx, [ebp - 0x28]
push eax
push 1
call fcn.0040e450
inc esi
cmp esi, dword [ebp - 0x30]
jne 0x40d570
xor eax, eax
cmp dword [ebp - 0x18], eax
setne al
test eax, eax
je 0x40d65d
lea eax, [ebp - 0x28]
mov ecx, edi
push eax
call fcn.0040e380
cmp dword [ebp - 0x14], 0x10
jb 0x40d66e
push dword [ebp - 0x28]
call fcn.0044ef7f
add esp, 4
cmp dword [ebp - 0x2c], 0x10
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
jb 0x40d691
push dword [ebp - 0x40]
call fcn.0044ef7f
add esp, 4
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.0044ed21
mov esp, ebp
pop ebp
ret
Function at 0x40d790
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov eax, ecx
mov dword [ebp - 0x10], edx
push edi
lea ecx, [ebp - 4]
mov dword [ebp - 0xc], eax
push ecx
push eax
xor edi, edi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeA]
mov ebx, eax
test ebx, ebx
je 0x40d828
push esi
push ebx
call fcn.00451025
add esp, 4
mov esi, eax
push esi
push ebx
push dword [ebp - 4]
push dword [ebp - 0xc]
call dword [sym.imp.VERSION.dll_GetFileVersionInfoA]
test eax, eax
je 0x40d81e
lea eax, [ebp - 4]
mov dword [ebp - 8], edi
push eax
lea eax, [ebp - 8]
push eax
push 0x536438
push esi
call dword [sym.imp.VERSION.dll_VerQueryValueA]
mov edx, dword [ebp - 8]
test edx, edx
je 0x40d81e
mov ecx, dword [edx + 8]
mov eax, ecx
mov edi, dword [ebp - 0x10]
mov edx, dword [edx + 0xc]
shr eax, 0x10
movzx ecx, cx
mov dword [edi], eax
mov edi, 1
mov eax, dword [ebp + 8]
mov dword [eax], ecx
mov ecx, edx
mov eax, dword [ebp + 0xc]
shr ecx, 0x10
mov dword [eax], ecx
mov eax, dword [ebp + 0x10]
movzx ecx, dx
mov dword [eax], ecx
push esi
call fcn.0044f7e4
add esp, 4
pop esi
mov eax, edi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret