joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41d191
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
mov eax, dword [0x38ad078]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x60], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp + 0x10]
push edi
mov dword [ebp - 0x4c], eax
lea eax, [ebp - 0x38]
mov edi, ecx
push eax
mov esi, edx
push edi
mov dword [ebp - 0x44], edi
mov dword [ebp - 0x50], esi
call dword [0x38a0110]
test eax, eax
jne 0x41d1d9
mov eax, 0x200
jmp 0x41d35d
mov ecx, dword [ebp - 0x38]
xor eax, eax
xor ebx, ebx
inc eax
mov dword [ebp - 0x40], ecx
and dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], ebx
je 0x41d1ef
mov dword [ebp - 0x3c], eax
test cl, 2
je 0x41d1f8
or dword [ebp - 0x3c], 2
test cl, 4
je 0x41d201
or dword [ebp - 0x3c], 4
mov eax, ecx
and eax, 0x10
je 0x41d20c
or dword [ebp - 0x3c], 0x10
test cl, 0x20
je 0x41d215
or dword [ebp - 0x3c], 0x20
cmp eax, ebx
je 0x41d222
or dword [ebp - 0x3c], 0x40000000
jmp 0x41d229
or dword [ebp - 0x3c], 0x80000000
or dword [ebp - 0x3c], 0x1000000
cmp dword [ebp - 0x40], ebx
jne 0x41d23c
or dword [ebp - 0x3c], 0x800000
push ebx
push edi
call dword [0x38a00ec]
mov dword [ebp - 0x48], eax
cmp eax, 0x28
jbe 0x41d2e0
mov esi, dword [0x38a00f0]
push ebx
push ebx
push ebx
push edi
call esi
push ebx
lea eax, [ebp - 0x54]
push eax
push 2
lea eax, [ebp - 0x40]
push eax
push edi
mov edi, dword [0x38a0068]
call edi
push ebx
push ebx
push 0x24
push dword [ebp - 0x44]
call esi
push ebx
lea eax, [ebp - 0x54]
push eax
push 4
lea eax, [ebp - 0x64]
push eax
push dword [ebp - 0x44]
call edi
mov eax, 0x54ad
cmp word [ebp - 0x40], ax
jne 0x41d2dd
mov eax, dword [ebp - 0x64]
lea ecx, [eax + 0x34]
cmp dword [ebp - 0x48], ecx
jbe 0x41d2dd
push ebx
push ebx
push eax
push dword [ebp - 0x44]
call esi
push ebx
lea eax, [ebp - 0x54]
push eax
push 4
lea eax, [ebp - 0x58]
push eax
push dword [ebp - 0x44]
call edi
mov eax, dword [ebp - 0x58]
cmp eax, 0x5a4d
je 0x41d2d6
cmp eax, 0x454e
je 0x41d2d6
cmp eax, 0x454c
je 0x41d2d6
cmp eax, 0x4550
jne 0x41d2dd
or dword [ebp - 0x3c], 0x400000
mov esi, dword [ebp - 0x50]
mov eax, dword [ebp - 0x60]
cmp eax, ebx
je 0x41d2ec
mov ecx, dword [ebp - 0x3c]
mov dword [eax], ecx
mov eax, dword [ebp - 0x5c]
cmp eax, ebx
je 0x41d2f8
mov ecx, dword [ebp - 0x48]
mov dword [eax], ecx
cmp esi, ebx
je 0x41d331
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
call fcn.0041d106
push dword [ebp - 0x20]
mov dword [esi], eax
push dword [ebp - 0x24]
mov dword [esi + 4], edx
call fcn.0041d106
push dword [ebp - 0x30]
mov dword [esi + 8], eax
push dword [ebp - 0x34]
mov dword [esi + 0xc], edx
call fcn.0041d106
add esp, 0x18
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], edx
cmp dword [ebp - 0x4c], ebx
je 0x41d35b
push dword [ebp - 0x20]
lea edi, [ebp - 0x3c]
push dword [ebp - 0x24]
lea esi, [ebp - 0x40]
call fcn.0041d12a
movzx eax, word [ebp - 0x40]
pop ecx
pop ecx
movzx ecx, word [ebp - 0x3c]
shl eax, 0x10
or eax, ecx
mov ecx, dword [ebp - 0x4c]
mov dword [ecx], eax
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041e816
leave
ret
Function at 0x401016
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x4010a5
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, str.CreateDirectory___s_
cmp byte [esi], 0
je 0x4010a3
push 0x5c
push esi
call fcn.00407830
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x4010a3
push ebx
mov byte [esi], 0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [ebp + 0xc], eax
cmp eax, 0xffffffff
jne 0x40107c
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x401074
cmp dword [ebp + 0x10], eax
je 0x401074
push ebx
push edi
push 5
call dword [ebp + 0x10]
add esp, 0xc
jmp 0x40107c
push ebx
push 1
call dword [ebp + 0x10]
pop ecx
pop ecx
test byte [ebp + 0xc], 0x10
jne 0x40109d
push 0xb7
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp dword [ebp + 0x10], 0
je 0x40109d
push ebx
push edi
push 5
call dword [ebp + 0x10]
add esp, 0xc
mov byte [esi], 0x5c
inc esi
jne 0x40102f
pop edi
pop ebx
xor eax, eax
inc eax
pop esi
pop ebp
ret

