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 0x4010a6
push ebp
mov ebp, dword [esp + 0x14]
push edi
mov edi, dword [esp + 0x10]
push ebx
cmp byte [esi], 0
je 0x4010a3
push 0x5c
push esi
call dword [sym.imp.MSVCR80.dll_strchr]
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x4010a3
push edi
mov byte [esi], 0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x40107c
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x401075
test ebp, ebp
je 0x401075
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
jmp 0x40107c
push edi
push 1
call ebp
pop ecx
pop ecx
test bl, 0x10
jne 0x40109d
push 0xb7
call dword [sym.imp.KERNEL32.dll_SetLastError]
test ebp, ebp
je 0x40109d
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 0x401a09
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x26c
mov eax, dword [0x40c17c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_wsprintfA]
push 0x40dae0
lea eax, [ebp - 0x268]
push str.PYTHONHOME_s
push eax
mov dword [ebp - 0x26c], 0x104
call edi
lea eax, [ebp - 0x268]
push eax
call dword [sym.imp.MSVCR80.dll__putenv]
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
add esp, 0x10
push ebx
call esi
test eax, eax
jne 0x401ac7
push dword [0x40da60]
lea eax, [ebp - 0x54]
push dword [0x40da48]
push str.SOFTWAREPythonPythonCore_d._dInstallPath
push eax
call edi
add esp, 0x10
lea eax, [ebp - 0x26c]
push eax
lea eax, [ebp - 0x158]
push eax
lea eax, [ebp - 0x54]
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
test eax, eax
je 0x401a9d
xor eax, eax
jmp 0x401ac7
lea eax, [ebp - 0x158]
push 0x407370
push eax
call sub.MSVCR80.dll_strcat
lea eax, [ebp - 0x158]
push ebx
push eax
call sub.MSVCR80.dll_strcat
add esp, 0x10
lea eax, [ebp - 0x158]
push eax
call esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004065b0
leave
ret
Function at 0x401ad5
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
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
xor esi, esi
cmp ebx, esi
mov dword [ebp - 0x18], eax
je 0x401bc0
cmp dword [ebp - 4], esi
je 0x401bc0
cmp dword [ebp - 0xc], esi
je 0x401bc0
cmp dword [ebp - 8], esi
je 0x401bc0
cmp dword [ebp - 0x10], esi
je 0x401bc0
cmp dword [ebp - 0x14], esi
je 0x401bc0
cmp eax, esi
je 0x401bc0
push str.__builtin__
call ebx
mov edi, eax
cmp edi, esi
pop ecx
je 0x401ba4
push str.ValueError
push edi
call dword [ebp - 4]
push str.OSError
push edi
mov dword [0x40da5c], eax
call dword [ebp - 4]
add esp, 0x10
push 6
mov dword [0x40dbe4], eax
mov esi, 0x40c0e8
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 0x401b8e
mov eax, dword [ebp - 0x10]
mov dword [0x40dad0], eax
mov eax, dword [ebp - 0x14]
mov dword [0x40ca24], eax
mov eax, dword [ebp - 0x18]
mov dword [0x40ca28], eax
xor eax, eax
jmp 0x401bc3
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401bc8
Capabilities:
Link many functions at runtime
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [0x40c17c]
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 0x401d4b
cmp dword [ebp - 8], ecx
je 0x401d4b
cmp dword [ebp - 0x10], ecx
je 0x401d4b
cmp dword [ebp - 0xc], ecx
je 0x401d4b
cmp ebx, ecx
je 0x401d4b
cmp dword [ebp - 0x18], ecx
je 0x401d4b
cmp eax, ecx
je 0x401d4b
cmp dword [ebp - 0x1c], ecx
je 0x401d4b
mov esi, dword [ebp + 8]
cmp esi, ecx
je 0x401d44
cmp byte [esi], cl
je 0x401d44
push ecx
push esi
call dword [sym.imp.MSVCR80.dll__open]
mov ebx, eax
cmp ebx, 0xffffffff
pop ecx
pop ecx
jne 0x401cc4
push esi
push str.Could_not_open_postinstall_script__s_n
call dword [sym.imp.MSVCR80.dll___iob_func]
add eax, 0x40
push eax
call dword [sym.imp.MSVCR80.dll_fprintf]
add esp, 0xc
push 3
pop eax
jmp 0x401d4e
push str.Running_Script...
push 0x3ec
push dword [0x40dad8]
call dword [sym.imp.USER32.dll_SetDlgItemTextA]
call dword [ebp - 0x14]
mov eax, edi
call fcn.00401ad5
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 dword [sym.imp.MSVCR80.dll__fstat64i32]
add esp, 0x10
test eax, eax
jne 0x401d34
mov edi, dword [ebp - 0x38]
lea eax, [edi + 5]
call fcn.004065c0
mov esi, esp
push edi
push esi
push ebx
call dword [sym.imp.MSVCR80.dll__read]
add esp, 0xc
test eax, eax
jle 0x401d34
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 dword [sym.imp.MSVCR80.dll__close]
mov eax, dword [ebp - 8]
pop ecx
jmp 0x401d4e
push 2
jmp 0x401cbe
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.004065b0
leave
ret
Function at 0x401d60
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 0x401de7
cmp dword [ebp - 4], eax
je 0x401de7
cmp dword [ebp - 0xc], eax
je 0x401de7
cmp dword [ebp - 8], eax
je 0x401de7
cmp esi, eax
je 0x401de7
push 0x40c800
call dword [ebp - 4]
call ebx
mov eax, edi
call fcn.00401ad5
push dword [ebp + 8]
call dword [ebp - 8]
mov edi, eax
test edi, edi
pop ecx
pop ecx
je 0x401de0
call esi
call dword [ebp - 0xc]
mov eax, edi
jmp 0x401dea
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret

Function at 0x401def
Capabilities:
Delete file
Read file on windows

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
push edi
push 0
push 0
call dword [sym.imp.MSVCR80.dll__tempnam]
mov esi, dword [sym.imp.MSVCR80.dll___iob_func]
mov ebp, eax
mov dword [esp + 0x1c], ebp
call esi
mov edi, dword [sym.imp.MSVCR80.dll_freopen]
add eax, 0x40
push eax
mov ebx, 0x4078c0
push ebx
push ebp
call edi
call esi
add eax, 0x20
push eax
push ebx
push ebp
call edi
add esp, 0x20
mov ebx, 0x40c920
call fcn.00401a09
mov edi, eax
test edi, edi
jne 0x401e50
push str.Cant_load_Python_for_pre_install_script
call fcn.00401613
or eax, 0xffffffff
jmp 0x401f45
push dword [esp + 0x20]
call fcn.00401d60
pop ecx
push edi
mov dword [esp + 0x1c], eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
call esi
mov edi, dword [sym.imp.MSVCR80.dll_fflush]
add eax, 0x40
push eax
call edi
call esi
mov ebp, dword [sym.imp.MSVCR80.dll_fclose]
add eax, 0x40
push eax
call ebp
call esi
add eax, 0x20
push eax
call edi
call esi
add eax, 0x20
push eax
call ebp
add esp, 0x10
cmp dword [esp + 0x18], 0
je 0x401f37
push str.Running_the_pre_installation_script_failed_r_n
call sub.MSVCR80.dll_strlen
mov dword [esp], 0x407860
push dword [esp + 0x18]
mov edi, eax
call dword [sym.imp.MSVCR80.dll_fopen]
mov esi, dword [sym.imp.MSVCR80.dll_fseek]
push 2
mov ebx, eax
push 0
push ebx
call esi
push ebx
call dword [sym.imp.MSVCR80.dll_ftell]
push 0
push 0
push ebx
mov dword [esp + 0x34], eax
call esi
mov eax, dword [esp + 0x34]
lea eax, [eax + edi + 1]
push eax
call dword [sym.imp.MSVCR80.dll_malloc]
mov esi, eax
add esp, 0x28
test esi, esi
je 0x401f2c
push str.Running_the_pre_installation_script_failed_r_n
push esi
call sub.MSVCR80.dll_strcpy
push ebx
push dword [esp + 0x1c]
lea eax, [esi + edi]
push 1
push eax
call dword [sym.imp.MSVCR80.dll_fread]
add eax, esi
push ebx
mov byte [eax + edi], 0
call ebp
push esi
call fcn.00401613
push esi
call dword [sym.imp.MSVCR80.dll_free]
add esp, 0x24
jmp 0x401f37
push str.Out_of_memory_
call fcn.00401613
pop ecx
push dword [esp + 0x14]
call dword [sym.imp.MSVCR80.dll_remove]
mov eax, dword [esp + 0x1c]
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
Function at 0x402142
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 0x40216f
xor eax, eax
jmp 0x4021bd
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 0x4021a0
xor eax, eax
jmp 0x4021bc
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 0x40220d
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x94]
sub esp, 0x114
mov eax, dword [0x40c17c]
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 0x40234d
cmp dword [esi], 0x1234567b
je 0x402277
push edx
mov edi, str.Invalid_cfgdata_magic_number__see_bdist_wininst.py_
call fcn.00401f4e
pop ecx
jmp 0x40234f
cmp eax, edx
jl 0x40234d
mov ecx, dword [esi + 8]
cmp ecx, edx
je 0x402293
mov edx, esi
sub edx, dword [esi + 4]
sub edx, ecx
mov dword [0x40ca30], 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 dword [sym.imp.MSVCR80.dll_malloc]
test eax, eax
pop ecx
mov dword [ebp - 0x7c], eax
je 0x40234d
lea eax, [ebp - 0x74]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
je 0x40233b
push dword [ebp - 0x7c]
lea eax, [ebp - 0x74]
push 0
push 0x407940
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
je 0x40233b
xor eax, eax
push eax
push eax
push eax
push dword [esi + 4]
push eax
push dword [ebp - 0x7c]
push 2
call fcn.004010ab
add esp, 0x1c
test eax, eax
mov dword [ebp - 0x78], eax
je 0x40234d
push dword [esi + 4]
push edi
push eax
call dword [sym.imp.MSVCR80.dll_strncpy]
push dword [ebp - 0x78]
call sub.MSVCR80.dll_strlen
lea edi, [edi + eax + 1]
push edi
call dword [sym.imp.MSVCR80.dll__strdup]
mov ecx, dword [ebp - 0x80]
add esp, 0x14
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 0x40234f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov edi, str.Could_not_create_temporary_file
call fcn.00401f4e
pop ecx
xor eax, eax
mov ecx, dword [ebp + 0x90]
pop edi
xor ecx, ebp
pop esi
call fcn.004065b0
add ebp, 0x94
leave
ret
Function at 0x4026da
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x70]
sub esp, 0x114
mov eax, dword [0x40c17c]
xor eax, ebp
mov dword [ebp + 0x6c], eax
mov eax, dword [ebp + 0x78]
push ebx
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, ecx
lea ecx, [ebp - 0x88]
push ecx
push 0x20019
xor ebx, ebx
push ebx
mov dword [ebp - 0x98], eax
mov eax, dword [ebp + 0x7c]
push str.SoftwarePythonPythonCore
push eax
mov dword [ebp - 0x9c], eax
mov dword [ebp - 0xa4], esi
mov dword [ebp - 0x8c], ebx
call edi
test eax, eax
je 0x40273a
xor eax, eax
jmp 0x402896
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x90]
push eax
lea eax, [ebp + 0x1c]
push eax
push ebx
push dword [ebp - 0x88]
mov dword [ebp - 0x90], 0x50
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x402887
jmp 0x402770
mov esi, dword [ebp - 0xa4]
inc dword [ebp - 0x8c]
cmp esi, ebx
mov dword [ebp - 0x90], 0x50
je 0x40279c
cmp byte [esi], bl
je 0x40279c
lea eax, [ebp + 0x1c]
push eax
push esi
call sub.MSVCR80.dll_strcmp
test eax, eax
pop ecx
pop ecx
jne 0x40285e
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [ebp + 0x1c]
push eax
lea eax, [ebp - 0x34]
push str.Python_Version__s__found_in_registry_
push eax
call esi
lea eax, [ebp + 0x1c]
push eax
lea eax, [ebp - 0x84]
push str.SoftwarePythonPythonCore_sInstallPath
push eax
call esi
add esp, 0x18
lea eax, [ebp - 0x94]
push eax
push 0x20019
push ebx
lea eax, [ebp - 0x84]
push eax
push dword [ebp - 0x9c]
call edi
test eax, eax
jne 0x40285e
push 0x10c
call dword [sym.imp.MSVCR80.dll_malloc]
mov esi, eax
cmp esi, ebx
pop ecx
mov dword [ebp - 0xa0], 0x105
je 0x402852
lea eax, [ebp - 0xa0]
push eax
push esi
push ebx
push ebx
push ebx
push dword [ebp - 0x94]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x402852
lea eax, [ebp - 0x34]
push eax
push ebx
push 0x180
push dword [ebp - 0x98]
call dword [sym.imp.USER32.dll_SendMessageA]
mov ecx, dword [ebp - 0x9c]
push esi
push eax
push 0x19a
push dword [ebp - 0x98]
mov dword [esi + 0x108], ecx
call dword [sym.imp.USER32.dll_SendMessageA]
push dword [ebp - 0x94]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x90]
push eax
lea eax, [ebp + 0x1c]
push eax
push dword [ebp - 0x8c]
push dword [ebp - 0x88]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
je 0x40276a
push dword [ebp - 0x88]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
inc eax
mov ecx, dword [ebp + 0x6c]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004065b0
add ebp, 0x70
leave
ret
Function at 0x403370
Capabilities:
Create process on windows
Resume thread
Self delete

