joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40d005
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x416020]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push 4
pop edx
cmp ecx, edx
jge 0x40d028
mov dword [eax], edx
jmp 0x40d059
push ecx
push 0
push esi
call sub.MSVCR80.dll_memset
add esp, 0xc
push 0x104
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push 3
lea eax, [ebp - 0x108]
push eax
push esi
call dword [sym.imp.MSVCR80.dll_strncpy]
add esp, 0xc
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040e876
leave
ret

Function at 0x40d065
Capabilities:
Create directory

Disassembly:
push ebp
lea ebp, [esp - 0x198]
sub esp, 0x218
mov eax, dword [0x416020]
xor eax, ebp
mov dword [ebp + 0x194], eax
push ebx
push esi
mov esi, dword [sym.imp.MSVCR80.dll_sprintf]
push edi
lea eax, [ebp - 0x80]
push 0x4117a4
push eax
mov edi, ecx
call esi
lea eax, [ebp - 0x7c]
push 0x4128b8
push eax
call esi
push edi
lea eax, [ebp + 0x90]
push 0x4128bc
push eax
call esi
mov ebx, dword [sym.imp.MSVCR80.dll_strchr]
lea esi, [ebp + 0x90]
mov dword [ebp - 0x78], 1
mov eax, esi
add esp, 0x1c
sub dword [ebp - 0x78], eax
movsx eax, byte [ebp - 0x80]
push eax
push esi
call ebx
test eax, eax
pop ecx
pop ecx
jne 0x40d0e7
movsx eax, byte [ebp - 0x7c]
push eax
push esi
call ebx
test eax, eax
pop ecx
pop ecx
je 0x40d128
mov al, byte [esi]
cmp al, byte [ebp - 0x80]
je 0x40d0f3
cmp al, byte [ebp - 0x7c]
jne 0x40d125
mov ecx, dword [ebp - 0x78]
lea edi, [ecx + esi]
xor eax, eax
test edi, edi
jle 0x40d115
push edi
lea eax, [ebp + 0x90]
push eax
lea eax, [ebp - 0x74]
push eax
call sub.MSVCR80.dll_memcpy
add esp, 0xc
mov eax, edi
mov byte [ebp + eax - 0x74], 0
lea eax, [ebp - 0x74]
push eax
call dword [sym.imp.MSVCR80.dll__mkdir]
pop ecx
inc esi
jmp 0x40d0cb
mov ecx, dword [ebp + 0x194]
pop edi
pop esi
xor ecx, ebp
mov al, 1
pop ebx
call fcn.0040e876
add ebp, 0x198
leave
ret
Function at 0x40d142
Capabilities:
Create shortcut via ishelllink
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x4b4]
sub esp, 0x534
mov eax, dword [0x416020]
xor eax, ebp
mov dword [ebp + 0x4b0], eax
push ebx
push esi
xor ebx, ebx
push ebx
mov esi, ecx
call dword [sym.imp.ole32.dll_CoInitialize]
test eax, eax
jge 0x40d187
xor al, al
mov ecx, dword [ebp + 0x4b0]
pop esi
xor ecx, ebp
pop ebx
call fcn.0040e876
add ebp, 0x4b4
leave
ret
cmp dword [ebp + 0x4bc], 1
push 0x10
pop eax
jne 0x40d196
push 2
pop eax
lea ecx, [ebp - 0x80]
push ecx
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jl 0x40d1ba
lea eax, [ebp + 0x198]
push eax
push dword [ebp - 0x80]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
test eax, eax
jne 0x40d1c4
call dword [sym.imp.ole32.dll_CoUninitialize]
mov al, bl
jmp 0x40d170
lea eax, [ebp + 0x198]
push eax
lea eax, [ebp + 0x3a8]
push eax
call sub.MSVCR80.dll_strcpy
lea eax, [ebp + 0x3a8]
push 0x4117a4
push eax
call sub.MSVCR80.dll_strcat
lea eax, [ebp + 0x3a8]
push edi
push eax
call sub.MSVCR80.dll_strcat
add esp, 0x18
cmp byte [ebp + 0x4c0], bl
je 0x40d20f
lea ecx, [ebp + 0x3a8]
call fcn.0040d065
mov bl, 1
jmp 0x40d1ba
lea eax, [ebp + 0x3a8]
push str..lnk
push eax
call sub.MSVCR80.dll_strcat
pop ecx
pop ecx
lea eax, [ebp - 0x78]
push eax
push 0x411558
push 1
push ebx
push 0x411568
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x40d1ba
mov eax, dword [ebp - 0x78]
mov ecx, dword [eax]
push esi
push eax
call dword [ecx + 0x50]
lea eax, [ebp + 0x2a0]
push esi
push eax
call sub.MSVCR80.dll_strcpy
lea eax, [ebp + 0x2a0]
push 0x5c
push eax
call dword [sym.imp.MSVCR80.dll_strrchr]
push 2
mov esi, eax
lea eax, [ebp - 0x74]
push ebx
push eax
call sub.MSVCR80.dll_memset
mov al, byte [ebp + 0x2a0]
mov byte [ebp - 0x74], al
lea eax, [ebp - 0x74]
push eax
call dword [sym.imp.MSVCR80.dll__strupr]
mov al, byte [ebp - 0x74]
mov byte [ebp + 0x2a0], al
add esp, 0x20
mov byte [esi], bl
mov eax, dword [ebp - 0x78]
mov ecx, dword [eax]
lea edx, [ebp + 0x2a0]
push edx
push eax
call dword [ecx + 0x24]
mov eax, dword [ebp - 0x78]
mov ecx, dword [eax]
lea edx, [ebp - 0x7c]
push edx
push 0x411578
push eax
call dword [ecx]
test eax, eax
jl 0x40d300
push 0x104
lea eax, [ebp - 0x70]
push eax
push 0xffffffffffffffff
lea eax, [ebp + 0x3a8]
push eax
push 1
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [ebp - 0x7c]
mov ecx, dword [eax]
push ebx
lea edx, [ebp - 0x70]
push edx
push eax
call dword [ecx + 0x18]
test eax, eax
jl 0x40d300
mov eax, dword [ebp - 0x7c]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x78]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x40d20b
mov eax, dword [ebp - 0x7c]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x78]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x40d1ba
Function at 0x40d317
Capabilities:
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x416020]
xor eax, ebp
mov dword [ebp - 4], eax
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
test eax, eax
jl 0x40d3e8
cmp dword [ebp + 8], 1
push 0x10
pop eax
jne 0x40d347
push 2
jmp 0x40d34f
cmp dword [ebp + 8], 2
jne 0x40d350
push 0x17
pop eax
lea ecx, [ebp - 0x21c]
push ecx
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jl 0x40d3e2
lea eax, [ebp - 0x218]
push eax
push dword [ebp - 0x21c]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
test eax, eax
je 0x40d3e2
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x110]
push eax
call sub.MSVCR80.dll_strcpy
lea eax, [ebp - 0x110]
push 0x4117a4
push eax
call sub.MSVCR80.dll_strcat
lea eax, [ebp - 0x110]
push esi
push eax
call sub.MSVCR80.dll_strcat
add esp, 0x18
cmp byte [ebp + 0xc], 0
lea eax, [ebp - 0x110]
je 0x40d3c6
push eax
call fcn.0040d5d1
pop ecx
mov al, 1
jmp 0x40d3ea
push str..lnk
push eax
call sub.MSVCR80.dll_strcat
pop ecx
pop ecx
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x40d3e8
call dword [sym.imp.ole32.dll_CoUninitialize]
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040e876
leave
ret
Function at 0x40d3f6
Capabilities:
Set registry value

