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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
push ebx
xor ebx, ebx
cmp dword [0x413818], ebx
push esi
push edi
je 0x407d01
lea eax, [ebp - 4]
push eax
push 0x1f
push ebx
push dword [str.hAXA]
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x407d01
lea eax, [ebp - 0xc]
mov esi, 0x100
push eax
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 8]
push eax
push ebx
push dword [ebp + 8]
mov dword [ebp - 0xc], esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x407cf8
or eax, 0xffffffff
cmp dword [ebp - 8], 1
push 4
pop edi
jne 0x407b82
lea eax, [ebp - 0x10c]
push eax
call fcn.00409fc0
pop ecx
jmp 0x407b98
cmp dword [ebp - 8], edi
je 0x407b92
cmp dword [ebp - 8], 3
jne 0x407b98
cmp dword [ebp - 0xc], edi
jne 0x407b98
mov eax, dword [ebp - 0x10c]
cmp eax, ebx
jg 0x407ba1
or eax, 0xffffffff
jmp 0x407bb5
cmp dword [0x41387c], ebx
je 0x407bac
dec eax
jmp 0x407baf
sub eax, dword [ebp + 0x10]
cmp eax, ebx
jge 0x407bb7
xor eax, eax
cmp eax, ebx
jne 0x407cd2
lea eax, [ebp - 0x20c]
push esi
push eax
push 0x26
push dword [0x413b90]
call fcn.00408994
add esp, 0x10
lea eax, [ebp - 0x20c]
push dword [ebp + 8]
push eax
push dword [0x413864]
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x20c]
push esi
push eax
push 0x27
push dword [0x413b90]
call fcn.00408994
add esp, 0x10
lea eax, [ebp - 0x20c]
push eax
push dword [0x413864]
call dword [sym.imp.KERNEL32.dll_lstrcatA]
cmp dword [0x413834], ebx
mov esi, 0x3ed
jne 0x407cb9
cmp dword [0x413c8c], ebx
jne 0x407cb9
cmp dword [0x41384c], ebx
je 0x407c42
mov edi, esi
jmp 0x407cbc
cmp dword [0x413b8c], ebx
je 0x407c58
push 0x19
push dword [0x4137d8]
call dword [sym.imp.USER32.dll_KillTimer]
push ebx
push sym.UNWISE32.EXE__SharedDlg_16
push dword [0x4137d8]
push 0x68
push dword [0x413b90]
call dword [sym.imp.USER32.dll_DialogBoxParamA]
cmp dword [0x413b8c], ebx
mov edi, eax
je 0x407c90
push ebx
push 0x96
push 0x19
push dword [0x4137d8]
call dword [sym.imp.USER32.dll_SetTimer]
push 1
pop eax
cmp edi, eax
jne 0x407c9c
mov dword [0x413c8c], eax
cmp edi, 0x3ef
jne 0x407cab
mov edi, esi
mov dword [0x41384c], eax
push dword [0x4137d8]
call dword [sym.imp.USER32.dll_SetFocus]
jmp 0x407cbc
push 7
pop edi
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
xor eax, eax
cmp edi, esi
sete al
inc eax
jmp 0x407d03
cmp eax, 1
jl 0x407cf8
mov dword [ebp - 0x10c], eax
lea eax, [ebp - 0x10c]
push edi
push eax
push edi
push ebx
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push 1
pop eax
jmp 0x407d03
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x407d08
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x348
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push 0x2a
push ebx
call fcn.00409bc0
pop ecx
test eax, eax
pop ecx
jne 0x407d5d
push 0x3f
push ebx
call fcn.00409bc0
pop ecx
test eax, eax
pop ecx
jne 0x407d5d
push ebx
call fcn.00407e79
cmp dword [ebp + 0x10], 0
pop ecx
je 0x407e71
mov eax, dword [ebp + 0xc]
cmp byte [eax], 0
je 0x407e71
push ebx
push eax
call fcn.00409200
pop ecx
jmp 0x407e70
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
push ebx
call edi
cmp eax, 3
jl 0x407de1
lea eax, [eax + ebx - 3]
push 0x4105b8
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x407de1
push ebx
call edi
cmp eax, 4
jl 0x407dda
lea eax, [ebp - 0x100]
push 0x100
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpiA]
lea eax, [ebp - 0x100]
push eax
push ebx
call esi
test eax, eax
je 0x407dda
lea eax, [ebp - 0x100]
push 0x100
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea eax, [ebp - 0x100]
push eax
push ebx
call esi
test eax, eax
je 0x407dda
push dword [0x413854]
push ebx
call esi
test eax, eax
jne 0x407de1
xor eax, eax
jmp 0x407e74
lea eax, [ebp - 0x100]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpyA]
push eax
call ebx
lea eax, [ebp - 0x100]
push eax
call edi
lea esi, [ebp + eax - 0x101]
lea eax, [ebp - 0x100]
cmp esi, eax
jbe 0x407e13
cmp byte [esi], 0x5c
je 0x407e18
dec esi
jmp 0x407e01
cmp byte [esi], 0x5c
jne 0x407e19
inc esi
lea eax, [ebp - 0x348]
push eax
lea eax, [ebp - 0x100]
push 7
push eax
call fcn.00408504
add esp, 0xc
test eax, eax
jne 0x407e64
test byte [ebp - 0x248], 0x10
jne 0x407e55
lea eax, [ebp - 0x348]
push eax
push esi
call ebx
lea eax, [ebp - 0x100]
push eax
call fcn.00407e79
pop ecx
lea eax, [ebp - 0x348]
push eax
call fcn.00408546
pop ecx
jmp 0x407e31
lea eax, [ebp - 0x348]
push eax
call fcn.00408583
pop ecx
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x407f08
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x454
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
push edi
push dword [ebp + 8]
push dword [0x413864]
call esi
mov edi, dword [ebp + 0xc]
push edi
push dword [0x413864]
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push dword [0x413864]
push 0x3ef
push dword [0x4137d8]
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call fcn.00407915
pop ecx
pop ecx
push dword [0x413864]
call fcn.00407113
pop ecx
lea eax, [ebp - 0x154]
push edi
push eax
call esi
lea eax, [ebp - 0x154]
push eax
call fcn.00409415
pop ecx
xor ebx, ebx
lea ecx, [ebp - 0x154]
cmp eax, ecx
jbe 0x407f86
mov byte [eax - 1], bl
lea eax, [ebp - 0x154]
push ebx
push eax
call fcn.0040859a
pop ecx
lea eax, [ebp - 0x154]
pop ecx
push eax
call fcn.00409ab0
pop ecx
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea eax, [eax + edi - 3]
cmp eax, edi
jae 0x407fb3
mov eax, edi
push 0x410190
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
push edi
jne 0x40803d
lea eax, [ebp - 0x254]
push eax
call esi
lea eax, [ebp - 0x254]
push ebx
push eax
call fcn.0040859a
pop ecx
lea eax, [ebp - 0x54]
pop ecx
push 0x44
pop esi
push esi
push ebx
push eax
call fcn.00409b50
add esp, 0xc
lea eax, [ebp - 0x254]
mov dword [ebp - 0x54], esi
push eax
lea eax, [ebp - 0x454]
push str._s__UNREGSERVER
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x54]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x454]
push ebx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x4080b8
push 0xffffffffffffffff
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
jmp 0x4080b8
call fcn.00408744
cmp eax, ebx
pop ecx
je 0x4080b8
push str.OLE32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp eax, ebx
mov dword [ebp + 8], eax
je 0x4080b8
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.OleInitialize
push eax
call esi
cmp eax, ebx
je 0x40809f
push ebx
call eax
test eax, eax
jne 0x40809f
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x40809f
cmp dword [ebp + 0x10], ebx
mov eax, str.DllRegisterServer
jne 0x40808e
mov eax, str.DllUnregisterServer
push eax
push edi
call esi
cmp eax, ebx
je 0x408098
call eax
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push str.OleUninitialize
push dword [ebp + 8]
call esi
cmp eax, ebx
je 0x4080af
call eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4080bd
Capabilities:
Delete registry key
Query or enumerate registry key
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30c
push ebx
push esi
xor esi, esi
push edi
cmp dword [0x4137f0], esi
je 0x4082ba
lea eax, [ebp - 4]
mov edi, str.SoftwareBorlandDatabase_Engine
push eax
push 0x1f
push esi
push edi
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4082ba
lea eax, [ebp - 8]
mov ebx, 0x100
push eax
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0xc]
push eax
push esi
mov esi, str.UseCount
mov dword [ebp - 8], ebx
push esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4082b1
or eax, 0xffffffff
cmp dword [ebp - 0xc], 1
jne 0x40813e
lea eax, [ebp - 0x10c]
push eax
call fcn.00409fc0
pop ecx
jmp 0x408156
cmp dword [ebp - 0xc], 4
je 0x408150
cmp dword [ebp - 0xc], 3
jne 0x408156
cmp dword [ebp - 8], 4
jne 0x408156
mov eax, dword [ebp - 0x10c]
cmp eax, 1
jne 0x408274
push 0
push str.IB_Server
call dword [sym.imp.USER32.dll_FindWindowA]
test eax, eax
je 0x4081c3
lea eax, [ebp - 0x30c]
push ebx
push eax
push 0x1c
push dword [0x413b90]
call fcn.00408994
add esp, 0x10
lea eax, [ebp - 0x20c]
push ebx
push eax
push 0x19
push dword [0x413b90]
call fcn.00408994
add esp, 0x10
lea eax, [ebp - 0x20c]
push 2
push eax
lea eax, [ebp - 0x30c]
push eax
push dword [0x4137d8]
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 3
je 0x4081cd
jmp 0x4081c6
push 5
pop eax
cmp eax, 5
je 0x4081d5
jmp 0x40815f
push 1
pop eax
jmp 0x4082bc
push dword [ebp - 4]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
push 2
push edi
call fcn.004082c1
pop ecx
pop ecx
push 2
push str.SoftwareBorlandBLW32
call fcn.004082c1
pop ecx
lea eax, [ebp - 4]
pop ecx
mov edi, str.SoftwareBorland
push eax
push 0x1f
push 0
push edi
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4082ba
push eax
push eax
push eax
lea ecx, [ebp - 8]
push eax
push ecx
lea ecx, [ebp - 0x10c]
push ecx
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
xor ecx, ecx
cmp eax, ecx
je 0x40826d
push ecx
push ecx
push ecx
lea eax, [ebp - 8]
push ecx
push eax
lea eax, [ebp - 0x10c]
mov dword [ebp - 8], ebx
push eax
push ecx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
push dword [ebp - 4]
mov ebx, eax
call esi
test ebx, ebx
je 0x4082ba
push edi
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
jmp 0x4082ba
push dword [ebp - 4]
call esi
jmp 0x4082ba
jle 0x4082ba
dec eax
push eax
lea eax, [ebp - 0x10c]
push 0x410638
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
lea eax, [ebp - 0x10c]
push eax
push 1
push 0
push esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4082c1
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x190
push ebx
push esi
xor ebx, ebx
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 4], ebx
push dword [ebp + 8]
lea eax, [ebp - 0x190]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x190]
push 0x4100cc
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp dword [0x4137f0], ebx
lea esi, [ebp + eax - 0x18f]
je 0x408357
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp + 0xc]
push 0x1f
push ebx
push dword [ebp + 8]
push dword [eax*4 + 0x410020]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40839b
push ebx
push ebx
push ebx
lea eax, [ebp - 0x10]
push ebx
push eax
push esi
push ebx
push dword [ebp - 0xc]
mov dword [ebp - 0x10], 0x100
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
push dword [ebp - 0xc]
mov esi, eax
call edi
cmp esi, ebx
jne 0x40839b
jmp 0x408388
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x40839b
push 0x100
push esi
push ebx
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
push dword [ebp - 8]
mov esi, eax
call edi
cmp esi, ebx
jne 0x40839b
push dword [ebp + 0xc]
lea eax, [ebp - 0x190]
push eax
call fcn.004082c1
pop ecx
pop ecx
jmp 0x4083a2
mov dword [ebp - 4], 0x800
inc dword [ebp - 4]
cmp dword [ebp - 4], 0x800
jl 0x4082d8
cmp dword [0x4137f0], ebx
push dword [ebp + 8]
je 0x4083c9
mov eax, dword [ebp + 0xc]
push dword [eax*4 + 0x410020]
jmp 0x4083ce
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x408420
Capabilities:
Delete directory

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
push 0
push edi
call fcn.004084e1
pop ecx
pop ecx
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
mov esi, eax
neg esi
sbb esi, esi
inc esi
cmp dword [0x413818], 0
je 0x40845c
test esi, esi
jne 0x40845c
mov eax, dword [0x413c88]
test eax, eax
je 0x40845c
push esi
push edi
push 1
push 0x10
call eax
mov eax, esi
pop edi
pop esi
ret

