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

Disassembly:
sub esp, 0x228
mov eax, dword [0x40f01c]
xor eax, esp
mov dword [esp + 0x224], eax
mov eax, dword [ecx]
push ebx
mov ebx, dword [ecx + 4]
push ebp
push esi
push edi
mov edi, dword [esp + 0x23c]
mov dword [esp + 0x24], ecx
lea ecx, [esp + 0x20]
push ecx
xor ebp, ebp
or ebx, 0x2001f
push ebx
push ebp
push edi
push eax
mov dword [esp + 0x28], ebp
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x34], ebp
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ecx, dword [esp + 0x14]
mov esi, eax
cmp esi, ebp
jne 0x40408a
xor eax, eax
cmp ecx, ebp
je 0x404072
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x20]
and ebx, 0x300
mov esi, eax
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], ebx
cmp eax, ebp
je 0x404098
cmp ecx, ebp
je 0x40412b
push ecx
jmp 0x404125
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea edx, [esp + 0x28]
push edx
push ebp
push ebp
push ebp
lea eax, [esp + 0x2c]
push eax
lea edx, [esp + 0x44]
push edx
push ebp
push ecx
mov dword [esp + 0x3c], 0x100
call esi
test eax, eax
jne 0x4040fa
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x18]
call fcn.00404010
mov ebx, eax
cmp ebx, ebp
jne 0x404148
lea ecx, [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x18]
push ebp
push ebp
push ebp
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x44]
push eax
push ebp
push ecx
mov dword [esp + 0x3c], 0x100
call esi
test eax, eax
je 0x4040c0
mov eax, dword [esp + 0x14]
cmp eax, ebp
je 0x40410d
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x14], ebp
mov esi, dword [esp + 0x24]
mov dword [esp + 0x18], ebp
call fcn.004041c0
mov esi, eax
mov eax, dword [esp + 0x14]
cmp eax, ebp
je 0x40412b
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [esp + 0x234]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00408c84
add esp, 0x228
ret 4
mov eax, dword [esp + 0x14]
cmp eax, ebp
je 0x404157
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
jmp 0x40412d
Function at 0x404c40
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
lea ebp, [esp - 0x408]
sub esp, 0x408
push 0xffffffffffffffff
push 0x409ee0
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x40f01c]
xor eax, ebp
mov dword [ebp + 0x404], 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 + 0x410]
mov esi, dword [ebp + 0x414]
xor ebx, ebx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x28], ebx
mov dword [ebp], ebx
push 2
push ebx
push eax
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
mov dword [ebp - 0x18], edi
cmp edi, ebx
jne 0x404cbf
call fcn.004033f0
mov esi, eax
jmp 0x404da1
mov eax, dword [ebp - 0x14]
push eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
cmp esi, ebx
jne 0x404cdb
call fcn.004033f0
jmp 0x404d98
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x20], eax
cmp eax, ebx
jne 0x404cf4
call fcn.004033f0
jmp 0x404d98
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
lea ecx, [eax + 1]
mov dword [ebp - 0x14], eax
cmp ecx, eax
jae 0x404d28
lea ecx, [ebp + 4]
cmp dword [ebp], ecx
je 0x404d16
lea eax, [ebp]
call fcn.004033a0
lea esi, [ebp - 0x1c]
call fcn.00403b30
mov eax, 0x8007000e
jmp 0x404db3
mov eax, ecx
lea esi, [ebp]
mov byte [ebp - 4], 2
call fcn.004033b0
mov dword [ebp - 4], 1
jmp 0x404d51
mov ecx, dword [ebp]
cmp ecx, ebx
jne 0x404d5f
mov esi, 0x8007000e
jmp 0x404d9a
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x20]
push eax
push ecx
push eax
push edx
push ebx
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, ebx
jne 0x404d7d
call fcn.004033f0
jmp 0x404d98
mov edx, dword [ebp]
xor ecx, ecx
mov word [edx + eax*2], cx
mov eax, dword [ebp + 0x418]
mov ecx, dword [ebp]
push eax
lea edx, [ebp - 0x28]
call fcn.00404af0
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [ebp + 4]
cmp dword [ebp], ecx
je 0x404db1
lea eax, [ebp]
call fcn.004033a0
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 + 0x404]
xor ecx, ebp
call fcn.00408c84
add ebp, 0x408
mov esp, ebp
pop ebp
ret 0xc
Function at 0x405480
Capabilities:
Check if file exists
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x409a7b
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x40f01c]
xor eax, esp
mov dword [esp + 0x38], eax
push esi
mov eax, dword [0x40f01c]
xor eax, esp
push eax
lea eax, [esp + 0x44]
mov dword fs:[0], eax
lea eax, [esp + 0x24]
push eax
call fcn.00405120
push 0x40b700
lea ecx, [esp + 0x2c]
push ecx
lea edx, [esp + 0x14]
mov dword [esp + 0x58], 0
mov esi, dword [sym.imp.MSVCP90.dll_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____cdecl_std::operator_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const___wchar_t_const__]
push edx
call esi
add esp, 0x10
push eax
lea ecx, [esp + 0x28]
mov byte [esp + 0x50], 1
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__]
lea ecx, [esp + 8]
mov byte [esp + 0x4c], 0
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
push str..exe
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x10]
push ecx
call esi
add esp, 0xc
push eax
lea ecx, [esp + 0x28]
mov byte [esp + 0x50], 2
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__]
lea ecx, [esp + 8]
mov byte [esp + 0x4c], 0
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov eax, dword [esp + 0x28]
mov esi, 8
cmp dword [esp + 0x3c], esi
jae 0x405540
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40556a
mov eax, dword [esp + 0x28]
cmp dword [esp + 0x3c], esi
jae 0x405559
lea eax, [esp + 0x28]
push 1
push 0
push 0
push eax
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
lea ecx, [esp + 0x24]
mov dword [esp + 0x4c], 0xffffffff
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov ecx, dword [esp + 0x44]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x38]
xor ecx, esp
call fcn.00408c84
add esp, 0x48
ret
Function at 0x406300
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0x20
push esi
mov esi, ecx
cmp dword [esi + 0x70], 0
jne 0x406315
xor al, al
pop esi
add esp, 0x20
ret 4
push 0
lea eax, [esp + 0x18]
push eax
push 0
push 0x30
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
mov edx, dword [esi + 0x70]
lea ecx, [esp + 4]
push ecx
push edx
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 8]
sub eax, dword [esp + 0x10]
push 0x41
add eax, dword [esp + 0x24]
push 0
cdq
sub eax, edx
sar eax, 1
push 0
push eax
mov eax, dword [esp + 0x14]
sub eax, dword [esp + 0x1c]
add eax, dword [esp + 0x2c]
cdq
sub eax, edx
sar eax, 1
push eax
mov eax, dword [esi + 0x70]
push 0
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
mov ecx, dword [esp + 0x28]
mov edx, dword [esi + 0x70]
push ecx
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [esi + 0x70]
push eax
call dword [sym.imp.USER32.dll_UpdateWindow]
mov al, 1
pop esi
add esp, 0x20
ret 4
Function at 0x4080e0
Capabilities:
Acquire debug privileges

