joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40c580
Capabilities:
Create process on windows

Disassembly:
enter 0x560, 0
push ebx
push ecx
push edx
mov esi, dword [ebp + 0xc]
lea edi, [ebp - 0x108]
call fcn.00401940
mov esi, dword [ebp + 8]
lea edi, [ebp - 0x208]
call fcn.00401940
lea eax, [ebp - 0x360]
push eax
lea ebx, [ebp - 0x108]
push ebx
call fcn.004094c0
lea edi, [ebp - 0x108]
lea esi, [ebp - 0x360]
call fcn.00401940
mov eax, esi
push eax
lea ebx, [ebp - 0x208]
push ebx
call fcn.004094c0
lea edi, [ebp - 0x208]
lea esi, [ebp - 0x360]
call fcn.00401940
lea eax, [ebp - 0x250]
push eax
push 0x44
call fcn.0040c6d0
mov dword [ebp - 0x250], 0x44
mov dword [ebp - 0x20c], 0x427968
lea esi, [ebp - 0x108]
lea edi, [ebp - 0x560]
call fcn.00401b30
mov esi, 0x42794e
call fcn.00401af0
mov esi, edi
lea edi, [ebp - 0x460]
call fcn.00401b30
lea esi, [ebp - 0x208]
call fcn.00401af0
mov esi, edi
lea edi, [ebp - 0x360]
call fcn.00401b30
mov esi, 0x427950
call fcn.00401af0
mov edi, 0x427967
lea esi, [ebp - 0x360]
call fcn.00401940
lea eax, [ebp - 0x260]
push eax
lea ebx, [ebp - 0x250]
push ebx
push 0
push 0
push 0x220
push 0
push 0
push 0
push 0x427968
push 0
call sub.kernel32.dll_CreateProcessA
test al, al
jne 0x40c6bd
cmp dword [0x454e7e], 1
jg 0x40c6ad
push 0
push 0x427952
push dword [ebp - 0x20c]
push 0
call sub.user32.dll_MessageBoxA
cmp dword [0x454e7e], 0
jne 0x40c6bd
push 0
call fcn.00404e20
pop edx
pop ecx
pop ebx
leave
ret 8
Function at 0x413ab0
Capabilities:
Create process on windows

Disassembly:
enter 0x514, 0
push ebx
push ecx
push edx
lea edi, [ebp - 0x214]
mov esi, 0x42965c
call fcn.00401940
mov dword [ebp - 0xc], 0xffffffff
mov eax, 0
mov ecx, pe_nt_image_headers32
lea edi, [ebp - 0x10c]
jecxz 0x413ae2
rep stosb byte es:[edi], al
mov esi, 0x42965e
lea edi, [ebp - 0x414]
call fcn.00401b30
lea eax, [ebp - 0x514]
push eax
push dword [ebp + 8]
call fcn.00403b60
lea esi, [ebp - 0x514]
lea edi, [ebp - 0x414]
call fcn.00401af0
mov esi, edi
lea edi, [ebp - 0x314]
call fcn.00401b30
mov esi, 0x429674
call fcn.00401af0
lea edi, [ebp - 0x10c]
lea esi, [ebp - 0x314]
call fcn.00401940
mov eax, 0
mov ecx, 0x44
mov edi, 0x4633eb
jecxz 0x413b4d
rep stosb byte es:[edi], al
mov eax, 0
mov ecx, 0x10
mov edi, 0x4633db
jecxz 0x413b60
rep stosb byte es:[edi], al
mov dword [0x4633eb], 0x44
mov dword [ebp - 0x110], 0x103
push 0
call sub.kernel32.dll_SetLastError
call fcn.00402770
test eax, eax
je 0x413b84
call fcn.004067f0
test al, al
je 0x413b9d
mov al, byte [0x427e15]
test al, al
je 0x413b9b
jmp 0x413cab
jmp 0x413b84
push 1
push 0x64
call sub.kernel32.dll_SleepEx
call fcn.004067f0
test al, al
je 0x413bbf
mov al, byte [0x427e15]
test al, al
je 0x413bbd
jmp 0x413cab
jmp 0x413ba6
push 1
push 0x64
call sub.kernel32.dll_SleepEx
push 0x4633db
push 0x4633eb
push 0
push 0
push 0x30
push 1
push 0
push 0
lea eax, [ebp - 0x10b]
push eax
push 0
call sub.kernel32.dll_CreateProcessA
test al, al
jne 0x413c11
push 0
push 0x429676
push 0x429694
push 0
call sub.user32.dll_MessageBoxA
push 0
call sub.user32.dll_PostQuitMessage
push 0
call fcn.00404e20
call fcn.004067f0
test al, al
je 0x413c1c
jmp 0x413c11
push 1
push 0x64
call sub.kernel32.dll_SleepEx
call fcn.004067f0
test al, al
je 0x413c30
jmp 0x413c25
push 1
push 0xa
call sub.kernel32.dll_SleepEx
call sub.kernel32.dll_GetLastError
mov dword [ebp - 0x114], eax
push 0x1388
push dword [0x4633db]
call sub.user32.dll_WaitForInputIdle
mov dword [ebp - 0x114], eax
push 0x64
call sub.kernel32.dll_Sleep
lea eax, [ebp - 0x110]
push eax
push dword [0x4633db]
call sub.kernel32.dll_GetExitCodeProcess
test al, al
jne 0x413c77
cmp dword [ebp - 0x110], 0x103
je 0x413c5a
push dword [0x4633db]
call sub.kernel32.dll_CloseHandle
push dword [0x4633df]
call sub.kernel32.dll_CloseHandle
cmp dword [ebp - 0x110], 0
jbe 0x413cab
mov eax, dword [ebp - 0x110]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
pop edx
pop ecx
pop ebx
leave
ret 4
Function at 0x416e70
Capabilities:
Copy file

