joyce8/EMBER2024-capa huggingface dataset:
Function at 0x416dbb
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x42535c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.004088e5
mov dword [ebp - 0x14], eax
cmp dword [0x8252f8], esi
jne 0x416eae
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x416e3b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x416f8e
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x416f8e
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x416f8e
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x8252f8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x8252fc], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x825300], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x825308], eax
test eax, eax
je 0x416eab
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x825304], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x416ed3
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x416ec6
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x416ee8
push 4
pop eax
jmp 0x416f90
cmp dword [ebp - 0x14], esi
je 0x416ee8
push dword [0x8252f8]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x416ecd
mov eax, dword [0x825304]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x416f46
cmp dword [0x825308], edi
je 0x416f46
push eax
call ebx
push dword [0x825308]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x416f46
test eax, eax
je 0x416f46
call ecx
test eax, eax
je 0x416f3b
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x416f3b
test byte [ebp - 8], 1
jne 0x416f46
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x416f76
mov eax, dword [0x8252fc]
cmp eax, edi
je 0x416f73
push eax
call ebx
test eax, eax
je 0x416f73
call eax
mov esi, eax
test esi, esi
je 0x416f73
mov eax, dword [0x825300]
cmp eax, edi
je 0x416f73
push eax
call ebx
test eax, eax
je 0x416f73
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x8252f8]
call ebx
test eax, eax
je 0x416f8e
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x416f90
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004065fc
mov esp, ebp
pop ebp
ret
Function at 0x40117c
Capabilities:
Copy file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x410
and byte [ebp - 0x208], 0
push esi
mov edx, 0x81
push edi
mov ecx, edx
xor eax, eax
lea edi, [ebp - 0x207]
and byte [ebp - 0x410], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, edx
xor eax, eax
lea edi, [ebp - 0x40f]
cmp dword [ebp + 0x18], 0xa
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
je 0x401272
mov esi, dword [ebp + 8]
push dword [ebp + 0x14]
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push dword [ebp + 0xc]
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
push dword [esi + 0xc]
call edi
push dword [esi + 0xc]
call fcn.004066b2
test eax, eax
pop ecx
jne 0x401296
lea eax, [ebp - 0x208]
push 0x208
push eax
push 0xfffffffffffffffa
call fcn.004091c3
push eax
call dword [sym.imp.USER32.dll_GetWindowLongA]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x208]
push 0x5c
push eax
call fcn.00406a32
and byte [eax + 1], 0
pop ecx
pop ecx
lea eax, [ebp - 0x410]
push eax
push dword [esi + 0xc]
call fcn.00409fae
pop ecx
lea eax, [ebp - 0x410]
pop ecx
push eax
lea eax, [ebp - 0x208]
push eax
call edi
mov eax, dword [esi + 0x20]
inc eax
push eax
lea eax, [ebp - 0x208]
push eax
push dword [ebp + 0x14]
push dword [esi + 0x24]
call fcn.00401792
add esp, 0x10
test eax, eax
jne 0x401276
push 1
mov word [esi + 0x38], 3
call fcn.00410f90
pop ecx
xor eax, eax
jmp 0x401299
push 0
lea eax, [ebp - 0x208]
push dword [esi + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
push 0x80
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push 1
pop eax
pop edi
pop esi
leave
ret
Function at 0x4036e6
Capabilities:
Create directory
Set file attributes

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
push edi
call fcn.0040367f
test eax, eax
pop ecx
je 0x403725
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov esi, eax
test esi, esi
jne 0x403717
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x403725
test esi, esi
je 0x403720
push 2
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push 1
pop eax
jmp 0x403727
xor eax, eax
pop edi
pop esi
ret

Function at 0x40372a
Capabilities:
Get common file path

Disassembly:
push ebx
push esi
push edi
mov edi, dword [esp + 0x14]
push edi
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
je 0x403789
movsx eax, byte [0x424aa0]
mov esi, dword [sym.imp.USER32.dll_CharUpperA]
push eax
call esi
mov ebx, eax
movsx eax, byte [edi]
push eax
call esi
cmp ebx, eax
je 0x40378d
call fcn.00409c08
test eax, eax
je 0x40378d
push edi
call fcn.004036e6
test eax, eax
pop ecx
jne 0x40378d
push dword [0x4238a0]
push 0x41c1cc
push 1
push 0x40
push 1
call fcn.0040523a
add esp, 0x14
xor eax, eax
jmp 0x403790
push 1
pop eax
pop edi
pop esi
pop ebx
ret

Function at 0x403794
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x74
push esi
xor esi, esi
cmp dword [0x4210a8], esi
jne 0x40386e
cmp dword [ebp + 8], esi
mov eax, dword [0x4243f8]
jne 0x4037b8
mov eax, dword [0x42389c]
push eax
push 0x41c25c
push 6
push 0x34
push 2
call fcn.0040523a
add esp, 0x14
cmp eax, 6
jne 0x40386e
call fcn.00409bf1
test eax, eax
je 0x403844
lea eax, [ebp + 8]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x403803
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.OpenProcessToken_Error__d_in_fDoReboot__.
jmp 0x40385d
lea eax, [ebp - 0xc]
push eax
push str.SeShutdownPrivilege
push esi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
push esi
push esi
lea eax, [ebp - 0x10]
push esi
push eax
push esi
push dword [ebp + 8]
mov dword [ebp - 0x10], 1
mov dword [ebp - 4], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
jne 0x403844
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.AdjustTokenPrivileges_Error__d_in_fDoReboot
jmp 0x40385d
push esi
push 2
call dword [sym.imp.USER32.dll_ExitWindowsEx]
test eax, eax
jne 0x40386e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Error_ExitWindows_Error__d
lea eax, [ebp - 0x74]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
xor eax, eax
jmp 0x403871
push 1
pop eax
pop esi
leave
ret
Function at 0x403a37
Capabilities:
Persist via run registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push ebx
push esi
push edi
push 0xc
pop ecx
mov esi, str.SOFTWAREMicrosoftWindowsCurrentVersionRunOnce
lea edi, [ebp - 0x3c]
xor ebx, ebx
rep movsd dword es:[edi], dword [esi]
cmp dword [0x4210c0], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
movsw word es:[edi], word [esi]
jne 0x403a67
cmp dword [0x4210c4], ebx
je 0x403aad
lea eax, [ebp - 4]
push eax
push 1
lea eax, [ebp - 0x3c]
push ebx
push eax
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x403aad
push ebx
push ebx
push ebx
lea eax, [ebp - 8]
push ebx
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
jne 0x403aa4
cmp dword [ebp - 8], ebx
jbe 0x403aa4
push 1
pop ebx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, ebx
pop esi
pop ebx
leave
ret

Function at 0x405b96
Capabilities:
Create directory

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
push edi
push 1
pop edi
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x405bbc
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x405c14
xor edi, edi
push esi
call fcn.00403bf9
pop ecx
push eax
push str.CreateDir
call fcn.00404f1b
pop ecx
pop ecx
push 0xfffffffffffffffe
pop ebx
cmp eax, ebx
je 0x405c05
test edi, edi
je 0x405be6
call fcn.00404e94
cmp eax, ebx
jne 0x405c14
jmp 0x405c05
push esi
push 0x41c058
push dword [0x423658]
call fcn.00403c25
add esp, 0xc
push eax
call fcn.00404ec9
cmp eax, ebx
pop ecx
jne 0x405c09
mov eax, ebx
jmp 0x405c16
call fcn.00404e6f
cmp eax, ebx
mov eax, ebx
je 0x405c16
mov eax, edi
pop edi
pop esi
pop ebx
ret

Function at 0x405cfe
Capabilities:
Get file size

Disassembly:
push ebx
push esi
push edi
xor edi, edi
push edi
push edi
push 3
push edi
push edi
push SysReAllocStringLen
push dword [esp + 0x28]
or ebx, 0xffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x405d33
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp ebx, 0xffffffff
jne 0x405d55
push dword [esp + 0x10]
push dword [0x424418]
push str._s_n_s
push 1
push 0x10
push 1
call fcn.0040523a
add esp, 0x18
pop edi
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x407a9f
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
and dword [ebp - 8], 0
push ebx
push esi
lea eax, [ebp - 0xc]
push edi
push eax
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov esi, dword [ebp + 0xc]
mov dword [ebp - 4], eax
test eax, eax
jbe 0x407b27
push eax
push 2
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ebx, eax
test ebx, ebx
je 0x407b27
push ebx
call dword [sym.imp.KERNEL32.dll_LocalLock]
mov edi, eax
push edi
push dword [ebp - 4]
push dword [ebp - 0xc]
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x407b19
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x41c030
push edi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x407b19
mov eax, dword [ebp - 0x10]
mov dword [ebp - 8], 1
mov ecx, dword [eax + 8]
mov dword [esi], ecx
mov eax, dword [eax + 0xc]
mov dword [esi + 4], eax
push ebx
call dword [sym.imp.KERNEL32.dll_LocalUnlock]
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [ebp - 8]
test eax, eax
jne 0x407b33
and dword [esi], eax
and dword [esi + 4], eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x407bf1
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xaec
push ebx
push esi
push edi
call fcn.00408fe7
xor ebx, ebx
cmp dword [0x4210a8], ebx
je 0x407c32
cmp byte [0x420da0], bl
mov eax, dword [0x4210ac]
jne 0x407c1d
cmp eax, ebx
jne 0x407c32
push 0x420da0
push eax
push 1
push 0x420ea0
call fcn.004098c3
add esp, 0x10
mov eax, dword [0x424410]
cmp eax, ebx
jle 0x407c4d
push eax
call dword [sym.imp.KERNEL32.dll__lclose]
push 0x4241c0
call fcn.00410a40
pop ecx
cmp byte [0x4210e0], bl
je 0x407c60
push 0x4210e0
call fcn.00410a40
pop ecx
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, 0x4212e8
push edi
call esi
test eax, eax
je 0x407c7f
push 0x3e8
push edi
call fcn.00408b9b
pop ecx
pop ecx
lea eax, [ebp - 0x25c]
push 1
push eax
call fcn.00409772
pop ecx
test eax, eax
pop ecx
je 0x407cbc
lea eax, [ebp - 0x6a0]
push eax
lea eax, [ebp - 0x25c]
push eax
call fcn.00409fae
pop ecx
lea eax, [ebp - 0x6a0]
pop ecx
push eax
push dword [0x4210bc]
call fcn.00409c74
pop ecx
pop ecx
cmp dword [ebp + 8], ebx
je 0x407d94
mov edi, 0x421900
push edi
call esi
test eax, eax
je 0x407d94
push dword [0x4243d0]
mov esi, dword [0x4210a8]
mov dword [0x4210a8], ebx
push 1
push 0x40
push 2
call fcn.0040523a
add esp, 0x10
lea eax, [ebp - 0x498]
mov dword [0x4210a8], esi
push 1
push dword [ebp + 8]
push esi
push 0x420988
push 0x4216f8
push edi
push eax
lea eax, [ebp - 0xaec]
push eax
call fcn.00407fb9
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
add esp, 0x20
lea eax, [ebp - 0xaec]
push 0x41c078
push eax
call esi
lea eax, [ebp - 0x498]
push eax
lea eax, [ebp - 0xaec]
push eax
call esi
push 0x44
lea eax, [ebp - 0x54]
pop esi
push esi
push ebx
push eax
call fcn.00411ef0
add esp, 0xc
lea eax, [ebp - 0x10]
mov dword [ebp - 0x54], esi
mov word [ebp - 0x24], 1
push eax
lea eax, [ebp - 0x54]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0xaec]
push ebx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
cmp eax, ebx
jne 0x407d94
push dword [0x424188]
push 1
push 0x30
push 1
call fcn.0040523a
add esp, 0x10
cmp byte [0x4214f0], bl
je 0x407da7
push 0x4214f0
call fcn.00410a40
pop ecx
call fcn.00403a37
cmp eax, 1
jne 0x407db8
push ebx
call fcn.00403794
pop ecx
call fcn.00404911
push dword [0x4210b4]
call dword [sym.imp.USER32.dll_DestroyWindow]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x407e75
Capabilities:
Read .ini file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x924
push ebx
push esi
push edi
push 0x424660
lea eax, [ebp - 0x208]
push 0x208
push eax
push 0
push str.Uninstal
push str.BootStrap
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [ebp - 0x208]
mov ebx, 0x424aa0
push eax
push ebx
lea eax, [ebp - 0x514]
push 0x41c1a4
push eax
call esi
add esp, 0x10
lea eax, [ebp - 0x208]
mov edi, 0x423b20
push eax
push edi
lea eax, [ebp - 0x71c]
push str._s_s
push eax
call esi
add esp, 0x10
lea eax, [ebp - 0x208]
push eax
lea eax, [ebp - 0x924]
push 0x41c5f8
push eax
call esi
add esp, 0xc
lea eax, [ebp - 0x71c]
push eax
lea eax, [ebp - 0x924]
push eax
push 0x424cc0
call fcn.00408e72
add esp, 0xc
lea eax, [ebp - 0x514]
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push edi
lea eax, [ebp - 0x30c]
push 0x41c6a4
push eax
call esi
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
add esp, 0xc
mov esi, str.ST6UNST.EXE
lea eax, [ebp - 0x208]
push esi
push eax
call edi
xor eax, eax
push eax
push eax
push eax
lea eax, [ebp - 0x208]
push esi
push eax
lea eax, [ebp - 0x30c]
push ebx
push eax
call fcn.00406143
add esp, 0x1c
dec eax
dec eax
je 0x407fa3
dec eax
dec eax
je 0x407fa3
dec eax
jne 0x407f9f
push esi
push 0x41c058
push dword [0x423888]
call fcn.00403c25
add esp, 0xc
push eax
push 1
push 0x10
push 1
call fcn.0040523a
add esp, 0x10
jmp 0x407f52
xor eax, eax
jmp 0x407fb4
lea eax, [ebp - 0x514]
push eax
push 0x421900
call edi
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40815c
Capabilities:
Get common file path
Get startup folder

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x864
push ebx
push edi
call fcn.00409c1f
test eax, eax
je 0x408249
xor ebx, ebx
lea eax, [ebp - 0x448]
push ebx
push 1
push ebx
push 0x41fcac
push 0x4216f8
push 0x421900
push eax
lea eax, [ebp - 0x65c]
push eax
xor edi, edi
call fcn.00407fb9
add esp, 0x20
lea eax, [ebp - 4]
push eax
push 0x18
push dword [0x4210b4]
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x40823b
lea eax, [ebp - 0x864]
push eax
push dword [ebp - 4]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
test eax, eax
je 0x40823b
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x864]
push eax
call fcn.00409fae
pop ecx
pop ecx
push ebx
call dword [sym.imp.ole32.dll_OleInitialize]
sub eax, ebx
je 0x4081f7
dec eax
je 0x4081fa
jmp 0x408289
push 1
pop edi
lea eax, [ebp - 0x20c]
push eax
call fcn.004091c9
test eax, eax
pop ecx
je 0x40823b
push 0x41c6e8
lea eax, [ebp - 0x448]
push 1
push eax
lea eax, [ebp - 0x65c]
push eax
lea eax, [ebp - 0x20c]
push str.ST6UNST_Uninstaller
push eax
call fcn.0040924a
add esp, 0x18
test eax, eax
je 0x40823b
push 1
pop ebx
test edi, edi
je 0x408245
call dword [sym.imp.ole32.dll_OleUninitialize]
mov eax, ebx
jmp 0x4082b8
push 1
push 1
push 0
push 0x41fcac
push 0x4216f8
lea eax, [ebp - 0x448]
push 0x421900
push eax
lea eax, [ebp - 0x65c]
push eax
call fcn.00407fb9
add esp, 0x20
lea eax, [ebp - 0x20c]
push eax
push dword [ebp + 8]
call fcn.0040240b
pop ecx
test eax, eax
pop ecx
jne 0x40828d
xor eax, eax
jmp 0x4082b8
lea eax, [ebp - 0x448]
push eax
lea eax, [ebp - 0x65c]
push eax
lea eax, [ebp - 0x20c]
push str.ST6UNST_Uninstaller
push eax
push dword [ebp + 8]
call fcn.004024c4
add esp, 0x14
neg eax
sbb eax, eax
neg eax
pop edi
pop ebx
leave
ret
Function at 0x4083f3
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
push esi
xor esi, esi
push edi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push esi
push 0xffffffffffffffff
push dword [ebp + 0xc]
push esi
push esi
call edi
mov ebx, eax
cmp ebx, esi
je 0x4084e2
lea eax, [ebx - 1]
mov word [ebp - 0x28], 8
push eax
push esi
call dword [sym.imp.OLEAUT32.dll_SysReAllocStringLen]
cmp eax, esi
mov dword [ebp - 0x20], eax
je 0x4084e2
push ebx
push eax
push 0xffffffffffffffff
push dword [ebp + 0xc]
push esi
push esi
call edi
push 7
push esi
lea eax, [ebp - 0x28]
push 0x409
push eax
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.OLEAUT32.dll_SafeArrayPtrOfIndex]
test eax, eax
jge 0x408466
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
jmp 0x4084e2
fld qword [ebp - 0x20]
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
push ecx
push ecx
fstp qword [esp]
call dword [sym.imp.OLEAUT32.dll_DosDateTimeToVariantTime]
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 4]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_DosDateTimeToFileTime]
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFileTimeToFileTime]
mov edi, 0x80
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
je 0x4084e2
push esi
push edi
push 3
push esi
push esi
push 0xc0000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x4084e2
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x10]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x408f7a
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
and byte [ebp - 0x208], 0
push esi
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x207]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x4214f0
mov esi, 0x424660
push 0x41c1cc
push esi
stosb byte es:[edi], al
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x208]
push esi
push 0x208
push eax
push 0
push str.Cabs
push str.BootStrap
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [ebp - 0x208]
push eax
call fcn.00411e50
pop ecx
pop edi
pop esi
leave
ret

