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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
mov eax, dword [0x46c004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, ecx
push edi
push str.Py_Initialize
push ebx
mov edi, edx
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x40], eax
call esi
push str.PySys_SetArgv
push ebx
mov dword [ebp - 0x3c], eax
call esi
push str.PyRun_SimpleString
push ebx
mov dword [ebp - 0x38], eax
call esi
push str.Py_Finalize
push ebx
mov dword [ebp - 0x44], eax
call esi
push str.Py_BuildValue
push ebx
mov dword [ebp - 0x48], eax
call esi
push str.PyCFunction_New
push ebx
mov dword [ebp - 0x4c], eax
call esi
push str.PyArg_ParseTuple
push ebx
mov dword [ebp - 0x54], eax
call esi
push str.PyErr_Format
push ebx
mov dword [ebp - 0x50], eax
call esi
mov esi, dword [ebp - 0x3c]
test esi, esi
je 0x402284
cmp dword [ebp - 0x38], 0
je 0x402284
cmp dword [ebp - 0x44], 0
je 0x402284
cmp dword [ebp - 0x48], 0
je 0x402284
cmp dword [ebp - 0x4c], 0
je 0x402284
cmp dword [ebp - 0x50], 0
je 0x402284
test eax, eax
je 0x402284
cmp dword [ebp - 0x54], 0
je 0x402284
test edi, edi
je 0x40227d
cmp byte [edi], 0
je 0x40227d
push 0x80
push edi
call fcn.0043a224
mov ebx, eax
pop ecx
pop ecx
cmp ebx, 0xffffffff
jne 0x4021a3
push edi
push str.Could_not_open_postinstall_script__s_n
push 2
call fcn.00410048
pop ecx
push eax
call fcn.004015ea
add esp, 0xc
push 3
pop eax
jmp 0x402287
push str.Running_Script...
push 0x3ec
push dword [0x46ec70]
call dword [sym.imp.USER32.dll_SetDlgItemTextA]
call esi
mov ecx, dword [ebp - 0x58]
call fcn.00401f7b
push 0x400
push 0
mov esi, 0x46e060
push esi
call fcn.00408f90
mov edi, dword [ebp - 0x40]
add esp, 0xc
mov eax, esi
sub eax, edi
mov dword [ebp - 0x40], eax
push 2
pop edx
mov dword [ebp - 0x3c], edx
mov ecx, dword [edi]
test ecx, ecx
je 0x4021fd
call fcn.004018d8
mov edx, dword [ebp - 0x3c]
mov ecx, eax
mov eax, dword [ebp - 0x40]
jmp 0x4021ff
xor ecx, ecx
mov dword [eax + edi], ecx
add edi, 4
sub edx, 1
mov dword [ebp - 0x3c], edx
jne 0x4021e8
push esi
push 2
call dword [ebp - 0x38]
pop ecx
pop ecx
cmp dword [esi], 0
je 0x402222
push dword [esi]
call fcn.00425893
pop ecx
add esi, 4
cmp esi, 0x46e068
jl 0x402215
lea eax, [ebp - 0x34]
mov dword [ebp - 0x38], 3
push eax
push ebx
call fcn.00434f43
pop ecx
pop ecx
test eax, eax
jne 0x40226e
mov esi, dword [ebp - 0x20]
lea eax, [esi + 5]
call fcn.00456ce0
mov edi, esp
push esi
push edi
push ebx
call fcn.0043ac2c
add esp, 0xc
test eax, eax
jle 0x40226e
push edi
mov word [eax + edi], 0xa
call dword [ebp - 0x44]
pop ecx
mov dword [ebp - 0x38], eax
call dword [ebp - 0x48]
push ebx
call fcn.0043b287
mov eax, dword [ebp - 0x38]
pop ecx
jmp 0x402287
push 2
jmp 0x40219d
xor eax, eax
inc eax
lea esp, [ebp - 0x64]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004079b2
mov esp, ebp
pop ebp
ret
Function at 0x40229b
Capabilities:
Delete file
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
mov ebx, dword [ebp + 0xc]
xor eax, eax
push esi
push edi
xor esi, esi
mov dword [ebp - 8], ecx
push eax
inc esi
mov dword [ebx], eax
push eax
mov dword [ebp - 4], esi
call fcn.00439702
pop ecx
pop ecx
push 0
push 0x80000080
push 2
push 0
push esi
push 0xc0000000
push eax
mov dword [ebp - 0x14], eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov edi, eax
push 0xfffffffffffffff5
call esi
push 0xfffffffffffffff4
mov dword [ebp - 0xc], eax
call esi
mov esi, dword [sym.imp.KERNEL32.dll_SetStdHandle]
push edi
push 0xfffffffffffffff5
mov dword [ebp - 0x10], eax
call esi
push edi
push 0xfffffffffffffff4
call esi
call fcn.00401e5a
mov dword [ebp + 0xc], eax
test eax, eax
je 0x402328
push dword [ebp + 8]
mov edx, dword [ebp - 8]
push ecx
mov ecx, eax
call fcn.00402095
pop ecx
pop ecx
push dword [ebp + 0xc]
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x40233d
push str._Could_not_load_Python_
push 2
call fcn.00410048
pop ecx
push eax
call fcn.004015ea
pop ecx
pop ecx
push dword [ebp - 0xc]
push 0xfffffffffffffff5
call esi
push dword [ebp - 0x10]
push 0xfffffffffffffff4
call esi
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, 0x1000
cmp eax, esi
jae 0x402368
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
lea eax, [esi + 1]
push eax
call fcn.004350fa
mov dword [ebx], eax
pop ecx
test eax, eax
je 0x4023a0
xor eax, eax
push eax
push eax
push eax
push edi
mov dword [ebp + 0xc], eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp + 0xc]
push eax
push esi
push dword [ebx]
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [ebx]
mov eax, dword [ebp + 0xc]
mov byte [eax + ecx], 0
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4023ba
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push edi
mov edi, ecx
mov dword [ebp - 0x14], edx
push str.Py_Initialize
push edi
call esi
push str.Py_SetProgramName
push edi
mov dword [ebp - 4], eax
call esi
push str.Py_Finalize
push edi
mov dword [ebp - 0xc], eax
call esi
push str.PyRun_SimpleString
push edi
mov dword [ebp - 8], eax
call esi
push str.PyErr_Print
push edi
mov dword [ebp - 0x10], eax
call esi
cmp dword [ebp - 4], 0
mov ebx, eax
je 0x402449
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x402449
cmp dword [ebp - 8], 0
je 0x402449
mov esi, dword [ebp - 0x10]
test esi, esi
je 0x402449
test ebx, ebx
je 0x402449
push 0x46e6c0
call eax
call dword [ebp - 4]
mov ecx, edi
call fcn.00401f7b
push dword [ebp - 0x14]
call esi
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x402442
call ebx
call dword [ebp - 8]
mov eax, esi
jmp 0x40244c
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x402453
Capabilities:
Delete file
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
mov eax, dword [0x46c004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x46e9bc]
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x8c], eax
push ebx
push ebx
call fcn.00439702
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]
mov ebx, eax
push 0xfffffffffffffff5
call esi
push 0xfffffffffffffff4
mov dword [ebp - 0x88], eax
call esi
mov esi, dword [sym.imp.KERNEL32.dll_SetStdHandle]
push ebx
push 0xfffffffffffffff5
mov dword [ebp - 0x90], eax
call esi
push ebx
push 0xfffffffffffffff4
call esi
call fcn.00401e5a
mov edi, eax
test edi, edi
jne 0x402502
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]
add esp, 0xc
lea ecx, [ebp - 0x84]
call fcn.0040174b
or eax, 0xffffffff
jmp 0x4025db
mov edx, dword [ebp - 0x8c]
mov ecx, edi
call fcn.004023ba
push edi
mov dword [ebp - 0x8c], eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push dword [ebp - 0x88]
push 0xfffffffffffffff5
call esi
push dword [ebp - 0x90]
push 0xfffffffffffffff4
call esi
cmp dword [ebp - 0x8c], 0
je 0x4025c2
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
jne 0x402552
mov edi, 0x1000
lea eax, [edi + 0x2d]
push eax
call fcn.004350fa
mov esi, eax
pop ecx
test esi, esi
je 0x4025b8
and dword [ebp - 0x88], 0
mov ecx, str.Running_the_pre_installation_script_failed_r_n
mov edx, esi
sub edx, ecx
mov al, byte [ecx]
mov byte [edx + ecx], al
inc ecx
test al, al
jne 0x402572
xor eax, eax
push eax
push eax
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp - 0x88]
push eax
push edi
lea eax, [esi + 0x2c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp - 0x88]
mov ecx, esi
mov byte [eax + esi + 0x2c], 0
call fcn.0040174b
push esi
call fcn.00425893
pop ecx
jmp 0x4025c2
mov ecx, str.Out_of_memory_
call fcn.0040174b
push ebx
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.004079b2
mov esp, ebp
pop ebp
ret
Function at 0x4027f7
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
xor ebx, ebx
push ebx
push 0x80
push 3
push ebx
push 1
push 0x80000000
push 0x46eb00
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x402826
xor eax, eax
jmp 0x40286f
push edi
lea eax, [ebp - 8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push ebx
push ebx
push ebx
push 2
push ebx
push esi
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, eax
push esi
call ebx
xor eax, eax
test edi, edi
je 0x40286e
push eax
push eax
push eax
push 4
push edi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
push edi
mov esi, eax
call ebx
mov eax, dword [ebp - 4]
mov dword [0x46e9d4], eax
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4028c2
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x46c004]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [0x46e9d4]
mov eax, dword [0x46e954]
push esi
lea ecx, [edx + eax]
sub edx, dword [ecx - 6]
sub edx, dword [ecx - 0xa]
and dword [0x46e9bc], 0
sub edx, 0x22
and dword [0x46fc84], 0
cmp dword [ecx - 0x16], 0x6054b50
lea esi, [eax + edx]
je 0x40290e
xor eax, eax
jmp 0x402a0d
cmp dword [esi], 0x1234567b
je 0x402927
mov edx, str.Invalid_cfgdata_magic_number__see_bdist_wininst.py_
xor ecx, ecx
call fcn.004025ec
jmp 0x402a0d
test edx, edx
js 0x402907
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x40293e
mov eax, esi
sub eax, dword [esi + 4]
sub eax, ecx
mov dword [0x46fc88], eax
push ebx
push edi
lea edi, [esi + 4]
sub edx, dword [edi]
sub edx, ecx
mov dword [ebp - 0x10c], edi
mov dword [0x46e6a4], edx
sub esi, dword [edi]
push 0x104
call fcn.004350fa
mov ebx, eax
pop ecx
test ebx, ebx
je 0x402a09
lea eax, [ebp - 0x108]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
je 0x4029f7
push ebx
push 0
push 0x466160
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
je 0x4029f7
xor eax, eax
mov edx, ebx
push eax
push eax
push eax
push dword [edi]
push eax
push 2
pop ecx
call fcn.004010ac
mov edi, eax
add esp, 0x14
test edi, edi
je 0x402a09
mov eax, dword [ebp - 0x10c]
push dword [eax]
push esi
push edi
call fcn.00422980
mov ecx, edi
add esp, 0xc
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4029cb
sub ecx, edx
lea eax, [esi + 1]
add eax, ecx
push eax
call fcn.0043a68e
pop ecx
push edi
mov dword [0x46e9bc], eax
mov dword [0x46fc84], ebx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
xor eax, eax
inc eax
jmp 0x402a0b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, str.Could_not_create_temporary_file
mov ecx, eax
call fcn.004025ec
xor eax, eax
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004079b2
mov esp, ebp
pop ebp
ret
Function at 0x402dc2
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x46c004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
lea eax, [ebp - 0xfc]
mov dword [ebp - 0x100], ecx
push eax
push 0x20019
xor edi, edi
mov esi, edx
push edi
push str.SoftwarePythonPythonCore
push esi
mov dword [ebp - 0x108], esi
mov ebx, edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x402e0e
xor eax, eax
jmp 0x402f87
push edi
push edi
push edi
push edi
lea eax, [ebp - 0xf8]
mov dword [ebp - 0xf8], 0x50
push eax
lea eax, [ebp - 0x54]
push eax
push edi
push dword [ebp - 0xfc]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x402f74
inc ebx
mov dword [ebp - 0xf8], 0x50
cmp byte [0x46e9c0], 0
je 0x402e88
lea ecx, [ebp - 0x54]
mov eax, 0x46e9c0
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x402e7b
test dl, dl
je 0x402e77
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x402e7b
add eax, 2
add ecx, 2
test dl, dl
jne 0x402e5b
xor eax, eax
jmp 0x402e80
sbb eax, eax
or eax, 1
test eax, eax
jne 0x402f56
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0xf4]
push str.Python_Version__s__found_in_registry_
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0xa4]
push str.SoftwarePythonPythonCore_sInstallPath
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x18
lea eax, [ebp - 0x104]
push eax
push 0x20019
push 0
lea eax, [ebp - 0xa4]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x402f56
push 0x10c
call fcn.004350fa
mov esi, eax
mov dword [ebp - 0x10c], 0x105
pop ecx
test esi, esi
je 0x402f48
lea eax, [ebp - 0x10c]
push eax
push esi
xor eax, eax
push eax
push eax
push eax
push dword [ebp - 0x104]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x402f48
lea eax, [ebp - 0xf4]
push eax
push 0
push 0x180
push dword [ebp - 0x100]
call dword [sym.imp.USER32.dll_SendMessageA]
mov ecx, dword [ebp - 0x108]
push esi
push eax
push 0x19a
push dword [ebp - 0x100]
mov dword [esi + 0x108], ecx
call dword [sym.imp.USER32.dll_SendMessageA]
push dword [ebp - 0x104]
call edi
mov esi, dword [ebp - 0x108]
xor eax, eax
push eax
push eax
push eax
push eax
lea eax, [ebp - 0xf8]
push eax
lea eax, [ebp - 0x54]
push eax
push ebx
push dword [ebp - 0xfc]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
je 0x402e3f
push dword [ebp - 0xfc]
call edi
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004079b2
mov esp, ebp
pop ebp
ret
Function at 0x403e99
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x84
mov eax, dword [0x46c004]
xor eax, ebp
mov dword [ebp - 4], eax
push 1
push 0
push 0x465af8
push 0x46eb00
push str.runas
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
cmp eax, 0x20
jg 0x403ef8
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
lea eax, [ebp - 0x84]
push 0x10
push 0x4668cc
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004079b2
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x260
mov eax, dword [0x46c004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x104
lea eax, [ebp - 0x108]
xor ebx, ebx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x20c]
push str._s.bat
push eax
call fcn.00401656
lea eax, [ebp - 0x20c]
push 0x4669a0
push eax
call fcn.0040fec3
mov esi, eax
push str.:Repeat_n
push esi
call fcn.004015ea
lea eax, [ebp - 0x108]
mov edi, str.del___s__n
push eax
push edi
push esi
call fcn.004015ea
lea eax, [ebp - 0x108]
push eax
push str.if_exist___s__goto_Repeat_n
push esi
call fcn.004015ea
lea eax, [ebp - 0x20c]
push eax
push edi
push esi
call fcn.004015ea
add esp, 0x40
push esi
call fcn.004101be
push 0x44
pop esi
push esi
lea eax, [ebp - 0x260]
push ebx
push eax
call fcn.00408f90
add esp, 0x10
mov dword [ebp - 0x260], esi
xor eax, eax
mov dword [ebp - 0x234], 1
mov word [ebp - 0x230], ax
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x260]
push eax
push 0x465ae8
push ebx
push esi
push ebx
push ebx
push ebx
lea eax, [ebp - 0x20c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x4042b5
mov esi, dword [sym.imp.KERNEL32.dll_SetThreadPriority]
push 0xfffffffffffffff1
push dword [ebp - 0x218]
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 - 0x21c]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x218]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push dword [ebp - 0x218]
call esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004079b2
mov esp, ebp
pop ebp
ret
Function at 0x4042c6
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
mov ebx, ecx
push edi
push ebx
call fcn.0043a68e
push 0x5b
push eax
mov dword [ebp - 8], eax
call fcn.004088b0
mov edi, eax
add esp, 0xc
test edi, edi
je 0x404386
push esi
inc edi
push 0x5d
push edi
call fcn.004088b0
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x404385
mov byte [esi], 0
inc esi
push 0xa
push esi
call fcn.004088b0
pop ecx
pop ecx
test eax, eax
je 0x404318
mov byte [eax], 0
lea eax, [ebp - 4]
push eax
push 0x20006
push 0
push edi
push dword [0x46ca34]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x40434b
push 0
push str.Could_not_open_key
push ebx
call dword [sym.imp.USER32.dll_GetFocus]
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x40437c
push esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
je 0x404373
cmp eax, 2
je 0x404373
push 0
push str.Could_not_delete_key
push ebx
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.00425893
pop ecx
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40438c
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
mov ebx, ecx
push edi
push ebx
call fcn.0043a68e
push 0x5b
push eax
mov dword [ebp - 8], eax
call fcn.004088b0
mov edi, eax
add esp, 0xc
test edi, edi
je 0x40444c
push esi
inc edi
push 0x5d
push edi
call fcn.004088b0
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x40444b
mov byte [esi], 0
inc esi
push 0x3d
push esi
call fcn.004088b0
pop ecx
pop ecx
test eax, eax
je 0x40444b
mov byte [eax], 0
lea eax, [ebp - 4]
push eax
push 0x20006
push 0
push edi
push dword [0x46ca34]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x404411
push 0
push str.Could_not_open_key
push ebx
call dword [sym.imp.USER32.dll_GetFocus]
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x404442
push esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test eax, eax
je 0x404439
cmp eax, 2
je 0x404439
push 0
push str.Could_not_delete_value
push ebx
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.00425893
pop ecx
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x43f15d
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0043e937