Disassembly:
sub esp, 0x14
push esi
lea eax, [esp + 4]
push eax
push 0x20
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x40814c
lea ecx, [esp + 0xc]
push ecx
push str.SeDebugPrivilege
push esi
mov dword [esp + 0x14], 1
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
mov eax, dword [esp + 4]
push esi
push esi
push 0x10
lea edx, [esp + 0x14]
push edx
push esi
push eax
mov dword [esp + 0x2c], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp + 4]
mov esi, eax
neg esi
sbb esi, esi
push ecx
inc esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
add esp, 0x14
ret
Function at 0x408320
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 8
mov eax, dword [ebx + 0x6c]
mov ecx, dword [eax]
push esi
push edi
mov edi, dword [ebx + 0x58]
mov dword [esp + 0xc], ecx
mov dword [esp + 8], edi
jmp 0x408340
mov esi, dword [ebx + 0x6c]
mov eax, dword [ebx + 0x58]
test edi, edi
je 0x40834e
cmp edi, eax
je 0x408354
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
cmp dword [esp + 0xc], esi
je 0x408484
test edi, edi
jne 0x408479
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
xor eax, eax
mov edx, dword [esp + 0xc]
cmp edx, dword [eax + 0x14]
jne 0x40837d
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov eax, dword [esp + 0xc]
mov edi, dword [eax + 8]
mov eax, dword [edi + 0x24]
mov dword [edi + 0xc], 1
test eax, eax
je 0x408399
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, dword [edi + 8]
lea esi, [edi + 4]
mov dword [esi + 8], 1
test eax, eax
je 0x4083da
push 0x1388
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x4083c9
mov ecx, dword [esi + 4]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov edx, dword [esi + 4]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 4], 0
mov eax, dword [edi + 0x24]
mov dword [edi + 0xc], 1
test eax, eax
je 0x4083ef
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, dword [esi + 4]
mov dword [esi + 8], 1
test eax, eax
je 0x40842d
push 0x1388
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x40841c
mov eax, dword [esi + 4]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov ecx, dword [esi + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 4], 0
mov eax, dword [edi + 0x24]
test eax, eax
je 0x40843b
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, esi
call fcn.00408580
push edi
call sub.MSVCR90.dll_void___cdecl_operator_delete_void__
mov eax, dword [esp + 0xc]
add esp, 4
test eax, eax
jne 0x408480
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
xor eax, eax
mov esi, dword [esp + 0xc]
cmp esi, dword [eax + 0x14]
jne 0x40846a
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov edx, dword [esi]
mov edi, dword [esp + 8]
mov dword [esp + 0xc], edx
jmp 0x408340
mov eax, dword [edi]
jmp 0x40836e
mov eax, dword [eax]
jmp 0x40845b
mov ecx, dword [ebx + 0x6c]
mov eax, dword [ecx]
mov dword [ecx], ecx
mov ecx, dword [ebx + 0x6c]
mov dword [ecx + 4], ecx
xor ecx, ecx
mov dword [ebx + 0x70], ecx
cmp eax, dword [ebx + 0x6c]
je 0x4084bf
jmp 0x4084a0
mov esi, dword [eax]
push eax
call sub.MSVCR90.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, esi
cmp esi, dword [ebx + 0x6c]
jne 0x4084a0
mov dword [ebx + 0x50], 0
pop edi
pop esi
mov esp, ebp
pop ebp
ret
pop edi
mov dword [ebx + 0x50], ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x408580
Capabilities:
Terminate thread

