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

Disassembly:
mov eax, 0x478233
call fcn.00444d58
sub esp, 0x138
push ebx
push esi
push edi
push 0x40
xor ebx, ebx
pop ecx
and byte [ebp - 0x144], bl
xor eax, eax
lea edi, [ebp - 0x143]
mov dword [ebp - 0x14], ebx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [ebp - 0x10], ebx
push 1
lea eax, [ebp - 0x10]
pop esi
push eax
push str.SOFTWAREMicrosoftWindowsCurrentVersion
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 4], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x43bed6
cmp dword [ebp + 0xc], esi
mov dword [ebp - 0x18], 0x104
mov eax, str.CommonFilesDir
je 0x43bebf
mov eax, str.ProgramFilesDir
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp - 0x144]
push ecx
push ebx
push ebx
push eax
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp + 0xf]
push ebx
push eax
lea eax, [ebp - 0x144]
mov edi, 0x47c014
mov esi, 0x47c00c
push eax
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x20], esi
call fcn.00402caf
push 0x490dd0
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 2
call fcn.0043bf55
mov ebx, dword [ebp + 8]
push 0
push eax
mov ecx, ebx
mov dword [ebx], edi
mov dword [ebx + 0x20], esi
call fcn.00403e42
mov dword [ebp - 0x14], 1
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 1
call fcn.00401f95
cmp dword [ebp - 0x10], 0
je 0x43bf44
mov eax, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x43bf44
push dword [ebp - 0x10]
call eax
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, ebx
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x43c568
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
xor esi, esi
push edi
mov dword [ebx], esi
mov dword [eax], esi
lea eax, [ebp - 4]
mov dword [ebp - 4], esi
push eax
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov edi, eax
cmp edi, esi
je 0x43c601
push edi
call fcn.00445339
push edi
push esi
push eax
mov dword [ebp + 0xc], eax
call fcn.004455c0
add esp, 0x10
push dword [ebp + 0xc]
push edi
push esi
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x43c5f8
lea eax, [ebp - 0x3c]
push 0x34
mov dword [ebp + 8], eax
lea eax, [ebp - 0x3c]
push esi
push eax
call fcn.004455c0
add esp, 0xc
lea eax, [ebp - 8]
mov dword [ebp - 8], esi
push eax
lea eax, [ebp + 8]
push eax
push 0x491150
push dword [ebp + 0xc]
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x43c5f8
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
mov dword [ebx], ecx
mov ecx, dword [ebp + 0x10]
mov eax, dword [eax + 0xc]
mov dword [ecx], eax
push dword [ebp + 0xc]
call fcn.00445250
pop ecx
pop edi
pop esi
mov al, 1
pop ebx
leave
ret 0xc
Function at 0x43e52b
Capabilities:
Read file on windows

Disassembly:
mov eax, 0x4785ae
call fcn.00444d58
sub esp, 0xc
push ebx
push esi
mov esi, ecx
push edi
xor edi, edi
mov dword [ebp - 0x18], esi
or dword [esi + 0x11c], 0xffffffff
lea eax, [esi + 0x124]
mov dword [esi + 0x108], edi
mov dword [esi + 0x10c], edi
mov byte [esi + 0x110], 1
mov byte [esi + 0x111], 1
mov byte [esi + 0x112], 1
mov dword [esi + 0x118], edi
mov dword [eax], edi
mov dword [eax + 4], edi
mov dword [eax + 8], edi
push dword [ebp + 8]
lea ebx, [esi + 4]
mov dword [ebp - 4], edi
mov dword [esi], 0x47c090
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 1
push ebx
call fcn.0043e6ed
pop ecx
mov dword [esi + 0x114], eax
pop ecx
push edi
push 0x80
push 3
push edi
push 3
push SysReAllocStringLen
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [esi + 0x108], eax
jne 0x43e5d9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x118], eax
jmp 0x43e6da
push 0x2e
mov dword [esi + 0x10c], 1
call fcn.00444d77
push 0x2e
push edi
push eax
mov dword [esi + 0x120], eax
call fcn.004455c0
add esp, 0x10
mov ecx, esi
push edi
push edi
push dword [esi + 0x114]
push dword [esi + 0x108]
call fcn.0043f945
test eax, eax
je 0x43e6da
lea eax, [ebp - 0x14]
push edi
push eax
push 0x2e
push dword [esi + 0x120]
push dword [esi + 0x108]
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, edi
mov dword [ebp - 0x10], eax
je 0x43e6da
cmp dword [ebp - 0x14], edi
je 0x43e6da
mov ecx, esi
call fcn.0043ec03
test eax, eax
je 0x43e660
mov eax, dword [esi + 0x120]
mov ax, word [eax + 0xe]
cmp ax, di
jne 0x43e6cf
push edi
push ebx
call fcn.0043e6ed
cmp eax, dword [esi + 0x114]
pop ecx
pop ecx
jbe 0x43e677
mov dword [esi + 0x114], eax
push edi
push edi
push dword [esi + 0x114]
mov ecx, esi
push dword [esi + 0x108]
call fcn.0043f945
test eax, eax
je 0x43e6da
lea eax, [ebp - 0x10]
push edi
push eax
push 0x2e
push dword [esi + 0x120]
push dword [esi + 0x108]
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, edi
mov dword [ebp - 0x10], eax
je 0x43e6da
cmp dword [ebp - 0x14], edi
je 0x43e6da
mov ecx, esi
call fcn.0043ec03
test eax, eax
je 0x43e6da
mov eax, dword [esi + 0x120]
mov ax, word [eax + 0xe]
cmp ax, di
je 0x43e6da
movzx eax, ax
push eax
mov ecx, esi
call fcn.0043f843
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
Function at 0x43e9ae
Capabilities:
Get system information on windows
Read file via mapping