Function at 0x401b9e
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x270
mov eax, dword [0x42e180]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
push edi
push 0x431ac0
lea eax, [ebp - 0x268]
mov edi, ecx
push str.PYTHONHOME_s
push eax
mov dword [ebp - 0x270], edi
mov dword [ebp - 0x26c], 0x104
call esi
lea eax, [ebp - 0x268]
push eax
call fcn.004087a3
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
add esp, 0x10
push edi
call ebx
test eax, eax
jne 0x401cac
push dword [0x431a48]
lea eax, [ebp - 0x54]
push dword [0x431828]
push str.SOFTWAREPythonPythonCore_d._dInstallPath
push eax
call esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
add esp, 0x10
lea eax, [ebp - 0x26c]
push eax
lea eax, [ebp - 0x158]
push eax
lea eax, [ebp - 0x54]
push eax
push 0x80000001
call esi
test eax, eax
je 0x401c5d
lea eax, [ebp - 0x26c]
push eax
lea eax, [ebp - 0x158]
push eax
lea eax, [ebp - 0x54]
push eax
push 0x80000002
call esi
test eax, eax
je 0x401c5d
xor eax, eax
jmp 0x401cac
lea edi, [ebp - 0x158]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x401c64
mov eax, dword [ebp - 0x270]
mov esi, 0x42339c
movsw word es:[edi], word [esi]
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401c7b
lea edi, [ebp - 0x158]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x401c8b
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea eax, [ebp - 0x158]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call ebx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00407e15
leave
ret
Function at 0x401cbb
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push edi
mov edi, eax
push str.PyImport_ImportModule
push edi
call esi
push str.PyObject_SetAttrString
push edi
mov ebx, eax
call esi
push str.PyObject_GetAttrString
push edi
mov dword [ebp - 0xc], eax
call esi
push str.PyCFunction_New
push edi
mov dword [ebp - 4], eax
call esi
push str.Py_BuildValue
push edi
mov dword [ebp - 8], eax
call esi
push str.PyArg_ParseTuple
push edi
mov dword [ebp - 0x10], eax
call esi
push str.PyErr_Format
push edi
mov dword [ebp - 0x14], eax
call esi
push str.PyLong_FromVoidPtr
push edi
mov dword [ebp - 0x18], eax
call esi
xor esi, esi
mov dword [ebp - 0x1c], eax
cmp ebx, esi
je 0x401dc2
cmp dword [ebp - 4], esi
je 0x401dc2
cmp dword [ebp - 0xc], esi
je 0x401dc2
cmp dword [ebp - 8], esi
je 0x401dc2
cmp dword [ebp - 0x10], esi
je 0x401dc2
cmp dword [ebp - 0x14], esi
je 0x401dc2
cmp dword [ebp - 0x18], esi
je 0x401dc2
push str.builtins
call ebx
mov edi, eax
pop ecx
cmp edi, esi
je 0x401d9e
push str.ValueError
push edi
call dword [ebp - 4]
push str.OSError
push edi
mov dword [0x43183c], eax
call dword [ebp - 4]
add esp, 0x10
push 6
mov dword [0x431bc4], eax
mov esi, 0x42e0e8
pop ebx
push 0
push esi
call dword [ebp - 8]
push eax
push dword [esi]
push edi
call dword [ebp - 0xc]
add esp, 0x14
add esi, 0x10
dec ebx
jne 0x401d88
mov eax, dword [ebp - 0x10]
mov dword [0x431ab0], eax
mov eax, dword [ebp - 0x14]
mov dword [0x4307e4], eax
mov eax, dword [ebp - 0x18]
mov dword [0x4307e8], eax
mov eax, dword [ebp - 0x1c]
mov dword [0x43182c], eax
xor eax, eax
jmp 0x401dc5
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401dca
Capabilities:
Link many functions at runtime
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
mov eax, dword [0x42e180]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push edi
mov edi, ecx
mov dword [ebp - 0x38], eax
mov eax, dword [ebp + 0x10]
push str.Py_Initialize
push edi
mov dword [ebp - 0x50], eax
call esi
push str.PySys_SetArgv
push edi
mov ebx, eax
call esi
push str.PyRun_SimpleString
push edi
mov dword [ebp - 0x48], eax
call esi
push str.Py_Finalize
push edi
mov dword [ebp - 0x44], eax
call esi
push str.Py_BuildValue
push edi
mov dword [ebp - 0x40], eax
call esi
push str.PyCFunction_New
push edi
mov dword [ebp - 0x3c], eax
call esi
push str.PyArg_ParseTuple
push edi
mov dword [ebp - 0x4c], eax
call esi
push str.PyErr_Format
push edi
mov dword [ebp - 0x54], eax
call esi
xor esi, esi
cmp ebx, esi
je 0x401fb2
cmp dword [ebp - 0x48], esi
je 0x401fb2
cmp dword [ebp - 0x44], esi
je 0x401fb2
cmp dword [ebp - 0x40], esi
je 0x401fb2
cmp dword [ebp - 0x3c], esi
je 0x401fb2
cmp dword [ebp - 0x54], esi
je 0x401fb2
cmp eax, esi
je 0x401fb2
cmp dword [ebp - 0x4c], esi
je 0x401fb2
mov eax, dword [ebp - 0x38]
cmp eax, esi
je 0x401fab
cmp byte [eax], 0
je 0x401fab
push esi
push eax
call fcn.0041fd3e
pop ecx
pop ecx
mov dword [ebp - 0x3c], eax
cmp eax, 0xffffffff
jne 0x401ed3
push dword [ebp - 0x38]
push str.Could_not_open_postinstall_script__s_n
call fcn.00408d40
add eax, 0x40
push eax
call fcn.00408baa
add esp, 0xc
push 3
pop eax
jmp 0x401fb5
push str.Running_Script...
push 0x3ec
push dword [0x431ab8]
call dword [sym.imp.USER32.dll_SetDlgItemTextA]
call ebx
mov eax, edi
call fcn.00401cbb
push 0x400
push esi
mov esi, 0x42f288
push esi
call fcn.00407c60
mov eax, dword [ebp + 0xc]
add esp, 0xc
test eax, eax
jle 0x401f33
mov edi, dword [ebp - 0x50]
mov ebx, esi
sub ebx, edi
mov dword [ebp - 0x38], eax
mov eax, dword [edi]
test eax, eax
je 0x401f26
push eax
call fcn.00401748
pop ecx
jmp 0x401f28
xor eax, eax
mov dword [ebx + edi], eax
add edi, 4
dec dword [ebp - 0x38]
jne 0x401f17
push esi
push dword [ebp + 0xc]
call dword [ebp - 0x48]
xor esi, esi
pop ecx
pop ecx
cmp dword [ebp + 0xc], esi
jle 0x401f5b
mov eax, dword [esi*4 + 0x42f288]
test eax, eax
je 0x401f55
push eax
call fcn.00408499
pop ecx
inc esi
cmp esi, dword [ebp + 0xc]
jl 0x401f43
push 3
pop ebx
lea eax, [ebp - 0x34]
push eax
push dword [ebp - 0x3c]
call fcn.00408858
pop ecx
pop ecx
test eax, eax
jne 0x401f9b
mov edi, dword [ebp - 0x20]
lea eax, [edi + 5]
call fcn.00408f00
mov esi, esp
push edi
push esi
push dword [ebp - 0x3c]
call fcn.0042097e
add esp, 0xc
test eax, eax
jle 0x401f9b
push esi
mov word [eax + esi], 0xa
call dword [ebp - 0x44]
pop ecx
mov ebx, eax
call dword [ebp - 0x40]
push dword [ebp - 0x3c]
call fcn.00414081
pop ecx
mov eax, ebx
jmp 0x401fb5
push 2
jmp 0x401ecd
xor eax, eax
inc eax
lea esp, [ebp - 0x60]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00407e15
leave
ret
Function at 0x401fc7
Capabilities:
Delete file
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
xor ebx, ebx
xor esi, esi
push ebx
inc esi
push ebx
mov dword [ebp - 0xc], esi
mov dword [edi], ebx
call fcn.00422453
pop ecx
pop ecx
push ebx
push 0x80000080
push 2
push ebx
push esi
push 0xc0000000
push eax
mov dword [ebp - 0x18], eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, dword [sym.imp.KERNEL32.dll_GetStdHandle]
push 0xfffffffffffffff5
mov dword [ebp - 4], eax
call esi
push 0xfffffffffffffff4
mov dword [ebp - 0x10], eax
call esi
push dword [ebp - 4]
mov esi, dword [sym.imp.KERNEL32.dll_SetStdHandle]
push 0xfffffffffffffff5
mov dword [ebp - 0x14], eax
call esi
push dword [ebp - 4]
push 0xfffffffffffffff4
call esi
mov ecx, 0x4306e0
call fcn.00401b9e
mov ecx, eax
mov dword [ebp - 8], ecx
cmp ecx, ebx
je 0x402058
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00401dca
add esp, 0xc
push dword [ebp - 8]
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x40206d
push str._Could_not_load_Python_
call fcn.00408d40
add eax, 0x40
push eax
call fcn.00408baa
pop ecx
pop ecx
push dword [ebp - 0x10]
push 0xfffffffffffffff5
call esi
push dword [ebp - 0x14]
push 0xfffffffffffffff4
call esi
mov esi, dword [sym.imp.KERNEL32.dll_GetFileSize]
push ebx
push dword [ebp - 4]
call esi
mov ecx, 0x1000
cmp eax, ecx
jae 0x40209a
push ebx
push dword [ebp - 4]
call esi
mov esi, eax
jmp 0x40209c
mov esi, ecx
lea eax, [esi + 1]
push eax
call fcn.00408512
pop ecx
mov dword [edi], eax
cmp eax, ebx
je 0x4020d4
push ebx
push ebx
push ebx
push dword [ebp - 4]
mov dword [ebp - 8], ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebx
lea eax, [ebp - 8]
push eax
push esi
push dword [edi]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [edi]
mov ecx, dword [ebp - 8]
mov byte [ecx + eax], bl
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [ebp - 0xc]
pop esi
pop ebx
leave
ret