Disassembly:
push 0xffffffffffffffff
push 0x409bab
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x40f01c]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 8], esi
mov dword [esi], vtable.CThreadHolder.0
mov dword [esp + 0x14], 0
mov eax, dword [esi + 4]
mov dword [esi + 8], 1
test eax, eax
je 0x4085f1
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x4085e0
mov eax, dword [esi + 4]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov ecx, dword [esi + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 4], 0
cmp dword [esi + 0x14], 0
jne 0x408602
push esi
call fcn.004086d0
call fcn.00408750
mov eax, dword [esi + 0x18]
lea edx, [eax - 0xc]
cmp edx, 0x40f084
je 0x40862d
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x40862d
mov eax, dword [esi + 0x18]
sub eax, 0xc
push eax
call sub.MSVCR90.dll_void___cdecl_operator_delete___void__
add esp, 4
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret

Function at 0x408c84
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40f01c]
jne 0x408c8e
repz ret
jmp fcn.00409216
Function at 0x4021e0
Capabilities:
Find taskbar

Disassembly:
sub esp, 0x30
lea eax, [esp]
push esi
mov esi, dword [sym.imp.USER32.dll_GetWindowRect]
push edi
mov edi, dword [esp + 0x3c]
push eax
push edi
call esi
test eax, eax
je 0x4022e2
lea ecx, [esp + 0x28]
push 0
push ecx
push 0
push 0x30
call dword [sym.imp.USER32.dll_SystemParametersInfoA]
test eax, eax
je 0x4022e2
push 0x41feb8
push str.Shell_TrayWnd
call dword [sym.imp.USER32.dll_FindWindowA]
test eax, eax
je 0x4022e2
push 0x41feb8
push str.TrayNotifyWnd
push 0
push eax
call dword [sym.imp.USER32.dll_FindWindowExA]
test eax, eax
je 0x4022e2
lea edx, [esp + 0x18]
push edx
push eax
call esi
test eax, eax
je 0x4022e2
mov esi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push ebx
push 0
call esi
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x24]
add edx, ecx
push 1
cmp edx, eax
setl bl
call esi
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x28]
mov esi, dword [esp + 0xc]
add edx, ecx
cmp edx, eax
setl al
test bl, bl
je 0x402296
mov ecx, dword [esp + 0x2c]
jmp 0x4022a4
mov ebx, dword [esp + 0x14]
mov edx, dword [esp + 0x34]
mov ecx, esi
sub ecx, ebx
add ecx, edx
mov edx, dword [esp + 0x10]
test al, al
je 0x4022b2
mov eax, dword [esp + 0x30]
jmp 0x4022c0
mov ebx, dword [esp + 0x18]
mov eax, edx
sub eax, ebx
mov ebx, dword [esp + 0x38]
add eax, ebx
sub eax, edx
sub ecx, esi
push eax
lea eax, [esp + 0x10]
push ecx
push eax
call dword [sym.imp.USER32.dll_OffsetRect]
lea ecx, [esp + 0xc]
push 1
push ecx
push edi
call fcn.0040edf0
add esp, 0xc
pop ebx
pop edi
pop esi
add esp, 0x30
ret

Function at 0x402a70
Capabilities:
Hide graphical window

Disassembly:
mov eax, dword [0x41fe6c]
sub esp, 8
test eax, eax
jne 0x402af6
mov eax, dword [0x41fe70]
mov ecx, dword [esp + 0xc]
push 0
mov edx, dword [str.EFPinLayerWnd]
push eax
push 0
push ecx
push 1
push 1
push 0
push 0
push 0x90000000
push str.DeskPin
push edx
push 0xa8
call dword [sym.imp.USER32.dll_CreateWindowExA]
test eax, eax
mov dword [0x41fe6c], eax
je 0x402af6
push esi
push 5
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
lea eax, [esp + 4]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
mov esi, dword [sym.imp.USER32.dll_SetCursorPos]
push 0
push 0
call esi
push 0
push 0
push 0x64
push 0x64
push 2
call dword [sym.imp.USER32.dll_mouse_event]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
push ecx
push edx
call esi
pop esi
add esp, 8
ret
Function at 0x403580
Capabilities:
Inspect load icon resource

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x41897b
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
mov ebx, dword [esp + 0x2c]
push ebp
push esi
push edi
push ebx
mov dword [0x41fe64], ebx
call fcn.00403560
add esp, 4
push 0x11
call dword [sym.imp.GDI32.dll_GetStockObject]
push eax
call fcn.00410260
mov esi, dword [esp + 0x44]
mov ebp, dword [sym.imp.USER32.dll_GetDlgItem]
add esp, 4
test eax, eax
mov dword [esi], eax
je 0x4035fd
push 1
push eax
push 0x67
push ebx
call ebp
push eax
call fcn.0040fe90
mov eax, dword [esi]
add esp, 0xc
push 1
push eax
push 3
push 0x67
push ebx
call ebp
push eax
call dword [sym.imp.USER32.dll_GetWindow]
push eax
call fcn.0040fe90
add esp, 0xc
mov ecx, dword [0x41fe70]
push 1
push ecx
call dword [sym.imp.USER32.dll_LoadIconA]
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov esi, eax
push esi
push 1
push 0x80
push ebx
call edi
mov edx, dword [0x41fe88]
push edx
push 0
push 0x80
push ebx
call edi
mov eax, dword [0x41fe74]
test eax, eax
je 0x40364d
push esi
push 1
push 0x172
push 0x3e8
push ebx
call dword [sym.imp.USER32.dll_SendDlgItemMessageA]
mov edi, dword [esp + 0x3c]
mov dword [esp + 0x10], 0x66
mov dword [esp + 0x14], 0x6b
mov dword [esp + 0x18], 0x68
mov dword [esp + 0x1c], str.mailto:efotinis_pat.forthnet.gr
mov dword [esp + 0x20], str.http:__users.forthnet.gr_pat_efotinis_
mov dword [esp + 0x24], str.http:__users.forthnet.gr_pat_efotinis_programs_deskpins.html
xor esi, esi
push 0x3c
call fcn.004121f6
add esp, 4
mov dword [esp + 0x38], eax
test eax, eax
mov dword [esp + 0x30], 0
je 0x4036a8
push 0
mov ecx, eax
call fcn.00410330
jmp 0x4036aa
xor eax, eax
mov dword [esi + edi], eax
mov eax, dword [esp + esi + 0x10]
push eax
push ebx
mov dword [esp + 0x38], 0xffffffff
call ebp
mov ecx, dword [esi + edi]
push eax
call fcn.00410480
mov ecx, dword [esi + edi]
push 0
push 4
push 0
call fcn.004103d0
mov ecx, dword [esp + esi + 0x1c]
push ecx
mov ecx, dword [esi + edi]
call fcn.00410420
add esi, 4
cmp esi, 0xc
jl 0x403683
mov ecx, dword [esp + 0x28]
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x24
ret