Disassembly:
mov eax, 0x4785e4
call fcn.00444d58
sub esp, 0x4c
push ebx
xor eax, eax
push esi
push edi
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x10], eax
mov edi, dword [ebp + 0x10]
mov dword [ebp - 4], eax
mov esi, dword [edi + 0xa8]
cmp esi, eax
je 0x43eab9
mov ebx, dword [ebp + 0xc]
lea eax, [ebp - 0x34]
push 0x1c
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x43e9f7
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x18], eax
push edi
push str..debug
call fcn.0043eb09
pop ecx
test eax, eax
pop ecx
je 0x43ea23
cmp dword [eax + 0xc], esi
jne 0x43ea23
mov ecx, dword [eax + 0x14]
mov edx, dword [edi + 0xac]
mov dword [ebp + 0xc], edx
mov edi, ecx
lea eax, [ecx + ebx]
mov dword [ebp + 0x10], edx
jmp 0x43ea76
push edi
push str..rdata
call fcn.0043eb09
pop ecx
pop ecx
mov ecx, eax
test ecx, ecx
jne 0x43ea49
push edi
push str..text
call fcn.0043eb09
pop ecx
pop ecx
mov ecx, eax
test ecx, ecx
je 0x43eab9
mov edi, dword [edi + 0xac]
push 0x1c
mov dword [ebp + 0x10], edi
mov eax, edi
xor edx, edx
pop edi
div edi
test eax, eax
mov dword [ebp + 0xc], eax
je 0x43eab9
sub esi, dword [ecx + 0xc]
mov eax, dword [ecx + 0x14]
lea ecx, [eax + esi]
mov edi, ecx
lea eax, [ecx + ebx]
mov ecx, dword [ebp + 0x10]
mov dword [ebp + 0x10], ecx
mov ecx, eax
sub ecx, ebx
cmp ecx, dword [ebp - 0x18]
jbe 0x43eac4
cmp dword [ebp + 8], 0
je 0x43eac4
lea eax, [ebp - 0x58]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, edi
xor edx, edx
div dword [ebp - 0x3c]
xor edx, edx
mov esi, eax
mov eax, edi
div dword [ebp - 0x3c]
imul esi, dword [ebp - 0x3c]
add edx, dword [ebp + 0x10]
push edx
push esi
push 0
push 4
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
test eax, eax
jne 0x43eabd
xor eax, eax
jmp 0x43eafa
mov dword [ebp - 0x10], eax
sub eax, esi
add eax, edi
mov edx, dword [ebp + 0xc]
test edx, edx
jbe 0x43eae3
add eax, 0x10
mov ecx, dword [eax]
mov esi, dword [eax + 8]
add esi, ecx
cmp esi, dword [ebp + 0x14]
jbe 0x43eadd
add dword [ebp - 0x14], ecx
add eax, 0x1c
dec edx
jne 0x43eace
cmp dword [ebp - 0x10], 0
je 0x43eaf7
mov eax, dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
test eax, eax
je 0x43eaf7
push dword [ebp - 0x10]
call eax
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x43f0a4
Capabilities:
Get common file path

