joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40e440
Capabilities:
Download url
Read .ini file
Receive data

Disassembly:
mov al, byte [0x45ecdc]
sub esp, 0x104
test al, al
jne 0x40e4ea
push esi
push 0x104
push 0x45ecdc
push 0
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameA]
mov esi, dword [sym.imp.MSVCRT.dll__mbsrchr]
push 0x5c
push 0x45ecdc
call esi
add esp, 8
test eax, eax
jne 0x40e488
push 0x2f
push 0x45ecdc
call esi
add esp, 8
mov edx, str._antifilelib.dat
mov esi, 0x104
sub edx, eax
mov cl, byte [edx + eax]
test cl, cl
je 0x40e4a3
mov byte [eax], cl
inc eax
dec esi
jne 0x40e494
jmp 0x40e4a7
test esi, esi
jne 0x40e4a8
dec eax
mov byte [eax], 0
call fcn.00417b80
test eax, eax
pop esi
je 0x40e4ea
push eax
lea eax, [esp + 4]
push 0x104
push eax
push 0x45ec20
push 0x437c28
push str.antifilelib
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileStringA]
push 0
push 0
lea ecx, [esp + 8]
push 0x45ecdc
push ecx
push 0
call sub.urlmon.dll_URLDownloadToFileA
mov eax, 0x45ecdc
add esp, 0x104
ret

Function at 0x40e500
Capabilities:
Set registry value

Disassembly:
push ecx
mov dword [esp], 0
call fcn.0040e560
test eax, eax
jne 0x40e525
call fcn.0040e3e0
test eax, eax
je 0x40e525
mov dword [esp], 1
jmp 0x40e537
push 1
call fcn.0040e660
add esp, 4
mov dword [esp], eax
test eax, eax
je 0x40e559
lea eax, [esp]
push 4
push eax
push 4
push str.antifilelib
push str.SOFTWARE360Safekiller
push connect
call dword [sym.imp.SHLWAPI.dll_SHSetValueA]
mov eax, dword [esp]
pop ecx
ret

Function at 0x40e560
Capabilities:
Query or enumerate registry value
Read .ini file
Set registry value