Disassembly:
push ebp
lea ebp, [esp - 0x1e4]
sub esp, 0x264
mov eax, dword [0x40c17c]
xor eax, ebp
mov dword [ebp + 0x1e0], eax
push ebx
push esi
push edi
push 0x104
lea eax, [ebp - 0x28]
push eax
xor ebx, ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp + 0xdc]
push str._s.bat
push eax
call dword [sym.imp.MSVCR80.dll_sprintf]
lea eax, [ebp + 0xdc]
push 0x407f3c
push eax
call dword [sym.imp.MSVCR80.dll_fopen]
mov esi, dword [sym.imp.MSVCR80.dll_fprintf]
push str.:Repeat_n
push eax
mov dword [ebp - 0x2c], eax
call esi
lea eax, [ebp - 0x28]
push eax
mov edi, str.del___s__n
push edi
push dword [ebp - 0x2c]
call esi
lea eax, [ebp - 0x28]
push eax
push str.if_exist___s__goto_Repeat_n
push dword [ebp - 0x2c]
call esi
lea eax, [ebp + 0xdc]
push eax
push edi
push dword [ebp - 0x2c]
call esi
add esp, 0x40
push dword [ebp - 0x2c]
call dword [sym.imp.MSVCR80.dll_fclose]
push 0x44
pop esi
push esi
lea eax, [ebp - 0x80]
push ebx
push eax
call sub.MSVCR80.dll_memset
add esp, 0x10
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x80]
push eax
push 0x407370
push ebx
push esi
push ebx
push ebx
push ebx
lea eax, [ebp + 0xdc]
push eax
push ebx
mov dword [ebp - 0x80], esi
mov dword [ebp - 0x54], 1
mov word [ebp - 0x50], bx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x403495
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 + 0x1e0]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004065b0
add ebp, 0x1e4
leave
ret
Function at 0x4034ad
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push dword [ebp + 8]
call dword [sym.imp.MSVCR80.dll__strdup]
mov esi, dword [sym.imp.MSVCR80.dll_strchr]
push 0x5b
push eax
mov dword [ebp - 8], eax
call esi
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x40356f
push edi
inc ebx
push 0x5d
push ebx
call esi
mov edi, eax
test edi, edi
pop ecx
pop ecx
je 0x40356e
mov byte [edi], 0
inc edi
push 0xa
push edi
call esi
xor esi, esi
cmp eax, esi
pop ecx
pop ecx
je 0x4034ff
mov byte [eax], 0
lea eax, [ebp - 4]
push eax
push 0x20006
push esi
push ebx
push dword [section..data]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x403532
push esi
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 0x403564
push edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
cmp eax, esi
je 0x40355b
cmp eax, 2
je 0x40355b
push esi
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 dword [sym.imp.MSVCR80.dll_free]
pop ecx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x403573
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push dword [ebp + 8]
call dword [sym.imp.MSVCR80.dll__strdup]
mov esi, dword [sym.imp.MSVCR80.dll_strchr]
push 0x5b
push eax
mov dword [ebp - 8], eax
call esi
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x403635
push edi
inc ebx
push 0x5d
push ebx
call esi
mov edi, eax
test edi, edi
pop ecx
pop ecx
je 0x403634
mov byte [edi], 0
inc edi
push 0x3d
push edi
call esi
xor esi, esi
cmp eax, esi
pop ecx
pop ecx
je 0x403634
mov byte [eax], 0
lea eax, [ebp - 4]
push eax
push 0x20006
push esi
push ebx
push dword [section..data]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x4035f8
push esi
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 0x40362a
push edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
cmp eax, esi
je 0x403621
cmp eax, 2
je 0x403621
push esi
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 dword [sym.imp.MSVCR80.dll_free]
pop ecx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x403639
Capabilities:
Delete file

