joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401c6d
Capabilities:
Link many functions at runtime
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [0x42f180]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push edi
mov edi, ecx
push str.Py_Initialize
push edi
call esi
push str.PySys_SetArgv
push edi
mov dword [ebp - 0x14], eax
call esi
push str.PyRun_SimpleString
push edi
mov dword [ebp - 8], eax
call esi
push str.Py_Finalize
push edi
mov dword [ebp - 0x10], eax
call esi
push str.Py_BuildValue
push edi
mov dword [ebp - 0xc], eax
call esi
push str.PyCFunction_New
push edi
mov ebx, eax
call esi
push str.PyArg_ParseTuple
push edi
mov dword [ebp - 0x1c], eax
call esi
push str.PyErr_Format
push edi
mov dword [ebp - 0x18], eax
call esi
xor ecx, ecx
cmp dword [ebp - 0x14], ecx
je 0x401dea
cmp dword [ebp - 8], ecx
je 0x401dea
cmp dword [ebp - 0x10], ecx
je 0x401dea
cmp dword [ebp - 0xc], ecx
je 0x401dea
cmp ebx, ecx
je 0x401dea
cmp dword [ebp - 0x18], ecx
je 0x401dea
cmp eax, ecx
je 0x401dea
cmp dword [ebp - 0x1c], ecx
je 0x401dea
mov esi, dword [ebp + 8]
cmp esi, ecx
je 0x401de3
cmp byte [esi], cl
je 0x401de3
push ecx
push esi
call fcn.004211ff
mov ebx, eax
pop ecx
pop ecx
cmp ebx, 0xffffffff
jne 0x401d66
push esi
push str.Could_not_open_postinstall_script__s_n
call fcn.0040884e
add eax, 0x40
push eax
call fcn.004086a8
add esp, 0xc
push 3
pop eax
jmp 0x401ded
push str.Running_Script...
push 0x3ec
push dword [0x432218]
call dword [sym.imp.USER32.dll_SetDlgItemTextA]
call dword [ebp - 0x14]
mov eax, edi
call fcn.00401b5e
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [ebp - 8]
lea eax, [ebp - 0x4c]
push eax
push ebx
mov dword [ebp - 8], 3
call fcn.00408351
add esp, 0x10
test eax, eax
jne 0x401dd4
mov edi, dword [ebp - 0x38]
lea eax, [edi + 5]
call fcn.00408a10
mov esi, esp
push edi
push esi
push ebx
call fcn.00421e95
add esp, 0xc
test eax, eax
jle 0x401dd4
add eax, esi
push esi
mov byte [eax], 0xa
mov byte [eax + 1], 0
call dword [ebp - 0x10]
pop ecx
mov dword [ebp - 8], eax
call dword [ebp - 0xc]
push ebx
call fcn.0041517b
mov eax, dword [ebp - 8]
pop ecx
jmp 0x401ded
push 2
jmp 0x401d60
xor eax, eax
inc eax
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004077a5
leave
ret
Function at 0x401dff
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.0042402c
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, 0x431040
call fcn.00401a3c
mov ecx, eax
mov dword [ebp - 8], ecx
cmp ecx, ebx
je 0x401e90
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00401c6d
add esp, 0xc
push dword [ebp - 8]
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x401ea5
push str._Could_not_load_Python_
call fcn.0040884e
add eax, 0x40
push eax
call fcn.004086a8
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 0x401ed2
push ebx
push dword [ebp - 4]
call esi
mov esi, eax
jmp 0x401ed4
mov esi, ecx
lea eax, [esi + 1]
push eax
call fcn.00407fb7
pop ecx
mov dword [edi], eax
cmp eax, ebx
je 0x401f0c
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 0x401f25
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 0x401fac
cmp dword [ebp - 4], eax
je 0x401fac
cmp dword [ebp - 0xc], eax
je 0x401fac
cmp dword [ebp - 8], eax
je 0x401fac
cmp esi, eax
je 0x401fac
push 0x430f20
call dword [ebp - 4]
call ebx
mov eax, edi
call fcn.00401b5e
push dword [ebp + 8]
call dword [ebp - 8]
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x401fa5
call esi
call dword [ebp - 0xc]
mov eax, edi
jmp 0x401faf
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401fb4
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.0042402c
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, 0x431040
call fcn.00401a3c
mov edi, eax
cmp edi, ebx
jne 0x40205c
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 0x402134
push dword [ebp - 0x20]
call fcn.00401f25
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 0x40211f
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 0x40208e
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 0x4020b2
mov dword [ebp - 0x18], 0x1000
mov eax, dword [ebp - 0x18]
lea eax, [eax + edi + 1]
push eax
call fcn.00407fb7
mov esi, eax
pop ecx
cmp esi, ebx
je 0x402114
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 0x4020d2
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.00407e60
pop ecx
jmp 0x40211e
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.004077a5
add ebp, 0x74
leave
ret
Function at 0x40233c
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 0x402369
xor eax, eax
jmp 0x4023b7
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 0x40239a
xor eax, eax
jmp 0x4023b6
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 0x402407
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 0x40254c
cmp dword [esi], 0x1234567b
je 0x402471
push edx
mov edi, str.Invalid_cfgdata_magic_number__see_bdist_wininst.py_
call fcn.00402146
pop ecx
jmp 0x40254e
cmp eax, edx
jl 0x40254c
mov ecx, dword [esi + 8]
cmp ecx, edx
je 0x40248d
mov edx, esi
sub edx, dword [esi + 4]
sub edx, ecx
mov dword [0x431160], 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.00407fb7
pop ecx
mov dword [ebp - 0x7c], eax
test eax, eax
je 0x40254c
lea eax, [ebp - 0x74]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
je 0x40253a
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 0x40253a
xor eax, eax
push eax
push eax
push eax
push dword [esi + 4]
push eax
push dword [ebp - 0x7c]
push 2
call fcn.004010aa
add esp, 0x1c
mov dword [ebp - 0x78], eax
test eax, eax
je 0x40254c
push dword [esi + 4]
push edi
push eax
call fcn.00408b10
mov eax, dword [ebp - 0x78]
add esp, 0xc
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40250e
sub eax, esi
lea eax, [eax + edi + 1]
push eax
call fcn.0041d966
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 0x40254e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov edi, str.Could_not_create_temporary_file
call fcn.00402146
pop ecx
xor eax, eax
mov ecx, dword [ebp + 0x90]
pop edi
xor ecx, ebp
pop esi
call fcn.004077a5
add ebp, 0x94
leave
ret
Function at 0x4028ed
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 0x402941
xor eax, eax
jmp 0x402a7e
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 0x402a72
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 0x4029b4
cmp byte [esi], bl
je 0x4029b4
lea eax, [ebp + 0x3c]
mov cl, byte [esi]
cmp cl, byte [eax]
jne 0x4029a7
cmp cl, bl
je 0x4029a3
mov cl, byte [esi + 1]
cmp cl, byte [eax + 1]
jne 0x4029a7
inc esi
inc esi
inc eax
inc eax
cmp cl, bl
jne 0x402989
xor eax, eax
jmp 0x4029ac
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x402a50
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 0x402a50
push 0x10c
call fcn.00407fb7
mov esi, eax
pop ecx
mov dword [ebp - 0x80], 0x105
cmp esi, ebx
je 0x402a47
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 0x402a47
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 0x40296e
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.004077a5
add ebp, 0x90
leave
ret
Function at 0x40356c
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x84
mov eax, dword [0x42f180]
xor eax, ebp
mov dword [ebp - 4], eax
push 1
push 0
push 0x425524
push 0x430f20
push str.runas
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
cmp eax, 0x20
jg 0x4035cb
push eax
lea eax, [ebp - 0x84]
push str.Failed_to_start_elevated_process__ShellExecute_returned__d_
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push 0x10
push str.Setup
lea eax, [ebp - 0x84]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004077a5
leave
ret