Disassembly:
sub esp, 0x210
call fcn.00417b80
test eax, eax
je 0x40e64c
push esi
mov esi, 0x104
push eax
lea eax, [esp + 0x114]
push esi
push eax
push 0x437c54
push 0x437c50
push str.antifilelib
mov dword [esp + 0x1c], 1
mov dword [esp + 0x20], esi
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileStringA]
lea ecx, [esp + 8]
lea edx, [esp + 0xc]
push ecx
lea eax, [esp + 8]
push edx
push eax
push str.antifilelib_ver
push str.SOFTWARE360Safekiller
push connect
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
test eax, eax
je 0x40e5f2
mov edx, 0x437c54
lea ecx, [esp + 0xc]
lea eax, [esp + 0xc]
sub edx, ecx
mov cl, byte [edx + eax]
test cl, cl
je 0x40e5ea
mov byte [eax], cl
inc eax
dec esi
jne 0x40e5db
jmp 0x40e5ee
test esi, esi
jne 0x40e5ef
dec eax
mov byte [eax], 0
lea edx, [esp + 0xc]
lea eax, [esp + 0x110]
push edx
push eax
call dword [sym.imp.MSVCRT.dll__mbsicmp]
add esp, 8
test eax, eax
pop esi
jle 0x40e64c
push edi
lea edi, [esp + 0x110]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
lea ecx, [esp + 0x114]
push ecx
push 1
push str.antifilelib_ver
push str.SOFTWARE360Safekiller
push connect
call dword [sym.imp.SHLWAPI.dll_SHSetValueA]
mov eax, 1
pop edi
add esp, 0x210
ret
xor eax, eax
add esp, 0x210
ret
Function at 0x40e660
Capabilities:
Check if file exists
Create directory
Delete directory
Delete file
Set file attributes

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x42df5b
push eax
mov dword fs:[0], esp
sub esp, 0x214
push esi
call fcn.0040e440
mov esi, eax
test esi, esi
je 0x40e868
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x40e6b1
mov eax, 1
pop esi
mov ecx, dword [esp + 0x214]
mov dword fs:[0], ecx
add esp, 0x220
ret
lea eax, [esp + 0xc]
push eax
push esi
call fcn.00412090
mov esi, eax
add esp, 8
test esi, esi
mov dword [esp + 8], esi
je 0x40e868
push ebx
push ebp
push edi
lea ecx, [esp + 0x10]
call fcn.0040e1a0
mov ebx, dword [sym.imp.ntdll.dll_strchr]
mov ebp, dword [sym.imp.KERNEL32.DLL_SetFileAttributesA]
mov dword [esp + 0x22c], 0
cmp byte [esi], 0
je 0x40e829
mov edi, dword [esp + 0x234]
push esi
call fcn.00417730
mov esi, eax
add esp, 4
mov al, byte [esi]
cmp al, 0x3b
jne 0x40e720
push 0xa
push esi
call ebx
add esp, 8
mov esi, eax
jmp 0x40e821
cmp al, 0x2d
jne 0x40e727
inc esi
xor edi, edi
lea ecx, [esp + 0x1c]
push 0x104
push ecx
push esi
mov byte [esp + 0x28], 0
call fcn.00411100
add esp, 0xc
test eax, eax
jne 0x40e74f
mov al, byte [esp + 0x1c]
test al, al
jne 0x40e829
push 0xa
push esi
call ebx
add esp, 8
lea edx, [esp + 0x1c]
mov esi, eax
lea eax, [esp + 0x120]
push edx
push str._s360safe.._
push 0x104
push eax
call fcn.004073a0
add esp, 0x10
test edi, edi
je 0x40e7ce
lea ecx, [esp + 0x1c]
push ecx
call dword [sym.imp.KERNEL32.DLL_DeleteFileA]
mov edi, dword [sym.imp.KERNEL32.DLL_CreateDirectoryA]
lea edx, [esp + 0x1c]
push 0
push edx
call edi
test eax, eax
je 0x40e821
lea eax, [esp + 0x120]
push 0
push eax
call edi
test eax, eax
je 0x40e821
push 0x1f01ff
lea ecx, [esp + 0x20]
push 0
push ecx
lea ecx, [esp + 0x1c]
call fcn.0040e3c0
lea edx, [esp + 0x1c]
push 1
push edx
call ebp
jmp 0x40e821
lea eax, [esp + 0x1c]
push 0x80
push eax
call ebp
push 0x1f01ff
lea ecx, [esp + 0x20]
push 0
push ecx
lea ecx, [esp + 0x1c]
call fcn.0040e3a0
lea edx, [esp + 0x120]
push 0x80
push edx
call ebp
mov edi, dword [sym.imp.KERNEL32.DLL_RemoveDirectoryA]
lea eax, [esp + 0x120]
push eax
call edi
lea ecx, [esp + 0x1c]
push 0x80
push ecx
call ebp
lea edx, [esp + 0x1c]
push edx
call edi
test esi, esi
jne 0x40e6f0
mov eax, dword [esp + 0x14]
push eax
call fcn.00412110
add esp, 4
lea ecx, [esp + 0x10]
mov dword [esp + 0x22c], 0xffffffff
call fcn.0040e1d0
pop edi
pop ebp
pop ebx
mov eax, 1
pop esi
mov ecx, dword [esp + 0x214]
mov dword fs:[0], ecx
add esp, 0x220
ret
mov ecx, dword [esp + 0x218]
xor eax, eax
pop esi
mov dword fs:[0], ecx
add esp, 0x220
ret

Function at 0x40e880
Capabilities:
Delete registry value
Set registry value

