joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404a50
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
push edi
push 0x40
call fcn.004f266a
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
add esp, 4
mov ebx, eax
lea eax, [esp + 0x10]
push eax
push 0x20019
push 0
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionWinlogon_
push closesocket
mov dword [esp + 0x2c], 1
call esi
test eax, eax
jne 0x404ae2
lea ecx, [esp + 0x14]
lea edx, [esp + 0x18]
push ecx
push ebx
push edx
push eax
mov eax, dword [esp + 0x20]
push str.DefaultUserName
mov dword [esp + 0x28], 0x80
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
mov ebp, dword [esp + 0x20]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, dword [ebp]
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 [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x404b46
lea ecx, [esp + 0x10]
push ecx
push 0x20019
push 0
push str.SystemCurrentControlSetControl
push closesocket
call esi
test eax, eax
jne 0x404b1f
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x1c]
push ebx
push eax
push 0
push str.Current_User
mov dword [esp + 0x28], 0x80
push ecx
jmp 0x404aab
mov edi, str.NULL
or ecx, 0xffffffff
xor eax, eax
mov ebp, dword [esp + 0x20]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, dword [ebp]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea eax, [esp + 0x10]
push eax
push 0x20019
push 0
push str..DEFAULTLogonRecords
push reloc.WS2_32.dll_closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x404bbd
lea ecx, [esp + 0x14]
lea edx, [esp + 0x18]
push ecx
push ebx
push edx
push eax
mov eax, dword [esp + 0x20]
push str.runtime
push eax
mov dword [esp + 0x2c], 0x40
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edx, dword [ebp]
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
add edx, 0x80
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]
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edx, dword [ebp]
push eax
add edx, 0x100
push 0x50de60
push edx
call fcn.004f175f
add esp, 0xc
mov ax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
Function at 0x404bf0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xb0
push esi
push edi
push 0x200
mov dword [esp + 0x18], 1
call fcn.004f266a
mov dword [esp + 0x10], eax
lea eax, [esp + 0x10]
push eax
call fcn.00406eb0
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
add esp, 8
lea ecx, [esp + 8]
push ecx
push 0x20019
push 0
push 0xc30c0c
push reloc.WS2_32.dll_closesocket
call esi
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
lea edx, [esp + 8]
add eax, 0x100
push edx
push 0x20019
push 0
push eax
push ecx
call esi
mov eax, dword [esp + 8]
lea edx, [esp + 8]
push edx
push 0x20019
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerShell_Folders_
push eax
call esi
test eax, eax
jne 0x404cac
lea ecx, [esp + 0x10]
lea edx, [esp + 0x68]
push ecx
mov ecx, dword [esp + 0xc]
lea eax, [esp + 0x18]
push edx
push eax
push 0
push str.Programs
push ecx
mov dword [esp + 0x28], 0x50
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, 0x103
je 0x404cd2
lea edi, [esp + 0x68]
lea edx, [esp + 0x18]
jmp 0x404cb5
lea edx, [esp + 0x18]
mov edi, str.NULL
or ecx, 0xffffffff
xor eax, eax
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]
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea edx, [esp + 0x18]
push edx
call fcn.004fa6c0
add esp, 4
pop edi
pop esi
add esp, 0xb0
ret
Function at 0x404d00
Capabilities:
Get common file path
Persist via run registry key
Query or enumerate registry value

Disassembly:
sub esp, 0x2b4
push esi
lea eax, [esp + 4]
push edi
push eax
push 0x20019
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionExplorerShell_Folders_
push closesocket
mov dword [esp + 0x24], 1
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x404d8e
lea ecx, [esp + 0xc]
lea edx, [esp + 0x64]
push ecx
mov ecx, dword [esp + 0xc]
lea eax, [esp + 0x14]
push edx
push eax
push 0
push str.Common_Programs
push ecx
mov dword [esp + 0x24], 0x50
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, 0x103
je 0x404e16
lea edi, [esp + 0x64]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x14]
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]
jmp 0x404e16
push ebx
lea ecx, [esp + 0x1bc]
push 0x104
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0xb8]
mov dl, byte [esp + 0x1bc]
rep stosd dword es:[edi], eax
mov edi, str.:Documents_and_SettingsAll_Users_
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
mov byte [esp + 0xb8], dl
sub edi, ecx
lea edx, [esp + 0xb8]
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
lea edx, [esp + 0x18]
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
pop ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0xb4]
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]
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea edx, [esp + 0x14]
push edx
call fcn.004fa6c0
add esp, 4
pop edi
pop esi
add esp, 0x2b4
ret
Function at 0x404e40
Capabilities:
Get common file path
Persist via run registry key
Query or enumerate registry value