Function at 0x4020ed
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push edi
mov edi, eax
push str.Py_Initialize
push edi
call esi
push str.Py_SetProgramName
push edi
mov ebx, eax
call esi
push str.Py_Finalize
push edi
mov dword [ebp - 4], eax
call esi
push str.PyRun_SimpleString
push edi
mov dword [ebp - 0xc], eax
call esi
push str.PyErr_Print
push edi
mov dword [ebp - 8], eax
call esi
mov esi, eax
xor eax, eax
cmp ebx, eax
je 0x402174
cmp dword [ebp - 4], eax
je 0x402174
cmp dword [ebp - 0xc], eax
je 0x402174
cmp dword [ebp - 8], eax
je 0x402174
cmp esi, eax
je 0x402174
push 0x431840
call dword [ebp - 4]
call ebx
mov eax, edi
call fcn.00401cbb
push dword [ebp + 8]
call dword [ebp - 8]
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x40216d
call esi
call dword [ebp - 0xc]
mov eax, edi
jmp 0x402177
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40217c
Capabilities:
Delete file
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x98
mov eax, dword [0x42e180]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
xor ebx, ebx
push ebx
push ebx
mov dword [ebp - 0x8c], eax
call fcn.00422453
pop ecx
pop ecx
push ebx
push 0x80000080
push 2
push ebx
push 1
push 0xc0000000
push eax
mov dword [ebp - 0x94], eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, dword [sym.imp.KERNEL32.dll_GetStdHandle]
push 0xfffffffffffffff5
mov dword [ebp - 0x88], eax
call esi
push 0xfffffffffffffff4
mov dword [ebp - 0x90], eax
call esi
push dword [ebp - 0x88]
mov esi, dword [sym.imp.KERNEL32.dll_SetStdHandle]
push 0xfffffffffffffff5
mov dword [ebp - 0x98], eax
call esi
push dword [ebp - 0x88]
push 0xfffffffffffffff4
call esi
mov ecx, 0x4306e0
call fcn.00401b9e
mov edi, eax
cmp edi, ebx
jne 0x40223d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x84]
push str.Cant_load_Python_for_pre_install_script___d_
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [ebp - 0x84]
push eax
call fcn.004016e5
add esp, 0x10
or eax, 0xffffffff
jmp 0x402322
push dword [ebp - 0x8c]
call fcn.004020ed
pop ecx
push edi
mov dword [ebp - 0x8c], eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push dword [ebp - 0x90]
push 0xfffffffffffffff5
call esi
push dword [ebp - 0x98]
push 0xfffffffffffffff4
call esi
cmp dword [ebp - 0x8c], ebx
je 0x402304
push ebx
push dword [ebp - 0x88]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
jne 0x40228f
mov edi, 0x1000
lea eax, [edi + 0x2d]
push eax
call fcn.00408512
mov esi, eax
pop ecx
cmp esi, ebx
je 0x4022f9
mov eax, str.Running_the_pre_installation_script_failed_r_n
mov edx, esi
mov dword [ebp - 0x90], ebx
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
cmp cl, bl
jne 0x4022ae
push ebx
push ebx
push ebx
push dword [ebp - 0x88]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebx
lea eax, [ebp - 0x90]
push eax
push edi
lea eax, [esi + 0x2c]
push eax
push dword [ebp - 0x88]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp - 0x90]
push esi
mov byte [eax + esi + 0x2c], bl
call fcn.004016e5
push esi
call fcn.00408499
pop ecx
jmp 0x402303
push str.Out_of_memory_
call fcn.004016e5
pop ecx
push dword [ebp - 0x88]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x94]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [ebp - 0x8c]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00407e15
leave
ret
Function at 0x402527
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
xor esi, esi
push esi
push 0x80
push 3
push esi
push 1
push 0x80000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x402554
xor eax, eax
jmp 0x4025a2
push ebx
lea eax, [ebp - 8]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push esi
push esi
push esi
push 2
push esi
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], eax
call edi
cmp dword [ebp - 4], 0xffffffff
jne 0x402585
xor eax, eax
jmp 0x4025a1
push esi
push esi
push esi
push 4
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
push dword [ebp - 4]
mov esi, eax
call edi
mov eax, dword [ebp + 0xc]
mov dword [eax], ebx
mov eax, esi
pop ebx
pop edi
pop esi
leave
ret

Function at 0x4025f4
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x42e180]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10c], ecx
lea ecx, [eax + edx - 0x16]
sub eax, dword [ecx + 0x10]
push esi
sub eax, dword [ecx + 0xc]
push edi
mov edi, dword [ebp + 0xc]
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 - 0x114], edi
jne 0x402756
cmp dword [esi], 0x1234567b
je 0x402656
push edx
mov edi, str.Invalid_cfgdata_magic_number__see_bdist_wininst.py_
call fcn.00402331
pop ecx
jmp 0x402758
cmp eax, edx
jl 0x402756
mov ecx, dword [esi + 8]
cmp ecx, edx
je 0x402672
mov edx, esi
sub edx, dword [esi + 4]
sub edx, ecx
mov dword [0x430800], edx
sub eax, dword [esi + 4]
mov ecx, dword [ebp - 0x10c]
sub eax, dword [esi + 8]
mov edi, esi
mov dword [ecx], eax
sub edi, dword [esi + 4]
push 0x104
call fcn.00408512
pop ecx
mov dword [ebp - 0x110], eax
test eax, eax
je 0x402756
lea eax, [ebp - 0x108]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
je 0x402744
push dword [ebp - 0x110]
lea eax, [ebp - 0x108]
push 0
push 0x423998
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
je 0x402744
xor eax, eax
push eax
push eax
push eax
push dword [esi + 4]
push eax
push dword [ebp - 0x110]
push 2
call fcn.004010ab
add esp, 0x1c
mov dword [ebp - 0x10c], eax
test eax, eax
je 0x402756
push dword [esi + 4]
push edi
push eax
call fcn.00409000
mov eax, dword [ebp - 0x10c]
add esp, 0xc
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40270f
sub eax, esi
lea eax, [eax + edi + 1]
push eax
call fcn.0041c688
pop ecx
mov ecx, dword [ebp - 0x114]
push dword [ebp - 0x10c]
mov dword [ecx], eax
mov eax, dword [ebp - 0x110]
mov dword [ebx], eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
xor eax, eax
inc eax
jmp 0x402758
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov edi, str.Could_not_create_temporary_file
call fcn.00402331
pop ecx
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00407e15
leave
ret
Function at 0x402b18
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0x42e180]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
lea ecx, [ebp - 0xf8]
push ecx
push 0x20019
xor ebx, ebx
push ebx
mov dword [ebp - 0x104], eax
mov eax, dword [ebp + 0xc]
push str.SoftwarePythonPythonCore
push eax
mov dword [ebp - 0x10c], eax
mov dword [ebp - 0xfc], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x402b6a
xor eax, eax
jmp 0x402ce8
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x100]
push eax
lea eax, [ebp - 0x54]
push eax
push ebx
push dword [ebp - 0xf8]
mov dword [ebp - 0x100], 0x50
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x402cd9
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov esi, dword [ebp + 0x10]
inc dword [ebp - 0xfc]
mov dword [ebp - 0x100], 0x50
cmp esi, ebx
je 0x402beb
cmp byte [esi], bl
je 0x402beb
lea eax, [ebp - 0x54]
mov cl, byte [esi]
cmp cl, byte [eax]
jne 0x402bde
cmp cl, bl
je 0x402bda
mov cl, byte [esi + 1]
cmp cl, byte [eax + 1]
jne 0x402bde
add esi, 2
add eax, 2
cmp cl, bl
jne 0x402bbe
xor eax, eax
jmp 0x402be3
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x402cae
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0xa4]
push str.Python_Version__s__found_in_registry_
push eax
call esi
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0xf4]
push str.SoftwarePythonPythonCore_sInstallPath
push eax
call esi
add esp, 0x18
lea eax, [ebp - 0x108]
push eax
push 0x20019
push ebx
lea eax, [ebp - 0xf4]
push eax
push dword [ebp - 0x10c]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x402cae
push 0x10c
call fcn.00408512
mov esi, eax
pop ecx
mov dword [ebp - 0x110], 0x105
cmp esi, ebx
je 0x402ca2
lea eax, [ebp - 0x110]
push eax
push esi
push ebx
push ebx
push ebx
push dword [ebp - 0x108]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x402ca2
lea eax, [ebp - 0xa4]
push eax
push ebx
push 0x180
push dword [ebp - 0x104]
call edi
mov ecx, dword [ebp - 0x10c]
push esi
push eax
push 0x19a
push dword [ebp - 0x104]
mov dword [esi + 0x108], ecx
call edi
push dword [ebp - 0x108]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x100]
push eax
lea eax, [ebp - 0x54]
push eax
push dword [ebp - 0xfc]
push dword [ebp - 0xf8]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
je 0x402ba0
pop edi
pop esi
push dword [ebp - 0xf8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00407e15
leave
ret