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

Disassembly:
push ecx
mov eax, dword [esp + 8]
push ebx
push esi
push edi
mov esi, ecx
push 0x104
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push esi
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecA]
lea ebx, [esi + 0x104]
mov ecx, 0x41
xor eax, eax
mov edi, ebx
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x14]
lea edx, [esp + 0xc]
push ecx
push ebx
push edx
push str.Path
push str.SOFTWAREMicrosoftWindowsCurrentVersionApp_Paths360safe.exe
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x24], 1
mov dword [esp + 0x2c], 0x104
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
test eax, eax
je 0x4205fc
push 0x103
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
push 0x562060
push ebx
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
pop edi
pop esi
pop ebx
pop ecx
ret 4

Function at 0x420800
Capabilities:
Get file version info

Disassembly:
mov eax, 0x200c
call fcn.004c79b0
mov al, byte [0x56f01c]
push esi
push edi
mov byte [esp + 0x14], al
mov ecx, 0x7ff
xor eax, eax
lea edi, [esp + 0x15]
mov esi, dword [esp + 0x2018]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [esp + 0xc]
push ecx
push esi
stosb byte es:[edi], al
call sub.VERSION.dll_GetFileVersionInfoSizeA
test eax, eax
je 0x4208ad
lea edx, [esp + 0x14]
push edx
push eax
push 0
push esi
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x4208ad
lea eax, [esp + 0x10]
lea ecx, [esp + 8]
push eax
push ecx
lea edx, [esp + 0x1c]
push 0x561820
push edx
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x4208ad
mov eax, dword [esp + 8]
xor ecx, ecx
mov edx, dword [eax + 0xc]
mov cx, word [eax + 0xc]
shr edx, 0x10
push ecx
push edx
mov edx, dword [eax + 8]
xor ecx, ecx
mov cx, word [eax + 8]
mov eax, dword [esp + 0x2024]
shr edx, 0x10
push ecx
push edx
push str._d._d._d._d
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0x18
mov eax, 1
pop edi
pop esi
add esp, 0x200c
ret
pop edi
xor eax, eax
pop esi
add esp, 0x200c
ret
Function at 0x420e40
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51eed0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
push edi
lea ecx, [ebp - 0x14]
call fcn.004a88c0
xor edi, edi
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], edi
call sub.MFC42.DLL_CString::CString_3
mov ebx, dword [ebp + 8]
push 0x104
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
mov esi, dword [ebx]
call sub.MFC42.DLL_CString::GetBuffer
push eax
push esi
lea ecx, [ebp - 0x14]
call fcn.004a8d70
or esi, 0xffffffff
lea ecx, [ebp - 0x10]
push esi
call sub.MFC42.DLL_CString::ReleaseBuffer
lea eax, [ebp - 0x10]
mov ecx, ebx
push eax
call sub.MFC42.DLL_CString::operator_2
mov eax, dword [ebx]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x420ec9
mov ecx, dword [ebp + 0xc]
push 0x56f01c
call sub.MFC42.DLL_CString::operator_3
jmp 0x420f4d
mov eax, dword [ebx]
cmp eax, edi
mov dword [ebp - 0x1c], eax
je 0x420f05
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
lea eax, [esi + esi]
add eax, 3
and al, 0xfc
call fcn.004c79b0
mov ecx, dword [ebp - 0x1c]
mov edi, esp
push esi
push edi
push 0xffffffffffffffff
push ecx
push 0
push 0
mov word [edi], 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
or esi, 0xffffffff
lea edx, [ebp - 0x18]
lea eax, [ebp + 8]
push edx
push eax
push edi
push 0
call fcn.0041eca0
add esp, 0x10
test eax, eax
je 0x420f6b
mov ecx, dword [ebp + 8]
push ecx
mov ecx, ebx
call fcn.004c7548
mov edx, dword [ebp - 0x18]
mov ecx, dword [ebp + 0xc]
push edx
call fcn.004c7548
mov eax, dword [ebp + 8]
mov edi, dword [sym.imp.KERNEL32.dll_LocalFree]
test eax, eax
je 0x420f43
push eax
call edi
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x420f4d
push eax
call edi
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], esi
call fcn.004a88f0
mov eax, 1
jmp 0x420f84
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], esi
call fcn.004a88f0
xor eax, eax
mov ecx, dword [ebp - 0xc]
lea esp, [ebp - 0x28]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x420fa0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x3c
push edi
mov ecx, 0xf
xor eax, eax
lea edi, [esp + 4]
mov edx, dword [esp + 0x4c]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x48]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x50]
mov dword [esp + 0x18], ecx
lea ecx, [esp + 4]
and eax, 0xffff
push ecx
mov dword [esp + 8], 0x3c
mov dword [esp + 0x20], edx
mov dword [esp + 0x24], eax
mov dword [esp + 0xc], 0x440
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
mov ecx, dword [esp + 0x3c]
pop edi
neg eax
sbb eax, eax
and eax, ecx
add esp, 0x3c
ret
Function at 0x421830
Capabilities:
Check os version