Disassembly:
push ebp
lea ebp, [esp - 0x3a0]
sub esp, 0x420
mov eax, dword [0x416020]
xor eax, ebp
mov dword [ebp + 0x39c], eax
mov eax, dword [ebp + 0x3ac]
push ebx
mov ebx, dword [ebp + 0x3b4]
push esi
mov esi, dword [ebp + 0x3b0]
push edi
mov edi, dword [ebp + 0x3a8]
mov dword [ebp - 0x7c], ebx
xor ebx, ebx
cmp edi, ebx
mov dword [ebp - 0x80], eax
mov dword [ebp - 0x74], ecx
mov dword [ebp - 0x78], edx
mov dword [ebp - 0x6c], esi
je 0x40d5b9
cmp eax, ebx
je 0x40d5b9
cmp ecx, ebx
je 0x40d5b9
cmp edx, ebx
je 0x40d5b9
cmp esi, ebx
je 0x40d5b9
push 0x400
lea eax, [ebp - 0x64]
push ebx
mov esi, 0x80000002
push eax
mov dword [ebp - 0x68], esi
call sub.MSVCR80.dll_memset
push edi
mov edi, dword [sym.imp.MSVCR80.dll_sprintf]
lea eax, [ebp - 0x64]
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstall_s
push eax
call edi
add esp, 0x18
lea eax, [ebp - 0x68]
push eax
push 0xf003f
push ebx
lea eax, [ebp - 0x64]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x40d4b9
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x64]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
push dword [ebp - 0x80]
call sub.MSVCR80.dll_strlen
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop ecx
inc eax
push eax
push dword [ebp - 0x80]
push 2
push ebx
push str.DisplayName
push dword [ebp - 0x68]
call esi
push 4
lea eax, [ebp - 0x70]
push eax
push 4
push ebx
push str.NoModify
push dword [ebp - 0x68]
mov dword [ebp - 0x70], 1
call esi
push 4
lea eax, [ebp - 0x70]
push eax
push 4
push ebx
push str.NoRepair
push dword [ebp - 0x68]
call esi
cmp dword [ebp - 0x7c], ebx
lea eax, [ebp - 0x64]
jne 0x40d51f
push dword [ebp - 0x6c]
push str.__s_
push eax
call edi
add esp, 0xc
jmp 0x40d530
push dword [ebp - 0x7c]
push dword [ebp - 0x6c]
push str.__s____U:_s_
push eax
call edi
add esp, 0x10
lea eax, [ebp - 0x64]
push eax
call sub.MSVCR80.dll_strlen
pop ecx
inc eax
push eax
lea eax, [ebp - 0x64]
push eax
push 2
push ebx
push str.UninstallString
push dword [ebp - 0x68]
call esi
push dword [ebp - 0x74]
call sub.MSVCR80.dll_strlen
pop ecx
inc eax
push eax
push dword [ebp - 0x74]
push 2
push ebx
push str.Publisher
push dword [ebp - 0x68]
call esi
push dword [ebp - 0x78]
call sub.MSVCR80.dll_strlen
pop ecx
inc eax
push eax
push dword [ebp - 0x78]
push 2
push ebx
push str.Contact
push dword [ebp - 0x68]
call esi
push dword [ebp - 0x6c]
lea eax, [ebp - 0x64]
push str.__s_
push eax
call edi
lea eax, [ebp - 0x64]
push eax
call sub.MSVCR80.dll_strlen
add esp, 0x10
inc eax
push eax
lea eax, [ebp - 0x64]
push eax
push 2
push ebx
push str.DisplayIcon
push dword [ebp - 0x68]
call esi
push dword [ebp - 0x68]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp + 0x39c]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040e876
add ebp, 0x3a0
leave
ret
Function at 0x40d5d1
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push 0x290
mov eax, 0x40f3d0
call fcn.0040f21e
mov esi, dword [ebp + 8]
test esi, esi
je 0x40d774
lea eax, [ebp - 0x118]
push esi
push eax
call sub.MSVCR80.dll_strcpy
lea eax, [ebp - 0x118]
push 0x412958
push eax
call sub.MSVCR80.dll_strcat
add esp, 0x10
lea eax, [ebp - 0x278]
push eax
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
lea ecx, [ebp - 0x134]
mov dword [ebp - 0x27c], eax
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_void_]
and dword [ebp - 4], 0
cmp dword [ebp - 0x27c], 0xffffffff
je 0x40d750
push 0x41295c
lea eax, [ebp - 0x24c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x40d735
push 0x412960
lea eax, [ebp - 0x24c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x40d735
push esi
lea ecx, [ebp - 0x134]
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator_char_const__]
lea eax, [ebp - 0x24c]
push eax
lea ecx, [ebp - 0x134]
call dword [0x4111c4]
test byte [ebp - 0x278], 0x10
je 0x40d719
push 0x4117a4
lea ecx, [ebp - 0x134]
call dword [0x4111c4]
push 0x1e
lea eax, [ebp - 0x29c]
push 0
push eax
call sub.MSVCR80.dll_memset
and dword [ebp - 0x29c], 0
mov eax, dword [ebp - 0x130]
add esp, 0xc
cmp dword [ebp - 0x11c], 0x10
mov dword [ebp - 0x298], 3
mov word [ebp - 0x28c], 0x44
jb 0x40d6f5
mov dword [ebp - 0x294], eax
jmp 0x40d701
lea ecx, [ebp - 0x130]
mov dword [ebp - 0x294], ecx
cmp dword [ebp - 0x11c], 0x10
jae 0x40d710
lea eax, [ebp - 0x130]
push eax
call fcn.0040d5d1
pop ecx
jmp 0x40d735
cmp dword [ebp - 0x11c], 0x10
mov eax, dword [ebp - 0x130]
jae 0x40d72e
lea eax, [ebp - 0x130]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [ebp - 0x278]
push eax
push dword [ebp - 0x27c]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40d643
push dword [ebp - 0x27c]
call dword [sym.imp.KERNEL32.dll_FindClose]
push esi
call dword [sym.imp.MSVCR80.dll__rmdir]
or dword [ebp - 4], 0xffffffff
pop ecx
lea ecx, [ebp - 0x134]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
call fcn.0040f268
ret
Function at 0x40d77a
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
push dword [ebp + 0x10]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x40d7ef
push dword [ebp + 0x10]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
je 0x40d7ef
push edi
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push edi
push ebx
push eax
call sub.MSVCR80.dll_memcpy
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push 1
push esi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
push dword [ebp - 4]
push dword [ebp + 0xc]
call fcn.0040dc2c
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40e45d
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x416020]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.0040e39c
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call sub.MSVCR80.dll_memset
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x40e4ac
cmp dword [ebp - 0x1c], 5
jb 0x40e4c4
jmp 0x40e4c0
cmp dword [ebp - 0x10], 1
jne 0x40e4c4
cmp dword [ebp - 0x1c], 4
ja 0x40e4c0
jne 0x40e4c4
cmp dword [ebp - 0x18], 0
jbe 0x40e4c4
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x41150c
call fcn.0040e232
test eax, eax
jge 0x40e4e5
mov byte [0x41a360], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0040e876
add ebp, 0x78
leave
ret