Disassembly:
enter 0x434, 0
push ebx
push ecx
push edx
mov eax, 0
mov dword [ebp - 0xc], eax
mov edi, 0
mov dword [0x4285f4], edi
mov eax, 0
mov dword [0x4285f0], eax
mov al, byte [0x425c01]
mov byte [0x425046], al
movzx eax, byte [0x427f18]
imul eax, eax, 0x79
lea esi, [eax + 0x45851f]
lea edi, [ebp - 0x334]
call fcn.00401b30
mov esi, 0x4284f0
call fcn.00401af0
mov edi, 0x4283e4
lea esi, [ebp - 0x334]
call fcn.00401940
mov esi, edi
lea edi, [ebp - 0x434]
call fcn.00401b30
mov esi, 0x42e3bb
call fcn.00401af0
mov esi, edi
lea edi, [ebp - 0x334]
call fcn.00401b30
mov esi, 0x42e3c0
call fcn.00401af0
lea edi, [ebp - 0x232]
lea esi, [ebp - 0x334]
call fcn.00401940
mov esi, 0x4283e4
lea edi, [ebp - 0x334]
call fcn.00401b30
mov esi, 0x42e3c2
call fcn.00401af0
mov edi, 0x4283e4
lea esi, [ebp - 0x334]
call fcn.00401940
push 0
lea eax, [ebp - 0x231]
push eax
push 0x4283e5
call sub.kernel32.dll_CopyFileA
test al, al
jne 0x416f6f
push 0x43074c
push 0x19
push 0x42e3c4
push 0
call fcn.00403350
call fcn.00403330
lea eax, [ebp - 0x12a]
push eax
push 0x4283e4
call fcn.00401e60
lea ebx, [ebp - 0x12a]
push ebx
push 1
call fcn.0040e290
mov al, byte [0x425c01]
mov byte [0x425046], al
mov eax, dword [0x4284ec]
imul eax, eax, 0x100
mov dword [ebp - 0x12e], eax
push 0x43074c
push 0xc
push 0x42e3dd
push 0
call fcn.00403350
push dword [ebp - 0x12e]
push 0
call fcn.00404230
push 8
push 0x42e3e9
push 0
call fcn.00403350
push dword [0x4284ec]
push 0
call fcn.00404230
push 0x10
push 0x42e3f1
push 0
call fcn.00403350
push pe_nt_image_headers32
push 0
call fcn.00404230
push 7
push 0x42e401
push 0
call fcn.00403350
call fcn.00402770
push eax
push 0
call fcn.00404230
call fcn.00403330
lea eax, [ebp - 0x12a]
push eax
push dword [0x42830a]
push dword [ebp - 0x12e]
push 1
call fcn.0040e1d0
mov dword [ebp - 0x132], eax
push 0x43074c
push 0xf
push 0x42e408
push 0
call fcn.00403350
push dword [ebp - 0x12e]
push 0
call fcn.00404230
push 8
push 0x42e417
push 0
call fcn.00403350
push dword [0x4284ec]
push 0
call fcn.00404230
push 0x10
push 0x42e41f
push 0
call fcn.00403350
push pe_nt_image_headers32
push 0
call fcn.00404230
push 7
push 0x42e42f
push 0
call fcn.00403350
call fcn.00402770
push eax
push 0
call fcn.00404230
call fcn.00403330
mov eax, dword [ebp - 0x12e]
cmp dword [ebp - 0x132], eax
je 0x4170e6
push 0x43074c
push 0xe
push 0x42e436
push 0
call fcn.00403350
push dword [ebp - 0x132]
push 0
call fcn.00404230
call fcn.00403330
lea eax, [ebp - 0x12a]
push eax
call fcn.00401d90
call fcn.00402770
test eax, eax
je 0x417124
mov esi, 0x42e444
lea edi, [ebp - 0x334]
call fcn.00401b30
mov esi, 0x4284f0
call fcn.00401af0
mov eax, edi
push eax
call fcn.004032a0
push 0
call fcn.00404e20
call fcn.0040fba0
mov dword [ebp + 0x14], 2
mov eax, dword [0x425b93]
mov dword [ebp + 8], eax
call fcn.00406700
cmp dword [0x426549], 0
je 0x41715d
push dword [ebp + 8]
push dword [ebp + 0x14]
push dword [0x425b8f]
push dword [0x426549]
call sub.user32.dll_PostMessageA
mov eax, dword [ebp - 0xc]
pop edx
pop ecx
pop ebx
leave
ret 0x10
Function at 0x417490
Capabilities:
Create process on windows