Function at 0x403606
Capabilities:
Create process on windows
Resume thread
Self delete

Disassembly:
push ebp
lea ebp, [esp - 0x1e0]
sub esp, 0x260
mov eax, dword [0x42f180]
xor eax, ebp
mov dword [ebp + 0x1dc], eax
push ebx
push esi
push edi
push 0x104
lea eax, [ebp + 0xd8]
push eax
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp + 0xd8]
push eax
lea eax, [ebp - 0x2c]
push str._s.bat
push eax
call fcn.0040a329
lea eax, [ebp - 0x2c]
push 0x425fc0
push eax
call fcn.0040a2bf
mov ebx, eax
push str.:Repeat_n
push ebx
call fcn.004086a8
lea eax, [ebp + 0xd8]
push eax
mov esi, str.del___s__n
push esi
push ebx
call fcn.004086a8
lea eax, [ebp + 0xd8]
push eax
push str.if_exist___s__goto_Repeat_n
push ebx
call fcn.004086a8
lea eax, [ebp - 0x2c]
push eax
push esi
push ebx
call fcn.004086a8
add esp, 0x40
push ebx
call fcn.00408ed6
push 0x44
pop esi
push esi
lea eax, [ebp - 0x80]
push edi
push eax
call fcn.004075f0
add esp, 0x10
xor eax, eax
mov word [ebp - 0x50], ax
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x80]
push eax
push 0x4253ac
push edi
push esi
push edi
push edi
push edi
lea eax, [ebp - 0x2c]
push eax
push edi
mov dword [ebp - 0x80], esi
mov dword [ebp - 0x54], 1
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x403727
mov esi, dword [sym.imp.KERNEL32.dll_SetThreadPriority]
push 0xfffffffffffffff1
push dword [ebp - 0x38]
call esi
push 0xf
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call esi
push 0x80
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_SetPriorityClass]
push dword [ebp - 0x3c]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x38]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push dword [ebp - 0x38]
call esi
mov ecx, dword [ebp + 0x1dc]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004077a5
add ebp, 0x1e0
leave
ret
Function at 0x40373f
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push edi
push dword [ebp + 8]
call fcn.0041d966
push 0x5b
push eax
mov dword [ebp - 8], eax
call fcn.004071c0
mov edi, eax
xor ebx, ebx
add esp, 0xc
cmp edi, ebx
je 0x403800
push esi
inc edi
push 0x5d
push edi
call fcn.004071c0
mov esi, eax
pop ecx
pop ecx
cmp esi, ebx
je 0x4037ff
mov byte [esi], bl
inc esi
push 0xa
push esi
call fcn.004071c0
pop ecx
pop ecx
cmp eax, ebx
je 0x403791
mov byte [eax], bl
lea eax, [ebp - 4]
push eax
push 0x20006
push ebx
push edi
push dword [section..data]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x4037c4
push ebx
push str.Could_not_open_key
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetFocus]
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x4037f6
push esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
cmp eax, ebx
je 0x4037ed
cmp eax, 2
je 0x4037ed
push ebx
push str.Could_not_delete_key
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetFocus]
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 8]
call fcn.00407e60
pop ecx
pop esi
pop edi
pop ebx
leave
ret