Function at 0x4084e1
Capabilities:
Set file attributes

Disassembly:
cmp dword [esp + 8], 0
jne 0x4084f0
mov dword [esp + 8], 0x80
push dword [esp + 8]
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
neg eax
sbb eax, eax
inc eax
ret

Function at 0x40872e
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
dec ecx
mov eax, ecx
ret
Function at 0x408744
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
push ebx
push edi
push dword [ebp + 8]
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
xor edi, edi
lea eax, [ebp - 0x108]
push edi
push eax
call fcn.0040859a
cmp dword [0x4137f0], edi
pop ecx
pop ecx
mov dword [ebp - 4], edi
je 0x4087e0
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll__lopen]
mov ebx, eax
cmp ebx, edi
jl 0x4087e0
push esi
mov esi, dword [sym.imp.KERNEL32.dll__lread]
lea eax, [ebp + 0xa]
push 2
push eax
push ebx
call esi
cmp word [ebp + 0xa], 0x5a4d
jne 0x4087d8
push edi
mov edi, dword [sym.imp.KERNEL32.dll__llseek]
push 0x3c
push ebx
call edi
lea eax, [ebp - 8]
push 4
push eax
push ebx
call esi
push 0
push dword [ebp - 8]
push ebx
call edi
lea eax, [ebp + 0xa]
push 2
push eax
push ebx
call esi
cmp word [ebp + 0xa], 0x4550
jne 0x4087d8
mov dword [ebp - 4], 1
push ebx
call dword [sym.imp.KERNEL32.dll__lclose]
pop esi
mov eax, dword [ebp - 4]
pop edi
pop ebx
leave
ret