Disassembly:
enter 0x814, 0
push ebx
push ecx
push edx
mov esi, dword [ebp + 0xc]
lea edi, [ebp - 0x10c]
call fcn.00401940
lea edi, [ebp - 0x314]
mov esi, 0x42e500
call fcn.00401940
mov eax, 0
mov dword [ebp - 0xc], eax
mov eax, 0
mov ecx, pe_nt_image_headers32
lea edi, [ebp - 0x20c]
jecxz 0x4174d1
rep stosb byte es:[edi], al
mov esi, 0x42e502
lea edi, [ebp - 0x714]
call fcn.00401b30
lea esi, [ebp - 0x10c]
call fcn.00401af0
mov esi, edi
lea edi, [ebp - 0x614]
call fcn.00401b30
mov esi, 0x42e50d
call fcn.00401af0
mov esi, edi
lea edi, [ebp - 0x514]
call fcn.00401b30
lea eax, [ebp - 0x814]
push eax
push dword [ebp + 8]
call fcn.00403b60
lea esi, [ebp - 0x814]
lea edi, [ebp - 0x514]
call fcn.00401af0
mov esi, edi
lea edi, [ebp - 0x414]
call fcn.00401b30
mov esi, 0x42e50f
call fcn.00401af0
lea edi, [ebp - 0x20c]
lea esi, [ebp - 0x414]
call fcn.00401940
mov eax, 0
mov ecx, 0x44
mov edi, 0x4633eb
jecxz 0x41756b
rep stosb byte es:[edi], al
mov eax, 0
mov ecx, 0x10
mov edi, 0x4633db
jecxz 0x41757e
rep stosb byte es:[edi], al
mov dword [0x4633eb], 0x44
mov dword [ebp - 0x210], 0x103
push 0
call sub.kernel32.dll_SetLastError
call fcn.00402770
test eax, eax
je 0x4175a2
call fcn.004067f0
test al, al
je 0x4175bb
mov al, byte [0x427e15]
test al, al
je 0x4175b9
jmp 0x4176c9
jmp 0x4175a2
push 1
push 0x64
call sub.kernel32.dll_SleepEx
call fcn.004067f0
test al, al
je 0x4175dd
mov al, byte [0x427e15]
test al, al
je 0x4175db
jmp 0x4176c9
jmp 0x4175c4
push 1
push 0x64
call sub.kernel32.dll_SleepEx
push 0x4633db
push 0x4633eb
push 0
push 0
push 0x30
push 1
push 0
push 0
lea eax, [ebp - 0x20b]
push eax
push 0
call sub.kernel32.dll_CreateProcessA
test al, al
jne 0x41762f
push 0
push 0x42e511
push 0x42e52f
push 0
call sub.user32.dll_MessageBoxA
push 0
call sub.user32.dll_PostQuitMessage
push 0
call fcn.00404e20
call fcn.004067f0
test al, al
je 0x41763a
jmp 0x41762f
push 1
push 0x64
call sub.kernel32.dll_SleepEx
call fcn.004067f0
test al, al
je 0x41764e
jmp 0x417643
push 1
push 0xa
call sub.kernel32.dll_SleepEx
call sub.kernel32.dll_GetLastError
mov dword [ebp - 0x214], eax
push 0x1388
push dword [0x4633db]
call sub.user32.dll_WaitForInputIdle
mov dword [ebp - 0x214], eax
push 0x64
call sub.kernel32.dll_Sleep
lea eax, [ebp - 0x210]
push eax
push dword [0x4633db]
call sub.kernel32.dll_GetExitCodeProcess
test al, al
jne 0x417695
cmp dword [ebp - 0x210], 0x103
je 0x417678
push dword [0x4633db]
call sub.kernel32.dll_CloseHandle
push dword [0x4633df]
call sub.kernel32.dll_CloseHandle
cmp dword [ebp - 0x210], 0
jbe 0x4176c9
mov eax, dword [ebp - 0x210]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
pop edx
pop ecx
pop ebx
leave
ret 8
Function at 0x4192b0
Capabilities:
Create process on windows

Disassembly:
enter 0x814, 0
push ebx
push ecx
push edx
mov esi, dword [ebp + 0xc]
lea edi, [ebp - 0x10c]
call fcn.00401940
lea edi, [ebp - 0x314]
mov esi, 0x42e9b7
call fcn.00401940
mov eax, 0
mov dword [ebp - 0xc], eax
mov eax, 0
mov ecx, pe_nt_image_headers32
lea edi, [ebp - 0x20c]
jecxz 0x4192f1
rep stosb byte es:[edi], al
mov esi, 0x42e9b9
lea edi, [ebp - 0x714]
call fcn.00401b30
lea esi, [ebp - 0x10c]
call fcn.00401af0
mov esi, edi
lea edi, [ebp - 0x614]
call fcn.00401b30
mov esi, 0x42e9c4
call fcn.00401af0
mov esi, edi
lea edi, [ebp - 0x514]
call fcn.00401b30
lea eax, [ebp - 0x814]
push eax
push dword [ebp + 8]
call fcn.00403b60
lea esi, [ebp - 0x814]
lea edi, [ebp - 0x514]
call fcn.00401af0
mov esi, edi
lea edi, [ebp - 0x414]
call fcn.00401b30
mov esi, 0x42e9c6
call fcn.00401af0
lea edi, [ebp - 0x20c]
lea esi, [ebp - 0x414]
call fcn.00401940
mov eax, 0
mov ecx, 0x44
mov edi, 0x4633eb
jecxz 0x41938b
rep stosb byte es:[edi], al
mov eax, 0
mov ecx, 0x10
mov edi, 0x4633db
jecxz 0x41939e
rep stosb byte es:[edi], al
mov dword [0x4633eb], 0x44
mov dword [ebp - 0x210], 0x103
push 0
call sub.kernel32.dll_SetLastError
call fcn.00402770
test eax, eax
je 0x4193c2
call fcn.004067f0
test al, al
je 0x4193db
mov al, byte [0x427e15]
test al, al
je 0x4193d9
jmp 0x4194ec
jmp 0x4193c2
push 1
push 0x64
call sub.kernel32.dll_SleepEx
call fcn.004067f0
test al, al
je 0x4193fd
mov al, byte [0x427e15]
test al, al
je 0x4193fb
jmp 0x4194ec
jmp 0x4193e4
push 1
push 0x64
call sub.kernel32.dll_SleepEx
push 0x4633db
push 0x4633eb
push 0
push 0
push 0x4000020
push 1
push 0
push 0
lea eax, [ebp - 0x20b]
push eax
push 0
call sub.kernel32.dll_CreateProcessA
test al, al
jne 0x419452
push 0
push 0x42e9c8
push 0x42e9e6
push 0
call sub.user32.dll_MessageBoxA
push 0
call sub.user32.dll_PostQuitMessage
push 0
call fcn.00404e20
call fcn.004067f0
test al, al
je 0x41945d
jmp 0x419452
push 1
push 0x64
call sub.kernel32.dll_SleepEx
call fcn.004067f0
test al, al
je 0x419471
jmp 0x419466
push 1
push 0xa
call sub.kernel32.dll_SleepEx
call sub.kernel32.dll_GetLastError
mov dword [ebp - 0x214], eax
push 0x1388
push dword [0x4633db]
call sub.user32.dll_WaitForInputIdle
mov dword [ebp - 0x214], eax
push 0x64
call sub.kernel32.dll_Sleep
lea eax, [ebp - 0x210]
push eax
push dword [0x4633db]
call sub.kernel32.dll_GetExitCodeProcess
test al, al
jne 0x4194b8
cmp dword [ebp - 0x210], 0x103
je 0x41949b
push dword [0x4633db]
call sub.kernel32.dll_CloseHandle
push dword [0x4633df]
call sub.kernel32.dll_CloseHandle
cmp dword [ebp - 0x210], 0
jbe 0x4194ec
mov eax, dword [ebp - 0x210]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
pop edx
pop ecx
pop ebx
leave
ret 8
Function at 0x419e50
Capabilities:
Create process on windows