Function at 0x40e876
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x416020]
jne 0x40e880
repz ret
jmp fcn.0040ee80
Function at 0x408678
Capabilities:
Get system information on windows

Disassembly:
add esp, 0xffffffdc
push esp
call sub.kernel32.dll_GetSystemInfo
mov eax, dword [esp + 0x14]
add esp, 0x24
ret
Function at 0x4013b0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 4]
push ebx
push esi
push edi
push str.BINRES
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
jne 0x4013d1
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push 0
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, dword [esp + 0x14]
push 0x4130b8
push ecx
mov edi, eax
call fcn.004093b2
mov esi, eax
add esp, 8
test esi, esi
jne 0x40140e
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push ebx
push 1
push edi
call fcn.00409288
push esi
call fcn.00409232
add esp, 0x14
mov al, 1
pop edi
pop esi
pop ebx
ret
Function at 0x4057d0
Capabilities:
Identify system language via api

Disassembly:
push esi
mov esi, dword [esp + 0xc]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
mov edi, dword [esp + 0x10]
push eax
push edi
call fcn.004056e0
add esp, 0xc
test eax, eax
jne 0x40580d
push esi
push 0x409
push edi
call fcn.004056e0
add esp, 0xc
test eax, eax
jne 0x40580d
push esi
push eax
push edi
call fcn.004056e0
add esp, 0xc
pop edi
pop esi
ret
Function at 0x408770
Capabilities:
Hide graphical window