Disassembly:
sub esp, 0x9c
push ebx
mov ebx, dword [esp + 0xa4]
push esi
push edi
push str.unknow
mov ecx, ebx
call sub.MFC42.DLL_CString::operator_3
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, 0x27
xor eax, eax
lea edi, [esp + 0xc]
rep stosd dword es:[edi], eax
lea eax, [esp + 0xc]
mov dword [esp + 0xc], 0x9c
push eax
call esi
test eax, eax
jne 0x421892
lea ecx, [esp + 0xc]
mov dword [esp + 0xc], 0x94
push ecx
call esi
test eax, eax
jne 0x421892
pop edi
pop esi
xor ax, ax
pop ebx
add esp, 0x9c
ret
mov eax, dword [esp + 0x1c]
sub eax, 0
je 0x421a15
dec eax
je 0x4219a6
dec eax
je 0x4218b8
xor esi, esi
pop edi
mov ax, si
pop esi
pop ebx
add esp, 0x9c
ret
mov eax, dword [esp + 0x10]
cmp eax, 4
ja 0x4218df
push str.WinNT
mov ecx, ebx
mov esi, 7
call sub.MFC42.DLL_CString::operator_3
mov ax, si
pop edi
pop esi
pop ebx
add esp, 0x9c
ret
cmp eax, 5
jne 0x421950
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x42190a
push str.Win2000
mov ecx, ebx
mov esi, 8
call sub.MFC42.DLL_CString::operator_3
mov ax, si
pop edi
pop esi
pop ebx
add esp, 0x9c
ret
cmp eax, 1
jne 0x42192d
push str.WinXP
mov ecx, ebx
mov esi, 9
call sub.MFC42.DLL_CString::operator_3
mov ax, si
pop edi
pop esi
pop ebx
add esp, 0x9c
ret
cmp eax, 2
jne 0x4218c1
push str.Win2003
mov ecx, ebx
mov esi, 0xa
call sub.MFC42.DLL_CString::operator_3
mov ax, si
pop edi
pop esi
pop ebx
add esp, 0x9c
ret
cmp eax, 6
jne 0x4218c1
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x42197f
push str.Vista
mov ecx, ebx
mov esi, 0xb
call sub.MFC42.DLL_CString::operator_3
mov ax, si
pop edi
pop esi
pop ebx
add esp, 0x9c
ret
cmp eax, 1
jne 0x4218c1
push str.Win7
mov ecx, ebx
mov esi, 0xc
call sub.MFC42.DLL_CString::operator_3
mov ax, si
pop edi
pop esi
pop ebx
add esp, 0x9c
ret
mov eax, dword [esp + 0x10]
mov esi, 4
cmp eax, esi
jne 0x4219d9
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x4219d4
push str.Win9x
mov ecx, ebx
call sub.MFC42.DLL_CString::operator_3
mov ax, si
pop edi
pop esi
pop ebx
add esp, 0x9c
ret
cmp eax, 0xa
jne 0x4219f2
push str.Win9x
mov ecx, ebx
call sub.MFC42.DLL_CString::operator_3
mov ax, si
pop edi
pop esi
pop ebx
add esp, 0x9c
ret
cmp eax, 0x5a
jne 0x4219d9
push str.WinME
mov ecx, ebx
mov esi, 6
call sub.MFC42.DLL_CString::operator_3
mov ax, si
pop edi
pop esi
pop ebx
add esp, 0x9c
ret
push str.Win32
mov ecx, ebx
mov esi, 1
call sub.MFC42.DLL_CString::operator_3
mov ax, si
pop edi
pop esi
pop ebx
add esp, 0x9c
ret
Function at 0x421b30
Capabilities:
Get file size
Read file on windows