Disassembly:
enter 0x514, 0
push ebx
push ecx
push edx
lea edi, [ebp - 0x214]
mov esi, 0x42eb14
call fcn.00401940
mov dword [ebp - 0xc], 0xffffffff
mov eax, 0
mov ecx, pe_nt_image_headers32
lea edi, [ebp - 0x10c]
jecxz 0x419e82
rep stosb byte es:[edi], al
mov esi, 0x42eb16
lea edi, [ebp - 0x414]
call fcn.00401b30
lea eax, [ebp - 0x514]
push eax
push dword [ebp + 8]
call fcn.00403b60
lea esi, [ebp - 0x514]
lea edi, [ebp - 0x414]
call fcn.00401af0
mov esi, edi
lea edi, [ebp - 0x314]
call fcn.00401b30
mov esi, 0x42eb2b
call fcn.00401af0
lea edi, [ebp - 0x10c]
lea esi, [ebp - 0x314]
call fcn.00401940
mov eax, 0
mov ecx, 0x44
mov edi, 0x4633eb
jecxz 0x419eed
rep stosb byte es:[edi], al
mov eax, 0
mov ecx, 0x10
mov edi, 0x4633db
jecxz 0x419f00
rep stosb byte es:[edi], al
mov dword [0x4633eb], 0x44
mov dword [ebp - 0x110], 0x103
push 0
call sub.kernel32.dll_SetLastError
call fcn.00402770
test eax, eax
je 0x419f24
call fcn.004067f0
test al, al
je 0x419f3d
mov al, byte [0x427e15]
test al, al
je 0x419f3b
jmp 0x41a04b
jmp 0x419f24
push 1
push 0x64
call sub.kernel32.dll_SleepEx
call fcn.004067f0
test al, al
je 0x419f5f
mov al, byte [0x427e15]
test al, al
je 0x419f5d
jmp 0x41a04b
jmp 0x419f46
push 1
push 0x64
call sub.kernel32.dll_SleepEx
push 0x4633db
push 0x4633eb
push 0
push 0
push 0x30
push 1
push 0
push 0
lea eax, [ebp - 0x10b]
push eax
push 0
call sub.kernel32.dll_CreateProcessA
test al, al
jne 0x419fb1
push 0
push 0x42eb2d
push 0x42eb4b
push 0
call sub.user32.dll_MessageBoxA
push 0
call sub.user32.dll_PostQuitMessage
push 0
call fcn.00404e20
call fcn.004067f0
test al, al
je 0x419fbc
jmp 0x419fb1
push 1
push 0x64
call sub.kernel32.dll_SleepEx
call fcn.004067f0
test al, al
je 0x419fd0
jmp 0x419fc5
push 1
push 0xa
call sub.kernel32.dll_SleepEx
call sub.kernel32.dll_GetLastError
mov dword [ebp - 0x114], eax
push 0x1388
push dword [0x4633db]
call sub.user32.dll_WaitForInputIdle
mov dword [ebp - 0x114], eax
push 0x64
call sub.kernel32.dll_Sleep
lea eax, [ebp - 0x110]
push eax
push dword [0x4633db]
call sub.kernel32.dll_GetExitCodeProcess
test al, al
jne 0x41a017
cmp dword [ebp - 0x110], 0x103
je 0x419ffa
push dword [0x4633db]
call sub.kernel32.dll_CloseHandle
push dword [0x4633df]
call sub.kernel32.dll_CloseHandle
cmp dword [ebp - 0x110], 0
jbe 0x41a04b
mov eax, dword [ebp - 0x110]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
pop edx
pop ecx
pop ebx
leave
ret 4
Function at 0x41eb90
Capabilities:
Timestomp file