Disassembly:
push ecx
push esi
push 0
call fcn.0040e660
mov esi, eax
add esp, 4
test esi, esi
je 0x40e8cd
lea eax, [esp + 4]
push 4
push eax
push 4
push str.antifilelib
push str.SOFTWARE360Safekiller
push connect
mov dword [esp + 0x1c], 0
call dword [sym.imp.SHLWAPI.dll_SHSetValueA]
push str.antifilelib_ver
push str.SOFTWARE360Safekiller
push connect
call dword [sym.imp.SHLWAPI.dll_SHDeleteValueA]
mov eax, esi
pop esi
pop ecx
ret
Function at 0x40eaa0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xc
mov eax, 4
lea ecx, [esp]
mov dword [esp + 8], eax
mov dword [esp + 4], eax
lea eax, [esp + 4]
lea edx, [esp + 8]
push eax
push ecx
push edx
push str.antihostlib
push str.SOFTWARE360Safekiller
push connect
mov dword [esp + 0x18], 0
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
test eax, eax
jne 0x40eaf1
mov eax, dword [esp]
test eax, eax
je 0x40eaf1
mov eax, 1
add esp, 0xc
ret
xor eax, eax
add esp, 0xc
ret

Function at 0x40eb00
Capabilities:
Set registry value

Disassembly:
sub esp, 0xc
mov dword [esp], 0
call fcn.0040ebb0
test eax, eax
jne 0x40eb27
call fcn.0040eaa0
test eax, eax
je 0x40eb27
mov dword [esp], 1
jmp 0x40eb7d
push esi
call fcn.0040ecb0
test eax, eax
je 0x40eb74
lea ecx, [esp + 8]
push ecx
push eax
call fcn.00412090
mov esi, eax
add esp, 8
test esi, esi
je 0x40eb74
mov edx, dword [esp + 8]
lea eax, [esp + 0xc]
push eax
push 0x40ed70
push 1
mov dword [esp + 0x18], esi
push 0x437c74
mov byte [edx + esi], 0
call fcn.00413110
push esi
mov dword [esp + 0x18], eax
call fcn.00412110
add esp, 0x14
mov eax, dword [esp + 4]
pop esi
test eax, eax
je 0x40eb9f
lea ecx, [esp]
push 4
push ecx
push 4
push str.antihostlib
push str.SOFTWARE360Safekiller
push connect
call dword [sym.imp.SHLWAPI.dll_SHSetValueA]
mov eax, dword [esp]
add esp, 0xc
ret

Function at 0x40ebb0
Capabilities:
Query or enumerate registry value
Read .ini file
Set registry value

Disassembly:
sub esp, 0x210
call fcn.00417b80
test eax, eax
je 0x40ec9c
push esi
mov esi, 0x104
push eax
lea eax, [esp + 0x114]
push esi
push eax
push 0x437c54
push 0x437c50
push str.antihostlib
mov dword [esp + 0x1c], 1
mov dword [esp + 0x20], esi
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileStringA]
lea ecx, [esp + 8]
lea edx, [esp + 0xc]
push ecx
lea eax, [esp + 8]
push edx
push eax
push str.antihostlib_ver
push str.SOFTWARE360Safekiller
push connect
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
test eax, eax
je 0x40ec42
mov edx, 0x437c54
lea ecx, [esp + 0xc]
lea eax, [esp + 0xc]
sub edx, ecx
mov cl, byte [edx + eax]
test cl, cl
je 0x40ec3a
mov byte [eax], cl
inc eax
dec esi
jne 0x40ec2b
jmp 0x40ec3e
test esi, esi
jne 0x40ec3f
dec eax
mov byte [eax], 0
lea edx, [esp + 0xc]
lea eax, [esp + 0x110]
push edx
push eax
call dword [sym.imp.MSVCRT.dll__mbsicmp]
add esp, 8
test eax, eax
pop esi
jle 0x40ec9c
push edi
lea edi, [esp + 0x110]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
lea ecx, [esp + 0x114]
push ecx
push 1
push str.antihostlib_ver
push str.SOFTWARE360Safekiller
push connect
call dword [sym.imp.SHLWAPI.dll_SHSetValueA]
mov eax, 1
pop edi
add esp, 0x210
ret
xor eax, eax
add esp, 0x210
ret
Function at 0x40ecb0
Capabilities:
Download url
Read .ini file
Receive data