Disassembly:
mov eax, 0x4786a8
call fcn.00444d58
sub esp, 0x3c
push ebx
push esi
push edi
mov edi, ecx
lea eax, [ebp - 0xd]
mov ebx, 0x47b5a0
mov esi, 0x47b598
push 0
push eax
mov dword [ebp - 0x14], edi
mov dword [edi], ebx
mov dword [edi + 0x20], esi
call fcn.00402b2c
and dword [ebp - 4], 0
lea eax, [ebp - 0xe]
push 0
push eax
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x28], esi
call fcn.00402b2c
mov esi, 0x104
lea eax, [ebp - 0x20]
push esi
push eax
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 1
call fcn.004024e5
mov ebx, eax
mov ecx, dword [ebx]
mov byte [ebp - 4], 2
call fcn.0040305e
push eax
push esi
mov dword [ebx + 8], eax
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 1
call fcn.004025f7
lea eax, [ebp - 0x20]
push esi
push eax
mov ecx, edi
call fcn.004024e5
mov esi, eax
mov ecx, dword [esi]
mov byte [ebp - 4], 3
call fcn.0040305e
push eax
push 0
push 0x4939e4
lea ecx, [ebp - 0x48]
mov dword [esi + 8], eax
call fcn.0040305e
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 1
call fcn.004025f7
and byte [ebp - 4], 0
lea ecx, [ebp - 0x48]
call fcn.00401f95
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x43f843
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
and dword [ebp - 4], 0
cmp dword [ebp + 8], 0
push ebx
push esi
push edi
mov edi, ecx
jle 0x43f8c0
mov esi, 0x138
push esi
call fcn.00444d77
mov ebx, eax
push esi
push 0
push ebx
call fcn.004455c0
add esp, 0x10
lea eax, [ebp - 8]
push 0
push eax
push esi
push ebx
push dword [edi + 0x108]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x43f8c0
cmp dword [ebp - 8], 0
je 0x43f8c0
push ebx
lea ecx, [edi + 0x124]
call fcn.0043fbfc
push 1
push 0
push dword [ebx + 0x10c]
mov ecx, edi
push dword [edi + 0x108]
call fcn.0043f945
test eax, eax
je 0x43f8c0
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
cmp eax, dword [ebp + 8]
jl 0x43f85c
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x43f981
Capabilities:
Clear file content
Get file size
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x440
push ebx
push esi
push edi
xor esi, esi
push 0x2e
lea eax, [ebp - 0x40]
push esi
mov edi, ecx
push eax
call fcn.004455c0
add esp, 0xc
lea eax, [ebp - 0xc]
mov ecx, edi
push eax
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 8]
call fcn.0043f26a
test eax, eax
je 0x43fad1
push esi
push 0x80
push 3
push esi
lea eax, [edi + 4]
push 3
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
mov dword [ebp + 8], ebx
je 0x43fac5
cmp dword [edi + 0x12c], 1
jbe 0x43fa32
mov eax, dword [edi + 0x114]
push 1
push esi
push eax
push ebx
mov ecx, edi
call fcn.0043f945
test eax, eax
je 0x43fad1
push dword [0x4939b8]
lea eax, [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov eax, dword [edi + 0x12c]
push esi
dec eax
mov word [ebp - 0x32], ax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x40]
push 0x2e
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp - 0xc]
push esi
add eax, 0xfffffec8
push esi
push eax
push ebx
mov ecx, edi
mov dword [ebp - 8], eax
call fcn.0043f945
test eax, eax
je 0x43fad1
mov eax, dword [ebp - 0x10]
push esi
push dword [ebp + 8]
mov ebx, dword [eax + 0x10c]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [ebp - 0xc]
add ecx, ebx
cmp ecx, eax
jne 0x43fa99
cmp dword [edi + 0x12c], 1
jne 0x43fa8b
push esi
push esi
push dword [edi + 0x114]
mov ecx, edi
push dword [ebp + 8]
call fcn.0043f945
test eax, eax
je 0x43fad1
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
jmp 0x43fb4f
mov eax, dword [ebp - 8]
push esi
push 0x80
push 3
lea ebx, [ebx + eax + 0x138]
push esi
push 3
lea eax, [edi + 4]
push SysReAllocStringLen
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp - 8], eax
jne 0x43fada
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi + 0x118], eax
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4
push 1
push esi
push ebx
push eax
mov ecx, edi
call fcn.0043f945
test eax, eax
je 0x43fad1
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
lea eax, [ebp - 4]
push esi
push eax
lea eax, [ebp - 0x440]
push 0x400
push eax
push dword [ebp - 8]
call ebx
test eax, eax
je 0x43fb3d
lea eax, [ebp - 4]
push esi
push eax
lea eax, [ebp - 0x440]
push dword [ebp - 4]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [ebp - 4], esi
je 0x43fb3d
lea eax, [ebp - 4]
push esi
push eax
lea eax, [ebp - 0x440]
push 0x400
push eax
push dword [ebp - 8]
jmp 0x43fb04
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x10]
mov ecx, edi
call fcn.0043fb6a
push 1
pop eax
jmp 0x43fad3
Function at 0x440429
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x144
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpyA]
push esi
mov esi, 0x498d98
push edi
push esi
push dword [ebp + 0xc]
xor edi, edi
mov dword [ebp - 0x10], edi
call ebx
push esi
push dword [ebp + 0x10]
call ebx
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov esi, eax
cmp esi, edi
je 0x4405b1
push esi
call fcn.00445339
push esi
push edi
push eax
mov dword [ebp - 8], eax
call fcn.004455c0
add esp, 0x10
push dword [ebp - 8]
push esi
push edi
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x4405a8
lea eax, [ebp - 0x44]
push 0x34
mov dword [ebp + 8], eax
lea eax, [ebp - 0x44]
push edi
push eax
call fcn.004455c0
add esp, 0xc
lea eax, [ebp - 4]
mov dword [ebp - 4], edi
push eax
lea eax, [ebp + 8]
push eax
push 0x491150
push dword [ebp - 8]
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x4404eb
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 8]
mov ecx, dword [ecx + 0xc]
movzx edx, cx
shr ecx, 0x10
push edx
push ecx
movzx ecx, ax
shr eax, 0x10
push ecx
push eax
push str._u._u._u._u
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x18
push 0x34
push edi
push dword [ebp + 8]
mov dword [ebp - 4], edi
call fcn.004455c0
add esp, 0xc
lea eax, [ebp - 4]
push eax
lea eax, [ebp + 8]
push eax
push str.VarFileInfoTranslation
push dword [ebp - 8]
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x4405a8
and byte [ebp - 0x144], 0
push 0x3f
pop ecx
xor eax, eax
lea edi, [ebp - 0x143]
mov esi, dword [ebp - 4]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [ebp + 8]
xor edi, edi
shr esi, 2
test esi, esi
mov dword [ebp + 0xc], eax
jle 0x4405a8
and dword [ebp - 0xc], 0
test edi, edi
jle 0x44054e
add dword [ebp + 0xc], 4
push 4
lea eax, [ebp - 0xc]
push dword [ebp + 0xc]
push eax
call fcn.004456b0
movzx eax, word [ebp - 0xc]
add esp, 0xc
test edi, edi
push eax
jne 0x44057f
lea eax, [ebp - 0x144]
push 0x491d8c
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
jmp 0x440597
push dword [ebp + 0x10]
lea eax, [ebp - 0x144]
push str._s__u
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x144]
push eax
push dword [ebp + 0x10]
call ebx
inc edi
cmp edi, esi
jl 0x440542
push dword [ebp - 8]
call fcn.00445250
pop ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x44067d
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x82c
push ebx
push esi
mov esi, dword [ebp + 0xc]
xor ebx, ebx
push str.KERNEL32
mov dword [ebp - 4], ebx
mov dword [esi], ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp eax, ebx
mov dword [ebp - 0x10], eax
je 0x440780
push edi
push str.GetDiskFreeSpaceExA
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
cmp edi, ebx
je 0x44070f
push dword [ebp + 8]
lea eax, [ebp - 0x82c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x82c]
push eax
call fcn.00440b98
test eax, eax
je 0x4406e7
lea eax, [ebp - 0x82c]
push eax
call fcn.00440984
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x82c]
push eax
call edi
test eax, eax
je 0x440776
cmp dword [ebp - 0x18], ebx
mov eax, dword [ebp - 0x1c]
je 0x44076d
mov eax, SysReAllocString
jmp 0x44076d
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], ebx
mov dword [ebp + 0xc], ebx
mov cl, byte [eax]
mov dword [ebp - 0x14], ebx
mov byte [ebp - 0x42c], cl
mov cl, byte [eax + 1]
mov al, byte [eax + 2]
mov byte [ebp - 0x42b], cl
mov byte [ebp - 0x42a], al
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x42c]
push eax
mov byte [ebp - 0x429], bl
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
test eax, eax
je 0x440776
mov eax, dword [ebp + 0xc]
imul eax, dword [ebp - 8]
imul eax, dword [ebp - 0xc]
shr eax, 0xa
mov dword [esi], eax
mov dword [ebp - 4], 1
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
mov eax, dword [ebp - 4]
pop esi
pop ebx
leave
ret