Disassembly:
push esi
push edi
xor edi, edi
call fcn.00408aa0
mov esi, dword [esp + 0x14]
push esi
call fcn.00410dfc
push 0x414038
push esi
call fcn.00409660
add esp, 0xc
test eax, eax
jne 0x408963
push 0x414034
push esi
call fcn.00409660
add esp, 8
test eax, eax
jne 0x408963
push 0x414030
push esi
call fcn.00409660
add esp, 8
test eax, eax
jne 0x4087d3
push 0x41402c
push esi
call fcn.00409660
add esp, 8
test eax, eax
je 0x4087d8
mov edi, 1
push 0x414028
push esi
call fcn.00409660
add esp, 8
test eax, eax
jne 0x4087fc
push 0x414024
push esi
call fcn.00409660
add esp, 8
test eax, eax
je 0x4087ff
or edi, 2
mov eax, dword [esp + 0xc]
mov ecx, dword [0x41970c]
mov edx, dword [0x419708]
push edi
mov dword [0x4197ac], eax
push eax
mov eax, dword [0x419710]
push 0
push 0
push eax
mov eax, dword [0x419704]
push ecx
mov ecx, dword [esp + 0x30]
push edx
push eax
push 0xcf0000
push str.Registry_Monitor___Sysinternals:_www.sysinternals.com
push ecx
push 0
call dword [sym.imp.USER32.dll_CreateWindowExA]
test eax, eax
mov dword [0x41978c], eax
je 0x408977
mov edx, dword [esp + 0x10]
push ebx
mov ebx, dword [sym.imp.USER32.dll_ShowWindow]
push edx
push eax
call ebx
mov eax, dword [0x41978c]
push eax
call dword [sym.imp.USER32.dll_UpdateWindow]
mov cl, byte [0x4196f5]
mov edx, dword [0x4197a4]
neg cl
sbb ecx, ecx
add ecx, 0xb
push ecx
push 0x9c5d
push 0x42b
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [0x4197a4]
push 1
push 0
push eax
call dword [sym.imp.USER32.dll_InvalidateRect]
mov cl, byte [0x4196f5]
mov edx, dword [0x41978c]
neg cl
mov esi, dword [sym.imp.USER32.dll_GetMenu]
sbb ecx, ecx
and ecx, 8
push ecx
push 0x9c5d
push edx
call esi
mov edi, dword [sym.imp.USER32.dll_CheckMenuItem]
push eax
call edi
mov al, byte [0x4194e4]
mov ecx, dword [0x41978c]
neg al
sbb eax, eax
and eax, 8
push eax
push 0x9c61
push ecx
call esi
push eax
call edi
mov al, byte [0x4196f5]
xor edx, edx
test al, al
mov eax, dword [0x41978c]
sete dl
push edx
push 0x9c61
push eax
call esi
push eax
call dword [sym.imp.USER32.dll_EnableMenuItem]
mov al, byte [0x419734]
test al, al
je 0x40891a
mov ecx, dword [0x41978c]
push 3
push ecx
call ebx
mov al, byte [0x4196f4]
pop ebx
test al, al
je 0x40895b
mov edx, dword [0x41978c]
push 3
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push edx
call dword [sym.imp.USER32.dll_SetWindowPos]
mov al, byte [0x4196f4]
mov ecx, dword [0x41978c]
neg al
sbb eax, eax
and eax, 8
push eax
push 0x9c5e
push ecx
call esi
push eax
call edi
mov eax, dword [0x41978c]
pop edi
pop esi
ret
push 0x40
push str.Regmon
push str.Regmon_usage:_n_nRegmon___q____o__n______q_______Dont_prompt_for_filter_confirmation_on_startup_n______o_______Start_with_capture_off
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
pop edi
xor eax, eax
pop esi
ret
Function at 0x408980
Capabilities:
Acquire debug privileges

