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

Disassembly:
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
sub rsp, 0x188
mov qword [rsp + 0x90], 0
mov qword [rsp + 0x80], 0
mov qword [rsp + 0x88], 0
mov qword [rsp + 0x58], 0
mov qword [rsp + 0x160], 0
mov dword [rsp + 0x50], 0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x68], rax
lea r8, str.Report
mov edx, 0x65
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov qword [rsp + 0xf0], rax
mov rdx, qword [rsp + 0xf0]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [rsp + 0x60], eax
mov rdx, qword [rsp + 0xf0]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov qword [rsp + 0x100], rax
lea rcx, str.ntdll.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov qword [rsp + 0x70], rax
lea rdx, str.NtCreateSymbolicLinkObject
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140020ab0], rax
lea rdx, str.RtlInitUnicodeString
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140020ab8], rax
lea rdx, str.NtCreateDirectoryObject
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140020ac0], rax
xor edx, edx
lea rcx, str.C:ProgramDataMicrosoftWindowsWERReportArchiveMyReport
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 4
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
lea rcx, str.C:ProgramDataMicrosoftWindowsWERReportArchiveMyReportReport.wer
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rsp + 0x78], rax
cmp qword [rsp + 0x78], 0xffffffffffffffff
jne 0x14000116f
lea rcx, str.____Cannot_create_report.wer_file._n
call fcn.1400017b0
mov eax, 0xffffffff
jmp 0x140001748
mov qword [rsp + 0x20], 0
xor r9d, r9d
mov r8d, dword [rsp + 0x60]
mov rdx, qword [rsp + 0x100]
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1400011ad
lea rcx, str.____Failed_to_write_to_report.wer_file._n
call fcn.1400017b0
mov eax, 0xffffffff
jmp 0x140001748
lea rcx, str.___Report.wer_file_created._n
call fcn.1400017b0
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitialize]
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
jge 0x1400011f1
mov edx, dword [rsp + 0x50]
lea rcx, str.Error:_CoInitialize_0x_x_n
call fcn.1400017b0
mov eax, 0xffffffff
jmp 0x140001748
mov qword [rsp + 0x40], 0
mov dword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 3
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov edx, 0xffffffff
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitializeSecurity]
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
jge 0x140001253
mov edx, dword [rsp + 0x50]
lea rcx, str.Error:_CoInitializeSecurity_0x_x_n
call fcn.1400017b0
mov eax, 0xffffffff
jmp 0x140001748
lea rax, [rsp + 0x80]
mov qword [rsp + 0x20], rax
lea r9, [0x140015790]
mov r8d, 4
xor edx, edx
lea rcx, [0x140015780]
call qword [sym.imp.ole32.dll_CoCreateInstance]
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
jge 0x1400012a1
mov edx, dword [rsp + 0x50]
lea rcx, str.Error_CoCreateInstance:_0x_x_n
call fcn.1400017b0
mov eax, 0xffffffff
jmp 0x140001748
mov rax, qword [rsp + 0x80]
mov rax, qword [rax]
lea rdx, [rsp + 0x88]
mov rcx, qword [rsp + 0x80]
call qword [rax + 0x18]
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
jge 0x1400012e4
mov edx, dword [rsp + 0x50]
lea rcx, str.Error_pIErcLuaSupport:_0x_x_n
call fcn.1400017b0
mov eax, 0xffffffff
jmp 0x140001748
mov rax, qword [rsp + 0x88]
mov rax, qword [rax]
lea rdx, [rsp + 0x58]
mov rcx, qword [rsp + 0x88]
call qword [rax + 0x20]
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
jge 0x140001324
mov edx, dword [rsp + 0x50]
lea rcx, str.Error_pIWerStoreFactory:_0x_x_n
call fcn.1400017b0
mov eax, 0xffffffff
jmp 0x140001748
mov rax, qword [rsp + 0x58]
mov rax, qword [rax]
mov rcx, qword [rsp + 0x58]
call qword [rax + 0x18]
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
jge 0x140001359
mov edx, dword [rsp + 0x50]
lea rcx, str.Error_pIWerStore_Proc3__:_0x_x_n
call fcn.1400017b0
mov eax, 0xffffffff
jmp 0x140001748
lea rcx, str.MyReport
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov qword [rsp + 0xf8], rax
lea rcx, str.test
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov qword [rsp + 0x110], rax
mov rax, qword [rsp + 0x58]
mov rax, qword [rax]
lea r8, [rsp + 0x90]
mov rdx, qword [rsp + 0xf8]
mov rcx, qword [rsp + 0x58]
call qword [rax + 0x30]
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
jge 0x1400013c8
mov edx, dword [rsp + 0x50]
lea rcx, str.Error_pIWerStore_Proc6_:_0x_x_n
call fcn.1400017b0
mov eax, 0xffffffff
jmp 0x140001748
mov qword [rsp + 0x108], 0
lea rdx, [0x140015698]
lea rcx, [rsp + 0x168]
call qword [0x140020ab8]
mov dword [rsp + 0x130], 0x30
mov qword [rsp + 0x138], 0
mov dword [rsp + 0x148], 0x40
lea rax, [rsp + 0x168]
mov qword [rsp + 0x140], rax
mov qword [rsp + 0x150], 0
mov qword [rsp + 0x158], 0
lea r8, [rsp + 0x130]
mov edx, 0xf000f
lea rcx, [rsp + 0x98]
call qword [0x140020ac0]
lea rdx, str.Windows
lea rcx, [rsp + 0xa0]
call qword [0x140020ab8]
lea rdx, str.GLOBAL__C:_test
lea rcx, [rsp + 0xb0]
call qword [0x140020ab8]
mov dword [rsp + 0xc0], 0x30
mov rax, qword [rsp + 0x98]
mov qword [rsp + 0xc8], rax
mov dword [rsp + 0xd8], 0x40
lea rax, [rsp + 0xa0]
mov qword [rsp + 0xd0], rax
mov qword [rsp + 0xe0], 0
mov qword [rsp + 0xe8], 0
lea r9, [rsp + 0xb0]
lea r8, [rsp + 0xc0]
mov edx, 0xf0001
lea rcx, [rsp + 0x128]
call qword [0x140020ab0]
mov r8d, 0x30
xor edx, edx
lea rcx, [rsp + 0xc0]
call fcn.140002260
mov r8d, 0x10
xor edx, edx
lea rcx, [rsp + 0xa0]
call fcn.140002260
mov r8d, 0x10
xor edx, edx
lea rcx, [rsp + 0xb0]
call fcn.140002260
lea rdx, str.ProgramData
lea rcx, [rsp + 0xa0]
call qword [0x140020ab8]
lea rdx, str.GLOBAL__C:Programdata
lea rcx, [rsp + 0xb0]
call qword [0x140020ab8]
mov dword [rsp + 0xc0], 0x30
mov rax, qword [rsp + 0x98]
mov qword [rsp + 0xc8], rax
mov dword [rsp + 0xd8], 0x40
lea rax, [rsp + 0xa0]
mov qword [rsp + 0xd0], rax
mov qword [rsp + 0xe0], 0
mov qword [rsp + 0xe8], 0
lea r9, [rsp + 0xb0]
lea r8, [rsp + 0xc0]
mov edx, 0xf0001
lea rcx, [rsp + 0x120]
call qword [0x140020ab0]
mov r8d, 0x30
xor edx, edx
lea rcx, [rsp + 0xc0]
call fcn.140002260
mov r8d, 0x10
xor edx, edx
lea rcx, [rsp + 0xa0]
call fcn.140002260
mov r8d, 0x10
xor edx, edx
lea rcx, [rsp + 0xb0]
call fcn.140002260
lea rdx, str.__C:
lea rcx, [rsp + 0xa0]
call qword [0x140020ab8]
lea rdx, str.___test
lea rcx, [rsp + 0xb0]
call qword [0x140020ab8]
mov dword [rsp + 0xc0], 0x30
mov qword [rsp + 0xc8], 0
mov dword [rsp + 0xd8], 0x40
lea rax, [rsp + 0xa0]
mov qword [rsp + 0xd0], rax
mov qword [rsp + 0xe0], 0
mov qword [rsp + 0xe8], 0
lea r9, [rsp + 0xb0]
lea r8, [rsp + 0xc0]
mov edx, 0xf0001
lea rcx, [rsp + 0x118]
call qword [0x140020ab0]
mov rax, qword [rsp + 0x90]
mov rax, qword [rax]
lea rcx, [rsp + 0x108]
mov qword [rsp + 0x28], rcx
lea rcx, [rsp + 0x110]
mov qword [rsp + 0x20], rcx
xor r9d, r9d
mov r8d, 0x400
mov rdx, qword [rsp + 0xf8]
mov rcx, qword [rsp + 0x90]
call qword [rax + 0xc0]
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
jge 0x1400016ff
mov edx, dword [rsp + 0x50]
lea rcx, str.Error_pIWerReport:_0x_x_n
call fcn.1400017b0
mov eax, 0xffffffff
jmp 0x140001748
mov ecx, 0x7d0
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rcx, qword [rsp + 0x118]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x98]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x120]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x128]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140001746
xor eax, eax
add rsp, 0x188
ret