Function at 0x4407d4
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x400
push dword [0x4939e8]
lea eax, [ebp - 0x400]
push dword [ebp + 8]
push eax
call fcn.00440ae2
xor eax, eax
push eax
push 0x80
push 2
push eax
push eax
lea eax, [ebp - 0x400]
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
jne 0x440819
xor eax, eax
leave
ret
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x400]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 1
pop eax
leave
ret

Function at 0x440832
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 0x10]
xor eax, eax
mov byte [ebp + 0x11], 0x3a
mov byte [ebp + 0x12], 0x5c
mov byte [esi], al
mov byte [esi + 1], 0x3a
mov byte [esi + 2], 0x5c
mov byte [esi + 3], al
mov byte [ebp + 0x13], al
xor ebx, ebx
mov al, bl
add al, 0x41
mov byte [ebp + 0x10], al
lea eax, [ebp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, dword [ebp + 8]
jne 0x44088b
push dword [ebp + 0xc]
mov al, byte [ebp + 0x10]
mov byte [esi], al
push esi
call fcn.00440639
pop ecx
test eax, eax
pop ecx
je 0x44088b
push esi
call fcn.004407d4
test eax, eax
pop ecx
jne 0x440898
inc ebx
cmp ebx, 0x1a
jl 0x440856
or eax, 0xffffffff
pop esi
pop ebx
pop ebp
ret
xor eax, eax
jmp 0x440894
Function at 0x440a7e
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
and byte [ebp - 0x104], 0
push edi
push 0x40
xor eax, eax
pop ecx
lea edi, [ebp - 0x103]
rep stosd dword es:[edi], eax
push dword [ebp + 8]
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x104]
push eax
call fcn.00440a4d
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
pop edi
je 0x440adc
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 2
je 0x440ad7
cmp eax, 5
jne 0x440adc
push 1
pop eax
jmp 0x440ade
xor eax, eax
leave
ret 4