Disassembly:
sub esp, 0x2b4
push esi
lea eax, [esp + 4]
push edi
push eax
push 0x20019
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionExplorerShell_Folders_
push closesocket
mov dword [esp + 0x24], 1
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x404ece
lea ecx, [esp + 0xc]
lea edx, [esp + 0x64]
push ecx
mov ecx, dword [esp + 0xc]
lea eax, [esp + 0x14]
push edx
push eax
push 0
push str.Common_Startup
push ecx
mov dword [esp + 0x24], 0x50
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, 0x103
je 0x404f56
lea edi, [esp + 0x64]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x14]
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]
jmp 0x404f56
push ebx
lea ecx, [esp + 0x1bc]
push 0x104
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0xb8]
mov dl, byte [esp + 0x1bc]
rep stosd dword es:[edi], eax
mov edi, str.:All_UsersStart_MenuPrograms_
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
mov byte [esp + 0xb8], dl
sub edi, ecx
lea edx, [esp + 0xb8]
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
lea edx, [esp + 0x18]
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
pop ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0xb4]
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]
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea edx, [esp + 0x14]
push edx
call fcn.004fa6c0
add esp, 4
pop edi
pop esi
add esp, 0x2b4
ret

Function at 0x404f80
Capabilities:
Get common file path

Disassembly:
sub esp, 0x208
push ebx
push esi
push edi
lea eax, [esp + 0x110]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0xc]
lea edx, [esp + 0xc]
rep stosd dword es:[edi], eax
mov cl, byte [esp + 0x110]
mov edi, str.:Documents_and_SettingsAdministrator_
mov byte [esp + 0xc], cl
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0xc]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.004fa6c0
add esp, 4
pop edi
pop esi
pop ebx
add esp, 0x208
ret
Function at 0x405000
Capabilities:
Enumerate files on windows