Disassembly:
push esi
push 0x3a
push dword [esp + 0xc]
call dword [sym.imp.MSVCR80.dll_strchr]
mov esi, eax
test esi, esi
pop ecx
pop ecx
jne 0x403650
pop esi
ret
push edi
mov edi, dword [sym.imp.MSVCR80.dll_isspace]
inc esi
movsx eax, byte [esi]
push eax
call edi
test eax, eax
pop ecx
jne 0x403657
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
pop edi
pop esi
ret
Function at 0x40366d
Capabilities:
Delete directory

Disassembly:
push esi
push 0x3a
push dword [esp + 0xc]
call dword [sym.imp.MSVCR80.dll_strchr]
mov esi, eax
test esi, esi
pop ecx
pop ecx
jne 0x403684
pop esi
ret
push edi
mov edi, dword [sym.imp.MSVCR80.dll_isspace]
inc esi
movsx eax, byte [esi]
push eax
call edi
test eax, eax
pop ecx
jne 0x40368b
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
pop edi
pop esi
ret
Function at 0x4036a1
Capabilities:
Delete file
Read file on windows

Disassembly:
mov eax, 0x1018
call fcn.00406600
mov eax, dword [0x40c17c]
xor eax, esp
mov dword [esp + 0x1014], eax
mov eax, dword [esp + 0x101c]
push esi
mov esi, dword [sym.imp.MSVCR80.dll_strchr]
push edi
push 0x5b
push eax
call esi
xor edi, edi
cmp eax, edi
pop ecx
pop ecx
jne 0x4036dc
xor eax, eax
jmp 0x40385e
inc eax
push 0x5d
push eax
mov dword [esp + 0x14], eax
call esi
mov esi, eax
cmp esi, edi
pop ecx
pop ecx
je 0x4036d5
mov byte [esi], 0
inc esi
push esi
push 0x40c1a0
mov dword [esp + 0x10], esi
call sub.MSVCR80.dll_strcmp
test eax, eax
pop ecx
pop ecx
je 0x40385b
push ebx
push ebp
push edi
push edi
mov dword [esp + 0x24], str._remove
mov dword [esp + 0x28], edi
mov dword [esp + 0x20], esi
call dword [sym.imp.MSVCR80.dll__tempnam]
mov esi, dword [sym.imp.MSVCR80.dll___iob_func]
mov ebx, eax
call esi
mov ebp, dword [sym.imp.MSVCR80.dll_freopen]
add eax, 0x40
push eax
mov edi, 0x4078c0
push edi
push ebx
call ebp
add esp, 0x14
test eax, eax
jne 0x40375d
push eax
push eax
push str.freopen_stderr
call dword [sym.imp.USER32.dll_GetFocus]
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
call esi
add eax, 0x20
push eax
push edi
push ebx
call ebp
add esp, 0xc
test eax, eax
jne 0x403782
push eax
push eax
push str.freopen_stdout
call dword [sym.imp.USER32.dll_GetFocus]
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4037c8
lea eax, [esp + 0x18]
push eax
push 2
push dword [esp + 0x18]
mov ecx, edi
call fcn.00401bc8
add esp, 0xc
cmp eax, 0x80000000
jne 0x4037c1
push str._Could_not_load_Python_
call esi
add eax, 0x40
push eax
call dword [sym.imp.MSVCR80.dll_fprintf]
pop ecx
pop ecx
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
call esi
mov ebp, dword [sym.imp.MSVCR80.dll_fflush]
add eax, 0x40
push eax
call ebp
call esi
mov edi, dword [sym.imp.MSVCR80.dll_fclose]
add eax, 0x40
push eax
call edi
call esi
add eax, 0x20
push eax
call ebp
call esi
add eax, 0x20
push eax
call edi
push 0x407860
push ebx
call dword [sym.imp.MSVCR80.dll_fopen]
mov esi, eax
push esi
push 0x1000
lea eax, [esp + 0x44]
push 1
push eax
call dword [sym.imp.MSVCR80.dll_fread]
push esi
mov ebp, eax
call edi
push ebx
call dword [sym.imp.MSVCR80.dll_remove]
add esp, 0x30
mov byte [esp + ebp + 0x24], 0
cmp byte [esp + 0x24], 0
pop ebp
pop ebx
je 0x40384b
push 0
push str.uninstall_script
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.USER32.dll_GetFocus]
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
push dword [esp + 8]
push 0x40c1a0
call sub.MSVCR80.dll_strcpy
pop ecx
pop ecx
xor eax, eax
inc eax
mov ecx, dword [esp + 0x101c]
pop edi
pop esi
xor ecx, esp
call fcn.004065b0
add esp, 0x1018
ret