Function at 0x440bfa
Capabilities:
Create directory

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
push dword [esp + 0x18]
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
mov dword [esp + 0x14], 1
call edi
inc eax
inc eax
push eax
call fcn.00444d77
pop ecx
mov esi, eax
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x491150
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push esi
mov ebx, esi
call edi
mov edi, eax
xor ebp, ebp
test edi, edi
jbe 0x440c74
cmp byte [ebx], 0x5c
jne 0x440c67
and byte [ebx], 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x440c64
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x440c6f
mov byte [ebx], 0x5c
inc ebx
inc ebp
cmp ebp, edi
jb 0x440c42
jmp 0x440c74
and dword [esp + 0x10], 0
push esi
call fcn.00444394
mov eax, dword [esp + 0x14]
pop ecx
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 4

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

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x440c9f
test al, 0x10
jne 0x440c9f
push 1
pop eax
jmp 0x440ca1
xor eax, eax
ret 4

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

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x440cbc
test al, 0x10
je 0x440cbc
push 1
pop eax
jmp 0x440cbe
xor eax, eax
ret 4

Function at 0x440cc1
Capabilities:
Delete directory

Disassembly:
push edi
xor edi, edi
push dword [esp + 8]
call fcn.00440ca4
test eax, eax
je 0x440cf5
push esi
mov esi, dword [sym.imp.KERNEL32.dll_SetErrorMode]
push 0x8001
call esi
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
je 0x440cf0
push 1
pop edi
push 0
call esi
pop esi
mov eax, edi
pop edi
ret 4

Function at 0x440cfb
Capabilities:
Delete file
Set file attributes