Function at 0x408af0
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
push esi
mov esi, ecx
lea eax, [esp + 4]
lea ecx, [esp + 0xc]
push eax
mov eax, dword [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x18]
mov dword [esp + 0xc], 4
push edx
mov edx, dword [ecx]
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x408b31
cmp dword [esp + 0x10], 4
jne 0x408b31
cmp dword [esp + 4], 4
je 0x408b38
xor al, al
pop esi
pop ecx
ret 8
mov eax, dword [esp + 0xc]
mov ecx, eax
shr eax, 8
and ecx, 0xff
and eax, 0xff
test ecx, ecx
mov dword [esi + 4], ecx
mov dword [esi + 8], eax
jne 0x408b59
mov dword [esi + 8], ecx
mov al, 1
pop esi
pop ecx
ret 8
Function at 0x408b60
Capabilities:
Set registry value

Disassembly:
push ecx
xor eax, eax
mov edx, dword [esp + 0xc]
mov ah, byte [ecx + 8]
push 4
mov al, byte [ecx + 4]
lea ecx, [esp + 4]
mov dword [esp + 4], eax
mov eax, dword [esp + 0xc]
push ecx
push 4
mov ecx, dword [eax]
push 0
push edx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
neg eax
sbb eax, eax
inc eax
pop ecx
ret 8
Function at 0x408f30
Capabilities:
Set registry value