Function at 0x403804
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push edi
push dword [ebp + 8]
call fcn.0041d966
push 0x5b
push eax
mov dword [ebp - 8], eax
call fcn.004071c0
mov edi, eax
xor ebx, ebx
add esp, 0xc
cmp edi, ebx
je 0x4038c5
push esi
inc edi
push 0x5d
push edi
call fcn.004071c0
mov esi, eax
pop ecx
pop ecx
cmp esi, ebx
je 0x4038c4
mov byte [esi], bl
inc esi
push 0x3d
push esi
call fcn.004071c0
pop ecx
pop ecx
cmp eax, ebx
je 0x4038c4
mov byte [eax], bl
lea eax, [ebp - 4]
push eax
push 0x20006
push ebx
push edi
push dword [section..data]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x403889
push ebx
push str.Could_not_open_key
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetFocus]
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x4038bb
push esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
cmp eax, ebx
je 0x4038b2
cmp eax, 2
je 0x4038b2
push ebx
push str.Could_not_delete_value
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetFocus]
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 8]
call fcn.00407e60
pop ecx
pop esi
pop edi
pop ebx
leave
ret

Function at 0x4038c9
Capabilities:
Delete file

Disassembly:
push esi
push 0x3a
push dword [esp + 0xc]
call fcn.004071c0
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x4038df
pop esi
ret
inc esi
movsx eax, byte [esi]
push eax
call fcn.0040a7b5
pop ecx
test eax, eax
jne 0x4038df
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
pop esi
ret
Function at 0x4038f7
Capabilities:
Delete directory