Disassembly:
sub esp, 0x7c
mov eax, dword [esp + 0x80]
push ebx
push ebp
xor ebp, ebp
push ebp
push ebp
push 3
push ebp
push 1
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x421b60
pop ebp
xor eax, eax
pop ebx
add esp, 0x7c
ret
push esi
push edi
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0x3200000
jae 0x421c26
lea ecx, [edi + 1]
push ecx
call sub.MFC42.DLL_operatornew
mov esi, eax
add esp, 4
cmp esi, ebp
je 0x421c26
lea edx, [esp + 0x10]
push ebp
push edx
push edi
push esi
push ebx
mov dword [esp + 0x24], ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x421c1d
lea eax, [esp + 0x24]
push 0
push eax
mov byte [esi + edi], 0
call fcn.0044e3a0
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x2c]
push ecx
push esi
push edx
call fcn.0044e400
lea eax, [esp + 0x38]
push eax
call fcn.0044ee40
mov ecx, dword [esp + 0x94]
mov edx, dword [esp + 0x98]
mov eax, dword [esp + 0x9c]
mov dword [esp + 0x2c], ecx
mov ecx, dword [esp + 0xa0]
mov dword [esp + 0x30], edx
mov edx, dword [esp + 0xb0]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0xac]
mov dword [esp + 0x38], ecx
push edx
lea ecx, [esp + 0x30]
push eax
push ecx
call fcn.00421aa0
add esp, 0x24
mov ebp, 1
push esi
call sub.MFC42.DLL_operatordelete
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x7c
ret

Function at 0x421ce0
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x51ef3b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x108
push ebp
mov ebp, dword [esp + 0x120]
test ebp, ebp
push esi
mov dword [esp + 8], 0
je 0x421ddc
push ebp
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
je 0x421ddc
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x11]
mov byte [esp + 0x10], 0
push 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x14]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov esi, dword [sym.imp.SHLWAPI.dll_PathAppendA]
lea ecx, [esp + 0x10]
push 0x562060
push ecx
call esi
lea edx, [esp + 0x10]
push ebp
push edx
call esi
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
pop edi
je 0x421ddc
lea ecx, [esp + 8]
call sub.MFC42.DLL_CString::CString_3
lea ecx, [esp + 8]
lea edx, [esp + 0xc]
push ecx
push edx
mov dword [esp + 0x120], 0
call fcn.00420800
add esp, 8
test eax, eax
je 0x421dc8
mov esi, dword [esp + 0x120]
lea eax, [esp + 8]
push eax
mov ecx, esi
call fcn.004c73e6
lea ecx, [esp + 8]
mov dword [esp + 0x118], 0xffffffff
call sub.MFC42.DLL_CString::CString
jmp 0x421def
lea ecx, [esp + 8]
mov dword [esp + 0x118], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov esi, dword [esp + 0x120]
push 0x56f01c
mov ecx, esi
call sub.MFC42.DLL_CString::CString_2
mov ecx, dword [esp + 0x110]
mov eax, esi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x114
ret
Function at 0x421e10
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x10c
push ebp
push esi
mov esi, dword [esp + 0x11c]
mov dword [esp + 8], 0
test esi, esi
je 0x421e96
mov ebp, dword [sym.imp.KERNEL32.dll_lstrlenA]
push esi
call ebp
test eax, eax
je 0x421e96
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x15]
mov byte [esp + 0x14], 0
lea edx, [esp + 0xc]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x10]
lea ecx, [esp + 0x14]
push eax
push ecx
push edx
push esi
push str.SOFTWARE360SafeUpdate
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x24], 1
mov dword [esp + 0x28], 0x104
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
test eax, eax
pop edi
jne 0x421e96
lea eax, [esp + 0x10]
push eax
call ebp
cmp eax, 0xa
jl 0x421e96
lea ecx, [esp + 0x10]
push ecx
jmp 0x421e9b
push 0x56f01c
mov esi, dword [esp + 0x11c]
mov ecx, esi
call sub.MFC42.DLL_CString::CString_2
mov eax, esi
pop esi
pop ebp
add esp, 0x10c
ret
Function at 0x422060
Capabilities:
Check if file exists
Create process on windows
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51ef60
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x40
push ebx
push esi
push edi
mov eax, dword [ebp + 8]
xor esi, esi
push eax
mov dword [ebp - 4], esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x42214f
push str.__select_
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::CString_2
lea ecx, [ebp + 8]
mov byte [ebp - 4], 1
push ecx
lea ecx, [ebp - 0x10]
call fcn.004c74b8
mov edx, dword [ebp - 0x10]
lea eax, [ebp - 0x4c]
push eax
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x4c], 0x3c
mov dword [ebp - 0x48], 0x440
mov dword [ebp - 0x44], esi
mov dword [ebp - 0x40], str.open
mov dword [ebp - 0x3c], str.explorer.exe
mov dword [ebp - 0x38], edx
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x30], 5
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
mov eax, dword [ebp - 0x14]
cmp eax, esi
je 0x42211e
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp + 8]
mov dword [ebp - 4], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, 1
jmp 0x42213b
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp + 8]
mov dword [ebp - 4], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor eax, eax
mov ecx, dword [ebp - 0xc]
lea esp, [ebp - 0x58]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [0x56fbd0]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryA]
test eax, eax
jne 0x42216d
mov edx, dword [0x56fbd0]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ebx, dword [0x56fbd4]
cmp ebx, esi
jne 0x42217b
xor edi, edi
jmp 0x4221aa
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
lea eax, [esi + esi]
add eax, 3
and al, 0xfc
call fcn.004c79b0
mov edi, esp
push esi
push edi
push 0xffffffffffffffff
push ebx
push 0
push 0
mov word [edi], 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
xor esi, esi
push edi
push esi
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
mov eax, dword [0x56fbd4]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryA]
test eax, eax
je 0x42212a
mov ecx, dword [0x56fbd4]
push 5
push esi
push ecx
push str.explorer.exe
push str.open
push esi
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
lea ecx, [ebp + 8]
mov dword [ebp - 4], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, 1
jmp 0x42213b
Function at 0x422200
Capabilities:
Delete service
Stop service