Disassembly:
push esi
mov esi, dword [esp + 8]
push esi
call fcn.00440c87
test eax, eax
jne 0x440d0f
push 1
pop eax
jmp 0x440d4c
push ebx
push esi
xor ebx, ebx
call fcn.00440d50
test eax, eax
jne 0x440d49
push edi
mov edi, dword [sym.imp.KERNEL32.dll_SetErrorMode]
push 0x8001
call edi
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
je 0x440d44
push 1
pop ebx
push 0
call edi
pop edi
mov eax, ebx
pop ebx
pop esi
ret 4
Function at 0x440e9e
Capabilities:
Create process on windows
Create process suspended

Disassembly:
mov eax, 0x478874
call fcn.00444d58
sub esp, 0xb4
push ebx
push esi
push edi
push 1
pop edi
lea eax, [ebp + 0xb]
push edi
push eax
push dword [ebp + 8]
xor ebx, ebx
lea ecx, [ebp - 0x7c]
mov dword [ebp - 0x10], ebx
call fcn.0040175f
push 0x10
lea eax, [ebp - 0x2c]
push ebx
push eax
mov dword [ebp - 4], ebx
call fcn.004455c0
push 0x44
lea eax, [ebp - 0xc0]
pop esi
push esi
push ebx
push eax
call fcn.004455c0
add esp, 0x18
cmp dword [ebp + 0xc], ebx
mov dword [ebp - 0xc0], esi
mov dword [ebp - 0x94], edi
mov word [ebp - 0x90], bx
je 0x440f0b
mov word [ebp - 0x90], di
mov esi, dword [ebp - 0x74]
cmp esi, ebx
jne 0x440f17
mov esi, 0x47b578
push edi
lea eax, [ebp + 0xf]
mov edi, str.C:CodeBasesisdev_srcRuntimeMSISharedSetuputils.cpp
push eax
push edi
lea ecx, [ebp - 0x54]
call fcn.0040175f
mov eax, dword [eax + 8]
mov byte [ebp - 4], 1
cmp eax, ebx
jne 0x440f3a
mov eax, 0x47b578
mov dword [ebp - 0x18], eax
push esi
lea eax, [ebp - 0x18]
push str.Attempting_to_launch:__s
push eax
mov dword [ebp - 0x14], 0x512
call fcn.004084c8
add esp, 0xc
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], bl
call fcn.00401bc2
push dword [ebp - 0x70]
lea eax, [ebp - 0x1c]
lea ecx, [ebp - 0x7c]
push eax
call fcn.00408e31
mov esi, eax
mov ecx, dword [esi]
mov byte [ebp - 4], 2
call fcn.0040198d
lea ecx, [ebp - 0x2c]
mov dword [esi + 8], eax
push ecx
lea ecx, [ebp - 0xc0]
push ecx
push ebx
push ebx
push 0x20
push ebx
push ebx
push ebx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
lea ecx, [ebp - 0x1c]
mov esi, eax
mov byte [ebp - 4], bl
call fcn.00408e5e
cmp esi, ebx
je 0x44105a
push 0xff
push 0xffffffffffffffff
lea eax, [ebp - 0x2c]
push ebx
push eax
push 1
call dword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
cmp eax, ebx
je 0x440fec
cmp eax, 1
jne 0x440fec
push ebx
push ebx
push ebx
lea eax, [ebp - 0x48]
push ebx
push eax
call dword [sym.imp.USER32.dll_PeekMessageA]
cmp dword [ebp - 0x44], 0x11
je 0x440fec
cmp dword [ebp - 0x44], 0x10
je 0x440fec
cmp dword [ebp - 0x44], 0x12
jne 0x440faf
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov eax, dword [ebp - 0x10]
push dword [ebp - 0x2c]
mov dword [0x49b6ec], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, eax
lea eax, [ebp + 0xf]
push 1
push eax
push edi
lea ecx, [ebp - 0x54]
call fcn.0040175f
mov eax, dword [eax + 8]
mov byte [ebp - 4], 3
cmp eax, ebx
jne 0x44102b
mov eax, 0x47b578
push dword [ebp - 0x10]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
mov dword [ebp - 0x14], 0x533
push esi
push str.Launch_result__d__exit_code__d
push eax
call fcn.004084c8
add esp, 0x10
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], bl
call fcn.00401bc2
mov esi, dword [ebp - 0x10]
jmp 0x44105f
mov esi, 0xcccccccc
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x7c]
call fcn.00401bc2
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8