Disassembly:
push esi
push 0x3a
push dword [esp + 0xc]
call fcn.004071c0
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x40390d
pop esi
ret
inc esi
movsx eax, byte [esi]
push eax
call fcn.0040a7b5
pop ecx
test eax, eax
jne 0x40390d
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
pop esi
ret
Function at 0x403f0d
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
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.PySys_GetObject
push edi
mov dword [ebp - 8], eax
call esi
push str.Py_OptimizeFlag
push edi
mov dword [ebp - 0x10], eax
call esi
xor esi, esi
cmp dword [0x4302ac], esi
jne 0x403f67
xor eax, eax
jmp 0x403fb1
cmp ebx, esi
je 0x403fae
cmp dword [ebp - 4], esi
je 0x403fae
cmp dword [ebp - 0xc], esi
je 0x403fae
cmp dword [ebp - 8], esi
je 0x403fae
cmp dword [ebp - 0x10], esi
je 0x403fae
cmp eax, esi
je 0x403fae
xor ecx, ecx
cmp dword [ebp + 8], esi
push 0x430f20
setne cl
mov dword [eax], ecx
call dword [ebp - 4]
call ebx
push dword [ebp + 8]
push dword [ebp - 8]
call fcn.00403dec
add esp, 0xc
mov esi, eax
call dword [ebp - 0xc]
mov eax, esi
jmp 0x403fb1
or eax, 0xffffffff
pop esi
pop ebx
leave
ret
Function at 0x40441d
Capabilities:
Delete file
Read .ini file

Disassembly:
mov eax, 0x1004
call fcn.00408d40
mov eax, dword [0x42f180]
xor eax, esp
mov dword [esp + 0x1000], eax
push ebx
push ebp
push esi
push edi
push dword [0x43232c]
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov ebp, 0x1000
push ebp
lea eax, [esp + 0x18]
push eax
mov ebx, 0x425524
push ebx
push str.title
mov esi, str.Setup
push esi
call edi
push 0x50
pop ecx
lea eax, [esp + 0x10]
mov edx, 0x430d40
call fcn.004015dd
push dword [0x43232c]
lea eax, [esp + 0x14]
push ebp
push eax
push ebx
push str.info
push esi
call edi
mov ecx, ebp
lea eax, [esp + 0x10]
mov edx, 0x431180
call fcn.004015dd
push dword [0x43232c]
push 0x50
push 0x4321c0
push ebx
push str.build_info
push esi
call edi
push dword [0x43232c]
mov ebp, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
push 1
push str.target_compile
push esi
call ebp
push dword [0x43232c]
mov dword [0x430d94], eax
push 1
push str.target_optimize
push esi
call ebp
push dword [0x43232c]
mov dword [0x430d90], eax
push 0xa
push 0x432190
push ebx
push str.target_version
push esi
call edi
push dword [0x43232c]
push 0x50
push 0x430ec0
push ebx
push str.name
push str.metadata
call edi
push dword [0x43232c]
push 0x104
push 0x430da0
push ebx
push str.install_script
push esi
call edi
push dword [0x43232c]
mov ebp, 0x431150
push 0xa
push ebp
push ebx
push str.user_access_control
push esi
call edi
push 6
mov edi, str.force
mov esi, ebp
pop ecx
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
jne 0x40456b
call fcn.0040351a
test eax, eax
je 0x4045c8
call fcn.00403487
test eax, eax
jne 0x4045c8
call fcn.0040356c
jmp 0x40460b
push 5
mov edi, str.auto
mov esi, ebp
pop ecx
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
jne 0x404598
call fcn.0040351a
test eax, eax
je 0x4045c8
call fcn.00403487
test eax, eax
jne 0x4045c8
call fcn.004034b0
test eax, eax
je 0x4045c8
jmp 0x404561
cmp byte [0x431150], al
je 0x4045c8
push 5
mov edi, str.none
mov esi, ebp
pop ecx
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x4045c8
push eax
push str.oops
push str.Bad_user_access_control_value
call dword [sym.imp.USER32.dll_GetFocus]
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0x430d40
call fcn.004026a3
push eax
mov dword [0x432180], eax
call fcn.0040431f
pop ecx
pop ecx
push dword [0x432214]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov eax, dword [0x43232c]
test eax, eax
je 0x4045fb
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [0x432330]
test eax, eax
je 0x40460b
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov ecx, dword [esp + 0x1010]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
xor eax, eax
call fcn.004077a5
add esp, 0x1004
ret