Function at 0x408994
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
push ebx
push esi
push edi
lea eax, [ebp - 0x20]
push dword [ebp + 0xc]
push str.Msg_d
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
mov ebx, dword [ebp + 0x10]
add esp, 0xc
lea eax, [ebp - 0x20]
push dword [0x413bb4]
push dword [ebp + 0x14]
push ebx
push 0x4106b4
push eax
push str.Language
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
cmp byte [ebx], 0x7f
mov dword [ebp + 0x10], eax
jne 0x4089f5
cmp eax, 1
jne 0x4089f5
push dword [ebp + 0x14]
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_LoadStringA]
jmp 0x408a3d
push 0x7c
push ebx
call fcn.00409bc0
mov edi, eax
pop ecx
test edi, edi
pop ecx
je 0x408a3d
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [edi + 1]
push eax
lea eax, [ebp - 0x220]
push eax
call esi
push 0x4106a4
push edi
call esi
lea eax, [ebp - 0x220]
add edi, 2
push eax
push edi
call esi
push 0x7c
push ebx
call fcn.00409bc0
mov edi, eax
pop ecx
test edi, edi
pop ecx
jne 0x408a0b
mov eax, dword [ebp + 0x10]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x408a45
Capabilities:
Delete service
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push 1
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov ebx, eax
test ebx, ebx
je 0x408a97
push edi
push esi
push 0x10020
push dword [ebp + 8]
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edi, eax
test edi, edi
je 0x408a92
lea eax, [ebp - 0x1c]
push eax
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_ControlService]
push edi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
push edi
call esi
push ebx
call esi
pop esi
pop edi
pop ebx
leave
ret
Function at 0x409200
Capabilities:
Copy file
Get common file path
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x500
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CopyFileA]
push edi
push 0
push ebx
push dword [ebp + 8]
call esi
test eax, eax
je 0x409226
push dword [ebp + 8]
jmp 0x409248
lea eax, [ebp - 0x300]
push ebx
push eax
call fcn.004093cd
pop ecx
lea eax, [ebp - 0x300]
pop ecx
push 0
push eax
push dword [ebp + 8]
call esi
test eax, eax
jne 0x409253
push ebx
call fcn.00407e79
pop ecx
jmp 0x4093c8
push 1
pop edi
push dword [ebp + 8]
mov dword [0x413820], edi
call fcn.00407e79
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
pop ecx
lea eax, [ebp - 0x300]
push eax
lea eax, [ebp - 0x200]
push eax
call esi
lea eax, [ebp - 0x100]
push ebx
push eax
call esi
xor esi, esi
lea eax, [ebp - 0x200]
push esi
push eax
call fcn.0040859a
pop ecx
lea eax, [ebp - 0x100]
pop ecx
push esi
push eax
call fcn.0040859a
mov eax, dword [0x4137f0]
pop ecx
cmp eax, 2
pop ecx
jne 0x4092d2
lea eax, [ebp - 0x200]
push str.WININIT.INI
push eax
lea eax, [ebp - 0x100]
push eax
push str.rename
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
jmp 0x4093c8
cmp eax, edi
jne 0x4092f3
push 4
push esi
mov esi, dword [sym.imp.KERNEL32.dll_MoveFileExA]
push ebx
call esi
push 4
lea eax, [ebp - 0x200]
push ebx
push eax
call esi
jmp 0x4093c8
lea eax, [ebp - 0x100]
push eax
call fcn.00409415
pop ecx
push eax
lea eax, [ebp - 0x200]
push eax
lea eax, [ebp - 0x100]
push eax
lea eax, [ebp - 0x500]
push str.del__s_r_nrename__s__s_r_n
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
lea eax, [ebp - 0x100]
push 0x100
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea eax, [ebp - 0x100]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp byte [ebp + eax - 0x101], 0x5c
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
je 0x409361
lea eax, [ebp - 0x100]
push 0x4100cc
push eax
call ebx
lea eax, [ebp - 0x100]
push str._MSSETUP.BAT
push eax
call ebx
lea eax, [ebp - 0x100]
push edi
push eax
call dword [sym.imp.KERNEL32.dll__lopen]
mov edi, eax
cmp edi, 0xffffffff
jne 0x409396
lea eax, [ebp - 0x100]
push esi
push eax
call dword [sym.imp.KERNEL32.dll__lcreat]
mov edi, eax
jmp 0x4093a0
push 2
push esi
push edi
call dword [sym.imp.KERNEL32.dll__llseek]
cmp edi, 0xffffffff
je 0x4093c8
lea eax, [ebp - 0x500]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
lea eax, [ebp - 0x500]
push eax
push edi
call dword [sym.imp.KERNEL32.dll__lwrite]
push edi
call dword [sym.imp.KERNEL32.dll__lclose]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x409437
Capabilities:
Delete file
Get common file path
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x300
cmp dword [0x4137f0], 2
push esi
push edi
jne 0x409536
lea eax, [ebp - 0x100]
push 0x100
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
lea eax, [ebp - 0x100]
push eax
call esi
cmp byte [ebp + eax - 0x101], 0x5c
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
je 0x40948e
lea eax, [ebp - 0x100]
push 0x4100cc
push eax
call edi
lea eax, [ebp - 0x100]
push str.WININIT.INI
push eax
call edi
lea eax, [ebp - 0x100]
push 1
push eax
call dword [sym.imp.KERNEL32.dll__lopen]
mov edi, eax
cmp edi, 0xffffffff
je 0x4094e7
push dword [ebp + 8]
lea eax, [ebp - 0x300]
push str.NUL_s_r_n
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push 2
push 0
push edi
call dword [sym.imp.KERNEL32.dll__llseek]
lea eax, [ebp - 0x300]
push eax
call esi
push eax
lea eax, [ebp - 0x300]
jmp 0x409525
lea eax, [ebp - 0x100]
push 0
push eax
call dword [sym.imp.KERNEL32.dll__lcreat]
mov edi, eax
cmp edi, 0xffffffff
je 0x409543
push dword [ebp + 8]
lea eax, [ebp - 0x300]
push str._rename__r_nNUL_s_r_n
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x300]
push eax
call esi
push eax
lea eax, [ebp - 0x300]
push eax
push edi
call dword [sym.imp.KERNEL32.dll__lwrite]
push edi
call dword [sym.imp.KERNEL32.dll__lclose]
jmp 0x409543
push 4
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
pop edi
pop esi
leave
ret

Function at 0x409ab0
Capabilities:
Get common file path
Set current directory
Set environment variable

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x10c
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
test eax, eax
je 0x409b30
lea ecx, [esp + 4]
push ecx
push 0x105
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x409b30
mov eax, dword [esp + 4]
cmp al, 0x5c
je 0x409ae5
cmp al, 0x2f
jne 0x409af2
cmp al, ah
jne 0x409af2
xor eax, eax
add esp, 0x10c
ret
and eax, 0xff
mov byte [esp], 0x3d
push eax
call fcn.0040ab80
add esp, 4
mov byte [esp + 1], al
lea edx, [esp + 4]
lea eax, [esp]
push edx
push eax
mov byte [esp + 0xa], 0x3a
mov byte [esp + 0xb], 0
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
test eax, eax
je 0x409b30
xor eax, eax
add esp, 0x10c
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0040ab10
add esp, 4
or eax, 0xffffffff
add esp, 0x10c
ret
Function at 0x40a0e0
Capabilities:
Clear file content

Disassembly:
mov eax, 0x1004
call fcn.00409fd0
mov eax, dword [0x413dc0]
push ebx
mov ebx, dword [esp + 0x100c]
push ebp
xor ebp, ebp
push esi
cmp ebx, eax
push edi
jae 0x40a242
mov eax, ebx
mov ecx, ebx
sar eax, 5
and ecx, 0x1f
mov edx, dword [eax*4 + 0x413cc0]
test byte [edx + ecx*8 + 4], 1
je 0x40a242
push 1
push ebp
push ebx
call fcn.0040b840
mov edi, eax
add esp, 0xc
cmp edi, 0xffffffff
mov dword [esp + 0x10], edi
je 0x40a24c
push 2
push ebp
push ebx
call fcn.0040b840
add esp, 0xc
cmp eax, 0xffffffff
je 0x40a24c
mov ecx, dword [esp + 0x101c]
mov esi, ecx
sub esi, eax
test esi, esi
jle 0x40a1e8
mov ecx, 0x400
xor eax, eax
lea edi, [esp + 0x14]
push 0x8000
rep stosd dword es:[edi], eax
push ebx
call fcn.0040b7c0
add esp, 8
mov edi, eax
cmp esi, 0x1000
mov eax, 0x1000
jge 0x40a18f
mov eax, esi
push eax
lea eax, [esp + 0x18]
push eax
push ebx
call fcn.0040b5a0
add esp, 0xc
cmp eax, 0xffffffff
je 0x40a1ab
sub esi, eax
test esi, esi
jle 0x40a1c1
jmp 0x40a180
cmp dword [0x413428], 5
jne 0x40a1be
mov dword [0x413424], 0xd
or ebp, 0xffffffff
push edi
push ebx
call fcn.0040b7c0
mov edi, dword [esp + 0x18]
add esp, 8
push 0
push edi
push ebx
call fcn.0040b840
add esp, 0xc
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1004
ret
jge 0x40a229
push 0
push ecx
push ebx
call fcn.0040b840
add esp, 0xc
push ebx
call fcn.0040b350
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov ebp, eax
neg ebp
sbb ebp, ebp
neg ebp
dec ebp
cmp ebp, 0xffffffff
jne 0x40a229
mov dword [0x413424], 0xd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x413428], eax
push 0
push edi
push ebx
call fcn.0040b840
add esp, 0xc
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1004
ret
mov dword [0x413424], 9
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x1004
ret