Function at 0x408fe7
Capabilities:
Delete directory
Delete file
Read .ini file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa30
and byte [ebp - 0x418], 0
push ebx
push esi
mov edx, 0x81
push edi
mov ecx, edx
xor eax, eax
lea edi, [ebp - 0x417]
rep stosd dword es:[edi], eax
and byte [ebp - 0x828], 0
mov ecx, edx
stosw word es:[edi], ax
stosb byte es:[edi], al
xor eax, eax
lea edi, [ebp - 0x827]
rep stosd dword es:[edi], eax
and byte [ebp - 0xa30], 0
mov ecx, edx
stosw word es:[edi], ax
stosb byte es:[edi], al
xor eax, eax
lea edi, [ebp - 0xa2f]
rep stosd dword es:[edi], eax
and byte [ebp - 0x620], 0
mov ecx, edx
stosw word es:[edi], ax
stosb byte es:[edi], al
xor eax, eax
lea edi, [ebp - 0x61f]
rep stosd dword es:[edi], eax
mov ebx, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov esi, 0x423b20
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, dword [sym.imp.USER32.dll_wsprintfA]
inc dword [0x421ea4]
lea eax, [ebp - 4]
push 0xa
push eax
push dword [0x421ea4]
call fcn.00411330
add esp, 0xc
lea eax, [ebp - 0x418]
push str.File
push eax
call fcn.00412c40
pop ecx
lea eax, [ebp - 4]
pop ecx
push eax
lea eax, [ebp - 0x418]
push eax
call fcn.00412c50
pop ecx
lea eax, [ebp - 0x210]
pop ecx
push 0x424660
push 0x208
push eax
lea eax, [ebp - 0x418]
push 0
push eax
push str.BootStrap_Files
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
mov dword [ebp - 8], eax
je 0x409144
cmp byte [ebp - 0x210], 0x40
jne 0x4090f9
lea eax, [ebp - 0x210]
push eax
call fcn.00412ac0
pop ecx
push eax
lea eax, [ebp - 0x20f]
push eax
lea eax, [ebp - 0x210]
push eax
call fcn.00412780
add esp, 0xc
mov al, byte [0x41a5fc]
push eax
lea eax, [ebp - 0x210]
push eax
call fcn.00406a16
and byte [eax], 0
pop ecx
pop ecx
lea eax, [ebp - 0x210]
push eax
push esi
lea eax, [ebp - 0x828]
push str._s_s
push eax
call edi
add esp, 0x10
lea eax, [ebp - 0x828]
push 0x80
push eax
call ebx
lea eax, [ebp - 0x828]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
cmp dword [ebp - 8], 0
jne 0x409061
push 0x424660
lea eax, [ebp - 0xa30]
push 0x208
push eax
push 0
push str.Uninstal
push str.BootStrap
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [ebp - 0xa30]
push eax
push esi
lea eax, [ebp - 0x620]
push str._s_s
push eax
call edi
add esp, 0x10
lea eax, [ebp - 0x620]
push 0x80
push eax
call ebx
lea eax, [ebp - 0x620]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4091c9
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
push esi
push edi
lea eax, [ebp - 0x108]
push 1
push eax
call fcn.00409674
pop ecx
test eax, eax
pop ecx
je 0x409208
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
lea eax, [ebp - 0x108]
push eax
call esi
push dword [ebp + 8]
mov edi, eax
call esi
add edi, eax
cmp edi, 0x104
jle 0x40920c
xor eax, eax
jmp 0x409246
push dword [ebp + 8]
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x409237
test al, 0x10
je 0x409237
push 1
pop eax
jmp 0x409246
lea eax, [ebp - 0x108]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
pop edi
pop esi
leave
ret