Disassembly:
sub esp, 0x240
mov ecx, 0x40
xor eax, eax
lea edx, [esp]
push ebx
push ebp
push esi
push edi
mov ebx, dword [esp + 0x254]
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
mov edi, ebx
or ecx, 0xffffffff
xor ebp, ebp
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x10]
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 edi, str..
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
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, [esp + 0x110]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x4050df
mov edi, dword [esp + 0x258]
test byte [esp + 0x110], 0x10
je 0x4050c2
cmp byte [esp + 0x13c], 0x2e
je 0x4050c2
lea edx, [esp + 0x13c]
push edx
push ebx
push 0x50e0ec
push edi
call fcn.004f175f
add esp, 0x10
inc ebp
add edi, 0x100
lea eax, [esp + 0x110]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x405090
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
or esi, 0xffffffff
mov ecx, dword [esp + 0x25c]
push esi
mov dword [ecx], ebp
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
pop esi
pop ebp
mov ax, 1
pop ebx
add esp, 0x240
ret
Function at 0x406d40
Capabilities:
Query or enumerate registry key

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
push 0x40
call fcn.004f266a
push 0x100
call fcn.004f266a
push 8
mov ebp, eax
call fcn.004f266a
add esp, 0xc
lea eax, [esp + 0x10]
xor ebx, ebx
push eax
push 0x20019
push ebx
push ebx
push reloc.WS2_32.dll_closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push str.begin....
mov ecx, 0xf558a0
mov esi, eax
call fcn.004f0087
push 0x402150
push 0xa
mov ecx, eax
call fcn.004eff40
mov ecx, eax
call fcn.004016a0
push esi
mov ecx, 0xf558a0
call fcn.004f0ba3
push 0x402150
push 0xa
mov ecx, eax
call fcn.004eff40
mov ecx, eax
call fcn.004016a0
test esi, esi
jne 0x406e1b
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x18], ecx
mov edx, dword [esp + 0x10]
push 0x100
push ebp
push ebx
push edx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
cmp eax, 0x103
je 0x406e13
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov eax, dword [esp + 0x18]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
inc ebx
add eax, 0x40
rep movsb byte es:[edi], byte [esi]
mov dword [esp + 0x18], eax
jmp 0x406dcd
mov eax, dword [esp + 0x1c]
mov dword [eax], ebx
jmp 0x406e69
push esi
mov ecx, 0xf558a0
call fcn.004f0ba3
push 0x402150
push 0xa
mov ecx, eax
call fcn.004eff40
mov ecx, eax
call fcn.004016a0
mov edi, str.NULL
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, dword [esp + 0x1c]
mov edx, ecx
mov esi, edi
mov edi, dword [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 dword [eax], 0
push str.end....
mov ecx, 0xf558a0
call fcn.004f0087
push 0x402150
push 0xa
mov ecx, eax
call fcn.004eff40
mov ecx, eax
call fcn.004016a0
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
mov ax, 1
pop ebx
pop ecx
ret
Function at 0x4081e0
Capabilities:
Create service
Persist via windows service

Disassembly:
sub esp, 0x100
push esi
push edi
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov esi, eax
lea eax, [esp + 8]
push 0xff
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0
mov eax, dword [esp + 0x110]
push 0
push 0
push 0
lea ecx, [esp + 0x18]
push 0
push ecx
push 0
push 2
push 0x10
push 0xf01ff
push eax
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push eax
call edi
push esi
call edi
pop edi
pop esi
add esp, 0x100
ret
Function at 0x4290d0
Capabilities:
Check os version
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fa9e0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x27c
push ebx
push esi
push edi
mov ecx, 0x24
xor eax, eax
lea edi, [ebp - 0xe4]
mov dword [ebp - 0xe8], 0x94
mov dword [ebp - 0x10], esp
rep stosd dword es:[edi], eax
lea eax, [ebp - 0xe8]
xor ebx, ebx
push eax
mov dword [0xe56d60], ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0xd8], 2
jne 0x429173
cmp dword [ebp - 0xe4], 5
jae 0x429141
lea edx, [ebp - 0x54]
mov edi, str.WINDOWSNT
jmp 0x42917b
mov eax, dword [ebp - 0xe0]
cmp eax, ebx
jne 0x429155
lea edx, [ebp - 0x54]
mov edi, str.WINDOWS2000
jmp 0x42917b
cmp eax, 1
jne 0x429164
lea edx, [ebp - 0x54]
mov edi, str.WINDOWSXP
jmp 0x42917b
cmp eax, 2
jb 0x429198
lea edx, [ebp - 0x54]
mov edi, str.WINDOWS2003
jmp 0x42917b
lea edx, [ebp - 0x54]
mov edi, str.WINDOWS98
or ecx, 0xffffffff
xor eax, eax
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, [ebp - 0x188]
push ecx
call fcn.004ab6e0
add esp, 4
lea edx, [ebp - 0x108]
push edx
call fcn.00401350
add esp, 4
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], ebx
push eax
push 0x20019
push ebx
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionHotFix
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x42921a
xor esi, esi
mov ebx, 0x100
mov edx, dword [ebp - 0x14]
lea ecx, [ebp - 0x288]
mov eax, esi
push ebx
push ecx
push eax
push edx
inc esi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
jne 0x429213
lea edi, [ebp - 0x288]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 1
jle 0x4291de
inc dword [0xe56d60]
jmp 0x4291de
cmp eax, 0x103
jne 0x4291de
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 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 0x42aa60
Capabilities:
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4faa48
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1ec
push ebx
push esi
push edi
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], esp
call fcn.004b7290
mov ebx, eax
or ecx, 0xffffffff
mov edi, ebx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 1
jle 0x42abe3
push str.NULL
push ebx
call fcn.004f2d80
push 0x517e70
push ebx
mov esi, eax
call fcn.004f2d80
add esp, 0x10
test esi, esi
jne 0x42abe3
test eax, eax
jne 0x42abe3
lea eax, [ebp - 0xf8]
push eax
call fcn.004ab6e0
add esp, 4
lea ecx, [ebp - 0x78]
push ecx
call fcn.00401350
add esp, 4
lea ecx, [ebp - 0x58]
push 1
call fcn.004f0653
mov edx, dword [0x4fe4e8]
lea ecx, [ebp - 0x58]
push edx
push 8
push str.c:endpcacheprocess_log.txt
mov byte [ebp - 4], 1
call fcn.004f0727
lea eax, [ebp - 0x78]
push ebx
push eax
call fcn.004fa6c0
add esp, 4
lea ecx, [ebp - 0xf8]
push eax
push ecx
call fcn.004fa6c0
add esp, 4
lea edx, [ebp - 0x1f8]
push eax
push 0x517e14
push edx
call fcn.004f175f
mov eax, dword [0xe56db0]
add esp, 0x14
test eax, eax
jne 0x42aba0
mov eax, dword [0xe56dbc]
mov ecx, dword [ebp + 0x1b4]
mov edx, dword [ebp + 0x1b0]
test eax, eax
lea eax, [ebp - 0x1f8]
push eax
push ecx
push edx
jne 0x42ab83
sub esp, 0x1a8
mov ecx, 0x6a
lea esi, [ebp + 8]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
call fcn.00404170
jmp 0x42ab9a
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
mov eax, dword [0xe56d24]
lea ecx, [ebp - 0x58]
inc eax
mov dword [0xe56d24], eax
call fcn.004f076e
push 0x80
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push ebx
call fcn.004ab990
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
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 ax, 1
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x42eb20
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4faaf0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x84
push ebx
push esi
push edi
lea eax, [ebp - 0x90]
mov dword [ebp - 0x10], esp
push 0x80
push eax
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov edi, 0x519358
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp - 0x90]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0xdb1c0c
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
push 0xe56a50
and ecx, 3
lea eax, [ebp - 0x90]
push 0xd9b8c0
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.004b7fe0
add esp, 0x10
lea ecx, [ebp - 0x90]
push 0xd4f350
push ecx
call fcn.004b83e0
add esp, 8
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 0x42ebe0
Capabilities:
Enumerate files on windows

