joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4619f0
Capabilities:
Persist via windows service
Set registry value

Disassembly:
sub esp, 0xc
push ebx
push esi
push edi
push str.c:endpcache
call fcn.004f2beb
add esp, 4
lea eax, [esp + 0x14]
lea ecx, [esp + 0xc]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
push eax
push ecx
push 0
push 0xf003f
push 0
push 0xc30c0c
push 0
push str.SYSTEMCurrentControlSetServicesTcpip
push closesocket
mov dword [esp + 0x34], 1
call esi
mov ebx, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x461a58
mov eax, dword [esp + 0xc]
lea edx, [esp + 0x10]
push 4
push edx
push 4
push 0
push str.Start
push eax
call ebx
mov ecx, dword [esp + 0xc]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ecx
call edi
lea edx, [esp + 0x14]
lea eax, [esp + 0xc]
push edx
push eax
push 0
push 0xf003f
push 0
push 0xc30c0c
push 0
push str.SYSTEMCurrentControlSetServicesipsec
push closesocket
call esi
test eax, eax
jne 0x461aa5
mov edx, dword [esp + 0xc]
lea ecx, [esp + 0x10]
push 4
push ecx
push 4
push eax
push str.Start
push edx
call ebx
mov eax, dword [esp + 0xc]
push eax
call edi
push 0x100
push 0
push str.c:endpcache_tcpip.reg
call fcn.004f2f2b
mov esi, eax
add esp, 0xc
cmp esi, 0xffffffff
je 0x461ae0
push esi
call fcn.004f2eb3
push esi
mov edi, eax
call fcn.004f2e00
add esp, 8
cmp edi, 0x100
jae 0x461aed
push str.regedit.exe__e_c:endpcache_tcpip.reg_HKEY_LOCAL_MACHINESYSTEMCurrentControlSetServices_tcpip
call fcn.004f2ce2
add esp, 4
push 0x100
push 0
push str.c:endpcache_safeboot.reg
call fcn.004f2f2b
mov esi, eax
add esp, 0xc
cmp esi, 0xffffffff
je 0x461b21
push esi
call fcn.004f2eb3
push esi
mov edi, eax
call fcn.004f2e00
add esp, 8
cmp edi, 0x100
jae 0x461b2e
push str.regedit.exe__e_c:endpcache_safeboot.reg_HKEY_LOCAL_MACHINESYSTEMCurrentControlSetControlSafeBoot
call fcn.004f2ce2
add esp, 4
push 0x100
push 0
push str.c:endpcache_services.reg
call fcn.004f2f2b
mov esi, eax
add esp, 0xc
cmp esi, 0xffffffff
je 0x461b62
push esi
call fcn.004f2eb3
push esi
mov edi, eax
call fcn.004f2e00
add esp, 8
cmp edi, 0x100
jae 0x461b6f
push str.regedit.exe__e_c:endpcache_services.reg_HKEY_LOCAL_MACHINESYSTEMCurrentControlSetServices
call fcn.004f2ce2
add esp, 4
push 0x100
push 0
push str.c:endpcache_network.reg
call fcn.004f2f2b
mov esi, eax
add esp, 0xc
cmp esi, 0xffffffff
je 0x461ba3
push esi
call fcn.004f2eb3
push esi
mov edi, eax
call fcn.004f2e00
add esp, 8
cmp edi, 0x100
jae 0x461bb0
push str.regedit.exe__e_c:endpcache_network.reg_HKEY_LOCAL_MACHINESYSTEMCurrentControlSetControlNetwork
call fcn.004f2ce2
add esp, 4
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0xc
ret
Function at 0x465950
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fb410
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x114
push ebx
push esi
push edi
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], esp
push 0x38
call fcn.004f266a
add esp, 4
mov edi, eax
push 0x20
call fcn.004f266a
add esp, 4
mov ebx, eax
mov dword [ebp - 0x1c], 0x80
mov dword [ebp - 0x20], 4
push 0x200
call fcn.004f266a
add esp, 4
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push eax
call fcn.004ae740
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
add esp, 4
lea ecx, [ebp - 0x14]
push ecx
push 0x20019
push 0
push 0xc30c0c
push reloc.WS2_32.dll_closesocket
call esi
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x14]
lea edx, [ebp - 0x14]
add eax, 0x100
push edx
push 0x20019
push 0
push eax
push ecx
call esi
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0x14]
push edx
push 0xf003f
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionPoliciesExplorer
push eax
call esi
test eax, eax
jne 0x465ad5
lea ecx, [ebp - 0x1c]
lea edx, [ebp - 0x120]
push ecx
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x20]
push edx
push eax
push 0
push str.RestrictRun
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x465a8b
mov eax, dword [ebp - 0x120]
and eax, 0xff
cmp eax, 1
jne 0x465a8b
push edi
call fcn.004f265f
add esp, 4
push ebx
call fcn.004f265f
mov edx, dword [ebp - 0x18]
add esp, 4
push edx
call fcn.004f265f
mov eax, dword [ebp - 0x14]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add esp, 4
push eax
call esi
mov ecx, dword [ebp - 0x14]
push ecx
call esi
mov ax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push edi
call fcn.004f265f
add esp, 4
push ebx
call fcn.004f265f
mov edx, dword [ebp - 0x18]
add esp, 4
push edx
call fcn.004f265f
mov eax, dword [ebp - 0x14]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add esp, 4
push eax
call esi
mov ecx, dword [ebp - 0x14]
push ecx
call esi
xor ax, ax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
or ax, 0xffff
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x465af0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fb420
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 0x10], esp
push 0x20
mov dword [ebp - 4], edi
call fcn.004f266a
add esp, 4
mov ebx, eax
push 0x20
call fcn.004f266a
add esp, 4
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], edi
push 0x200
call fcn.004f266a
add esp, 4
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push eax
call fcn.004ae740
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
add esp, 4
lea ecx, [ebp - 0x14]
push ecx
push 0x20019
push edi
push 0xc30c0c
push reloc.WS2_32.dll_closesocket
call esi
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x14]
lea edx, [ebp - 0x14]
add eax, 0x100
push edx
push 0x20019
push edi
push eax
push ecx
call esi
lea edx, [ebp - 0x24]
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x14]
push edx
push eax
push edi
push 0xf003f
push edi
push 0xc30c0c
push edi
push str.SoftwareMicrosoftWindowsCurrentVersionPoliciesExplorer
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
cmp eax, edi
jne 0x465bfa
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0x20]
push 4
push edx
push 4
push edi
push str.RestrictRun
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
cmp eax, edi
push ebx
je 0x465c0f
call fcn.004f265f
mov ecx, dword [ebp - 0x1c]
add esp, 4
push ecx
call fcn.004f265f
mov edx, dword [ebp - 0x18]
add esp, 4
push edx
call fcn.004f265f
mov eax, dword [ebp - 0x14]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add esp, 4
push eax
call esi
mov ecx, dword [ebp - 0x14]
push ecx
call esi
or ax, 0xffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.004f265f
mov edx, dword [ebp - 0x1c]
add esp, 4
push edx
call fcn.004f265f
mov eax, dword [ebp - 0x18]
add esp, 4
push eax
call fcn.004f265f
mov ecx, dword [ebp - 0x14]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add esp, 4
push ecx
call esi
mov edx, dword [ebp - 0x14]
push edx
call esi
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov ax, 1
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x465c60
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x10c
lea eax, [esp]
mov dword [esp + 4], 0x80
push eax
push 0x20019
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionPoliciesExplorer
push closesocket
mov dword [esp + 0x1c], 4
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x465ced
lea ecx, [esp + 4]
lea edx, [esp + 0xc]
push ecx
mov ecx, dword [esp + 4]
lea eax, [esp + 0xc]
push edx
push eax
push 0
push str.RestrictRun
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x465cd8
cmp byte [esp + 0xc], 1
jne 0x465cd8
mov edx, dword [esp]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ax, 1
add esp, 0x10c
ret
mov eax, dword [esp]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ax, ax
add esp, 0x10c
ret
or ax, 0xffff
add esp, 0x10c
ret
Function at 0x470c50
Capabilities:
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fb613
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x738
push ebx
push esi
push edi
lea eax, [ebp - 0x144]
mov dword [ebp - 0x10], esp
xor esi, esi
push eax
mov dword [ebp - 4], esi
call fcn.004ab6e0
add esp, 4
lea ecx, [ebp - 0xc4]
push ecx
call fcn.00401350
add esp, 4
lea ecx, [ebp - 0xa4]
push 1
call fcn.004f0653
push 1
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 1
call fcn.004f0653
mov edx, dword [0x4fe4e8]
lea ecx, [ebp - 0xa4]
push edx
push 8
push str.c:endpcacheprocess_log.txt
mov byte [ebp - 4], 2
call fcn.004f0727
mov eax, dword [0x4fe4e8]
lea ecx, [ebp - 0x5c]
push eax
push 1
push str.c:endpcacheWeakPswCheckLog.txt
call fcn.004f0727
mov dword [ebp - 0x14], esi
mov esi, dword [ebp - 0x58]
push 0xa
lea ecx, [ebp - 0x344]
push 0x200
inc esi
push ecx
lea ecx, [ebp - 0x5c]
mov dword [ebp - 0x58], esi
call fcn.004f0ae9
lea edi, [ebp - 0x344]
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp - 0x344]
repne scasb al, byte es:[edi]
not ecx
lea eax, [ebp - 0x744]
dec ecx
push edx
push eax
mov ebx, ecx
call fcn.004f61e0
add esp, 8
test eax, eax
je 0x470e2c
lea edi, [ebp - 0x344]
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp - 0x744]
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
cmp ebx, 5
rep movsb byte es:[edi], byte [esi]
jle 0x470e2c
mov eax, dword [ebp - 0x14]
lea ecx, [ebp - 0x344]
lea edx, [ebp - 0xc4]
inc eax
push ecx
push edx
mov dword [ebp - 0x14], eax
call fcn.004fa6c0
add esp, 4
push eax
lea eax, [ebp - 0x144]
push eax
call fcn.004fa6c0
add esp, 4
lea ecx, [ebp - 0x544]
push eax
push 0x522b80
push ecx
call fcn.004f175f
mov eax, dword [0xe56db0]
add esp, 0x14
test eax, eax
jne 0x470e05
mov eax, dword [0xe56dbc]
mov ecx, dword [ebp + 0x1b0]
test eax, eax
mov eax, dword [ebp + 0x1b4]
lea edx, [ebp - 0x544]
push edx
push eax
push ecx
jne 0x470de8
sub esp, 0x1a8
mov ecx, 0x6a
lea esi, [ebp + 8]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
call fcn.00404170
jmp 0x470dff
sub esp, 0x1a8
mov ecx, 0x6a
lea esi, [ebp + 8]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
call fcn.00404560
add esp, 0x1b4
lea edx, [ebp - 0x544]
lea ecx, [ebp - 0x98]
push edx
call fcn.004f0087
push 0xa
mov ecx, eax
call fcn.004eff40
push 0x402150
mov ecx, eax
call fcn.004016a0
mov eax, dword [ebp - 0x5c]
mov ecx, dword [eax + 4]
test byte [ebp + ecx - 0x54], 1
je 0x470ce7
lea ecx, [ebp - 0x5c]
call fcn.004f076e
lea ecx, [ebp - 0xa4]
call fcn.004f076e
push 0x80
push str.c:endpcacheWeakPswCheckLog.txt
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push str.c:endpcacheWeakPswCheckLog.txt
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 1
call fcn.004f0714
lea ecx, [ebp - 0x48]
call fcn.004f05fb
lea ecx, [ebp - 0x90]
mov byte [ebp - 4], 0
call fcn.004f0714
lea ecx, [ebp - 0x90]
call fcn.004f05fb
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov eax, 1
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x471be0
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fb6a8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x44c
push ebx
push esi
push edi
lea ecx, [ebp - 0x58]
mov dword [ebp - 0x10], esp
push 1
mov dword [ebp - 4], 0
call fcn.004f0653
mov eax, dword [0x4fe4e8]
lea ecx, [ebp - 0x58]
push eax
push 1
push str.c:endpcacheevil_dir_log.txt
mov byte [ebp - 4], 1
call fcn.004f0727
mov ebx, dword [ebp + 0x1b4]
mov esi, dword [ebp - 0x54]
push 0xa
lea ecx, [ebp - 0x258]
push 0x200
inc esi
push ecx
lea ecx, [ebp - 0x58]
mov dword [ebp - 0x54], esi
call fcn.004f0ae9
lea edi, [ebp - 0x258]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 5
jle 0x471ceb
lea edx, [ebp - 0x258]
lea eax, [ebp - 0x458]
push edx
push 0x50d39c
push eax
call fcn.004f175f
mov eax, dword [0xe56db0]
add esp, 0xc
test eax, eax
jne 0x471ceb
mov eax, dword [0xe56dbc]
test eax, eax
jne 0x471cbf
mov edx, dword [ebp + 0x1b0]
lea ecx, [ebp - 0x458]
push ecx
push ebx
push edx
mov ecx, 0x6a
sub esp, 0x1a8
lea esi, [ebp + 8]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
call fcn.00404170
jmp 0x471ce5
mov ecx, dword [ebp + 0x1b0]
lea eax, [ebp - 0x458]
push eax
push ebx
push ecx
mov ecx, 0x6a
sub esp, 0x1a8
lea esi, [ebp + 8]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
call fcn.00404560
add esp, 0x1b4
mov edx, dword [ebp - 0x58]
mov eax, dword [edx + 4]
test byte [ebp + eax - 0x50], 1
je 0x471c34
lea ecx, [ebp - 0x58]
call fcn.004f076e
push 0x80
push str.c:endpcacheevil_dir_log.txt
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 0
call fcn.004f0714
lea ecx, [ebp - 0x44]
call fcn.004f05fb
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov eax, 1
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x471d50
Capabilities:
Delete file
Get common file path
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fb6c8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, 0xfdfc
call fcn.004f2630
push ebx
push esi
push edi
lea eax, [ebp - 0x104]
mov dword [ebp - 0x10], esp
push eax
mov dword [ebp - 4], 0
call fcn.004ab6e0
add esp, 4
lea ecx, [ebp - 0x84]
push ecx
call fcn.00401350
add esp, 4
lea ecx, [ebp - 0x64]
push 1
call fcn.004f0653
mov edx, dword [0x4fe4e8]
lea ecx, [ebp - 0x64]
push edx
push 8
push str.c:endpcacheprocess_log.txt
mov byte [ebp - 4], 1
call fcn.004f0727
lea eax, [ebp - 0x40c]
push 0x104
push eax
mov ebx, 0x80
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov ecx, 0x41
xor eax, eax
lea edi, [ebp - 0x208]
lea edx, [ebp - 0x208]
rep stosd dword es:[edi], eax
mov cl, byte [ebp - 0x40c]
mov edi, str.:Documents_and_Settings_
mov byte [ebp - 0x208], cl
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [ebp - 0x14], eax
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [ebp - 0x1c]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [ebp - 0x208]
push 0xc5189c
push ecx
call fcn.004b6a60
add esp, 0xc
xor eax, eax
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x18], eax
cmp eax, ecx
jge 0x471f01
lea edx, [ebp - 0x14]
lea ecx, [ebp - 0xfe0c]
shl eax, 8
push edx
add eax, 0xc5189c
xor edi, edi
push ecx
push eax
mov dword [ebp - 0x14], edi
call fcn.004b6c80
add esp, 0xc
cmp edi, dword [ebp - 0x14]
jge 0x471ef8
mov edx, edi
push ebx
shl edx, 8
lea esi, [ebp + edx - 0xfe0c]
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [ebp - 0x84]
push esi
push eax
mov byte [ebp - 0x308], 0
call fcn.004fa6c0
add esp, 4
lea ecx, [ebp - 0x104]
push eax
push ecx
call fcn.004fa6c0
add esp, 4
lea edx, [ebp - 0x308]
push eax
push 0x522e48
push edx
call fcn.004f175f
add esp, 0x14
lea eax, [ebp - 0x308]
lea ecx, [ebp - 0x58]
push eax
call fcn.004f0087
push 0xa
mov ecx, eax
call fcn.004eff40
push 0x402150
mov ecx, eax
call fcn.004016a0
inc edi
jmp 0x471e6e
mov eax, dword [ebp - 0x18]
inc eax
jmp 0x471e3f
lea ecx, [ebp - 0x64]
call fcn.004f076e
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 0
call fcn.004f0714
lea ecx, [ebp - 0x50]
call fcn.004f05fb
mov ax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x471f50
Capabilities:
Delete file
Get common file path
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fb6e0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, 0x17c14
call fcn.004f2630
push ebx
push esi
push edi
lea eax, [ebp - 0x224]
mov dword [ebp - 0x10], esp
xor esi, esi
push 0x104
push eax
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov ecx, 0x41
xor eax, eax
lea edi, [ebp - 0x120]
push str.:Documents_and_Settings_
rep stosd dword es:[edi], eax
lea ecx, [ebp - 0x224]
lea edx, [ebp - 0x120]
push ecx
push 0x50e0ec
push edx
mov byte [ebp - 0x223], 0
mov byte [ebp - 0x120], al
call fcn.004f175f
lea eax, [ebp - 0x18]
lea ecx, [ebp - 0x8224]
push eax
lea edx, [ebp - 0x120]
push ecx
push edx
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x18], esi
call fcn.004b6b70
mov ebx, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
add esp, 0x1c
xor eax, eax
mov dword [ebp - 0x1c], eax
cmp eax, dword [ebp - 0x18]
jge 0x47204b
shl eax, 8
lea ecx, [ebp - 0x14]
lea edx, [ebp - 0x17c24]
push ecx
lea eax, [ebp + eax - 0x8224]
push edx
push eax
mov dword [ebp - 0x14], esi
call fcn.004b6f10
add esp, 0xc
xor edi, edi
cmp edi, dword [ebp - 0x14]
jge 0x472040
mov ecx, edi
mov eax, 0x80
shl ecx, 8
push eax
lea esi, [ebp + ecx - 0x17c24]
push esi
call ebx
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
inc edi
jmp 0x47201c
mov eax, dword [ebp - 0x1c]
inc eax
xor esi, esi
mov dword [ebp - 0x1c], eax
jmp 0x471ff4
mov ax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x475290
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fb730
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x3c8
push ebx
push esi
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x214]
rep stosd dword es:[edi], eax
mov edi, dword [ebp + 8]
or ecx, 0xffffffff
xor ebx, ebx
lea edx, [ebp - 0x214]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [ebp - 0x10], esp
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [ebp - 0x214]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
mov dword [ebp - 4], ebx
rep movsb byte es:[edi], byte [esi]
mov edi, str..exe
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [ebp - 0x14], ebx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [ebp - 0x294]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [ebp - 0x114]
push ecx
call fcn.004014b0
add esp, 8
lea edx, [ebp - 0x3d4]
lea eax, [ebp - 0x214]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x47542e
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x94]
lea edx, [ebp - 0x3a8]
push ecx
push edx
push eax
xor esi, esi
mov byte [ebp - 0x94], 0
call fcn.004c8560
add esp, 0xc
lea ecx, [ebp - 0x94]
lea edx, [ebp - 0x114]
push ecx
push edx
call fcn.004f61e0
add esp, 8
test eax, eax
jne 0x475396
mov esi, 1
lea eax, [ebp - 0x94]
lea ecx, [ebp - 0x294]
push eax
push ecx
call fcn.004f61e0
add esp, 8
test eax, eax
jne 0x4753b5
mov esi, 1
lea edx, [ebp - 0x94]
push 0xd4f350
push edx
call fcn.004f61e0
add esp, 8
test eax, eax
je 0x4753fb
cmp esi, 1
jne 0x4753fb
mov ecx, ebx
lea eax, [ebp - 0x3a8]
shl ecx, 6
push 0x80
add ecx, 0xdfcf18
push eax
push ecx
call fcn.004f27c0
add esp, 0xc
inc ebx
cmp ebx, 0xfac
je 0x47542e
mov eax, dword [ebp - 0x14]
inc eax
cmp eax, 0xfac
mov dword [ebp - 0x14], eax
je 0x47542e
lea edx, [ebp - 0x3d4]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x47534b
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or edi, 0xffffffff
jmp 0x47534b
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0xe56df0], ebx
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov ax, 1
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x481c90
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fb7c0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x3c8
push ebx
push esi
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x354]
rep stosd dword es:[edi], eax
mov edi, dword [ebp + 8]
or ecx, 0xffffffff
xor ebx, ebx
lea edx, [ebp - 0x354]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [ebp - 0x10], esp
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [ebp - 0x354]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
mov dword [ebp - 4], ebx
rep movsb byte es:[edi], byte [esi]
mov edi, str.drivers.
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [ebp - 0x14], ebx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [ebp - 0x3d4]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [ebp - 0x254]
push ecx
call fcn.004014b0
add esp, 8
lea edx, [ebp - 0x1d4]
lea eax, [ebp - 0x354]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x481e96
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x94]
lea edx, [ebp - 0x1a8]
push ecx
push edx
push eax
xor esi, esi
mov byte [ebp - 0x94], 0
call fcn.004c8560
add esp, 0xc
lea ecx, [ebp - 0x94]
lea edx, [ebp - 0x254]
push ecx
push edx
call fcn.004f61e0
add esp, 8
test eax, eax
jne 0x481d96
mov esi, 1
lea eax, [ebp - 0x94]
lea ecx, [ebp - 0x3d4]
push eax
push ecx
call fcn.004f61e0
add esp, 8
test eax, eax
jne 0x481db5
mov esi, 1
lea edx, [ebp - 0x94]
push 0xd4f350
push edx
call fcn.004f61e0
add esp, 8
test eax, eax
jne 0x481dcf
xor esi, esi
lea eax, [ebp - 0x1a8]
push eax
push str.CCmFILEMMeDu.SYS
call fcn.004f61e0
add esp, 8
test eax, eax
jne 0x481de9
xor esi, esi
lea ecx, [ebp - 0x1a8]
push ecx
push str.ccfilemon.sys
call fcn.004f61e0
add esp, 8
test eax, eax
jne 0x481e03
xor esi, esi
lea edx, [ebp - 0x1a8]
push edx
push str.AnyFileDel.SYS
call fcn.004f61e0
add esp, 8
test eax, eax
jne 0x481e1d
xor esi, esi
lea eax, [ebp - 0x1a8]
push eax
push 0x52155c
call fcn.004f61e0
add esp, 8
test eax, eax
je 0x481e63
cmp esi, 1
jne 0x481e63
mov edx, ebx
lea ecx, [ebp - 0x1a8]
shl edx, 6
push 0x80
add edx, 0xdfcf18
push ecx
push edx
call fcn.004f27c0
add esp, 0xc
inc ebx
cmp ebx, 0x400
je 0x481e96
mov eax, dword [ebp - 0x14]
inc eax
cmp eax, 0x400
mov dword [ebp - 0x14], eax
je 0x481e96
lea eax, [ebp - 0x1d4]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x481d4b
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or edi, 0xffffffff
jmp 0x481d4b
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0xe56df0], ebx
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov ax, 1
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret