joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4037d0
Capabilities:
Read .ini file
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x910
mov eax, dword [0x41b004]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
push 0x41d330
push 0x41d128
push 0x41d004
lea eax, [ebp - 0x108]
push str._s_s_s
push eax
call esi
add esp, 0x14
push str..ini
lea ecx, [ebp - 0x108]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathRenameExtensionA]
lea edx, [ebp - 0x108]
push edx
push 0x400
lea eax, [ebp - 0x508]
push eax
push 0x417c64
push str.GUID
push str.INSTALL
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea ecx, [ebp - 0x508]
push ecx
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstall
lea edx, [ebp - 0x908]
push 0x417c5c
push edx
call esi
add esp, 0x10
lea eax, [ebp - 0x910]
push eax
lea ecx, [ebp - 0x90c]
push ecx
push 0
push 0xf003f
push 0
push 0x417d2b
push 0
lea edx, [ebp - 0x908]
push edx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x4038ba
push 0x30
push 0x41d22c
push 0x4181e0
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040aabb
mov esp, ebp
pop ebp
ret
push ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
push 0x41d22c
call edi
mov ebx, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
inc eax
push eax
mov eax, dword [ebp - 0x90c]
push 0x41d22c
push 1
push 0
push str.DisplayName
push eax
call ebx
push str.Setup.exe
push 0x41d434
lea ecx, [ebp - 0x508]
push str._s_s_Del
push ecx
call esi
add esp, 0x10
lea edx, [ebp - 0x508]
push edx
call edi
mov ecx, dword [ebp - 0x90c]
inc eax
push eax
lea eax, [ebp - 0x508]
push eax
push 1
push 0
push str.UninstallString
push ecx
call ebx
push 0x41d330
push 0x41d434
lea edx, [ebp - 0x508]
push 0x417c5c
push edx
call esi
add esp, 0x10
lea eax, [ebp - 0x508]
push eax
call edi
mov edx, dword [ebp - 0x90c]
inc eax
push eax
lea ecx, [ebp - 0x508]
push ecx
push 1
push 0
push str.DisplayIcon
push edx
call ebx
cmp byte [0x41d538], 0
push 0x41d128
je 0x40398c
push 0x41d538
lea eax, [ebp - 0x508]
push str._s__s
push eax
call esi
add esp, 0x10
jmp 0x40399d
lea ecx, [ebp - 0x508]
push 0x418254
push ecx
call esi
add esp, 0xc
lea edx, [ebp - 0x508]
push edx
call edi
mov ecx, dword [ebp - 0x90c]
inc eax
push eax
lea eax, [ebp - 0x508]
push eax
push 1
push 0
push str.Publisher
push ecx
call ebx
mov edx, dword [ebp - 0x90c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
pop edi
pop ebx
xor ecx, ebp
mov eax, 1
pop esi
call fcn.0040aabb
mov esp, ebp
pop ebp
ret
Function at 0x404000
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x41b004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push str.Setup.dat
push 0x41d434
lea eax, [ebp - 0x108]
push 0x417c5c
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
push 0
push 0x80
push 2
push 0
push 2
push 0x40000000
lea ecx, [ebp - 0x108]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ecx, dword [0x418420]
mov edx, dword [str.F_Setup.exe__n]
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
mov eax, dword [0x41841c]
mov dword [ebp - 0x104], eax
push 0
lea eax, [ebp - 0x10c]
mov dword [ebp - 0x100], ecx
mov dword [ebp - 0x108], edx
mov dx, word [0x418424]
push eax
lea ecx, [ebp - 0x108]
push ecx
mov word [ebp - 0xfc], dx
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
push eax
lea edx, [ebp - 0x108]
push edx
push esi
call ebx
mov ecx, dword [0x41842c]
mov edx, dword [0x418430]
mov eax, dword [str.F_Setup.dat__n]
mov dword [ebp - 0x104], ecx
push 0
lea ecx, [ebp - 0x10c]
mov dword [ebp - 0x100], edx
mov dword [ebp - 0x108], eax
mov ax, word [0x418434]
push ecx
lea edx, [ebp - 0x108]
push edx
mov word [ebp - 0xfc], ax
call edi
push eax
lea eax, [ebp - 0x108]
push eax
push esi
call ebx
push 0
lea ecx, [ebp - 0x10c]
push ecx
push 0x41e474
call edi
push eax
push 0x41e474
push esi
call ebx
push 0
lea edx, [ebp - 0x10c]
push edx
push 0x420b84
call edi
push eax
push 0x420b84
push esi
call ebx
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0040aabb
mov esp, ebp
pop ebp
ret

Function at 0x404150
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x41b004]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x41d330
push 0x41d128
push 0x41d004
lea eax, [ebp - 0x108]
push str._s_s_s
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
push str..ini
lea ecx, [ebp - 0x108]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathRenameExtensionA]
lea edx, [ebp - 0x108]
push edx
push 0x104
lea eax, [ebp - 0x20c]
push eax
push 0x417c64
push str.SaveFold
push str.INSTALL
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
cmp byte [ebp - 0x20c], 0x2a
jne 0x4041da
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040aabb
mov esp, ebp
pop ebp
ret
push edi
lea edi, [ebp - 0x20c]
call fcn.00407750
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, 1
pop edi
call fcn.0040aabb
mov esp, ebp
pop ebp
ret
Function at 0x4046b0
Capabilities:
Copy file
Create process on windows
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x248
mov eax, dword [0x41b004]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
call fcn.00404000
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
push 0x41d330
push 0x41d128
push 0x41d004
lea eax, [ebp - 0x108]
push str._s_s_s
push eax
call esi
add esp, 0x14
push str..ini
lea ecx, [ebp - 0x108]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathRenameExtensionA]
lea edx, [ebp - 0x108]
push edx
push 0x104
push 0x41d434
push 0x417c64
push str.InstallFold
push str.INSTALL
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push str.Setup.exe
push 0x41d434
lea eax, [ebp - 0x20c]
push 0x417c5c
push eax
call esi
push str.Setup.exe
push 0x41d128
push 0x41d004
lea ecx, [ebp - 0x108]
push str._s_s_s
push ecx
call esi
add esp, 0x24
push 0
lea edx, [ebp - 0x108]
push edx
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
push 0x3c
lea ecx, [ebp - 0x248]
push 0
push ecx
call fcn.0040fab0
add esp, 0xc
lea eax, [ebp - 0x248]
lea edx, [ebp - 0x108]
push eax
mov dword [ebp - 0x248], 0x3c
mov dword [ebp - 0x238], edx
mov dword [ebp - 0x22c], 1
mov dword [ebp - 0x234], str.Uninstall
mov dword [ebp - 0x230], 0x41d004
mov dword [ebp - 0x244], 0x8000
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0040aabb
mov esp, ebp
pop ebp
ret
Function at 0x405de0
Capabilities:
Copy file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x41b004]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
push str.Setup.exe
push 0x41cdfc
lea eax, [ebp - 0x20c]
push 0x417c5c
push eax
call esi
add esp, 0x10
cmp byte [0x41d538], 0
push str.Setup.exe
push 0x41d22c
je 0x405e40
push 0x41d538
push 0x41d434
push str._s_s_s_s
lea ecx, [ebp - 0x108]
push ecx
jmp 0x405e56
push 0x41d128
push 0x41d434
push str._s_s_s_s
lea edx, [ebp - 0x108]
push edx
call esi
add esp, 0x18
push 0
lea eax, [ebp - 0x108]
push eax
lea ecx, [ebp - 0x20c]
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
jne 0x405ebb
lea edx, [ebp - 0x108]
push edx
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebp - 0x414]
push 0x418798
push ecx
call esi
add esp, 0x10
push 0x30
push 0x41d22c
lea edx, [ebp - 0x414]
push edx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040aabb
mov esp, ebp
pop ebp
ret
push 0x80
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, 1
pop esi
call fcn.0040aabb
mov esp, ebp
pop ebp
ret

Function at 0x405ef0
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x41b004]
xor eax, ebp
mov dword [ebp - 4], eax
push 0xfe
lea eax, [ebp - 0x107]
push 0
push eax
mov byte [ebp - 0x108], 0
call fcn.0040fab0
add esp, 0xc
push 2
lea edx, [ebp - 0x10c]
xor ecx, ecx
push 0x41d434
push edx
mov byte [ebp - 0x10c], 0
mov word [ebp - 0x10b], cx
call fcn.0040af50
add esp, 0xc
cmp byte [ebp - 0x10b], 0x3a
je 0x405f8f
push 0x41d434
lea eax, [ebp - 0x108]
push 0x4187f8
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push 0x30
push 0x41d22c
lea ecx, [ebp - 0x108]
push ecx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040aabb
mov esp, ebp
pop ebp
ret
lea edx, [ebp - 0x120]
push edx
lea eax, [ebp - 0x118]
push eax
push 0
lea ecx, [ebp - 0x10c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExA]
test eax, eax
je 0x405fd8
mov edx, dword [ebp - 0x118]
mov eax, dword [ebp - 0x114]
mov ecx, dword [ebp - 0x11c]
shrd edx, eax, 0x14
shr eax, 0x14
mov eax, dword [ebp - 0x120]
shrd eax, ecx, 0x14
shr ecx, 0x14
jmp 0x405fe4
mov eax, dword [ebp - 0x10c]
mov edx, dword [ebp - 0x10c]
mov ecx, dword [0x41d114]
mov ecx, dword [ecx*4 + 0x41d118]
cmp eax, ecx
jae 0x406038
push ecx
push edx
push eax
push 0x41d434
lea edx, [ebp - 0x108]
push 0x418820
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x18
push 0x30
push 0x41d22c
lea eax, [ebp - 0x108]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040aabb
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, 1
call fcn.0040aabb
mov esp, ebp
pop ebp
ret
Function at 0x406050
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x41c
mov eax, dword [0x41b004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x41cd90]
mov ecx, dword [0x41cd8c]
push ebx
push esi
push edi
push 0
push 0x402d70
push eax
push 0x71
push ecx
call dword [sym.imp.USER32.dll_DialogBoxParamA]
test eax, eax
je 0x40614c
call fcn.00405ef0
test eax, eax
je 0x40614c
cmp byte [0x41d538], 0
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
push 0x41d22c
je 0x4060c3
push 0x41d538
push 0x41d434
push str._s_s_s
lea edx, [ebp - 0x210]
push edx
jmp 0x4060d9
push 0x41d128
push 0x41d434
push str._s_s_s
lea eax, [ebp - 0x210]
push eax
call esi
add esp, 0x14
lea ecx, [ebp - 0x210]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryA]
mov ebx, dword [sym.imp.USER32.dll_MessageBoxA]
test eax, eax
jne 0x40615f
lea edx, [ebp - 0x210]
push edx
lea eax, [ebp - 0x418]
push 0x418874
push eax
call esi
mov edx, dword [0x41cd90]
add esp, 0xc
push 0x24
push 0x41d22c
lea ecx, [ebp - 0x418]
push ecx
push edx
call ebx
cmp eax, 6
jne 0x40614c
lea edi, [ebp - 0x210]
call fcn.00407750
test eax, eax
jne 0x40615f
mov eax, dword [0x41cd90]
push 0x30
push 0x41d22c
push 0x4188a8
push eax
call ebx
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040aabb
mov esp, ebp
pop ebp
ret
mov eax, dword [0x41cd88]
test eax, eax
je 0x406179
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x41cd88], 0
call fcn.00405de0
test eax, eax
je 0x40614c
call fcn.00405b60
lea edi, [ebp - 0x210]
dec edi
mov edi, edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x406190
mov cx, word [0x417c84]
lea eax, [ebp - 0x210]
mov word [edi], cx
dec eax
lea esp, [esp]
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x4061b0
mov edx, dword [str.Setup.exe]
mov ecx, dword [0x41821c]
mov dword [eax], edx
mov dx, word [0x418220]
mov dword [eax + 4], ecx
mov word [eax + 8], dx
lea eax, [ebp - 0x210]
dec eax
jmp 0x4061e0
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x4061e0
mov ecx, dword [str._Install]
mov edx, dword [0x418948]
mov dword [eax], ecx
mov cx, word [0x41894c]
mov dword [eax + 4], edx
mov word [eax + 8], cx
mov eax, 0x41cdfc
mov edx, eax
jmp 0x406210
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x406210
lea edi, [ebp - 0x210]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x406220
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push 5
lea edx, [ebp - 0x210]
and ecx, 3
push edx
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_WinExec]
cmp eax, 0x1f
ja 0x40626f
push 0x30
push 0x41d22c
push 0x418704
push 0
call ebx
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040aabb
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
mov eax, 1
pop ebx
call fcn.0040aabb
mov esp, ebp
pop ebp
ret
Function at 0x407540
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x41b004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push edi
push 0x207
mov ebx, ecx
lea ecx, [ebp - 0x20b]
push 0
push ecx
mov dword [ebp - 0x21c], eax
mov byte [ebp - 0x20c], 0
call fcn.0040fab0
add esp, 0xc
push 0
push ebx
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeA]
mov edi, eax
test edi, edi
jne 0x4075b7
push 0x20
push 0x418d0c
push 0x418d18
call dword [sym.imp.USER32.dll_GetActiveWindow]
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
pop edi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040aabb
mov esp, ebp
pop ebp
ret
push esi
push edi
call fcn.0040ae25
mov esi, eax
add esp, 4
test esi, esi
jne 0x4075f3
push 0x20
push 0x418d0c
push 0x418d48
call dword [sym.imp.USER32.dll_GetActiveWindow]
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
pop esi
pop edi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040aabb
mov esp, ebp
pop ebp
ret
push esi
push edi
push 0
push ebx
call dword [sym.imp.VERSION.dll_GetFileVersionInfoA]
test eax, eax
jne 0x407637
push esi
call fcn.0040adeb
add esp, 4
push 0x20
push 0x418d0c
push 0x418d64
call dword [sym.imp.USER32.dll_GetActiveWindow]
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
pop esi
pop edi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040aabb
mov esp, ebp
pop ebp
ret
mov edi, dword [sym.imp.VERSION.dll_VerQueryValueA]
lea edx, [ebp - 0x210]
push edx
lea eax, [ebp - 0x218]
push eax
push str.VarFileInfoTranslation
push esi
call edi
test eax, eax
jne 0x40768c
push esi
call fcn.0040adeb
add esp, 4
push 0x20
push 0x418d0c
push 0x418db0
call dword [sym.imp.USER32.dll_GetActiveWindow]
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
pop esi
pop edi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040aabb
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x218]
movzx ecx, word [eax + 2]
movzx edx, word [eax]
mov ebx, dword [sym.imp.USER32.dll_wsprintfA]
push ecx
push edx
lea eax, [ebp - 0x20c]
push str.StringFileInfo_04x_04xInternalName
push eax
call ebx
add esp, 0x10
lea ecx, [ebp - 0x210]
push ecx
lea edx, [ebp - 0x214]
push edx
lea eax, [ebp - 0x20c]
push eax
push esi
call edi
cmp dword [ebp - 0x210], 0
jne 0x407718
mov eax, dword [ebp - 0x218]
movzx ecx, word [eax + 2]
movzx edx, word [eax]
push ecx
push edx
lea eax, [ebp - 0x20c]
push str.StringFileInfo_04x_04xProductName
push eax
call ebx
add esp, 0x10
lea ecx, [ebp - 0x210]
push ecx
lea edx, [ebp - 0x214]
push edx
lea eax, [ebp - 0x20c]
push eax
push esi
call edi
cmp dword [ebp - 0x210], 0
je 0x407679
mov eax, dword [ebp - 0x214]
mov edx, dword [ebp - 0x21c]
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x407726
mov ecx, dword [ebp - 4]
pop esi
pop edi
xor ecx, ebp
mov eax, 1
pop ebx
call fcn.0040aabb
mov esp, ebp
pop ebp
ret
Function at 0x407750
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x508
mov eax, dword [0x41b004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push 0x104
lea eax, [ebp - 0x108]
push 0
push eax
call fcn.0040fab0
add esp, 0xc
push edi
xor esi, esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebx, eax
cmp ebx, 0x104
jle 0x4077c1
push 1
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [0x41cd90]
push 0x30
push 0x41d22c
push 0x418e38
push ecx
call dword [sym.imp.USER32.dll_MessageBoxA]
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040aabb
mov esp, ebp
pop ebp
ret
mov dl, byte [edi + esi]
inc esi
cmp dl, 0x5c
jne 0x4077c1
cmp esi, ebx
je 0x407815
mov edi, edi
mov al, byte [edi + esi]
test al, al
je 0x4077dc
inc esi
cmp al, 0x5c
jne 0x4077d0
push esi
lea eax, [ebp - 0x108]
push edi
push eax
call fcn.0040af50
add esp, 0xc
push 0
lea ecx, [ebp - 0x108]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x407811
lea edx, [ebp - 0x108]
push edx
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryA]
test eax, eax
je 0x40782a
cmp esi, ebx
jne 0x4077d0
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040aabb
mov esp, ebp
pop ebp
ret
push 2
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea eax, [ebp - 0x108]
push eax
lea ecx, [ebp - 0x508]
push 0x418e78
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
mov eax, dword [0x41cd90]
add esp, 0xc
push 0x30
push 0x41d22c
lea edx, [ebp - 0x508]
push edx
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.0040aabb
mov esp, ebp
pop ebp
ret
Function at 0x407880
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x35c
mov eax, dword [0x41b004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x41d330
push 0x41d128
push 0x41d004
lea eax, [ebp - 0x218]
push str._s_s_s
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
push str..ini
lea ecx, [ebp - 0x218]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathRenameExtensionA]
lea edx, [ebp - 0x218]
push edx
push 0
push str.IsInstall
push str.INSTALL
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov ebx, eax
test ebx, ebx
je 0x4079b4
lea eax, [ebp - 0x218]
push eax
push 0x104
lea ecx, [ebp - 0x110]
push ecx
push 0x417c64
push str.InstallFold
push str.INSTALL
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea edi, [ebp - 0x110]
dec edi
mov edi, edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x407920
mov dx, word [0x417c84]
mov eax, 0x41d330
mov word [edi], dx
mov ecx, eax
lea esp, [esp]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x407940
lea edi, [ebp - 0x110]
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x407952
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
lea eax, [ebp - 0x358]
rep movsb byte es:[edi], byte [esi]
push eax
lea ecx, [ebp - 0x110]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
je 0x40799f
test byte [ebp - 0x358], 0x10
mov edx, 0
setne dl
push eax
lea esi, [edx + 1]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp esi, 1
je 0x4079b2
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040aabb
mov esp, ebp
pop ebp
ret
mov eax, ebx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040aabb
mov esp, ebp
pop ebp
ret