Disassembly:
mov al, byte [0x45ede0]
sub esp, 0x104
test al, al
jne 0x40ed5a
push esi
push 0x104
push 0x45ede0
push 0
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameA]
mov esi, dword [sym.imp.MSVCRT.dll__mbsrchr]
push 0x5c
push 0x45ede0
call esi
add esp, 8
test eax, eax
jne 0x40ecf8
push 0x2f
push 0x45ede0
call esi
add esp, 8
mov edx, str._antihostlib.dat
mov esi, 0x104
sub edx, eax
mov cl, byte [edx + eax]
test cl, cl
je 0x40ed13
mov byte [eax], cl
inc eax
dec esi
jne 0x40ed04
jmp 0x40ed17
test esi, esi
jne 0x40ed18
dec eax
mov byte [eax], 0
call fcn.00417b80
test eax, eax
pop esi
je 0x40ed5a
push eax
lea eax, [esp + 4]
push 0x104
push eax
push 0x45ec20
push 0x437c28
push str.antihostlib
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileStringA]
push 0
push 0
lea ecx, [esp + 8]
push 0x45ede0
push ecx
push 0
call sub.urlmon.dll_URLDownloadToFileA
mov eax, 0x45ede0
add esp, 0x104
ret

Function at 0x40ede6
Capabilities:
Set registry value