Disassembly:
sub esp, 0x120
lea eax, [esp + 0x1c]
push esi
mov esi, dword [esp + 0x128]
push edi
push eax
push esi
call fcn.004086a0
add esp, 8
test eax, eax
jne 0x4089ac
pop edi
pop esi
add esp, 0x120
ret 0x10
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
setb al
test al, al
mov byte [0x419784], al
je 0x4089d0
push str.SeDebugPrivilege
call fcn.004085d0
add esp, 4
mov edx, dword [esp + 0x134]
mov eax, dword [esp + 0x138]
lea ecx, [esp + 0x24]
push ecx
push edx
push eax
push esi
call fcn.00408770
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x4089ff
pop edi
pop esi
add esp, 0x120
ret 0x10
push ebp
push str.ACCELERATORS
push esi
call dword [sym.imp.USER32.dll_LoadAcceleratorsA]
push str.commdlg_FindReplace
mov esi, eax
call dword [sym.imp.USER32.dll_RegisterWindowMessageA]
mov ebp, dword [sym.imp.USER32.dll_GetMessageA]
push 0
push 0
lea ecx, [esp + 0x14]
push 0
push ecx
mov dword [0x4297b4], eax
call ebp
test eax, eax
je 0x408a8a
push ebx
mov ebx, dword [sym.imp.USER32.dll_TranslateAcceleratorA]
mov eax, dword [0x417124]
test eax, eax
je 0x408a55
lea edx, [esp + 0x10]
push edx
push eax
call dword [sym.imp.USER32.dll_IsDialogMessageA]
test eax, eax
jne 0x408a78
lea eax, [esp + 0x10]
push eax
push esi
push edi
call ebx
test eax, eax
jne 0x408a78
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.USER32.dll_TranslateMessage]
lea edx, [esp + 0x10]
push edx
call dword [sym.imp.USER32.dll_DispatchMessageA]
push 0
push 0
lea eax, [esp + 0x18]
push 0
push eax
call ebp
test eax, eax
jne 0x408a3c
pop ebx
pop ebp
pop edi
xor eax, eax
pop esi
add esp, 0x120
ret 0x10
Function at 0x40dd86
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x416448
cmp edx, dword [eax]
je 0x40dda8
add eax, 8
inc ecx
cmp eax, 0x4164d8
jl 0x40dd99
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x416448]
jne 0x40ded6
mov eax, dword [0x4194f8]
cmp eax, 1
je 0x40deb0
test eax, eax
jne 0x40ddd9
cmp dword [0x41412c], 1
je 0x40deb0
cmp edx, 0xfc
je 0x40ded6
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40de10
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.0040f7c0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.0040ba60
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x40de53
lea eax, [ebp - 0x1a4]
push eax
call fcn.0040ba60
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x411758
push edi
call fcn.00409420
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.0040f7c0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0040f7d0
lea eax, [ebp - 0xa0]
push 0x411738
push eax
call fcn.0040f7d0
push dword [esi + 0x41644c]
lea eax, [ebp - 0xa0]
push eax
call fcn.0040f7d0
push IsWindowEnabled
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0040fe6c
add esp, 0x2c
pop edi
jmp 0x40ded6
lea eax, [ebp + 8]
lea esi, [esi + 0x41644c]
push 0
push eax
push dword [esi]
call fcn.0040ba60
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret

Function at 0x42e004
Capabilities:
Check for vm using instruction vpcext
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
mov eax, section..text
nop
nop
push 4
nop
nop
nop
nop
nop
nop
nop
nop
pop edi
cmp eax, 0
nop
nop
nop
nop
nop
nop
nop
je 0x42e072
mov ebx, 0x407ef8
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
push eax
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x1b886ff7
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x42e060
nop
nop
mov eax, section..data
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x42e0d2
nop
nop
mov ebx, 0x42cd70
nop
nop
nop
nop
mov ecx, ebx
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
pop eax
nop
nop
nop
nop
mov esi, 0x36535bbd
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
nop
loop 0x42e0c0
nop
popal
nop
nop
nop
nop
nop
jmp 0x401219
Function at 0x409260
Capabilities:
Resolve function by parsing pe exports

Disassembly:
lea esp, [esp + eax]
nop
push ebp
mov ebp, esp
leave
nop
jmp 0x408756
push dword fs:[eax]
clc
cld
nop
nop
jae 0x408a99
push esi
mov al, byte [eax]
add cl, ch
test dword [ecx - 0x1f9e550], edx
xor dword [ebx - 0x30d0738], ecx
pop dword fs:[eax]
nop
push ebp
mov ebp, esp
leave
nop
jmp 0x40906e
mov dword fs:[eax], esp
nop
push ebp
mov ebp, esp
leave
nop
jmp 0x40931b
ret
xor eax, eax
clc
cld
nop
nop
jae 0x405cbc
add byte [ebp + 0x16700], al
xchg byte [eax], al
add dword [ebp - 0x4c6f27af], ecx
lss eax, [eax*4 - 3]
nop
push ebp
mov ebp, esp
leave
nop
jmp 0x405bf7