Function at 0x407d10
Capabilities:
Delete registry key
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x608
mov eax, dword [0x41b004]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
push 0x41d330
push 0x41d128
push 0x41d004
lea eax, [ebp - 0x108]
push str._s_s_s
push eax
call esi
add esp, 0x14
push str..ini
lea ecx, [ebp - 0x108]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathRenameExtensionA]
lea edx, [ebp - 0x108]
push edx
push 0x100
lea eax, [ebp - 0x208]
push eax
push 0x417c64
push str.GUID
push str.INSTALL
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea ecx, [ebp - 0x208]
push ecx
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstall
lea edx, [ebp - 0x608]
push 0x417c5c
push edx
call esi
add esp, 0x10
lea eax, [ebp - 0x608]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, 1
pop esi
call fcn.0040aabb
mov esp, ebp
pop ebp
ret
Function at 0x408160
Capabilities:
Check os version
Delete directory
Delete file
Get common file path
Get disk information
Move file
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4a8
mov eax, dword [0x41b004]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
push 0x41d330
push 0x41d128
push 0x41d004
lea eax, [ebp - 0x108]
push str._s_s_s
push eax
call esi
add esp, 0x14
push str..ini
lea ecx, [ebp - 0x108]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathRenameExtensionA]
lea edx, [ebp - 0x108]
push edx
push 0x104
lea eax, [ebp - 0x414]
push eax
push str.Setup.exe
push str.ExeName
push str.UNINSTALL
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea ecx, [ebp - 0x414]
push ecx
push 0x41d128
push 0x41d004
lea edx, [ebp - 0x108]
push str._s_s_s
push edx
call esi
add esp, 0x14
push 0x41cdfc
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 5
je 0x408373
lea eax, [ebp - 0x4a8]
push eax
mov dword [ebp - 0x4a8], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x408243
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040aabb
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x498]
dec eax
je 0x40828e
dec eax
jne 0x408231
mov edi, dword [sym.imp.KERNEL32.dll_MoveFileExA]
push 4
push eax
lea ecx, [ebp - 0x108]
push ecx
call edi
push 0x41d128
push 0x41d004
lea edx, [ebp - 0x108]
push 0x417c5c
push edx
call esi
add esp, 0x10
push 4
push 0
lea eax, [ebp - 0x108]
push eax
call edi
jmp 0x4083a8
push 0x104
lea ecx, [ebp - 0x20c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp byte [ebp + eax - 0x20d], 0x5c
lea eax, [ebp + eax - 0x20d]
je 0x4082c1
mov byte [eax], 0x5c
lea eax, [ebp - 0x20c]
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x4082c8
mov ecx, dword [str.wininit.ini]
mov edx, dword [0x418ec8]
mov edi, dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
mov dword [eax], ecx
mov ecx, dword [0x418ecc]
push ebx
mov dword [eax + 4], edx
push 0x104
lea edx, [ebp - 0x310]
mov dword [eax + 8], ecx
push edx
lea eax, [ebp - 0x108]
push eax
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
lea ecx, [ebp - 0x20c]
push ecx
lea edx, [ebp - 0x310]
push edx
push 0x418ed0
push str.rename
call ebx
push 0x41d128
push 0x41d004
lea eax, [ebp - 0x108]
push 0x417c5c
push eax
call esi
add esp, 0x10
push 0x104
lea ecx, [ebp - 0x310]
push ecx
lea edx, [ebp - 0x108]
push edx
call edi
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebp - 0x310]
push ecx
push 0x418ed0
push str.rename
call ebx
pop ebx
jmp 0x4083a8
lea edx, [ebp - 0x108]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0x41d128
push 0x41d004
lea eax, [ebp - 0x108]
push 0x417c5c
push eax
call esi
add esp, 0x10
lea ecx, [ebp - 0x108]
push ecx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
mov eax, 1
pop esi
call fcn.0040aabb
mov esp, ebp
pop ebp
ret