joyce8/EMBER2024-capa huggingface dataset:
Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
push 4
nop
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
je 0x433072
nop
nop
mov ebx, 0x40de38
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x4bc6724
nop
nop
xor dword [eax], esi
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x433060
nop
nop
nop
nop
mov eax, section..data
nop
nop
nop
cmp eax, 0
je 0x4330d2
nop
nop
nop
nop
mov ebx, 0x4304d8
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
mov esi, 0x42067231
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x4330c0
nop
nop
nop
nop
popal
nop
jmp 0x431219

Function at 0x42e006
Capabilities:
Encode data using xor

Disassembly:
mov eax, section..text
nop
push 4
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
nop
je 0x42e072
nop
mov ebx, 0x407ef8
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x4cff05e4
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x42e060
mov eax, section..data
nop
nop
nop
cmp eax, 0
nop
je 0x42e0d2
nop
nop
nop
nop
mov ebx, 0x42cd70
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
push eax
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
pop eax
nop
nop
nop
nop
nop
mov esi, 0x2cfa630c
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x42e0c0
nop
nop
nop
popal
nop
nop
jmp 0x401219
Function at 0x40c70d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x42c248
cmp edx, dword [eax]
je 0x40c72f
add eax, 8
inc ecx
cmp eax, 0x42c2d8
jl 0x40c720
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x42c248]
jne 0x40c85d
mov eax, dword [0x42f0b4]
cmp eax, 1
je 0x40c837
test eax, eax
jne 0x40c760
cmp dword [0x42be1c], 1
je 0x40c837
cmp edx, 0xfc
je 0x40c85d
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40c797
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.0040c990
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.0040ca80
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x40c7da
lea eax, [ebp - 0x1a4]
push eax
call fcn.0040ca80
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x424eac
push edi
call fcn.0040f5d0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.0040c990
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0040c9a0
lea eax, [ebp - 0xa0]
push 0x424e8c
push eax
call fcn.0040c9a0
push dword [esi + 0x42c24c]
lea eax, [ebp - 0xa0]
push eax
call fcn.0040c9a0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0040f539
add esp, 0x2c
pop edi
jmp 0x40c85d
lea eax, [ebp + 8]
lea esi, [esi + 0x42c24c]
push 0
push eax
push dword [esi]
call fcn.0040ca80
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x414f00
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov esi, dword [ebp + 0x10]
push 0xf00021
mov edx, dword [esi + 4]
mov ecx, dword [esi]
mov eax, dword [esi + 0xc]
sub eax, edx
push eax
mov eax, dword [esi + 8]
sub eax, ecx
push eax
push edx
push ecx
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.GDI32.dll_PatBlt]
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov ebx, eax
lea eax, [eax + 5]
add eax, 3
and eax, 0xfffffffc
call fcn.0040a610
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x414fcb
add ebx, 2
mov eax, dword [ebp - 4]
push ebx
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
je 0x414fcb
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x414f7e
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x414f89
or bh, 8
and edi, 0x8000000
je 0x414fa4
mov eax, dword [0x43085c]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
movzx eax, bx
push eax
push esi
push 0xffffffffffffffff
push ecx
push edx
call dword [sym.imp.USER32.dll_DrawTextA]
test edi, edi
je 0x414fcb
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4153a0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
sub esp, 4
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
push ebp
push 2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x4153cb
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x4153ef
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
test ebp, ebp
jne 0x41540a
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
mov edi, ebp
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x20]
xor ecx, ecx
mov cl, ah
mov edx, eax
mov dword [esp + 0x10], 0
shl ecx, 8
shr edx, 0x10
mov byte [esp + 0x10], dl
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x28]
or ecx, edx
mov edx, eax
shr edx, 0x10
mov dword [ebp + 0x28], ecx
mov dword [esp + 0x10], 0
xor ecx, ecx
mov byte [esp + 0x10], dl
mov cl, ah
xor edx, edx
shl ecx, 8
mov dl, al
shl edx, 0x10
or ecx, dword [esp + 0x10]
or ecx, edx
mov eax, dword [esp + 0x24]
mov edx, eax
mov dword [ebp + 0x44], ecx
shr edx, 0x10
xor ecx, ecx
mov dword [esp + 0x10], 0
mov cl, ah
mov byte [esp + 0x10], dl
shl ecx, 8
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x2c]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x48], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x30]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x64], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x34]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x54], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
push 0
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
or ecx, edx
mov dword [ebp + 0x50], ecx
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
push 0
push ebp
lea ecx, [ebp + 0x68]
push ecx
push 4
push ebp
push edi
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
mov esi, eax
push edi
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, esi
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
Function at 0x419ce1
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x419d23
call fcn.0041e504
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x419d23
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x419d1a
xor eax, eax
jmp 0x419d2b
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00419d31
pop edi
pop esi
pop ebx
ret 4

Function at 0x41ecc3
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x41ecf1
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x41ed0f
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0041ec29
jmp 0x41ed0f
mov eax, dword [esi + 0x14]
test eax, eax
je 0x41ed0f
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0041ec29
test edi, edi
mov eax, edi
jne 0x41ecf9
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x40373c
Capabilities:
Create directory
Set file attributes

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
push edi
call fcn.004036d5
test eax, eax
pop ecx
je 0x40377b
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov esi, eax
test esi, esi
jne 0x40376d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x40377b
test esi, esi
je 0x403776
push 2
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push 1
pop eax
jmp 0x40377d
xor eax, eax
pop edi
pop esi
ret