Disassembly:
sub esp, 0x18
push ebx
push ebp
push esi
mov ebx, ecx
mov ecx, dword [esp + 0x2c]
push edi
lea eax, [esp + 0x14]
push 0xa
push eax
push ecx
mov dword [esp + 0x1c], ebx
call fcn.00412660
lea edi, [esp + 0x20]
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea esi, [esp + ecx + 0x14]
mov byte [esi + 1], al
mov byte [esi], 0x44
mov edx, dword [ebx + 4]
test edx, edx
jne 0x408f75
mov edx, 0x41a3a0
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
mov ebx, dword [esp + 0x2c]
repne scasb al, byte es:[edi]
not ecx
mov ebp, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push ecx
push edx
push 1
push eax
mov eax, dword [ebx]
lea edx, [esp + 0x24]
push edx
push eax
call ebp
test eax, eax
jne 0x40903b
mov ecx, dword [esp + 0x10]
mov byte [esi], 0x54
mov edx, dword [ecx + 0x14]
test edx, edx
jne 0x408fb4
mov edx, 0x41a3a0
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
push edx
push 1
push eax
mov eax, dword [ebx]
lea edx, [esp + 0x24]
push edx
push eax
call ebp
test eax, eax
jne 0x40903b
mov ecx, dword [esp + 0x10]
mov byte [esi], 0x43
mov edx, dword [ecx + 0x24]
test edx, edx
jne 0x408fe5
mov edx, 0x41a3a0
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
push edx
push 1
push eax
mov eax, dword [ebx]
lea edx, [esp + 0x24]
push edx
push eax
call ebp
test eax, eax
jne 0x40903b
mov edx, dword [esp + 0x10]
xor ecx, ecx
mov byte [esi], 0x45
lea eax, [esp + 0x30]
mov cl, byte [edx + 0x30]
mov edx, dword [ebx]
push 4
mov dword [esp + 0x34], ecx
push eax
push 4
lea ecx, [esp + 0x20]
push 0
push ecx
push edx
call ebp
test eax, eax
jne 0x40903b
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x18
ret 8
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x18
ret 8
Function at 0x40c580
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
push edi
push 8
push ebx
call dword [sym.imp.USER32.dll_GetWindowLongA]
push ebx
mov esi, eax
call fcn.0040c550
mov edi, eax
mov eax, dword [esi]
add esp, 4
cmp eax, edi
je 0x40c5d4
push edi
mov ecx, 0x41fe58
mov dword [esi], edi
call fcn.00401510
mov eax, dword [0x41fe8c]
mov ecx, 0x41fea8
push eax
call fcn.0040d980
push edi
mov ecx, 0x41fe78
call fcn.0040c920
test al, al
je 0x40c5d4
call fcn.0040c630
lea ecx, [esp + 0x10]
push 1
push ecx
push 0x68
push ebx
call dword [sym.imp.USER32.dll_GetDlgItemInt]
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x40c5fc
cmp eax, dword [esi + 8]
jl 0x40c5fc
mov ecx, dword [esi + 0xc]
cmp eax, ecx
jle 0x40c5ff
mov eax, ecx
jmp 0x40c5ff
mov eax, dword [esi + 8]
cmp dword [esi + 4], eax
je 0x40c613
push eax
push 0x40c6c0
mov dword [esi + 4], eax
call dword [sym.imp.USER32.dll_EnumWindows]
push 0x6d
push ebx
call dword [sym.imp.USER32.dll_IsDlgButtonChecked]
test eax, eax
setne dl
mov byte [esi + 0x14], dl
pop edi
pop esi
pop ebx
ret
Function at 0x40f9a4
Capabilities:
Check mutex on windows

Disassembly:
mov eax, dword [esp + 4]
push esi
mov esi, ecx
mov eax, dword [eax + 4]
test eax, eax
jne 0x40f9b3
mov eax, 0x41a3a0
push eax
push 1
push 0
call dword [sym.imp.KERNEL32.DLL_CreateMutexA]
test eax, eax
mov dword [esi], eax
je 0x40f9d5
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0xb7
sete cl
mov byte [esi + 4], cl
mov eax, esi
pop esi
ret 4

Function at 0x40fa20
Capabilities:
Get graphical window text

Disassembly:
push 0xffffffffffffffff
push 0x4192b8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
mov ebx, dword [esp + 0x18]
push ebp
push esi
push edi
push ebx
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea edi, [eax + 1]
push edi
call fcn.004121f6
mov esi, eax
add esp, 4
mov dword [esp + 0x24], esi
mov dword [esp + 0x10], esi
push edi
push esi
push ebx
mov dword [esp + 0x28], 0
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebx, ecx
cmp ebx, 0xfffffffd
jbe 0x40fa84
call fcn.00411ac0
mov ebp, dword [esp + 0x28]
mov ecx, dword [ebp + 4]
test ecx, ecx
je 0x40faad
mov al, byte [ecx - 1]
test al, al
je 0x40faad
cmp al, 0xff
je 0x40faad
test ebx, ebx
jne 0x40fad1
dec al
push ebx
mov byte [ecx - 1], al
mov ecx, ebp
call fcn.004037a0
jmp 0x40fafa
test ebx, ebx
jne 0x40fabc
push 1
mov ecx, ebp
call fcn.004037a0
jmp 0x40fafa
mov eax, dword [ebp + 0xc]
cmp eax, 0x1f
ja 0x40fac8
cmp eax, ebx
jae 0x40fad9
push 1
mov ecx, ebp
call fcn.004037a0
push ebx
mov ecx, ebp
call fcn.00401700
mov edi, dword [ebp + 4]
mov ecx, ebx
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp + 4]
mov esi, dword [esp + 0x24]
mov dword [ebp + 8], ebx
mov byte [ecx + ebx], 0
push esi
call fcn.00411e17
mov ecx, dword [esp + 0x18]
add esp, 4
mov al, 1
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret