Function at 0x401000
Capabilities:
Create directory
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x98
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0x88], 0
mov dword [ebp - 4], 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov dword [ebp - 0xc], eax
push str.Report
push 0x65
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 0x50], eax
mov ecx, dword [ebp - 0x50]
push ecx
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0x50]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x5c], eax
push str.ntdll.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebp - 0x10], eax
push str.NtCreateSymbolicLinkObject
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x41c908], eax
push str.RtlInitUnicodeString
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x41c90c], eax
push str.NtCreateDirectoryObject
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x41c910], eax
push 0
push str.C:ProgramDataMicrosoftWindowsWERReportArchiveMyReport
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 0
push 0
push 4
push 0
push 0
push 0x40000000
push str.C:ProgramDataMicrosoftWindowsWERReportArchiveMyReportReport.wer
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0xffffffff
jne 0x401106
push str.____Cannot_create_report.wer_file._n
call fcn.00401580
add esp, 4
or eax, 0xffffffff
jmp 0x40153a
push 0
push 0
mov edx, dword [ebp - 0x58]
push edx
mov eax, dword [ebp - 0x5c]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x401135
push str.____Failed_to_write_to_report.wer_file._n
call fcn.00401580
add esp, 4
or eax, 0xffffffff
jmp 0x40153a
push str.___Report.wer_file_created._n
call fcn.00401580
add esp, 4
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jge 0x401176
mov eax, dword [ebp - 4]
push eax
push str.Error:_CoInitialize_0x_x_n
call fcn.00401580
add esp, 8
or eax, 0xffffffff
jmp 0x40153a
push 0
push 0
push 0
push 3
push 0
push 0
push 0
push 0xffffffffffffffff
push 0
call dword [sym.imp.ole32.dll_CoInitializeSecurity]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jge 0x4011b0
mov ecx, dword [ebp - 4]
push ecx
push str.Error:_CoInitializeSecurity_0x_x_n
call fcn.00401580
add esp, 8
or eax, 0xffffffff
jmp 0x40153a
lea edx, [ebp - 0x18]
push edx
push 0x41455c
push 4
push 0
push 0x41454c
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jge 0x4011ea
mov eax, dword [ebp - 4]
push eax
push str.Error_CoCreateInstance:_0x_x_n
call fcn.00401580
add esp, 8
or eax, 0xffffffff
jmp 0x40153a
lea ecx, [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 0x18]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x18]
push ecx
mov edx, dword [eax + 0xc]
call edx
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jge 0x40121e
mov eax, dword [ebp - 4]
push eax
push str.Error_pIErcLuaSupport:_0x_x_n
call fcn.00401580
add esp, 8
or eax, 0xffffffff
jmp 0x40153a
lea ecx, [ebp - 8]
push ecx
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x1c]
push ecx
mov edx, dword [eax + 0x10]
call edx
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jge 0x401252
mov eax, dword [ebp - 4]
push eax
push str.Error_pIWerStoreFactory:_0x_x_n
call fcn.00401580
add esp, 8
or eax, 0xffffffff
jmp 0x40153a
mov ecx, dword [ebp - 8]
mov edx, dword [ecx]
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [edx + 0xc]
call ecx
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jge 0x401282
mov edx, dword [ebp - 4]
push edx
push str.Error_pIWerStore_Proc3__:_0x_x_n
call fcn.00401580
add esp, 8
or eax, 0xffffffff
jmp 0x40153a
push str.MyReport
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov dword [ebp - 0x54], eax
push str.test
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov dword [ebp - 0x60], eax
lea eax, [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0x54]
push ecx
mov edx, dword [ebp - 8]
mov eax, dword [edx]
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [eax + 0x18]
call edx
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jge 0x4012d6
mov eax, dword [ebp - 4]
push eax
push str.Error_pIWerStore_Proc6_:_0x_x_n
call fcn.00401580
add esp, 8
or eax, 0xffffffff
jmp 0x40153a
xorps xmm0, xmm0
movlpd qword [ebp - 0x98], xmm0
push 0x414478
lea ecx, [ebp - 0x90]
push ecx
call dword [0x41c90c]
mov dword [ebp - 0x84], 0x18
mov dword [ebp - 0x80], 0
mov dword [ebp - 0x78], 0x40
lea edx, [ebp - 0x90]
mov dword [ebp - 0x7c], edx
mov dword [ebp - 0x74], 0
mov dword [ebp - 0x70], 0
lea eax, [ebp - 0x84]
push eax
push 0xf000f
lea ecx, [ebp - 0x24]
push ecx
call dword [0x41c910]
add esp, 0xc
push str.Windows
lea edx, [ebp - 0x2c]
push edx
call dword [0x41c90c]
push str.GLOBAL__C:_test
lea eax, [ebp - 0x34]
push eax
call dword [0x41c90c]
mov dword [ebp - 0x4c], 0x18
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 0x48], ecx
mov dword [ebp - 0x40], 0x40
lea edx, [ebp - 0x2c]
mov dword [ebp - 0x44], edx
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x4c]
push ecx
push 0xf0001
lea edx, [ebp - 0x6c]
push edx
call dword [0x41c908]
add esp, 0x10
push 0x18
push 0
lea eax, [ebp - 0x4c]
push eax
call fcn.00402100
add esp, 0xc
push 8
push 0
lea ecx, [ebp - 0x2c]
push ecx
call fcn.00402100
add esp, 0xc
push 8
push 0
lea edx, [ebp - 0x34]
push edx
call fcn.00402100
add esp, 0xc
push str.ProgramData
lea eax, [ebp - 0x2c]
push eax
call dword [0x41c90c]
push str.GLOBAL__C:Programdata
lea ecx, [ebp - 0x34]
push ecx
call dword [0x41c90c]
mov dword [ebp - 0x4c], 0x18
mov edx, dword [ebp - 0x24]
mov dword [ebp - 0x48], edx
mov dword [ebp - 0x40], 0x40
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
lea ecx, [ebp - 0x34]
push ecx
lea edx, [ebp - 0x4c]
push edx
push 0xf0001
lea eax, [ebp - 0x68]
push eax
call dword [0x41c908]
add esp, 0x10
push 0x18
push 0
lea ecx, [ebp - 0x4c]
push ecx
call fcn.00402100
add esp, 0xc
push 8
push 0
lea edx, [ebp - 0x2c]
push edx
call fcn.00402100
add esp, 0xc
push 8
push 0
lea eax, [ebp - 0x34]
push eax
call fcn.00402100
add esp, 0xc
push str.__C:
lea ecx, [ebp - 0x2c]
push ecx
call dword [0x41c90c]
push str.___test
lea edx, [ebp - 0x34]
push edx
call dword [0x41c90c]
mov dword [ebp - 0x4c], 0x18
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x40], 0x40
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
lea ecx, [ebp - 0x34]
push ecx
lea edx, [ebp - 0x4c]
push edx
push 0xf0001
lea eax, [ebp - 0x64]
push eax
call dword [0x41c908]
add esp, 0x10
lea ecx, [ebp - 0x98]
push ecx
lea edx, [ebp - 0x60]
push edx
push 0
push 0
push 0x400
mov eax, dword [ebp - 0x54]
push eax
mov ecx, dword [ebp - 0x20]
mov edx, dword [ecx]
mov eax, dword [ebp - 0x20]
push eax
mov ecx, dword [edx + 0x60]
call ecx
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jge 0x401501
mov edx, dword [ebp - 4]
push edx
push str.Error_pIWerReport:_0x_x_n
call fcn.00401580
add esp, 8
or eax, 0xffffffff
jmp 0x40153a
push 0x7d0
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp - 0x64]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x68]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x6c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x401538
xor eax, eax
mov esp, ebp
pop ebp
ret