Disassembly:
sub esp, 0x1c
push ebx
push edi
xor ebx, ebx
push 1
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
test edi, edi
je 0x422258
mov eax, dword [esp + 0x28]
push ebp
push esi
push 0x10026
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov ebp, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, eax
test esi, esi
je 0x422253
lea ecx, [esp + 0x10]
push ecx
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
push esi
call ebp
mov ebx, 1
push edi
call ebp
pop esi
pop ebp
lea ecx, [esp + 0x28]
call sub.MFC42.DLL_CString::CString
mov eax, ebx
pop edi
pop ebx
add esp, 0x1c
ret

Function at 0x422270
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 4]
push esi
push edi
xor edi, edi
push eax
push edi
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x422299
push edi
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
ret
Function at 0x4222a0
Capabilities:
Enumerate processes

Disassembly:
push 0xffffffffffffffff
push 0x51ef7b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x140
mov al, byte [esp + 3]
push ebx
push ebp
xor ebx, ebx
push esi
push edi
mov byte [esp + 0x18], al
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov ecx, 0x49
xor eax, eax
lea edi, [esp + 0x2c]
mov dword [esp + 0x28], ebx
push ebx
push 2
rep stosd dword es:[edi], eax
mov dword [esp + 0x160], ebx
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ebp, eax
cmp ebp, 0xffffffff
je 0x4223a5
lea ecx, [esp + 0x28]
mov dword [esp + 0x28], 0x128
push ecx
push ebp
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x42239e
mov edi, dword [esp + 0x160]
mov ebx, dword [sym.imp.MSVCRT.dll__mbsicmp]
cmp dword [esp + 0x30], 0x14
jbe 0x422385
lea edx, [esp + 0x4c]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
jle 0x422385
xor esi, esi
mov eax, dword [edi + 4]
test eax, eax
je 0x422385
mov ecx, dword [edi + 8]
sub ecx, eax
sar ecx, 2
cmp esi, ecx
jae 0x422385
mov eax, dword [eax + esi*4]
lea edx, [esp + 0x4c]
push edx
push eax
call ebx
add esp, 8
test eax, eax
jne 0x422382
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x30]
lea ecx, [esp + 0x14]
mov dword [esp + 0x14], eax
push ecx
push 1
push edx
lea ecx, [esp + 0x24]
call fcn.004588f0
inc esi
jmp 0x422340
lea eax, [esp + 0x28]
mov dword [esp + 0x28], 0x128
push eax
push ebp
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x422328
xor ebx, ebx
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor edi, edi
xor esi, esi
mov eax, dword [esp + 0x1c]
cmp eax, ebx
je 0x4223d2
mov ecx, dword [esp + 0x20]
sub ecx, eax
sar ecx, 2
cmp esi, ecx
jae 0x4223d2
mov edx, dword [eax + esi*4]
push edx
call fcn.00422270
add esp, 4
mov edi, 1
inc esi
jmp 0x4223a9
push eax
call sub.MFC42.DLL_operatordelete
mov ecx, dword [esp + 0x154]
add esp, 4
mov eax, edi
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14c
ret
Function at 0x422400
Capabilities:
Get common file path