Disassembly:
push ecx
push edi
push 0
push 0
push 0
push 0x437c74
call fcn.00413110
mov edi, eax
add esp, 0x10
test edi, edi
je 0x40ee44
push esi
mov esi, dword [sym.imp.SHLWAPI.dll_SHSetValueA]
lea eax, [esp + 8]
push 4
push eax
push 4
push str.antihostlib
push str.SOFTWARE360Safekiller
push connect
mov dword [esp + 0x20], 0
call esi
push 4
push 0x437c54
push 1
push str.antihostlib_ver
push str.SOFTWARE360Safekiller
push connect
call esi
mov eax, edi
pop esi
pop edi
pop ecx
ret
mov eax, edi
pop edi
pop ecx
ret
Function at 0x40eea0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x42dfd6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
mov al, byte [esp + 3]
push esi
mov esi, ecx
mov dword [esp + 8], esi
mov byte [esi + 4], al
xor eax, eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
mov cl, byte [esp + 7]
mov dword [esp + 0x14], eax
mov byte [esi + 0x14], cl
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], eax
mov dword [esi + 0x20], eax
mov dl, byte [esp + 7]
mov dword [esi + 0x28], eax
mov byte [esi + 0x24], dl
mov dword [esi + 0x2c], eax
mov dword [esi + 0x30], eax
mov cl, byte [esp + 7]
mov dword [esi + 0x38], eax
mov byte [esi + 0x34], cl
mov dword [esi + 0x3c], eax
mov dword [esi + 0x40], eax
mov dl, byte [esp + 7]
mov dword [esi + 0x48], eax
mov byte [esi + 0x44], dl
mov dword [esi + 0x4c], eax
mov dword [esi + 0x50], eax
mov cl, byte [esp + 7]
mov dword [esi + 0x58], eax
mov byte [esi + 0x54], cl
mov dword [esi + 0x5c], eax
mov dword [esi + 0x60], eax
mov dl, byte [esp + 7]
mov dword [esi + 0x68], eax
mov byte [esi + 0x64], dl
mov dword [esi + 0x6c], eax
mov dword [esi + 0x70], eax
mov cl, byte [esp + 7]
mov dword [esi + 0x78], eax
mov byte [esi + 0x74], cl
mov dword [esi + 0x7c], eax
mov dword [esi + 0x80], eax
mov dl, byte [esp + 7]
mov dword [esi + 0x88], eax
mov byte [esi + 0x84], dl
mov dword [esi + 0x8c], eax
mov dword [esi + 0x90], eax
mov ecx, esi
mov byte [esp + 0x14], 8
mov dword [esi], 0x42f614
call fcn.0040efc0
test eax, eax
je 0x40ef81
mov ecx, esi
call fcn.0040f220
mov ecx, dword [esp + 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret

Function at 0x40efc0
Capabilities:
Copy file
Delete file
Get common file path
Move file

Disassembly:
mov eax, dword [0x45ef88]
sub esp, 0x208
test eax, eax
push esi
push edi
mov edi, ecx
jne 0x40f0ad
lea eax, [esp + 8]
push eax
push 0x104
call dword [sym.imp.KERNEL32.DLL_GetTempPathA]
lea ecx, [esp + 0x10c]
push 0x104
push ecx
call dword [sym.imp.KERNEL32.DLL_GetSystemDirectoryA]
mov esi, dword [sym.imp.SHLWAPI.dll_PathAppendA]
lea edx, [esp + 0x10c]
push str.Advapi32.dll
push edx
call esi
lea eax, [esp + 8]
push str.NewAdvapi32.dll
push eax
call esi
lea ecx, [esp + 8]
push 0
lea edx, [esp + 0x110]
push ecx
push edx
call dword [sym.imp.KERNEL32.DLL_CopyFileA]
test eax, eax
je 0x40f0ab
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
push 4
lea ecx, [esp + 0xc]
push 0
push ecx
mov esi, eax
call dword [sym.imp.KERNEL32.DLL_MoveFileExA]
lea edx, [esp + 8]
push edx
call dword [sym.imp.KERNEL32.DLL_DeleteFileA]
test esi, esi
je 0x40f0ab
push ebx
mov ebx, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push str.RegEnumValueA
push esi
call ebx
push 0x437ce8
push esi
mov dword [edi + 0x94], eax
call ebx
test eax, eax
mov dword [edi + 0x98], eax
pop ebx
je 0x40f0a4
mov eax, dword [edi + 0x94]
test eax, eax
je 0x40f0a4
mov eax, 1
pop edi
mov dword [0x45ef88], eax
pop esi
add esp, 0x208
ret
push esi
call dword [sym.imp.KERNEL32.DLL_FreeLibrary]
xor eax, eax
pop edi
pop esi
add esp, 0x208
ret
Function at 0x40f400
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
je 0x40f421
add eax, 0x108
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x40f421
mov eax, 1
ret 4
xor eax, eax
ret 4

Function at 0x40f430
Capabilities:
Delete file
Delete registry key
Delete registry value
Move file
Persist via run registry key
Set file attributes

Disassembly:
sub esp, 0x108
push ebx
push esi
mov esi, dword [esp + 0x114]
push edi
mov dword [esp + 0xc], ecx
mov eax, dword [esi]
cmp eax, 1
jne 0x40f473
mov ebx, dword [sym.imp.SHLWAPI.dll_SHDeleteValueA]
lea edi, [esi + 4]
push edi
push 0x437df4
push connect
call ebx
push edi
push 0x437df4
push connect
call ebx
jmp 0x40f565
cmp eax, 2
jne 0x40f49e
mov ebx, dword [sym.imp.SHLWAPI.dll_SHDeleteValueA]
lea edi, [esi + 4]
push edi
push str.SOFTWAREMicrosoftWindowsCurrentVersionExplorerShellExecuteHooks
push connect
call ebx
push edi
push str.SOFTWAREMicrosoftWindowsCurrentVersionExplorerShellExecuteHooks
push connect
call ebx
push edi
jmp 0x40f4a7
cmp eax, 4
jne 0x40f4ce
lea edx, [esi + 4]
push edx
push str.CLSID_s
lea eax, [esp + 0x18]
push 0x104
push eax
call dword [sym.imp.ntdll.dll__snprintf]
add esp, 0x10
lea ecx, [esp + 0x10]
push ecx
push connect
jmp 0x40f55f
cmp eax, 8
jne 0x40f534
lea edi, [esi + 4]
push ebp
mov ebp, dword [sym.imp.ntdll.dll__snprintf]
push edi
push str.SOFTWAREMicrosoftWindowsCurrentVersionExplorerBrowser_Helper_Objects_s
lea edx, [esp + 0x1c]
push 0x104
push edx
call ebp
mov ebx, dword [sym.imp.SHLWAPI.dll_SHDeleteKeyA]
add esp, 0x10
lea eax, [esp + 0x14]
push eax
push connect
call ebx
lea ecx, [esp + 0x14]
push ecx
push connect
call ebx
push edi
push str.CLSID_s
lea edx, [esp + 0x1c]
push 0x104
push edx
call ebp
add esp, 0x10
lea eax, [esp + 0x14]
push eax
push connect
call ebx
pop ebp
jmp 0x40f565
cmp eax, 0x20
jne 0x40f565
lea ecx, [esi + 4]
lea edx, [esp + 0x10]
push ecx
push str.SYSTEMCurrentControlSetServices_s
push 0x104
push edx
call dword [sym.imp.ntdll.dll__snprintf]
add esp, 0x10
lea eax, [esp + 0x10]
push eax
push connect
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyA]
mov ecx, dword [esp + 0xc]
push esi
call fcn.0040f400
test eax, eax
je 0x40f5b2
add esi, 0x108
push esi
call dword [sym.imp.KERNEL32.DLL_DeleteFileA]
test eax, eax
jne 0x40f5b2
mov eax, dword [esp + 0x11c]
test eax, eax
je 0x40f5b2
push 0x80
push esi
call dword [sym.imp.KERNEL32.DLL_SetFileAttributesA]
push 4
push 0
push esi
call dword [sym.imp.KERNEL32.DLL_MoveFileExA]
pop edi
pop esi
pop ebx
add esp, 0x108
ret 8
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x108
ret 8
Function at 0x40f5d0
Capabilities:
Enumerate files on windows
Get common file path

Disassembly:
sub esp, 0x354
push ebx
push ebp
xor eax, eax
push esi
push edi
mov dword [esp + 0x10], ecx
mov dword [esp + 0x18], 0x10000
mov byte [esp + 0x120], 0
mov byte [esp + 0x1c], 0
mov dword [esp + 0x14], eax
sub eax, 0
je 0x40f60f
dec eax
jne 0x40f627
push 0
lea eax, [esp + 0x124]
push 0x18
push eax
jmp 0x40f61b
push 0
lea ecx, [esp + 0x124]
push 7
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
jne 0x40f634
mov byte [esp + 0x120], 0
jmp 0x40f731
mov al, byte [esp + 0x120]
test al, al
je 0x40f731
lea edi, [esp + 0x120]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov al, byte [esp + ecx + 0x11f]
lea ebp, [esp + ecx + 0x120]
cmp al, 0x5c
je 0x40f66b
mov byte [ebp], 0x5c
inc ebp
mov edi, 0x437434
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea eax, [esp + 0x224]
mov edx, ecx
mov esi, edi
mov edi, ebp
push eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x124]
push ecx
call dword [sym.imp.KERNEL32.DLL_FindFirstFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x40f731
test byte [esp + 0x224], 0x10
jne 0x40f717
lea edi, [esp + 0x250]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [esp + 0x1c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x250]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x14]
lea edx, [ecx + 0x84]
push edx
call fcn.00410260
lea eax, [esp + 0x224]
push eax
push ebx
call dword [sym.imp.KERNEL32.DLL_FindNextFileA]
test eax, eax
jne 0x40f6ae
push ebx
call dword [sym.imp.KERNEL32.DLL_FindClose]
mov eax, dword [esp + 0x14]
inc eax
cmp eax, 2
mov dword [esp + 0x14], eax
jl 0x40f5f9
mov ecx, dword [esp + 0x10]
pop edi
pop esi
pop ebp
mov eax, dword [ecx + 0x88]
pop ebx
test eax, eax
jne 0x40f75c
add esp, 0x354
ret
mov ecx, dword [ecx + 0x8c]
sub ecx, eax
mov eax, 0x3e88cb3d
imul ecx
sar edx, 7
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
mov eax, edx
add esp, 0x354
ret
Function at 0x40f860
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x328
push ebx
push ebp
mov ebp, dword [sym.imp.ntdll.dll_sprintf]
push esi
push edi
mov edi, 0x42f60c
mov esi, ecx
mov dword [esp + 0x28], 2
mov byte [esp + 0x130], 0
mov byte [esp + 0x2c], 0
mov dword [esp + 0x14], edi
mov ebx, 0x104
mov ecx, dword [edi]
lea eax, [esp + 0x18]
push eax
push 0x20019
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionExplorerShellExecuteHooks
push ecx
call dword [esi + 0x98]
test eax, eax
jne 0x40f995
xor edi, edi
lea edx, [esp + 0x20]
lea eax, [esp + 0x234]
push edx
lea ecx, [esp + 0x28]
push eax
push ecx
mov ecx, dword [esp + 0x24]
lea edx, [esp + 0x1c]
push 0
lea eax, [esp + 0x3c]
push edx
push eax
push edi
push ecx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x30], ebx
call dword [esi + 0x94]
test eax, eax
jne 0x40f986
cmp byte [esp + 0x2c], 0x7b
jne 0x40f980
cmp dword [esp + 0x10], 0x26
jb 0x40f980
lea edx, [esp + 0x2c]
lea eax, [esp + 0x234]
push edx
push str.CLSID_sInprocServer32
push eax
call ebp
add esp, 0xc
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x234]
push ecx
push 0x20019
push 0
push edx
push connect
call dword [esi + 0x98]
test eax, eax
jne 0x40f980
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x10]
lea ecx, [esp + 0x130]
push eax
push ecx
push 0
push 0
push 0
push edx
mov dword [esp + 0x28], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40f975
lea eax, [esp + 0x28]
lea ecx, [esi + 0x14]
push eax
push ecx
mov ecx, esi
call fcn.00410260
mov edx, dword [esp + 0x1c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc edi
jmp 0x40f8b9
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, dword [esp + 0x14]
add edi, 4
cmp edi, 0x42f614
mov dword [esp + 0x14], edi
jb 0x40f895
mov eax, dword [esi + 0x18]
test eax, eax
jne 0x40f9ba
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x328
ret
mov esi, dword [esi + 0x1c]
pop edi
sub esi, eax
mov eax, 0x3e88cb3d
imul esi
sar edx, 7
mov ecx, edx
pop esi
shr ecx, 0x1f
add edx, ecx
pop ebp
mov eax, edx
pop ebx
add esp, 0x328
ret
Function at 0x40f9e0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x328
push ebx
mov ebx, dword [sym.imp.ntdll.dll__snprintf]
push ebp
push esi
mov ebp, 0x42f60c
push edi
mov esi, ecx
mov dword [esp + 0x28], 4
mov byte [esp + 0x130], 0
mov byte [esp + 0x2c], 0
mov dword [esp + 0x14], ebp
mov edi, 0x104
mov ecx, dword [ebp]
lea eax, [esp + 0x18]
push eax
push 0x20019
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionShellServiceObjectDelayLoad
push ecx
call dword [esi + 0x98]
test eax, eax
jne 0x40fb17
xor ebp, ebp
lea edx, [esp + 0x10]
lea eax, [esp + 0x2c]
push edx
lea ecx, [esp + 0x28]
push eax
push ecx
mov ecx, dword [esp + 0x24]
lea edx, [esp + 0x2c]
push 0
lea eax, [esp + 0x244]
push edx
push eax
push ebp
push ecx
mov dword [esp + 0x40], edi
mov dword [esp + 0x30], edi
call dword [esi + 0x94]
test eax, eax
jne 0x40fb08
cmp byte [esp + 0x2c], 0x7b
jne 0x40fb02
cmp dword [esp + 0x10], 0x26
jb 0x40fb02
lea edx, [esp + 0x2c]
lea eax, [esp + 0x234]
push edx
push str.CLSID_sInprocServer32
push edi
push eax
call ebx
add esp, 0x10
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x234]
push ecx
push 0x20019
push 0
push edx
push connect
call dword [esi + 0x98]
test eax, eax
jne 0x40fb02
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x10]
lea ecx, [esp + 0x130]
push eax
push ecx
push 0
push 0
push 0
push edx
mov dword [esp + 0x28], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40faf7
lea eax, [esp + 0x28]
lea ecx, [esi + 0x24]
push eax
push ecx
mov ecx, esi
call fcn.00410260
mov edx, dword [esp + 0x1c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc ebp
jmp 0x40fa3a
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebp, dword [esp + 0x14]
add ebp, 4
cmp ebp, 0x42f614
mov dword [esp + 0x14], ebp
jb 0x40fa15
mov eax, dword [esi + 0x28]
test eax, eax
jne 0x40fb3c
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x328
ret
mov esi, dword [esi + 0x2c]
pop edi
sub esi, eax
mov eax, 0x3e88cb3d
imul esi
sar edx, 7
mov ecx, edx
pop esi
shr ecx, 0x1f
add edx, ecx
pop ebp
mov eax, edx
pop ebx
add esp, 0x328
ret