Disassembly:
enter 0x24, 0
push ebx
push ecx
push edx
lea eax, [ebp - 0x18]
push eax
call sub.kernel32.dll_GetLocalTime
lea ebx, [ebp - 0x20]
push ebx
lea eax, [ebp - 0x18]
push eax
call sub.kernel32.dll_SystemTimeToFileTime
test al, al
jne 0x41ebb1
push 0
push 0x80
push 3
push 0
push 0
push 0x40000000
push dword [ebp + 8]
call sub.kernel32.dll_CreateFileA
mov dword [ebp - 0x24], eax
lea ebx, [ebp - 0x20]
push ebx
push ebx
push ebx
push dword [ebp - 0x24]
call sub.kernel32.dll_SetFileTime
test al, al
jne 0x41ebe0
push dword [ebp - 0x24]
call sub.kernel32.dll_CloseHandle
test al, al
jne 0x41ebec
pop edx
pop ecx
pop ebx
leave
ret 4
Function at 0x402077
Capabilities:
Delete file
Get file size
Read file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x74]
sub esp, 0x98
mov eax, dword [0x42f180]
xor eax, ebp
mov dword [ebp + 0x70], eax
mov eax, dword [ebp + 0x7c]
push ebx
push esi
push edi
xor ebx, ebx
push ebx
push ebx
mov dword [ebp - 0x20], eax
call fcn.004240fc
pop ecx
pop ecx
push ebx
push 0x80000080
push 2
push ebx
push 1
push 0xc0000000
push eax
mov dword [ebp - 0x24], eax
call dword [sym.imp.kernel32.dll_CreateFileA]
mov esi, dword [sym.imp.kernel32.dll_GetStdHandle]
push 0xfffffffffffffff5
mov dword [ebp - 0x14], eax
call esi
push 0xfffffffffffffff4
mov dword [ebp - 0x1c], eax
call esi
push dword [ebp - 0x14]
mov esi, dword [sym.imp.kernel32.dll_SetStdHandle]
push 0xfffffffffffffff5
mov dword [ebp - 0x18], eax
call esi
push dword [ebp - 0x14]
push 0xfffffffffffffff4
call esi
mov ecx, 0x431440
call fcn.00401a9d
mov edi, eax
cmp edi, ebx
jne 0x40211f
call dword [sym.imp.kernel32.dll_GetLastError]
push eax
lea eax, [ebp - 0x10]
push str.Cant_load_Python_for_pre_install_script___d_
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [ebp - 0x10]
push eax
call fcn.00401654
add esp, 0x10
or eax, 0xffffffff
jmp 0x4021f7
push dword [ebp - 0x20]
call fcn.0040944e
pop ecx
push edi
mov dword [ebp - 0x20], eax
call dword [sym.imp.kernel32.dll_FreeLibrary]
push dword [ebp - 0x1c]
push 0xfffffffffffffff5
call esi
push dword [ebp - 0x18]
push 0xfffffffffffffff4
call esi
cmp dword [ebp - 0x20], ebx
je 0x4021e2
mov eax, str.Running_the_pre_installation_script_failed_r_n
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x402151
push ebx
push dword [ebp - 0x14]
sub eax, edx
mov edi, eax
call dword [sym.imp.kernel32.dll_GetFileSize]
mov dword [ebp - 0x18], eax
cmp eax, 0xffffffff
jne 0x402175
mov dword [ebp - 0x18], 0x1000
mov eax, dword [ebp - 0x18]
lea eax, [eax + edi + 1]
push eax
call fcn.0040944e
mov esi, eax
pop ecx
cmp esi, ebx
je 0x4021d7
mov eax, str.Running_the_pre_installation_script_failed_r_n
mov edx, esi
mov dword [ebp - 0x1c], ebx
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
cmp cl, bl
jne 0x402195
push ebx
push ebx
push ebx
push dword [ebp - 0x14]
call dword [sym.imp.kernel32.dll_SetFilePointer]
push ebx
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x18]
lea eax, [esi + edi]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.kernel32.dll_ReadFile]
mov eax, dword [ebp - 0x1c]
add eax, esi
push esi
mov byte [eax + edi], bl
call fcn.00401654
push esi
call fcn.00407f30
pop ecx
jmp 0x4021e1
push str.Out_of_memory_
call fcn.00401654
pop ecx
push dword [ebp - 0x14]
call dword [sym.imp.kernel32.dll_CloseHandle]
push dword [ebp - 0x24]
call dword [sym.imp.kernel32.dll_DeleteFileA]
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp + 0x70]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00407875
add ebp, 0x74
leave
ret
Function at 0x4024ca
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x94]
sub esp, 0x114
mov eax, dword [0x42f180]
xor eax, ebp
mov dword [ebp + 0x90], eax
mov eax, dword [ebp + 0x9c]
mov dword [ebp - 0x78], ecx
lea ecx, [edx + eax - 0x16]
sub eax, dword [ecx + 0x10]
push esi
sub eax, dword [ecx + 0xc]
push edi
mov edi, dword [ebp + 0xa0]
sub eax, 0x22
lea esi, [edx + eax]
xor edx, edx
mov dword [edi], edx
mov dword [ebx], edx
cmp dword [ecx], 0x6054b50
mov dword [ebp - 0x80], edi
jne 0x40260f
cmp dword [esi], 0x1234567b
je 0x402534
push edx
mov edi, str.Invalid_cfgdata_magic_number__see_bdist_wininst.py_
call fcn.0040944e
pop ecx
jmp 0x402611
cmp eax, edx
jl 0x40260f
mov ecx, dword [esi + 8]
cmp ecx, edx
je 0x402550
mov edx, esi
sub edx, dword [esi + 4]
sub edx, ecx
mov dword [0x431560], edx
sub eax, dword [esi + 4]
mov ecx, dword [ebp - 0x78]
sub eax, dword [esi + 8]
mov edi, esi
mov dword [ecx], eax
sub edi, dword [esi + 4]
push 0x104
call fcn.0040944e
pop ecx
mov dword [ebp - 0x7c], eax
test eax, eax
je 0x40260f
lea eax, [ebp - 0x74]
push eax
push 0x104
call dword [sym.imp.kernel32.dll_GetTempPathA]
test eax, eax
je 0x4025fd
push dword [ebp - 0x7c]
lea eax, [ebp - 0x74]
push 0
push 0x4259a8
push eax
call dword [sym.imp.kernel32.dll_GetTempFileNameA]
test eax, eax
je 0x4025fd
xor eax, eax
push eax
push eax
push eax
push dword [esi + 4]
push eax
push dword [ebp - 0x7c]
push 2
call fcn.0040944e
add esp, 0x1c
mov dword [ebp - 0x78], eax
test eax, eax
je 0x40260f
push dword [esi + 4]
push edi
push eax
call fcn.00408be0
mov eax, dword [ebp - 0x78]
add esp, 0xc
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4025d1
sub eax, esi
lea eax, [eax + edi + 1]
push eax
call fcn.0040944e
pop ecx
mov ecx, dword [ebp - 0x80]
push dword [ebp - 0x78]
mov dword [ecx], eax
mov eax, dword [ebp - 0x7c]
mov dword [ebx], eax
call dword [sym.imp.kernel32.dll_UnmapViewOfFile]
xor eax, eax
inc eax
jmp 0x402611
call dword [sym.imp.kernel32.dll_GetLastError]
push eax
mov edi, str.Could_not_create_temporary_file
call fcn.0040944e
pop ecx
xor eax, eax
mov ecx, dword [ebp + 0x90]
pop edi
xor ecx, ebp
pop esi
call fcn.00407875
add ebp, 0x94
leave
ret
Function at 0x4029b0
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x90]
sub esp, 0x110
mov eax, dword [0x42f180]
xor eax, ebp
mov dword [ebp + 0x8c], eax
mov eax, dword [ebp + 0x98]
push ebx
lea ecx, [ebp - 0x68]
push ecx
push 0x20019
xor ebx, ebx
push ebx
mov dword [ebp - 0x74], eax
mov eax, dword [ebp + 0x9c]
push str.SoftwarePythonPythonCore
push eax
mov dword [ebp - 0x7c], eax
mov dword [ebp - 0x6c], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x402a04
xor eax, eax
jmp 0x402b41
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp + 0x3c]
push eax
push ebx
push dword [ebp - 0x68]
mov dword [ebp - 0x70], 0x50
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x402b35
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov esi, dword [ebp + 0xa0]
inc dword [ebp - 0x6c]
mov dword [ebp - 0x70], 0x50
cmp esi, ebx
je 0x402a77
cmp byte [esi], bl
je 0x402a77
lea eax, [ebp + 0x3c]
mov cl, byte [esi]
cmp cl, byte [eax]
jne 0x402a6a
cmp cl, bl
je 0x402a66
mov cl, byte [esi + 1]
cmp cl, byte [eax + 1]
jne 0x402a6a
inc esi
inc esi
inc eax
inc eax
cmp cl, bl
jne 0x402a4c
xor eax, eax
jmp 0x402a6f
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x402b13
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [ebp + 0x3c]
push eax
lea eax, [ebp - 0x14]
push str.Python_Version__s__found_in_registry_
push eax
call esi
lea eax, [ebp + 0x3c]
push eax
lea eax, [ebp - 0x64]
push str.SoftwarePythonPythonCore_sInstallPath
push eax
call esi
add esp, 0x18
lea eax, [ebp - 0x78]
push eax
push 0x20019
push ebx
lea eax, [ebp - 0x64]
push eax
push dword [ebp - 0x7c]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x402b13
push 0x10c
call fcn.0040944e
mov esi, eax
pop ecx
mov dword [ebp - 0x80], 0x105
cmp esi, ebx
je 0x402b0a
lea eax, [ebp - 0x80]
push eax
push esi
push ebx
push ebx
push ebx
push dword [ebp - 0x78]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x402b0a
lea eax, [ebp - 0x14]
push eax
push ebx
push 0x180
push dword [ebp - 0x74]
call edi
mov ecx, dword [ebp - 0x7c]
push esi
push eax
push 0x19a
push dword [ebp - 0x74]
mov dword [esi + 0x108], ecx
call edi
push dword [ebp - 0x78]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp + 0x3c]
push eax
push dword [ebp - 0x6c]
push dword [ebp - 0x68]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
je 0x402a31
pop edi
pop esi
push dword [ebp - 0x68]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
inc eax
mov ecx, dword [ebp + 0x8c]
xor ecx, ebp
pop ebx
call fcn.00407875
add ebp, 0x90
leave
ret