joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40c94d
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4264c4
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x28
mov dword [ebp - 0x34], ecx
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x18]
call fcn.00425570
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.00401c20
cmp eax, 3
jge 0x40c9a9
mov dword [ebp - 0x20], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp - 0x20]
jmp 0x40cb42
push 3
lea ecx, [ebp - 0x1c]
push ecx
lea ecx, [ebp - 0x18]
call sub.MFC42.DLL_CString::Left
mov byte [ebp - 4], 1
push 0
lea ecx, [ebp - 0x1c]
call fcn.00415ba0
movsx edx, al
sub edx, 0x41
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x34]
add eax, dword [ebp - 0x10]
xor ecx, ecx
mov cl, byte [eax + 0xcc]
cmp ecx, 2
je 0x40ca1e
mov edx, dword [ebp - 0x34]
add edx, dword [ebp - 0x10]
xor eax, eax
mov al, byte [edx + 0xcc]
cmp eax, 5
je 0x40ca1e
mov dword [ebp - 0x24], 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call sub.MFC42.DLL_CString::CString
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp - 0x24]
jmp 0x40cb42
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x14]
push ecx
push 0
push 0
lea ecx, [ebp - 0x1c]
call fcn.00403090
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
test eax, eax
jne 0x40ca98
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x34]
mov dword [eax + edx*4 + 0x10c], 0xffffffff
mov ecx, dword [ebp + 8]
mov byte [ecx + 3], 0
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
push 0x10df
mov ecx, dword [ebp - 0x34]
call fcn.0040c90c
mov dword [ebp - 0x28], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call sub.MFC42.DLL_CString::CString
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp - 0x28]
jmp 0x40cb42
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x34]
mov eax, dword [edx + ecx*4 + 0x10c]
cmp eax, dword [ebp - 0x14]
je 0x40cb0d
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x34]
cmp dword [edx + ecx*4 + 0x10c], 0xffffffff
je 0x40cb0d
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x34]
mov edx, dword [ebp - 0x14]
mov dword [ecx + eax*4 + 0x10c], edx
mov eax, dword [ebp + 8]
mov byte [eax + 3], 0
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
push 0x456
mov ecx, dword [ebp - 0x34]
call fcn.0040c90c
mov dword [ebp - 0x2c], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call sub.MFC42.DLL_CString::CString
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp - 0x2c]
jmp 0x40cb42
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x34]
mov edx, dword [ebp - 0x14]
mov dword [ecx + eax*4 + 0x10c], edx
mov dword [ebp - 0x30], 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call sub.MFC42.DLL_CString::CString
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x40cb52
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
cmp dword [ebp + 0xc], 0
jne 0x40ccc2
mov eax, dword [ebp - 8]
cmp dword [eax + 0x398], 0
je 0x40cb8e
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x398]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 8]
mov dword [eax + 0x398], 0
mov ecx, dword [ebp - 8]
call fcn.0040c40e
test eax, eax
jne 0x40cba4
mov eax, 0x5aa
jmp 0x40ccdc
mov ecx, dword [ebp - 8]
mov dword [ecx + 0x3b4], 0
mov edx, dword [ebp - 8]
mov dword [edx + 0x3b0], 0
mov eax, dword [ebp - 8]
mov dword [eax + 0x3a0], 0
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 8]
add ecx, 0x210
call fcn.0042554c
push 0x8001
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
push 0
push 0x80
push 3
push 0
push 0
push bind
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ecx, dword [ebp - 8]
mov dword [ecx + 0x398], eax
mov edx, dword [ebp - 8]
cmp dword [edx + 0x398], 0xffffffff
jne 0x40cc24
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x40ccdc
lea eax, [ebp - 4]
push eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x398]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [ebp - 8]
mov dword [ecx + 0x3a8], eax
mov edx, dword [ebp - 8]
mov dword [edx + 0x3ac], 0
mov eax, dword [ebp - 8]
cmp dword [eax + 0x3a8], 0
je 0x40cc69
mov ecx, dword [ebp - 8]
mov dword [ecx + 0x3b4], 1
jmp 0x40cc86
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x398]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 8]
mov dword [ecx + 0x398], 0
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x398]
mov dword [edx + 0x10], ecx
mov edx, dword [ebp + 0x14]
mov dword [edx + 8], 0
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x3b4]
mov dword [eax + 0x20], edx
push 1
push 0x2c
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp + 0x10]
call fcn.00421c85
xor eax, eax
jmp 0x40ccdc
mov ecx, dword [ebp - 8]
mov edx, dword [ebp + 0xc]
mov dword [ecx + 0x398], edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp - 8]
call fcn.0040cce2
xor eax, eax
mov esp, ebp
pop ebp
ret 0x10
Function at 0x40fb88
Capabilities:
Query or enumerate registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4267c1
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x140
mov dword [ebp - 0x14c], ecx
lea eax, [ebp - 0x24]
push eax
push 0x20019
push 0
push 0x4305d0
push bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x40fbd2
xor eax, eax
jmp 0x40fcac
push 0
lea ecx, [ebp - 0x140]
push ecx
lea edx, [ebp - 0x28]
push edx
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x138]
push ecx
lea edx, [ebp - 0x1c]
push edx
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x20]
push ecx
push 0
lea edx, [ebp - 0x14]
push edx
lea eax, [ebp - 0x134]
push eax
mov ecx, dword [ebp - 0x24]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
je 0x40fc18
xor eax, eax
jmp 0x40fcac
push 0x43060c
lea ecx, [ebp - 0x18]
call fcn.00425570
mov dword [ebp - 4], 0
mov dword [ebp - 0x13c], 0
cmp dword [ebp + 8], 0
je 0x40fc46
mov dword [ebp - 0x13c], 1
push 4
lea edx, [ebp - 0x13c]
push edx
push 4
push 0
push 1
lea ecx, [ebp - 0x18]
call sub.MFC42.DLL_CString::GetBuffer
push eax
mov eax, dword [ebp - 0x24]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x40fc8d
mov dword [ebp - 0x144], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp - 0x144]
jmp 0x40fcac
mov dword [ebp - 0x148], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp - 0x148]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x40fcbc
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4267d4
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x148
mov dword [ebp - 0x154], ecx
lea eax, [ebp - 0x28]
push eax
push 0x20019
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionInternet_Settings
push bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x40fd06
xor eax, eax
jmp 0x40fded
push 0
lea ecx, [ebp - 0x148]
push ecx
lea edx, [ebp - 0x30]
push edx
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x140]
push ecx
lea edx, [ebp - 0x20]
push edx
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x24]
push ecx
push 0
lea edx, [ebp - 0x14]
push edx
lea eax, [ebp - 0x13c]
push eax
mov ecx, dword [ebp - 0x28]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
je 0x40fd4c
xor eax, eax
jmp 0x40fded
push str.EnableAutodial
lea ecx, [ebp - 0x1c]
call fcn.00425570
mov dword [ebp - 4], 0
mov dword [ebp - 0x144], 0
mov dword [ebp - 0x2c], 4
lea edx, [ebp - 0x2c]
push edx
lea eax, [ebp - 0x144]
push eax
lea ecx, [ebp - 0x18]
push ecx
push 0
push 1
lea ecx, [ebp - 0x1c]
call sub.MFC42.DLL_CString::GetBuffer
push eax
mov edx, dword [ebp - 0x28]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x40fdbc
mov dword [ebp - 0x14c], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp - 0x14c]
jmp 0x40fded
mov eax, dword [ebp - 0x154]
mov ecx, dword [ebp - 0x144]
mov dword [eax + 0x218], ecx
mov dword [ebp - 0x150], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp - 0x150]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x410b9f
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
mov dword [eax + 0x148], 0
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0xe0], 0
je 0x410bc4
jmp 0x410cd4
mov edx, dword [ebp - 4]
cmp dword [edx + 0x14c], 0
jne 0x410bd5
jmp 0x410cd4
mov ecx, dword [ebp - 4]
call fcn.00410793
mov eax, dword [ebp - 4]
mov dword [eax + 0x16c], 1
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x174], 1
mov edx, dword [ebp - 4]
mov dword [edx + 0x124], 0
push 0x21
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x14c]
call sub.MFC42.DLL_CAsyncSocket::AsyncSelect
mov ecx, dword [ebp - 4]
add ecx, 0x12c
push ecx
mov edx, dword [ebp - 4]
add edx, 0x10c
push edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x14c]
call sub.MFC42.DLL_CAsyncSocket::GetSockName
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0x150], 2
jne 0x410c61
push 1
mov ecx, dword [ebp - 4]
add ecx, 0x10c
call sub.MFC42.DLL_CString::GetBuffer
push eax
call sub.WSOCK32.dll_inet_addr
mov edx, dword [ebp - 4]
mov dword [edx + 0x110], eax
push 0
push 2
mov ecx, dword [ebp - 4]
call fcn.0040fe31
mov eax, dword [ebp - 4]
cmp dword [eax + 0x104], 0
je 0x410c96
mov ecx, dword [ebp - 4]
push ecx
push 0x10
push 0x400
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x104]
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
jmp 0x410ca7
push 0
push 0x10
push 0x400
mov ecx, dword [ebp - 4]
call fcn.00401c60
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0x114], 0
je 0x410cd4
push bind
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x20]
push eax
push 0x40b
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x114]
push edx
call dword [sym.imp.USER32.dll_PostMessageA]
mov esp, ebp
pop ebp
ret
Function at 0x4125d8
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 0x20], ecx
push 1
push 0
push 0
push 1
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x20]
call fcn.00412508
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0xffffffff
jne 0x412603
jmp 0x4126c0
push 0
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], 0x88
mov edx, dword [ebp - 4]
cmp edx, dword [ebp - 0xc]
jge 0x412630
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4126c0
mov ecx, dword [ebp - 4]
push ecx
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [ebp - 0x18], eax
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x10], edx
push 0
lea eax, [ebp - 8]
push eax
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [ebp - 8]
cmp ecx, dword [ebp - 4]
je 0x412667
jmp 0x4126be
push 0x4307bc
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x41267c
jmp 0x4126bc
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x7c]
mov dword [eax + 8], edx
mov eax, dword [ebp - 0x10]
add eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 4]
sub ecx, dword [ebp - 0xc]
push ecx
mov ecx, dword [ebp - 0x20]
call fcn.004123c5
mov edx, dword [ebp - 0x10]
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0x1c]
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4126c0
jmp 0x41269e
jmp 0x41269e
mov esp, ebp
pop ebp
ret 4
Function at 0x4126c6
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x98
mov dword [ebp - 0x98], ecx
mov eax, dword [ebp - 0x98]
mov ecx, dword [eax + 4]
call fcn.0040f5c0
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], 0
push str.SchedFileIdentifier
lea ecx, [ebp - 0x94]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [ebp - 0x98]
mov eax, dword [edx + 8]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 1
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x10], ecx
push 0
lea edx, [ebp - 8]
push edx
push 0x88
lea eax, [ebp - 0x94]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x41273f
mov edx, dword [ebp - 0xc]
add edx, 1
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 4]
jge 0x41283b
push 0
lea ecx, [ebp - 8]
push ecx
push 0x1c
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp - 0x98]
mov ecx, dword [eax + 4]
call fcn.0040af20
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea edx, [ebp - 8]
push edx
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x98]
mov ecx, dword [ecx + 4]
call fcn.0040af20
mov ecx, eax
add ecx, 0x1c
call fcn.00401c20
push eax
push 1
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp - 0x98]
mov ecx, dword [eax + 4]
call fcn.0040af20
mov ecx, eax
add ecx, 0x1c
call sub.MFC42.DLL_CString::GetBuffer
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea edx, [ebp - 8]
push edx
push 1
push 0x432394
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea ecx, [ebp - 8]
push ecx
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp - 0x98]
mov ecx, dword [eax + 4]
call fcn.0040af20
mov ecx, eax
add ecx, 0x20
call fcn.00401c20
push eax
push 1
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp - 0x98]
mov ecx, dword [edx + 4]
call fcn.0040af20
mov ecx, eax
add ecx, 0x20
call sub.MFC42.DLL_CString::GetBuffer
push eax
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea ecx, [ebp - 8]
push ecx
push 1
push 0x432398
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x412736
mov esp, ebp
pop ebp
ret 4
Function at 0x413f15
Capabilities:
Delete directory
Set file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.00413e89
add esp, 0x10
test eax, eax
jne 0x413f3b
xor eax, eax
jmp 0x413fc4
mov ecx, dword [ebp + 0x14]
push ecx
push 1
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00413530
add esp, 0x14
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x413fc2
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp eax, 4
jge 0x413f91
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp eax, 1
jle 0x413f91
mov edx, dword [ebp + 8]
movsx eax, byte [edx + 1]
cmp eax, 0x3a
jne 0x413f91
xor eax, eax
jmp 0x413fc4
push 0x80
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x413fc2
mov eax, dword [0x4323a0]
add eax, 1
mov dword [0x4323a0], eax
mov eax, dword [0x4323a0]
jmp 0x413fc4
xor eax, eax
pop ebp
ret
Function at 0x413fc6
Capabilities:
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x426b4b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x10], 0
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::CString_3
mov dword [ebp - 4], 0
mov dword [0x4323a0], 0
mov dword [ebp - 0x10], 0
jmp 0x414026
mov edx, dword [ebp - 0x10]
add edx, 1
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x1c]
jge 0x4140f2
mov ecx, dword [ebp - 0x18]
add ecx, dword [ebp - 0x10]
movsx edx, byte [ecx]
cmp edx, 8
jne 0x4140dc
cmp dword [ebp - 0x10], 0
je 0x414062
mov eax, dword [ebp - 0x18]
add eax, dword [ebp - 0x10]
movsx ecx, byte [eax - 1]
cmp ecx, 8
jne 0x414062
mov dword [ebp + 0xc], 0
jmp 0x4140d2
cmp dword [ebp + 0xc], 0
je 0x414083
push 0
push 0
push 0
push 1
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::GetBuffer
push eax
call fcn.00413f15
add esp, 0x10
jmp 0x4140d2
push 1
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::GetBuffer
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x4140d2
push 0x80
push 1
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::GetBuffer
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push 1
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::GetBuffer
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x4140d2
mov edx, dword [0x4323a0]
add edx, 1
mov dword [0x4323a0], edx
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::Empty
jmp 0x4140ed
mov eax, dword [ebp - 0x18]
add eax, dword [ebp - 0x10]
mov cl, byte [eax]
push ecx
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::operator_2
jmp 0x41401d
mov edx, dword [0x4323a0]
mov dword [ebp - 0x20], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x414d35
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x426c47
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
mov ecx, dword [ebp + 8]
call fcn.00401c20
mov dword [ebp - 0x1c], eax
push 1
mov ecx, dword [ebp + 8]
call sub.MFC42.DLL_CString::GetBuffer
mov dword [ebp - 0x18], eax
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::CString_3
mov dword [ebp - 4], 0
mov dword [ebp - 0x20], 1
mov eax, dword [ebp - 0x18]
movsx ecx, byte [eax]
cmp ecx, 8
jne 0x414d90
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x10], 0
jmp 0x414da2
mov edx, dword [ebp - 0x10]
add edx, 1
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x1c]
jge 0x414e38
mov ecx, dword [ebp - 0x18]
add ecx, dword [ebp - 0x10]
movsx edx, byte [ecx]
cmp edx, 8
jne 0x414e22
cmp dword [ebp - 0x10], 0
je 0x414de6
mov eax, dword [ebp - 0x18]
add eax, dword [ebp - 0x10]
movsx ecx, byte [eax]
cmp ecx, 8
jne 0x414de6
mov edx, dword [ebp - 0x18]
add edx, dword [ebp - 0x10]
movsx eax, byte [edx - 1]
cmp eax, 8
jne 0x414de6
mov dword [ebp - 0x20], 0
mov ecx, dword [ebp + 0xc]
push ecx
push 1
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::GetBuffer
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
cmp dword [ebp - 0x20], 0
je 0x414e18
mov edx, dword [ebp + 0xc]
push edx
push 1
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::GetBuffer
push eax
call fcn.004149a9
add esp, 8
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::Empty
jmp 0x414e33
mov eax, dword [ebp - 0x18]
add eax, dword [ebp - 0x10]
mov cl, byte [eax]
push ecx
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::operator_2
jmp 0x414d99
mov dword [ebp - 0x24], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x4158f8
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
push 0x430900
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [ebp - 0xc], eax
push str.GetDiskFreeSpaceExA
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x415943
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [ebp - 8]
test eax, eax
je 0x415943
mov eax, 1
jmp 0x4159ba
lea edx, [ebp - 4]
push edx
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x18]
push ecx
lea edx, [ebp - 0x10]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
test eax, eax
je 0x4159b8
mov ecx, dword [ebp - 0x18]
imul ecx, dword [ebp - 0x10]
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp - 0x14]
xor eax, eax
mov ecx, dword [ebp - 0x1c]
xor esi, esi
push esi
push ecx
push eax
push edx
call fcn.00425a40
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
mov dword [ecx + 4], edx
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
mov dword [edx], ecx
mov eax, dword [eax + 4]
mov dword [edx + 4], eax
mov ecx, dword [ebp - 4]
xor edx, edx
mov eax, dword [ebp - 0x1c]
xor esi, esi
push esi
push eax
push edx
push ecx
call fcn.00425a40
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
mov dword [ecx + 4], edx
mov eax, 1
jmp 0x4159ba
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4159bf
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push edi
mov dword [ebp - 0x3c], 0
mov ecx, 0xe
xor eax, eax
lea edi, [ebp - 0x38]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x3c], 0x3c
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x38], 0x40
mov dword [ebp - 0x20], 1
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x2c], ecx
mov edx, dword [ebp + 0x10]
mov dword [ebp - 0x28], edx
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
test eax, eax
je 0x415a14
cmp dword [ebp - 0x1c], 0x20
jg 0x415a18
xor eax, eax
jmp 0x415a1d
mov eax, 1
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x415a22
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x130
mov dword [ebp - 0x11c], 0
xor eax, eax
mov dword [ebp - 0x118], eax
mov dword [ebp - 0x114], eax
mov dword [ebp - 0x110], eax
cmp dword [ebp + 0xc], 0
jne 0x415a69
push 0x105
lea ecx, [ebp - 0x108]
push ecx
call fcn.00415bc0
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
jmp 0x415a7a
mov edx, dword [ebp + 0xc]
push edx
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea ecx, [ebp - 0x120]
push ecx
lea edx, [ebp - 0x108]
push edx
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov dword [ebp - 0x10c], eax
cmp dword [ebp - 0x10c], 0
je 0x415b69
mov eax, dword [ebp - 0x10c]
push eax
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [ebp - 0x12c], eax
mov ecx, dword [ebp - 0x12c]
mov dword [ebp - 0x124], ecx
cmp dword [ebp - 0x124], 0
je 0x415b69
mov edx, dword [ebp - 0x124]
push edx
mov eax, dword [ebp - 0x10c]
push eax
mov ecx, dword [ebp - 0x120]
push ecx
lea edx, [ebp - 0x108]
push edx
call sub.VERSION.dll_GetFileVersionInfoA
lea eax, [ebp - 0x10c]
push eax
lea ecx, [ebp - 0x128]
push ecx
push 0x430920
mov edx, dword [ebp - 0x124]
push edx
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x415b4e
mov eax, dword [ebp - 0x128]
mov ecx, dword [eax + 0x10]
mov dword [ebp - 0x11c], ecx
mov edx, dword [ebp - 0x128]
mov eax, dword [edx + 0x14]
mov dword [ebp - 0x118], eax
mov ecx, dword [ebp - 0x128]
mov edx, dword [ecx + 8]
mov dword [ebp - 0x114], edx
mov eax, dword [ebp - 0x128]
mov ecx, dword [eax + 0xc]
mov dword [ebp - 0x110], ecx
mov edx, dword [ebp - 0x124]
mov dword [ebp - 0x130], edx
mov eax, dword [ebp - 0x130]
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x11c]
mov dword [ecx], edx
mov eax, dword [ebp - 0x118]
mov dword [ecx + 4], eax
mov edx, dword [ebp - 0x114]
mov dword [ecx + 8], edx
mov eax, dword [ebp - 0x110]
mov dword [ecx + 0xc], eax
mov eax, dword [ebp + 8]
mov esp, ebp
pop ebp
ret