Disassembly:
sub esp, 0x240
mov ecx, 0x40
xor eax, eax
lea edx, [esp]
push ebx
push ebp
push esi
push edi
lea edi, [esp + 0x10]
xor ebx, ebx
rep stosd dword es:[edi], eax
mov edi, dword [esp + 0x254]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x10]
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 edi, str..
or ecx, 0xffffffff
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 + 0x110]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x42ecaf
mov ebp, dword [sym.imp.KERNEL32.dll_FindNextFileA]
mov edi, 0xdfcf18
lea edx, [esp + 0x13c]
push 0x40
push edx
push edi
call fcn.004f27c0
add esp, 0xc
lea eax, [esp + 0x110]
inc ebx
add edi, 0x40
push eax
push esi
call ebp
test eax, eax
jne 0x42eca2
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or esi, 0xffffffff
cmp edi, 0xe3ba18
je 0x42ecaf
cmp esi, 0xffffffff
jne 0x42ec72
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov dword [0xe56de8], ebx
pop ebp
mov ax, 1
pop ebx
add esp, 0x240
ret
Function at 0x42f020
Capabilities:
Enumerate files on windows

Disassembly:
sub esp, 0x240
mov ecx, 0x40
xor eax, eax
lea edx, [esp]
push ebx
push ebp
push esi
push edi
lea edi, [esp + 0x10]
xor ebx, ebx
rep stosd dword es:[edi], eax
mov edi, dword [esp + 0x254]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x10]
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 edi, str..dll
or ecx, 0xffffffff
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 + 0x110]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x42f0ef
mov ebp, dword [sym.imp.KERNEL32.dll_FindNextFileA]
mov edi, 0xdfcf18
lea edx, [esp + 0x13c]
push 0x40
push edx
push edi
call fcn.004f27c0
add esp, 0xc
lea eax, [esp + 0x110]
inc ebx
add edi, 0x40
push eax
push esi
call ebp
test eax, eax
jne 0x42f0e2
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or esi, 0xffffffff
cmp edi, 0xe3ba18
je 0x42f0ef
cmp esi, 0xffffffff
jne 0x42f0b2
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov dword [0xe56df4], ebx
pop ebp
mov ax, 1
pop ebx
add esp, 0x240
ret

Function at 0x42f110
Capabilities:
Enumerate files on windows

Disassembly:
sub esp, 0x240
mov ecx, 0x40
xor eax, eax
lea edx, [esp]
push ebx
push ebp
push esi
push edi
lea edi, [esp + 0x10]
xor ebx, ebx
rep stosd dword es:[edi], eax
mov edi, dword [esp + 0x254]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x10]
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 edi, 0x5193c0
or ecx, 0xffffffff
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 + 0x110]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x42f1df
mov ebp, dword [sym.imp.KERNEL32.dll_FindNextFileA]
mov edi, 0xdfcf18
lea edx, [esp + 0x13c]
push 0x40
push edx
push edi
call fcn.004f27c0
add esp, 0xc
lea eax, [esp + 0x110]
inc ebx
add edi, 0x40
push eax
push esi
call ebp
test eax, eax
jne 0x42f1d2
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or esi, 0xffffffff
cmp edi, 0xdfef18
je 0x42f1df
cmp esi, 0xffffffff
jne 0x42f1a2
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov dword [0xe56df4], ebx
pop ebp
mov ax, 1
pop ebx
add esp, 0x240
ret