Function at 0x43f168
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0043eb72

Function at 0x446d4c
Capabilities:
Create thread
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00446b40

Function at 0x451e64
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00451a69

Function at 0x451e6f
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00451bea
Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43300c
nop
nop
nop
nop
pop eax
nop
add eax, 0x40a063
nop
nop
sub eax, 0x40a009
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
nop
add ebx, 4
cmp ebx, ecx
nop
nop
nop
nop
jl 0x433030
nop
nop
nop
nop
nop
nop
nop
add eax, 0xc
cmp dword [eax], 0
nop
nop
nop
nop
nop
nop
nop
jne 0x43301e
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x401030
Capabilities:
Read file on windows
Write file on windows

Disassembly:
sub esp, 0x48
push ebx
push esi
xor ebx, ebx
lea eax, [esp + 0x18]
push 0x38
push str.1.2.11
push eax
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x24], ebx
call fcn.00407ba0
mov esi, eax
add esp, 0xc
test esi, esi
je 0x401084
mov eax, dword [esp + 0x58]
push esi
add eax, 0x12
push eax
push str.Failed_to_extract__s:_inflateInit___failed_with_return_code__d__n
call fcn.00401be0
add esp, 0xc
or eax, 0xffffffff
pop esi
pop ebx
add esp, 0x48
ret
push 0x2000
call fcn.0040bb9f
add esp, 4
mov dword [esp + 0x10], eax
test eax, eax
jne 0x4010b8
mov eax, dword [esp + 0x58]
add eax, 0x12
push eax
push str.Failed_to_extract__s:_failed_to_allocate_temporary_input_buffer__n
push str.malloc
call fcn.00401bc0
add esp, 0xc
jmp 0x4011e0
push 0x2000
call fcn.0040bb9f
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x4010ea
mov ecx, dword [esp + 0x58]
add ecx, 0x12
push ecx
push str.Failed_to_extract__s:_failed_to_allocate_temporary_output_buffer__n
push str.malloc
call fcn.00401bc0
add esp, 0xc
jmp 0x4011e0
mov eax, dword [esp + 0x58]
xor ecx, ecx
push ebp
mov ebp, dword [esp + 0x60]
push edi
mov eax, dword [eax + 8]
mov edi, dword [esp + 0x68]
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ecx
test ecx, ecx
jb 0x401119
ja 0x401112
cmp eax, 0x2000
jbe 0x401119
mov esi, 0x2000
jmp 0x40111b
mov esi, eax
mov eax, dword [esp + 0x5c]
push dword [eax]
push esi
push 1
push dword [esp + 0x24]
call fcn.0040aefe
add esp, 0x10
cmp eax, esi
jne 0x4011db
mov eax, dword [esp + 0x5c]
push dword [eax]
call fcn.0040acec
add esp, 4
test eax, eax
jne 0x4011db
sub dword [esp + 0x10], esi
mov dword [esp + 0x24], esi
sbb dword [esp + 0x14], eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x20], eax
lea eax, [esp + 0x20]
mov dword [esp + 0x30], 0x2000
push 0
push eax
mov dword [esp + 0x34], ebx
call fcn.00406210
add esp, 8
mov dword [esp + 0x1c], eax
lea ecx, [eax + 4]
cmp ecx, 6
ja case.0x401190.1
movzx ecx, byte [ecx + 0x401264]
jmp dword [ecx*4 + 0x401258]
mov esi, 0x2000
sub esi, dword [esp + 0x30]
test ebp, ebp
je 0x401204
push ebp
push esi
push 1
push ebx
call fcn.0040bb16
add esp, 0x10
cmp eax, esi
jne 0x4011c2
push ebp
call fcn.0040acec
add esp, 4
test eax, eax
je 0x401215
or eax, 0xffffffff
push eax
mov eax, dword [esp + 0x64]
add eax, 0x12
push eax
push str.Failed_to_extract__s:_decompression_resulted_in_return_code__d__n
call fcn.00401be0
add esp, 0xc
or esi, 0xffffffff
pop edi
pop ebp
lea eax, [esp + 0x18]
push eax
call fcn.004079e0
push dword [esp + 0x14]
call fcn.0040bb84
push ebx
call fcn.0040bb84
add esp, 0xc
mov eax, esi
pop esi
pop ebx
add esp, 0x48
ret
test edi, edi
je 0x401219
push esi
push ebx
push edi
call fcn.00409950
add esp, 0xc
add edi, esi
mov eax, dword [esp + 0x1c]
cmp dword [esp + 0x30], 0
je 0x401162
cmp eax, 1
je 0x401253
mov ecx, dword [esp + 0x14]
test ecx, ecx
jne 0x401237
cmp dword [esp + 0x10], ecx
jbe 0x4011c5
mov eax, dword [esp + 0x10]
jmp 0x401105
mov eax, 0xfffffffd
jmp 0x4011c5
cmp eax, 1
jne 0x4011c5
xor esi, esi
jmp 0x4011de