Disassembly:
sub esp, 0x11c
push ebx
push ebp
push esi
push edi
xor ebx, ebx
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x29]
mov byte [esp + 0x28], bl
push 0x56fd0c
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
mov dword [esp + 0x18], str._WinSysDir_
mov dword [esp + 0x1c], str._WinDir_
mov dword [esp + 0x20], str._AppSCFolder_
mov dword [esp + 0x24], str._Desktop_
mov dword [esp + 0x28], str._QuickLaunchBar_
call edi
mov esi, dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
jne 0x42246a
push ebx
push 0x25
push 0x56fd0c
push ebx
call esi
push 0x56fe10
call edi
test eax, eax
jne 0x422480
push ebx
push 0x24
push 0x56fe10
push ebx
call esi
push 0x56ff14
call edi
test eax, eax
jne 0x422496
push ebx
push 2
push 0x56ff14
push ebx
call esi
push 0x570018
call edi
test eax, eax
jne 0x4224ab
push ebx
push ebx
push 0x570018
push ebx
call esi
push 0x57011c
call edi
test eax, eax
jne 0x4224d1
push ebx
push 0x1a
push 0x57011c
push ebx
call esi
push 0x56250c
push 0x57011c
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
lea ebp, [esp + 0x14]
mov eax, dword [esp + 0x130]
mov esi, dword [ebp]
push esi
mov edi, dword [eax]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
push esi
push edi
call dword [sym.imp.SHLWAPI.dll_StrCmpNIA]
test eax, eax
je 0x42250a
inc ebx
add ebp, 4
cmp ebx, 5
jb 0x4224d5
mov edi, dword [esp + 0x130]
jmp 0x4225b1
mov edi, dword [esp + 0x130]
mov edx, dword [esp + ebx*4 + 0x14]
push edx
mov ecx, dword [edi]
mov esi, dword [ecx - 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
sub esi, eax
lea eax, [esp + 0x10]
dec esi
mov ecx, edi
push esi
push eax
call sub.MFC42.DLL_CString::Right
cmp ebx, 4
ja case.default.0x422536
jmp dword [ebx*4 + 0x4225c8]
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x28]
push ecx
push 0x56fd0c
push edx
call dword [sym.imp.SHLWAPI.dll_PathCombineA]
jmp case.default.0x422536
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x28]
push eax
push 0x56fe10
push ecx
call dword [sym.imp.SHLWAPI.dll_PathCombineA]
jmp case.default.0x422536
mov edx, dword [esp + 0x10]
push edx
push 0x56ff14
jmp 0x42258d
mov edx, dword [esp + 0x10]
push edx
push 0x570018
jmp 0x42258d
mov edx, dword [esp + 0x10]
push edx
push 0x57011c
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineA]
lea ecx, [esp + 0x28]
push 0x5623b4
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
lea edx, [esp + 0x28]
mov ecx, edi
push edx
call sub.MFC42.DLL_CString::operator_3
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x11c
ret
Function at 0x422eb0
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x51f0b0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
lea ecx, [esp + 4]
call sub.MFC42.DLL_CString::CString_3
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 4]
push eax
push 0x562408
push ecx
mov dword [esp + 0x20], 0
call sub.MFC42.DLL_CString::Format
lea edx, [esp + 0x28]
push edx
call fcn.00423be0
mov eax, dword [eax]
add esp, 0x10
push eax
mov eax, dword [esp + 8]
push 0
push eax
push str.softupdate
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
lea ecx, [esp + 0x1c]
mov esi, eax
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 8]
inc esi
call sub.MFC42.DLL_CString::CString_3
push esi
lea ecx, [esp + 0xc]
push 0x562408
push ecx
mov byte [esp + 0x20], 1
call sub.MFC42.DLL_CString::Format
lea edx, [esp + 0x28]
push edx
call fcn.00423be0
mov eax, dword [eax]
mov ecx, dword [esp + 0x14]
add esp, 0x10
push eax
mov eax, dword [esp + 0xc]
push eax
push ecx
push str.softupdate
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 8]
mov byte [esp + 0x14], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x4233c0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x535a88
push 0x4c7a62
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x4c
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov ebx, dword [ebp + 8]
xor edi, edi
cmp ebx, edi
jne 0x4233f8
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov ebx, eax
mov dword [ebp - 4], edi
cmp word [ebx], 0x5a4d
je 0x42340c
push 0xc1
jmp 0x423580
mov eax, dword [ebx + 0x3c]
add eax, ebx
mov dword [ebp - 0x2c], eax
cmp dword [eax], 0x4550
je 0x423426
push 0xbf
jmp 0x423580
cmp word [eax + 0x14], di
je 0x42357b
mov eax, dword [eax + 0x80]
mov dword [ebp - 0x5c], eax
cmp eax, edi
je 0x423445
lea esi, [eax + ebx]
mov dword [ebp - 0x24], esi
jmp 0x42344a
mov dword [ebp - 0x24], edi
mov esi, edi
cmp esi, edi
je 0x42357b
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x20], edi
mov eax, dword [esi + 0xc]
cmp eax, edi
je 0x42354e
add eax, ebx
push eax
lea ecx, [ebp - 0x34]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call dword [ebp + 0x10]
test eax, eax
je 0x423543
mov edi, dword [esi]
add edi, ebx
mov dword [ebp - 0x30], edi
mov esi, dword [esi + 0x10]
add esi, ebx
mov dword [ebp - 0x20], esi
mov eax, dword [edi]
test eax, eax
je 0x42353e
and eax, 0x80000000
cmp eax, 0x80000000
je 0x423530
mov eax, dword [edi]
add eax, ebx
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x38], 0
lea ecx, [ebp - 0x38]
push ecx
mov edx, dword [esi]
push edx
add eax, 2
push eax
push 0
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax + 0xc]
add ecx, ebx
push ecx
mov edx, dword [ebp - 0x34]
push edx
call dword [ebp + 0x14]
test eax, eax
je 0x42353e
mov eax, dword [ebp - 0x38]
test eax, eax
je 0x423530
push 0x1c
lea eax, [ebp - 0x54]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
cmp dword [ebp - 0x40], 4
je 0x42352b
lea ecx, [ebp - 0x40]
push ecx
push 4
mov edx, dword [ebp - 0x48]
push edx
mov eax, dword [ebp - 0x54]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov ecx, dword [ebp - 0x38]
mov dword [esi], ecx
lea edx, [ebp - 0x58]
push edx
mov eax, dword [ebp - 0x40]
push eax
mov ecx, dword [ebp - 0x48]
push ecx
mov edx, dword [ebp - 0x54]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
add edi, 4
mov dword [ebp - 0x30], edi
add esi, 4
jmp 0x423488
mov eax, dword [ebp - 0x38]
mov dword [esi], eax
add edi, 4
mov dword [ebp - 0x30], edi
add esi, 4
jmp 0x423488
mov esi, dword [ebp - 0x24]
xor edi, edi
add esi, 0x14
mov dword [ebp - 0x24], esi
jmp 0x42345b
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [ebp - 4], 0xffffffff
mov eax, 1
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0xc0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [ebp - 4], 0xffffffff
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret