Function at 0x1401b6860
Capabilities:
Extract resource via kernel32 functions
Get common file path
Write file on windows

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x1f8]
sub rsp, 0x2d0
mov qword [rbp - 0x60], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x14041da10]
xor rax, rsp
mov qword [rbp + 0x1c0], rax
mov r13, rcx
xor r15b, r15b
mov edx, 0x104
lea rcx, [rbp - 0x50]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea r8, str._bootdelete.exe
mov edx, 0x104
lea rcx, [rbp - 0x50]
call fcn.1402bf098
mov edx, 0x12f
xor ecx, ecx
lea r8d, [rcx + 0xa]
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rbx, rax
xor r12d, r12d
test rax, rax
je 0x1401b6aa3
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov r14d, eax
mov rdx, rbx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rsi, rax
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
test rsi, rsi
je 0x1401b6aa3
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 2
xor r9d, r9d
xor r8d, r8d
mov edx, 0x1f01ff
lea rcx, [rbp - 0x50]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x1401b6a9a
mov qword [rsp + 0x20], r12
lea r9, [rsp + 0x78]
mov r8d, r14d
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1401b6a91
cmp dword [rsp + 0x78], r14d
jne 0x1401b6a91
mov qword [rsp + 0x48], r12
lea edx, [r12 + 0x35]
lea rcx, [rsp + 0x40]
call fcn.1402028a0
mov eax, dword [rsp + 0x48]
inc eax
movsxd rdx, eax
lea r9d, [r12 + 0x35]
lea r8, str.HKLMSYSTEMCurrentControlSetControlSession_Manager
mov rcx, qword [rsp + 0x40]
call fcn.1402c06dc
lea edx, [r12 + 0x35]
lea rcx, [rsp + 0x40]
call fcn.140203bb0
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x40]
call fcn.1400ed8e0
mov rbx, rax
cmp dword [rsp + 0x48], r12d
jle 0x1401b69e3
mov rcx, qword [rsp + 0x40]
call fcn.1402bd0e0
test rbx, rbx
je 0x1401b6a91
lea rax, vtable.Core::Array_class_Core::String_.0
mov qword [rsp + 0x60], rax
mov dword [rsp + 0x68], r12d
mov qword [rsp + 0x70], r12
lea r8, [rsp + 0x60]
lea rdx, [0x140365ed8]
mov rcx, rbx
call fcn.1400da220
mov edx, dword [rsp + 0x68]
inc edx
lea rcx, [rsp + 0x60]
call fcn.1400c7e30
lea rdx, [0x140365ec0]
lea rcx, [rsp + 0x50]
call fcn.140200840
mov edx, dword [rsp + 0x68]
dec edx
mov r8, rax
lea rcx, [rsp + 0x60]
call fcn.1400e3de0
lea r8, [rsp + 0x60]
mov rcx, rbx
call fcn.1401b4fa0
mov rax, qword [rbx]
mov edx, 1
mov rcx, rbx
call qword [rax]
mov r15b, 1
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x1401b6a91
lea rbx, [rcx - 8]
lea r9, [fcn.140005eb0]
mov r8d, dword [rbx]
mov edx, 0x10
call fcn.1402bda84
mov rcx, rbx
call fcn.1402bcebc
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeResource]
lea rcx, [r13 + 0xd8]
mov rax, qword [rcx]
call qword [rax + 0x18]
test eax, eax
jle 0x1401b6d9a
call fcn.1401b6fb0
mov qword [rsp + 0x58], r12
mov edx, 0x27
lea rcx, [rsp + 0x50]
call fcn.1402028a0
mov eax, dword [rsp + 0x58]
inc eax
movsxd rdx, eax
mov r9d, 0x27
lea r8, str.HKLMSYSTEMCurrentControlSetServices_
mov rcx, qword [rsp + 0x50]
call fcn.1402c06dc
mov edx, 0x27
lea rcx, [rsp + 0x50]
call fcn.140203bb0
nop
lea rdx, str.hitmanpro37duringboot
lea rcx, [rsp + 0x50]
call fcn.140200ef0
mov rbx, rax
mov edx, dword [rax + 0xc]
lea rcx, [rsp + 0x50]
call fcn.1402028a0
movsxd r9, dword [rbx + 0xc]
mov eax, dword [rsp + 0x58]
inc eax
movsxd rdx, eax
mov r8, qword [rbx]
mov rcx, qword [rsp + 0x50]
call fcn.1402c06dc
mov edx, dword [rbx + 0xc]
lea rcx, [rsp + 0x50]
call fcn.140203bb0
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x50]
call fcn.1400ed8e0
mov r12, rax
test rax, rax
je 0x1401b6d89
lea rax, vtable.Core::Collection_class_Core::String_.0
mov qword [rbp - 0x80], rax
mov dword [rbp - 0x78], 0
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x70], xmm0
lea rcx, [r13 + 0xd0]
mov rax, qword [rcx]
call qword [rax]
mov rdi, rax
lea rax, vtable.Core::SharedPtr_class_Core::Collections::Generic::IEnumerator_class_Core::String__.0
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], rdi
xor r13d, r13d
mov r14d, r13d
mov qword [rsp + 0x70], r13
test rdi, rdi
je 0x1401b6bd8
lea ecx, [r13 + 4]
call fcn.1402bcb4c
mov r14, rax
test rax, rax
je 0x1401b6bc9
mov dword [rax], r13d
mov qword [rsp + 0x70], rax
jmp 0x1401b6bd1
mov r14, r13
mov qword [rsp + 0x70], r13
mov dword [r14], 1
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax]
test al, al
je 0x1401b6c1d
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x10]
mov rdx, qword [rax]
lea rcx, str.Disable_driver:__s_r_n
call fcn.1401b5550
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x10]
mov rdx, rax
lea rcx, [rbp - 0x80]
call fcn.14011a6b0
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax]
test al, al
jne 0x1401b6be4
mov qword [rsp + 0x48], r13
mov edx, 0x15
lea rcx, [rsp + 0x40]
call fcn.1402028a0
mov eax, dword [rsp + 0x48]
inc eax
movsxd rdx, eax
mov r9d, 0x15
lea r8, str.hitmanpro37duringboot
mov rcx, qword [rsp + 0x40]
call fcn.1402c06dc
mov edx, 0x15
lea rcx, [rsp + 0x40]
call fcn.140203bb0
nop
mov ecx, 0x20
call fcn.1402bcb4c
mov rsi, rax
test rax, rax
je 0x1401b6c84
lea rax, [0x14034d1a0]
mov qword [rsi + 0x10], rax
mov qword [rsi + 0x18], r13
jmp 0x1401b6c87
mov rsi, r13
mov edx, dword [rsp + 0x4c]
lea rcx, [rsi + 0x10]
call fcn.1402028a0
movsxd r9, dword [rsp + 0x4c]
mov eax, dword [rsi + 0x18]
inc eax
movsxd rdx, eax
mov r8, qword [rsp + 0x40]
mov rcx, qword [rsi + 0x10]
call fcn.1402c06dc
mov edx, dword [rsp + 0x4c]
lea rcx, [rsi + 0x10]
call fcn.140203bb0
cmp dword [rbp - 0x78], 0
jne 0x1401b6ccf
mov qword [rsi], r13
mov qword [rsi + 8], r13
mov qword [rbp - 0x70], rsi
jmp 0x1401b6ce1
mov rax, qword [rbp - 0x68]
mov qword [rax], rsi
mov qword [rsi], r13
mov rax, qword [rbp - 0x68]
mov qword [rsi + 8], rax
mov qword [rbp - 0x68], rsi
inc dword [rbp - 0x78]
cmp dword [rsp + 0x48], 0
jle 0x1401b6cf9
mov rcx, qword [rsp + 0x40]
call fcn.1402bd0e0
lea r8, [rbp - 0x80]
mov rcx, r12
call fcn.1401b5110
test al, al
lea rcx, str.Success_r_n
jne 0x1401b6d17
lea rcx, str.Failed__r_n
call fcn.1401b5550
mov rax, qword [r12]
mov edx, 1
mov rcx, r12
call qword [rax]
nop
test r14, r14
je 0x1401b6d53
mov eax, dword [r14]
test eax, eax
jle 0x1401b6d3c
dec eax
mov dword [r14], eax
cmp dword [r14], 0
jne 0x1401b6d53
mov rcx, rdi
call fcn.14021ae20
mov rcx, r14
call fcn.14021ae20
nop
lea rax, vtable.Core::Collection_class_Core::String_.0
mov qword [rbp - 0x80], rax
mov rbx, qword [rbp - 0x70]
test rbx, rbx
je 0x1401b6d89
mov rdi, qword [rbx]
cmp dword [rbx + 0x18], 0
jle 0x1401b6d79
mov rcx, qword [rbx + 0x10]
call fcn.1402bd0e0
mov rcx, rbx
call fcn.14021ae20
mov rbx, rdi
test rdi, rdi
jne 0x1401b6d67
cmp dword [rsp + 0x58], 0
jle 0x1401b6d9a
mov rcx, qword [rsp + 0x50]
call fcn.1402bd0e0
movzx eax, r15b
mov rcx, qword [rbp + 0x1c0]
xor rcx, rsp
call fcn.1402bcad0
lea r11, [rsp + 0x2d0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret