Function at 0x4314c8
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 0x49a898
push 0x438d90
mov eax, dword fs:[0]
push eax
push ecx
push ecx
mov eax, 0x1698
call fcn.00447420
mov eax, dword [0x49d340]
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 [0x4aacb6], bl
jne 0x431539
push 0x64
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
xor eax, eax
jmp 0x431943
mov byte [0x4aacb6], bl
push 0x410
push ebx
lea eax, [ebp - 0x638]
push eax
call fcn.00438370
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 0x43157f
push str.Unknown
lea eax, [ebp - 0x638]
push eax
call esi
lea eax, [ebp - 0x638]
push eax
call fcn.00431301
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.00430822
cmp eax, ebx
je 0x4315b1
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 0x431601
push dword [ebp - 0x162c]
push eax
call fcn.004308ff
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 0x431641
push str.Error_creating_exception_report_r_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x431532
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.00438370
add esp, 0xc
mov dword [ebp - 0x162c], str.Unknown
push 0x1c
lea eax, [ebp - 0x16ac]
push eax
push dword [esi + 0xb8]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4316be
push 0x40e
lea eax, [ebp - 0xe58]
push eax
push dword [ebp - 0x16a8]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jbe 0x4316be
lea eax, [ebp - 0xe58]
push eax
call fcn.00431301
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.00431154
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.0043084b
push dword [ebp - 0x1634]
push str.Exception_handler_called_in__s._r_n
push dword [ebp - 0x1630]
call fcn.0043084b
add esp, 0x2c
push dword [ebp - 0x1630]
call fcn.00430ca2
pop ecx
cmp dword [edi], 0xc0000005
jne 0x431764
cmp dword [edi + 0x10], 2
jb 0x431764
mov eax, str.Read_from
cmp dword [edi + 0x14], ebx
je 0x431734
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 0x48bb90
push dword [ebp - 0x1630]
call fcn.0043084b
add esp, 0x1c
mov edi, dword [ebp - 0x1630]
call fcn.00431319
push str._r_nBytes_at_CS:EIP:_r_n
push edi
call fcn.0043084b
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 0x4317f2
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.0043084b
add esp, 0xc
mov dword [ebp - 4], 0xfffffffe
jmp 0x4317ea
inc dword [ebp - 0x162c]
jmp 0x43178e
push str._r_n_r_nStack:__Ignore__r_n_r_n
push edi
call fcn.0043084b
push str.Module_List:__Ignore__r_n
push edi
call fcn.0043084b
call fcn.004313aa
push str.CRASHLOG.TXT
push str._r_n__end_of__s___r_n
push edi
call fcn.0043084b
add esp, 0x1c
cmp dword [0x4ecff8], ebx
jle 0x43184d
push ebx
lea eax, [ebp - 0x1634]
push eax
mov esi, 0x4ac798
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 [0x4ecff8], 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 0x48bc90
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.00438370
add esp, 0xc
push 0x206
lea eax, [ebp - 0x638]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push dword [0x4ec7d0]
lea eax, [ebp - 0x228]
push eax
call esi
lea eax, [ebp - 0x638]
push eax
call fcn.00431301
pop ecx
push eax
lea eax, [ebp - 0x228]
push eax
call esi
push 0x48a3fc
lea eax, [ebp - 0x228]
push eax
call esi
push 0x44
pop esi
push esi
push ebx
lea eax, [ebp - 0x1690]
push eax
call fcn.00438370
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.00433192
leave
ret