joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401016
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
je 0x4010a5
push ebp
mov ebp, dword [esp + 0x14]
push edi
mov edi, dword [esp + 0x10]
push ebx
cmp byte [esi], 0
je 0x4010a2
push 0x5c
push esi
call fcn.00407290
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x4010a2
push edi
mov byte [esi], 0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x40107b
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x401074
test ebp, ebp
je 0x401074
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
jmp 0x40107b
push edi
push 1
call ebp
pop ecx
pop ecx
test bl, 0x10
jne 0x40109c
push 0xb7
call dword [sym.imp.KERNEL32.dll_SetLastError]
test ebp, ebp
je 0x40109c
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
mov byte [esi], 0x5c
inc esi
jne 0x40102e
pop ebx
pop edi
pop ebp
xor eax, eax
inc eax
pop esi
ret

Function at 0x401a9d
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x1f0]
sub esp, 0x270
mov eax, dword [0x42f180]
xor eax, ebp
mov dword [ebp + 0x1ec], eax
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
push edi
push 0x432820
lea eax, [ebp - 0x78]
mov edi, ecx
push str.PYTHONHOME_s
push eax
mov dword [ebp - 0x80], edi
mov dword [ebp - 0x7c], 0x104
call esi
lea eax, [ebp - 0x78]
push eax
call fcn.00408363
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
add esp, 0x10
push edi
call ebx
test eax, eax
jne 0x401ba7
push dword [0x4327a8]
lea eax, [ebp + 0x19c]
push dword [0x432588]
push str.SOFTWAREPythonPythonCore_d._dInstallPath
push eax
call esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
add esp, 0x10
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp + 0x98]
push eax
lea eax, [ebp + 0x19c]
push eax
push 0x80000001
call esi
test eax, eax
je 0x401b5b
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp + 0x98]
push eax
lea eax, [ebp + 0x19c]
push eax
push 0x80000002
call esi
test eax, eax
je 0x401b5b
xor eax, eax
jmp 0x401ba7
lea edi, [ebp + 0x98]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x401b62
mov eax, dword [ebp - 0x80]
mov esi, 0x4253ac
movsw word es:[edi], word [esi]
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401b76
lea edi, [ebp + 0x98]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x401b86
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea eax, [ebp + 0x98]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call ebx
mov ecx, dword [ebp + 0x1ec]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00407875
add ebp, 0x1f0
leave
ret
Function at 0x401bbf
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 0x401cc6
cmp dword [ebp - 4], esi
je 0x401cc6
cmp dword [ebp - 0xc], esi
je 0x401cc6
cmp dword [ebp - 8], esi
je 0x401cc6
cmp dword [ebp - 0x10], esi
je 0x401cc6
cmp dword [ebp - 0x14], esi
je 0x401cc6
cmp dword [ebp - 0x18], esi
je 0x401cc6
push str.builtins
call ebx
mov edi, eax
pop ecx
cmp edi, esi
je 0x401ca2
push str.ValueError
push edi
call dword [ebp - 4]
push str.OSError
push edi
mov dword [0x43259c], eax
call dword [ebp - 4]
add esp, 0x10
push 6
mov dword [0x432924], eax
mov esi, 0x42f0e8
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 0x401c8c
mov eax, dword [ebp - 0x10]
mov dword [0x432810], eax
mov eax, dword [ebp - 0x14]
mov dword [0x431544], eax
mov eax, dword [ebp - 0x18]
mov dword [0x431548], eax
mov eax, dword [ebp - 0x1c]
mov dword [0x43258c], eax
xor eax, eax
jmp 0x401cc9
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401cce
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 ebx, eax
call esi
push str.PyRun_SimpleString
push edi
mov dword [ebp - 0x18], 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 - 0x14], eax
call esi
push str.PyCFunction_New
push edi
mov dword [ebp - 0xc], 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 - 8], eax
call esi
xor esi, esi
cmp ebx, esi
je 0x401ead
cmp dword [ebp - 0x18], esi
je 0x401ead
cmp dword [ebp - 0x10], esi
je 0x401ead
cmp dword [ebp - 0x14], esi
je 0x401ead
cmp dword [ebp - 0xc], esi
je 0x401ead
cmp dword [ebp - 8], esi
je 0x401ead
cmp eax, esi
je 0x401ead
cmp dword [ebp - 0x1c], esi
je 0x401ead
mov eax, dword [ebp + 8]
cmp eax, esi
je 0x401ea6
cmp byte [eax], 0
je 0x401ea6
push esi
push eax
call fcn.004212cf
pop ecx
pop ecx
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
jne 0x401dcb
push dword [ebp + 8]
push str.Could_not_open_postinstall_script__s_n
call fcn.0040891e
add eax, 0x40
push eax
call fcn.00408778
add esp, 0xc
push 3
pop eax
jmp 0x401eb0
push str.Running_Script...
push 0x3ec
push dword [0x432818]
call dword [sym.imp.USER32.dll_SetDlgItemTextA]
call ebx
mov eax, edi
call fcn.00401bbf
push 0x400
push esi
mov esi, 0x4302a8
push esi
call fcn.004076c0
mov eax, dword [ebp + 0xc]
add esp, 0xc
test eax, eax
jle 0x401e2b
mov edi, dword [ebp + 0x10]
mov ebx, esi
sub ebx, edi
mov dword [ebp - 0xc], eax
mov eax, dword [edi]
test eax, eax
je 0x401e1e
push eax
call fcn.004016b1
pop ecx
jmp 0x401e20
xor eax, eax
mov dword [ebx + edi], eax
add edi, 4
dec dword [ebp - 0xc]
jne 0x401e0f
push esi
push dword [ebp + 0xc]
call dword [ebp - 0x18]
xor esi, esi
cmp dword [ebp + 0xc], esi
pop ecx
pop ecx
jle 0x401e53
mov eax, dword [esi*4 + 0x4302a8]
test eax, eax
je 0x401e4d
push eax
call fcn.00407f30
pop ecx
inc esi
cmp esi, dword [ebp + 0xc]
jl 0x401e3b
push 3
pop ebx
lea eax, [ebp - 0x4c]
push eax
push dword [ebp - 8]
call fcn.00408421
pop ecx
pop ecx
test eax, eax
jne 0x401e96
mov edi, dword [ebp - 0x38]
lea eax, [edi + 5]
call fcn.00408ae0
mov esi, esp
push edi
push esi
push dword [ebp - 8]
call fcn.00421f65
add esp, 0xc
test eax, eax
jle 0x401e96
add eax, esi
push esi
mov byte [eax], 0xa
mov byte [eax + 1], 0
call dword [ebp - 0x10]
pop ecx
mov ebx, eax
call dword [ebp - 0x14]
push dword [ebp - 8]
call fcn.0041524b
pop ecx
mov eax, ebx
jmp 0x401eb0
push 2
jmp 0x401dc5
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.00407875
leave
ret
Function at 0x401ec2
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.004240fc
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, 0x431440
call fcn.00401a9d
mov ecx, eax
mov dword [ebp - 8], ecx
cmp ecx, ebx
je 0x401f53
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00401cce
add esp, 0xc
push dword [ebp - 8]
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x401f68
push str._Could_not_load_Python_
call fcn.0040891e
add eax, 0x40
push eax
call fcn.00408778
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 0x401f95
push ebx
push dword [ebp - 4]
call esi
mov esi, eax
jmp 0x401f97
mov esi, ecx
lea eax, [esi + 1]
push eax
call fcn.00408087
pop ecx
mov dword [edi], eax
cmp eax, ebx
je 0x401fcf
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 0x401fe8
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 0x40206f
cmp dword [ebp - 4], eax
je 0x40206f
cmp dword [ebp - 0xc], eax
je 0x40206f
cmp dword [ebp - 8], eax
je 0x40206f
cmp esi, eax
je 0x40206f
push 0x4325a0
call dword [ebp - 4]
call ebx
mov eax, edi
call fcn.00401bbf
push dword [ebp + 8]
call dword [ebp - 8]
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x402068
call esi
call dword [ebp - 0xc]
mov eax, edi
jmp 0x402072
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
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.00401fe8
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.00408087
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 0x4023ff
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 0x40242c
xor eax, eax
jmp 0x40247a
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 0x40245d
xor eax, eax
jmp 0x402479
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 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.00402209
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.00408087
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.004010aa
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.0041da36
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.00402209
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.00408087
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
Function at 0x40362c
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 0x431320
push str.runas
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
cmp eax, 0x20
jg 0x40368b
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.00407875
leave
ret

Function at 0x4036c6
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.0040a3f9
lea eax, [ebp - 0x2c]
push 0x425fc0
push eax
call fcn.0040a38f
mov ebx, eax
push str.:Repeat_n
push ebx
call fcn.00408778
lea eax, [ebp + 0xd8]
push eax
mov esi, str.del___s__n
push esi
push ebx
call fcn.00408778
lea eax, [ebp + 0xd8]
push eax
push str.if_exist___s__goto_Repeat_n
push ebx
call fcn.00408778
lea eax, [ebp - 0x2c]
push eax
push esi
push ebx
call fcn.00408778
add esp, 0x40
push ebx
call fcn.00408fa6
push 0x44
pop esi
push esi
lea eax, [ebp - 0x80]
push edi
push eax
call fcn.004076c0
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 0x4037e7
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.00407875
add ebp, 0x1e0
leave
ret