Function at 0x403a8d
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 0x403abd
cmp dword [0x4210c4], ebx
je 0x403b03
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 0x403b03
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 0x403afa
cmp dword [ebp - 8], ebx
jbe 0x403afa
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 0x407af5
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 0x407b7d
push eax
push 2
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ebx, eax
test ebx, ebx
je 0x407b7d
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 0x407b6f
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 0x407b6f
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 0x407b89
and dword [esi], eax
and dword [esi + 4], eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x407ecb
Capabilities:
Read .ini file

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.00408ec8
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.00406199
add esp, 0x1c
dec eax
dec eax
je 0x407ff9
dec eax
dec eax
je 0x407ff9
dec eax
jne 0x407ff5
push esi
push 0x41c058
push dword [0x423888]
call fcn.00403c7b
add esp, 0xc
push eax
push 1
push 0x10
push 1
call fcn.00405290
add esp, 0x10
jmp 0x407fa8
xor eax, eax
jmp 0x40800a
lea eax, [ebp - 0x514]
push eax
push 0x421900
call edi
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4081b2
Capabilities:
Get common file path
Get startup folder

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x864
push ebx
push edi
call fcn.00409c75
test eax, eax
je 0x40829f
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.0040800f
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 0x408291
lea eax, [ebp - 0x864]
push eax
push dword [ebp - 4]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
test eax, eax
je 0x408291
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x864]
push eax
call fcn.0040a004
pop ecx
pop ecx
push ebx
call dword [sym.imp.ole32.dll_OleInitialize]
sub eax, ebx
je 0x40824d
dec eax
je 0x408250
jmp 0x4082df
push 1
pop edi
lea eax, [ebp - 0x20c]
push eax
call fcn.0040921f
test eax, eax
pop ecx
je 0x408291
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.004092a0
add esp, 0x18
test eax, eax
je 0x408291
push 1
pop ebx
test edi, edi
je 0x40829b
call dword [sym.imp.ole32.dll_OleUninitialize]
mov eax, ebx
jmp 0x40830e
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.0040800f
add esp, 0x20
lea eax, [ebp - 0x20c]
push eax
push dword [ebp + 8]
call fcn.0040240b
pop ecx
test eax, eax
pop ecx
jne 0x4082e3
xor eax, eax
jmp 0x40830e
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 0x408449
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 0x408538
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 0x408538
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 0x4084bc
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
jmp 0x408538
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 0x408538
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 0x408538
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 0x408fd0
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.00411eb0
pop ecx
pop edi
pop esi
leave
ret
Function at 0x40903d
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.00411390
add esp, 0xc
lea eax, [ebp - 0x418]
push str.File
push eax
call fcn.00412ca0
pop ecx
lea eax, [ebp - 4]
pop ecx
push eax
lea eax, [ebp - 0x418]
push eax
call fcn.00412cb0
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 0x40919a
cmp byte [ebp - 0x210], 0x40
jne 0x40914f
lea eax, [ebp - 0x210]
push eax
call fcn.00412b20
pop ecx
push eax
lea eax, [ebp - 0x20f]
push eax
lea eax, [ebp - 0x210]
push eax
call fcn.004127e0
add esp, 0xc
mov al, byte [0x41a604]
push eax
lea eax, [ebp - 0x210]
push eax
call fcn.00406a6c
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 0x4090b7
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 0x40921f
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.004096ca
pop ecx
test eax, eax
pop ecx
je 0x40925e
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 0x409262
xor eax, eax
jmp 0x40929c
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 0x40928d
test al, 0x10
je 0x40928d
push 1
pop eax
jmp 0x40929c
lea eax, [ebp - 0x108]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
pop edi
pop esi
leave
ret
Function at 0x4096ca
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 8]
push edi
push eax
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
test eax, eax
jl 0x409732
xor eax, eax
lea ecx, [ebp - 4]
cmp dword [ebp + 0xc], eax
push ecx
je 0x4096ee
push 2
jmp 0x4096f0
push 0x17
push eax
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jl 0x409732
mov edi, dword [ebp + 8]
push edi
push dword [ebp - 4]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
test eax, eax
jl 0x409732
mov eax, dword [ebp - 8]
push dword [ebp - 4]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
push edi
call esi
cmp byte [eax + edi - 2], 0x5c
je 0x409742
push edi
call esi
cmp eax, 0x103
jl 0x409736
xor eax, eax
jmp 0x409745
push 0x41c030
push edi
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 1
pop eax
pop edi
pop esi
leave
ret

Function at 0x4097c8
Capabilities:
Get common file path
Get startup folder

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
lea eax, [ebp - 8]
push eax
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
test eax, eax
jl 0x409803
cmp dword [ebp + 0xc], 0
je 0x4097f3
lea eax, [ebp - 4]
push eax
push 7
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jl 0x409803
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
test eax, eax
jge 0x409807
xor eax, eax
leave
ret
mov eax, dword [ebp - 8]
push dword [ebp - 4]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
push 1
pop eax
leave
ret
Function at 0x410a70
Capabilities:
Delete file

Disassembly:
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x410a87
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x410a89
xor eax, eax
test eax, eax
je 0x410a9a
push eax
call fcn.004138a0
add esp, 4
or eax, 0xffffffff
ret
xor eax, eax
ret

Function at 0x410ab0
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push esi
mov esi, dword [esp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x410ada
test byte [esp + 0xc], 0x80
je 0x410acc
and al, 0xfe
jmp 0x410ace
or al, 1
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x410aee
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004138a0
add esp, 4
or eax, 0xffffffff
pop esi
ret
xor eax, eax
pop esi
ret