Function at 0x4799e2
Capabilities:
Create process on windows
Print debug messages
Terminate process
Write and execute a file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x80d240
push 0x54dec0
mov eax, dword fs:[0]
push eax
push ecx
push ecx
mov eax, 0x1698
call fcn.0054f130
mov eax, dword [0x820ac4]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov eax, dword [ebp + 8]
mov dword [ebp - 0x162c], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x1634], eax
xor ebx, ebx
cmp byte [0x844cf5], bl
jne 0x479a53
push 0x64
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
xor eax, eax
jmp 0x479e5d
mov byte [0x844cf5], bl
push 0x410
push ebx
lea eax, [ebp - 0x638]
push eax
call fcn.0054b920
add esp, 0xc
push 0x206
lea eax, [ebp - 0x638]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyW]
test eax, eax
ja 0x479a99
push 0x7b5f6c
lea eax, [ebp - 0x638]
push eax
call esi
lea eax, [ebp - 0x638]
push eax
call fcn.0047981b
pop ecx
mov dword [ebp - 0x1638], eax
push eax
lea eax, [ebp - 0xa48]
push eax
call esi
push 0x2e
pop ecx
lea eax, [ebp - 0xa48]
call fcn.00478d3b
cmp eax, ebx
je 0x479acb
mov word [eax], bx
push str.CRASH.DMP
push dword [ebp - 0x1638]
call esi
push ebx
push 0x80000080
push 2
push ebx
push ebx
push 0x40000000
lea eax, [ebp - 0x638]
push eax
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileW]
call edi
mov dword [ebp - 0x1630], eax
cmp eax, 0xffffffff
je 0x479b1b
push dword [ebp - 0x162c]
push eax
call fcn.00478e18
pop ecx
pop ecx
push dword [ebp - 0x1630]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push str.CRASHLOG.TXT
push dword [ebp - 0x1638]
call esi
push ebx
push 0x80000080
push 2
push ebx
push ebx
push 0x40000000
lea eax, [ebp - 0x638]
push eax
call edi
mov dword [ebp - 0x1630], eax
cmp eax, 0xffffffff
jne 0x479b5b
push str.Error_creating_exception_report_r_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x479a4c
push 2
push ebx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [ebp - 0x162c]
mov edi, dword [eax]
mov esi, dword [eax + 4]
push 0x410
push ebx
lea eax, [ebp - 0xe58]
push eax
call fcn.0054b920
add esp, 0xc
mov dword [ebp - 0x162c], 0x7b5f6c
push 0x1c
lea eax, [ebp - 0x16ac]
push eax
push dword [esi + 0xb8]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x479bd8
push 0x40e
lea eax, [ebp - 0xe58]
push eax
push dword [ebp - 0x16a8]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jbe 0x479bd8
lea eax, [ebp - 0xe58]
push eax
call fcn.0047981b
pop ecx
mov dword [ebp - 0x162c], eax
mov eax, dword [edi]
push dword [esi + 0xb8]
push dword [esi + 0xbc]
push dword [ebp - 0x162c]
push eax
push eax
call fcn.0047966e
pop ecx
push eax
lea eax, [ebp - 0xa48]
push eax
push str._s_caused__s__0x_08x___r_nin_module__s_at__04x:_08x._r_n_r_n
push dword [ebp - 0x1630]
call fcn.00478d64
push dword [ebp - 0x1634]
push str.Exception_handler_called_in__s._r_n
push dword [ebp - 0x1630]
call fcn.00478d64
add esp, 0x2c
push dword [ebp - 0x1630]
call fcn.004791bb
pop ecx
cmp dword [edi], 0xc0000005
jne 0x479c7e
cmp dword [edi + 0x10], 2
jb 0x479c7e
mov eax, str.Read_from
cmp dword [edi + 0x14], ebx
je 0x479c4e
mov eax, str.Write_to
push dword [edi + 0x18]
push eax
push str._s_location__08x_caused_an_access_violation._r_n
lea eax, [ebp - 0x1628]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
lea eax, [ebp - 0x1628]
push eax
push 0x7bbb28
push dword [ebp - 0x1630]
call fcn.00478d64
add esp, 0x1c
mov edi, dword [ebp - 0x1630]
call fcn.00479833
push str._r_nBytes_at_CS:EIP:_r_n
push edi
call fcn.00478d64
pop ecx
pop ecx
mov eax, dword [esi + 0xb8]
mov dword [ebp - 0x1634], eax
mov dword [ebp - 0x162c], ebx
cmp dword [ebp - 0x162c], 0x10
jge 0x479d0c
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 0x162c]
mov ecx, dword [ebp - 0x1634]
movzx eax, byte [eax + ecx]
push eax
push str._02x
push edi
call fcn.00478d64
add esp, 0xc
mov dword [ebp - 4], 0xfffffffe
jmp 0x479d04
inc dword [ebp - 0x162c]
jmp 0x479ca8
push str._r_n_r_nStack:__Ignore__r_n_r_n
push edi
call fcn.00478d64
push str.Module_List:__Ignore__r_n
push edi
call fcn.00478d64
call fcn.004798c4
push str.CRASHLOG.TXT
push str._r_n__end_of__s___r_n
push edi
call fcn.00478d64
add esp, 0x1c
cmp dword [0x8b584c], ebx
jle 0x479d67
push ebx
lea eax, [ebp - 0x1634]
push eax
mov esi, 0x874f40
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, eax
push eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [0x8b584c], ebx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push str.CrashReport.exe
push dword [ebp - 0x1638]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyW]
call esi
lea eax, [ebp - 0x638]
push eax
lea eax, [ebp - 0x228]
push eax
call esi
push 0x7bbc28
lea eax, [ebp - 0x228]
push eax
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
call esi
push 0x410
push ebx
lea eax, [ebp - 0x638]
push eax
call fcn.0054b920
add esp, 0xc
push 0x206
lea eax, [ebp - 0x638]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push dword [0x8b5028]
lea eax, [ebp - 0x228]
push eax
call esi
lea eax, [ebp - 0x638]
push eax
call fcn.0047981b
pop ecx
push eax
lea eax, [ebp - 0x228]
push eax
call esi
push 0x7b8f78
lea eax, [ebp - 0x228]
push eax
call esi
push 0x44
pop esi
push esi
push ebx
lea eax, [ebp - 0x1690]
push eax
call fcn.0054b920
add esp, 0xc
mov dword [ebp - 0x1690], esi
xor esi, esi
inc esi
mov dword [ebp - 0x1664], esi
mov word [ebp - 0x1660], 5
xor eax, eax
lea edi, [ebp - 0x1648]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x1648]
push eax
lea eax, [ebp - 0x1690]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x228]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov eax, esi
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.0054ae61
leave
ret