Function at 0x18000b5b0
Capabilities:
Delete file
Extract resource via kernel32 functions
Move file
Write file on windows

Disassembly:
mov r11, rsp
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x6b0
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rbp
mov qword [r11 + 0x18], rsi
mov rax, qword [0x180067480]
xor rax, rsp
mov qword [rsp + 0x6a0], rax
mov r14d, ecx
xor r15d, r15d
mov byte [r11 - 0x588], r15b
xor edx, edx
mov r8d, 0x103
lea rcx, [r11 - 0x587]
call fcn.180031f80
mov byte [rsp + 0x260], r15b
xor edx, edx
mov r8d, 0x103
lea rcx, [rsp + 0x261]
call fcn.180031f80
mov byte [rsp + 0x480], r15b
xor edx, edx
mov r8d, 0x103
lea rcx, [rsp + 0x481]
call fcn.180031f80
mov byte [rsp + 0x590], r15b
xor edx, edx
mov r8d, 0x103
lea rcx, [rsp + 0x591]
call fcn.180031f80
lea r8d, [r15 + 1]
lea rdx, str.prthooko64.dll
lea rcx, [rsp + 0xa8]
call fcn.18000a9e0
cmp qword [rax + 0x20], 0x10
jb 0x18000b687
mov r8, qword [rax + 8]
jmp 0x18000b68b
lea r8, [rax + 8]
lea rdx, [0x180051d44]
lea rcx, [rsp + 0x260]
call fcn.1800335dc
cmp qword [rsp + 0xc8], 0x10
jb 0x18000b6b7
mov rcx, qword [rsp + 0xb0]
call fcn.180021240
mov r8d, 1
lea rdx, [0x180053220]
lea rcx, [rsp + 0x80]
call fcn.18000a9e0
cmp qword [rax + 0x20], 0x10
jb 0x18000b6de
mov r8, qword [rax + 8]
jmp 0x18000b6e2
lea r8, [rax + 8]
lea rdx, [0x180051d44]
lea rcx, [rsp + 0x150]
call fcn.1800335dc
cmp qword [rsp + 0xa0], 0x10
jb 0x18000b70e
mov rcx, qword [rsp + 0x88]
call fcn.180021240
mov r8d, 1
lea rdx, [0x180053220]
lea rcx, [rsp + 0x30]
call fcn.18000a9e0
cmp qword [rax + 0x20], 0x10
jb 0x18000b732
mov r8, qword [rax + 8]
jmp 0x18000b736
lea r8, [rax + 8]
lea rdx, [0x180051d44]
lea rcx, [rsp + 0x480]
call fcn.1800335dc
cmp qword [rsp + 0x50], 0x10
jb 0x18000b75c
mov rcx, qword [rsp + 0x38]
call fcn.180021240
mov r8d, 1
lea rdx, str.prthooko64.dll
lea rcx, [rsp + 0xd0]
call fcn.18000a9e0
cmp qword [rax + 0x20], 0x10
jb 0x18000b783
mov r8, qword [rax + 8]
jmp 0x18000b787
lea r8, [rax + 8]
lea rdx, [0x180051d44]
lea rcx, [rsp + 0x590]
call fcn.1800335dc
cmp qword [rsp + 0xf0], 0x10
jb 0x18000b7b3
mov rcx, qword [rsp + 0xd8]
call fcn.180021240
lea rcx, [rsp + 0x260]
call fcn.18000ac40
lea rcx, [rsp + 0x150]
call fcn.18000ac40
mov r12d, r15d
or rsi, 0xffffffffffffffff
nop word [rax + rax]
xor edx, edx
mov r8d, 0x104
lea rcx, [rsp + 0x370]
call fcn.180031f80
mov qword [rsp + 0x140], 0xf
mov qword [rsp + 0x138], r15
mov byte [rsp + 0x128], 0
xor eax, eax
mov rcx, rsi
lea rdi, [rsp + 0x480]
repne scasb al, byte [rdi]
not rcx
lea r8, [rcx - 1]
lea rdx, [rsp + 0x480]
lea rcx, [rsp + 0x120]
call fcn.1800072f0
nop
mov r8d, r12d
lea rdx, [0x18005321c]
lea rcx, [rsp + 0x370]
call fcn.1800335dc
mov rcx, qword [rsp + 0x138]
cmp rcx, 1
jb 0x18000b8cb
dec rcx
cmp rcx, 0xffffffffffffffff
cmova rcx, rsi
lea rbx, [rsp + 0x128]
mov rdi, qword [rsp + 0x128]
mov rbp, qword [rsp + 0x140]
cmp rbp, 0x10
cmovae rbx, rdi
add rbx, rcx
cmp byte [rbx], 0x2e
jne 0x18000b89f
mov al, byte [rbx]
cmp al, byte [0x180053218]
je 0x18000b8b6
lea rcx, [rsp + 0x120]
call fcn.180004060
cmp rbx, rax
je 0x18000b8cb
dec rbx
jmp 0x18000b890
lea rax, [rsp + 0x128]
cmp rbp, 0x10
cmovae rax, rdi
sub rbx, rax
jmp 0x18000b8ce
mov rbx, rsi
xor eax, eax
mov rcx, rsi
lea rdi, [rsp + 0x370]
repne scasb al, byte [rdi]
not rcx
lea r9, [rcx - 1]
lea r8, [rsp + 0x370]
mov rdx, rbx
lea rcx, [rsp + 0x120]
call fcn.1800078c0
lea r8, [rsp + 0x128]
cmp qword [rsp + 0x140], 0x10
cmovae r8, qword [rsp + 0x128]
lea rdx, [0x180051d44]
lea rcx, [rsp + 0x480]
call fcn.1800335dc
lea rcx, [rsp + 0x480]
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
xor eax, eax
mov rcx, rsi
lea rdi, [rsp + 0x590]
repne scasb al, byte [rdi]
not rcx
lea r8, [rcx - 1]
lea rdx, [rsp + 0x590]
lea rcx, [rsp + 0x120]
call fcn.1800072f0
mov rcx, qword [rsp + 0x138]
cmp rcx, 1
jb 0x18000b9db
dec rcx
cmp rcx, 0xffffffffffffffff
cmova rcx, rsi
lea rbx, [rsp + 0x128]
mov rdi, qword [rsp + 0x128]
mov rbp, qword [rsp + 0x140]
cmp rbp, 0x10
cmovae rbx, rdi
add rbx, rcx
nop
cmp byte [rbx], 0x2e
jne 0x18000b9af
mov al, byte [rbx]
cmp al, byte [0x180053218]
je 0x18000b9c6
lea rcx, [rsp + 0x120]
call fcn.180004060
cmp rbx, rax
je 0x18000b9db
dec rbx
jmp 0x18000b9a0
lea rax, [rsp + 0x128]
cmp rbp, 0x10
cmovae rax, rdi
sub rbx, rax
jmp 0x18000b9de
mov rbx, rsi
xor eax, eax
mov rcx, rsi
lea rdi, [rsp + 0x370]
repne scasb al, byte [rdi]
not rcx
lea r9, [rcx - 1]
lea r8, [rsp + 0x370]
mov rdx, rbx
lea rcx, [rsp + 0x120]
call fcn.1800078c0
lea r8, [rsp + 0x128]
cmp qword [rsp + 0x140], 0x10
cmovae r8, qword [rsp + 0x128]
lea rdx, [0x180051d44]
lea rcx, [rsp + 0x590]
call fcn.1800335dc
lea rcx, [rsp + 0x590]
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
inc r12d
cmp qword [rsp + 0x140], 0x10
jb 0x18000ba63
mov rcx, qword [rsp + 0x128]
call fcn.180021240
cmp r12d, 0xa
jl 0x18000b7e0
mov r12d, r15d
lea rcx, [rsp + 0x150]
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x18000bd4b
nop word [rax + rax]
xor edx, edx
lea rcx, [rsp + 0x150]
call fcn.1800357e0
cmp eax, 0xffffffff
je 0x18000bd4b
mov dword [0x180113d94], 1
xor edx, edx
mov r8d, 0x104
lea rcx, [rsp + 0x370]
call fcn.180031f80
mov qword [rsp + 0x118], 0xf
mov qword [rsp + 0x110], r15
mov byte [rsp + 0x100], 0
xor eax, eax
mov rcx, rsi
lea rdi, [rsp + 0x150]
repne scasb al, byte [rdi]
not rcx
lea r8, [rcx - 1]
lea rdx, [rsp + 0x150]
lea rcx, [rsp + 0xf8]
call fcn.1800072f0
nop
mov r8d, r12d
lea rdx, [0x18005321c]
lea rcx, [rsp + 0x370]
call fcn.1800335dc
mov rcx, qword [rsp + 0x110]
cmp rcx, 1
jb 0x18000bb9d
dec rcx
cmp rcx, 0xffffffffffffffff
cmova rcx, rsi
lea rbx, [rsp + 0x100]
mov rdi, qword [rsp + 0x100]
mov rbp, qword [rsp + 0x118]
cmp rbp, 0x10
cmovae rbx, rdi
add rbx, rcx
cmp byte [rbx], 0x2e
jne 0x18000bb71
mov al, byte [rbx]
cmp al, byte [0x180053218]
je 0x18000bb88
lea rcx, [rsp + 0xf8]
call fcn.180004060
cmp rbx, rax
je 0x18000bb9d
dec rbx
jmp 0x18000bb62
lea rax, [rsp + 0x100]
cmp rbp, 0x10
cmovae rax, rdi
sub rbx, rax
jmp 0x18000bba0
mov rbx, rsi
xor eax, eax
mov rcx, rsi
lea rdi, [rsp + 0x370]
repne scasb al, byte [rdi]
not rcx
lea r9, [rcx - 1]
lea r8, [rsp + 0x370]
mov rdx, rbx
lea rcx, [rsp + 0xf8]
call fcn.1800078c0
lea r8, [rsp + 0x100]
cmp qword [rsp + 0x118], 0x10
cmovae r8, qword [rsp + 0x100]
lea rdx, [0x180051d44]
lea rcx, [rsp + 0x150]
call fcn.1800335dc
xor eax, eax
mov rcx, rsi
lea rdi, [rsp + 0x260]
repne scasb al, byte [rdi]
not rcx
lea r8, [rcx - 1]
lea rdx, [rsp + 0x260]
lea rcx, [rsp + 0xf8]
call fcn.1800072f0
mov rcx, qword [rsp + 0x110]
cmp rcx, 1
jb 0x18000bc9e
dec rcx
cmp rcx, 0xffffffffffffffff
cmova rcx, rsi
lea rbx, [rsp + 0x100]
mov rdi, qword [rsp + 0x100]
mov rbp, qword [rsp + 0x118]
cmp rbp, 0x10
cmovae rbx, rdi
add rbx, rcx
cmp byte [rbx], 0x2e
jne 0x18000bc72
mov al, byte [rbx]
cmp al, byte [0x180053218]
je 0x18000bc89
lea rcx, [rsp + 0xf8]
call fcn.180004060
cmp rbx, rax
je 0x18000bc9e
dec rbx
jmp 0x18000bc63
lea rax, [rsp + 0x100]
cmp rbp, 0x10
cmovae rax, rdi
sub rbx, rax
jmp 0x18000bca1
mov rbx, rsi
xor eax, eax
mov rcx, rsi
lea rdi, [rsp + 0x370]
repne scasb al, byte [rdi]
not rcx
lea r9, [rcx - 1]
lea r8, [rsp + 0x370]
mov rdx, rbx
lea rcx, [rsp + 0xf8]
call fcn.1800078c0
lea r8, [rsp + 0x100]
cmp qword [rsp + 0x118], 0x10
cmovae r8, qword [rsp + 0x100]
lea rdx, [0x180051d44]
lea rcx, [rsp + 0x260]
call fcn.1800335dc
inc r12d
mov r8d, 1
lea rdx, [rsp + 0x260]
lea rcx, [rsp + 0x150]
call qword [sym.imp.KERNEL32.dll_MoveFileExA]
nop
cmp qword [rsp + 0x118], 0x10
jb 0x18000bd35
mov rcx, qword [rsp + 0x100]
call fcn.180021240
lea rcx, [rsp + 0x150]
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
je 0x18000ba90
lea rcx, [rsp + 0x260]
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
lea rcx, [rsp + 0x150]
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
mov rdx, r15
lea rcx, [0x180113da0]
nop word [rax + rax]
movzx eax, byte [rsp + rdx + 0x150]
mov byte [rdx + rcx], al
inc rdx
test al, al
jne 0x18000bd80
xor edx, edx
mov r8d, 0x104
lea rcx, [rsp + 0x260]
call fcn.180031f80
mov r8d, 1
lea rdx, str.vrvprt_c64.dll
lea rcx, [rsp + 0x58]
call fcn.18000a9e0
cmp qword [rax + 0x20], 0x10
jb 0x18000bdcb
mov rdx, qword [rax + 8]
jmp 0x18000bdcf
lea rdx, [rax + 8]
lea rdi, [rsp + 0x260]
xor eax, eax
mov rcx, rsi
repne scasb al, byte [rdi]
xor ecx, ecx
movzx eax, byte [rdx + rcx]
mov byte [rdi + rcx - 1], al
inc rcx
test al, al
jne 0x18000bde0
cmp qword [rsp + 0x78], 0x10
jb 0x18000be01
mov rcx, qword [rsp + 0x60]
call fcn.180021240
lea rcx, [rsp + 0x150]
call fcn.18000ac40
lea rcx, [rsp + 0x260]
call fcn.18000ac40
call fcn.180021654
mov rcx, rax
mov eax, r15d
test rcx, rcx
setne al
test eax, eax
jne 0x18000be3b
mov ecx, 0x80004005
call fcn.180001750
int3
mov rax, qword [rcx]
call qword [rax + 0x18]
lea rdi, [rax + 0x18]
mov qword [rsp + 0x28], rdi
lea rdx, [0x180053200]
lea rcx, [rsp + 0x150]
call fcn.180035744
mov r13, rax
test rax, rax
je 0x18000bf4d
lea rcx, [rsp + 0x260]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rbx, rax
cmp r14d, 1
jne 0x18000bea6
lea r8, [0x1800531fc]
lea rdx, str.IDR_VRV_NT
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FindResourceA]
mov rbp, rax
test rax, rax
je 0x18000bf36
jmp 0x18000bec5
lea r8, [0x1800531fc]
lea rdx, str.IDR_VRV_9X
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FindResourceA]
mov rbp, rax
test rax, rax
je 0x18000bf36
mov rdx, rbp
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov r12, rax
test rax, rax
je 0x18000bf36
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov r14, rax
mov rdx, rbp
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SizeofResource]
test eax, eax
jne 0x18000bf00
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_FreeResource]
jmp 0x18000bf36
mov edx, eax
mov r9, r13
mov r8d, 1
mov rcx, r14
call fcn.180035568
lea rcx, str.fwrite
call fcn.18000b4e0
mov rcx, r13
call fcn.180035354
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_FreeResource]
mov r15d, 1
test rbx, rbx
je 0x18000bf44
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, r13
call fcn.180035354
nop
lea rdx, [rdi - 0x18]
lock xadd dword [rdx + 0x10], esi
dec esi
test esi, esi
jg 0x18000bf65
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov eax, r15d
mov rcx, qword [rsp + 0x6a0]
xor rcx, rsp
call fcn.180031f50
lea r11, [rsp + 0x6b0]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret