Function at 0x1400547b4
Capabilities:
Check if file exists
Copy file
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x620]
sub rsp, 0x720
mov rax, qword [0x1400b8288]
xor rax, rsp
mov qword [rbp + 0x610], rax
movaps xmm1, xmmword [str.7ebc3661_e661_4943_95a5_412378cb16d1]
xorps xmm0, xmm0
mov rax, qword [rbp + 0x698]
mov r14, r8
mov rsi, qword [rbp + 0x680]
mov r13, rdx
mov r12, qword [rbp + 0x690]
mov rdi, rcx
mov qword [rsp + 0x60], rax
lea rcx, [rbp + 0x1f0]
xor eax, eax
movaps xmmword [rbp - 0x70], xmm1
movaps xmm1, xmmword [0x1400a76c0]
mov r15d, eax
movups xmmword [rbp - 0x80], xmm0
mov ebx, eax
mov dword [rsp + 0x40], eax
movaps xmm0, xmmword [0x1400a76b0]
xor edx, edx
mov qword [rsp + 0x48], rax
mov eax, dword [0x1400a76e8]
mov dword [rbp - 0x28], eax
movzx eax, word [0x1400a76ec]
movaps xmmword [rbp - 0x60], xmm0
movaps xmm0, xmmword [0x1400a76d0]
movaps xmmword [rbp - 0x50], xmm1
movsd xmm1, qword [0x1400a76e0]
mov qword [rsp + 0x70], r8
mov r8d, 0x208
mov word [rbp - 0x24], ax
mov qword [rsp + 0x78], rsi
mov qword [rsp + 0x68], r12
movaps xmmword [rbp - 0x40], xmm0
movsd qword [rbp - 0x30], xmm1
call sub.msvcrt.dll_memset
xor edx, edx
lea rcx, [rbp + 0x400]
mov r8d, 0x208
call sub.msvcrt.dll_memset
xor eax, eax
test rdi, rdi
je 0x140054e63
test r13, r13
je 0x140054e63
test r14, r14
je 0x140054e63
test rsi, rsi
je 0x140054e63
test r12, r12
je 0x140054e63
lea rcx, [rbp - 0x80]
mov word [rsi], ax
call qword [sym.imp.RPCRT4.dll_UuidCreate]
nop dword [rax + rax]
test eax, eax
jne 0x14005494e
lea rdx, [rsp + 0x48]
lea rcx, [rbp - 0x80]
call qword [sym.imp.RPCRT4.dll_UuidToStringW]
nop dword [rax + rax]
xor r9d, r9d
test eax, eax
jne 0x14005494e
mov rdx, qword [rsp + 0x48]
test rdx, rdx
je 0x14005494e
lea rax, [rbp - 0x70]
sub rdx, rax
lea r8d, [r9 + 0x27]
lea rcx, [rbp - 0x70]
lea rax, [r8 + 0x7fffffd7]
test rax, rax
je 0x14005493f
movzx eax, word [rdx + rcx]
test ax, ax
je 0x14005493f
mov word [rcx], ax
add rcx, 2
sub r8, 1
jne 0x14005491d
test r8, r8
lea rax, [rcx - 2]
cmovne rax, rcx
mov word [rax], r9w
lea rdx, [rbp - 0x70]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegUnLoadKeyW]
nop dword [rax + rax]
mov r9d, 0x104
lea rax, [rbp + 0x1f0]
mov edx, r9d
lea rcx, [rbp + 0x1f0]
sub rdi, rax
lea rax, [rdx + 0x7ffffefa]
test rax, rax
je 0x1400549a1
movzx eax, word [rdi + rcx]
test ax, ax
je 0x1400549a1
mov word [rcx], ax
add rcx, 2
sub rdx, 1
jne 0x14005497f
lea rax, [rcx - 2]
xor edi, edi
test rdx, rdx
lea r8, str._system32config_
mov rdx, r9
cmovne rax, rcx
lea rcx, [rbp + 0x1f0]
mov word [rax], di
call fcn.1400010f8
mov r8, r14
lea rcx, [rbp + 0x1f0]
mov edx, 0x104
call fcn.1400010f8
lea rcx, [rbp + 0x1f0]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
nop dword [rax + rax]
cmp eax, 0xffffffff
je 0x140054e34
xor edx, edx
lea rcx, [rbp - 0x20]
mov r8d, 0x208
call sub.msvcrt.dll_memset
lea rdx, [rbp + 0x400]
lea rcx, [rbp + 0x1f0]
call fcn.14005fd98
mov ebx, eax
mov ecx, 0x10000000
or ebx, ecx
test eax, eax
cmovns ebx, edi
test ebx, ebx
js 0x140054df7
mov r9d, 0x20019
mov qword [rsp + 0x20], r12
xor r8d, r8d
lea rdx, [rbp + 0x400]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
je 0x140054db6
mov r9d, 0x104
lea r8, str._TmpHive_
lea rax, [rbp - 0x20]
mov edx, r9d
sub r8, rax
lea rcx, [rbp - 0x20]
lea esi, [rdi + 1]
lea rax, [rdx + 0x7ffffefa]
test rax, rax
je 0x140054aa3
movzx eax, word [r8 + rcx]
test ax, ax
je 0x140054aa3
mov word [rcx], ax
add rcx, 2
sub rdx, rsi
jne 0x140054a81
test rdx, rdx
lea rax, [rcx - 2]
lea r8, [rbp - 0x70]
mov rdx, r9
cmovne rax, rcx
lea rcx, [rbp - 0x20]
mov word [rax], di
call fcn.1400010f8
mov r14d, edi
lea r12, [rbp - 0x20]
or rdi, 0xffffffffffffffff
mov rbx, rdi
xor eax, eax
inc rbx
cmp word [r13 + rbx*2], ax
jne 0x140054ad1
lea rcx, [rbp - 0x20]
inc rdi
cmp word [rcx + rdi*2], ax
jne 0x140054ae0
test ebx, ebx
je 0x140054b1f
lea eax, [rbx - 1]
mov edx, 0x5c
cmp dx, word [r13 + rax*2]
jne 0x140054b17
cmp dx, word [rbp - 0x20]
lea rax, [rbp - 0x1e]
lea r12, [rbp - 0x20]
cmove r12, rax
lea eax, [rdi - 1]
cmovne eax, edi
mov edi, eax
jmp 0x140054b1f
cmp dx, word [rbp - 0x20]
cmovne r14d, esi
lea ecx, [rdi + 1]
mov edx, 8
add ecx, r14d
add ecx, ebx
mov r15d, ecx
lea r8, [rcx + rcx]
mov rcx, qword gs:[0x60]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
nop dword [rax + rax]
mov rsi, rax
test rax, rax
jne 0x140054b69
mov rax, qword gs:[0x30]
mov dword [rax + 0x68], 8
jmp 0x140054da1
lea rax, [rsp + 0x50]
mov r9d, ebx
mov qword [rsp + 0x28], rax
mov r8, r13
lea rax, [rsp + 0x58]
mov rdx, r15
mov rcx, rsi
mov qword [rsp + 0x20], rax
call fcn.14000c208
xor r15d, r15d
mov ebx, eax
test eax, eax
js 0x140054d74
test r14d, r14d
lea r14d, [r15 + 1]
je 0x140054bdb
mov rdx, qword [rsp + 0x50]
lea rax, [rsp + 0x50]
mov rcx, qword [rsp + 0x58]
lea r8, [0x14009b488]
mov qword [rsp + 0x28], rax
mov r9d, r14d
lea rax, [rsp + 0x58]
mov qword [rsp + 0x20], rax
call fcn.14000c208
mov ebx, eax
test eax, eax
js 0x140054d74
mov rdx, qword [rsp + 0x50]
mov r8, r12
mov rcx, qword [rsp + 0x58]
mov r9d, edi
call fcn.14000107c
mov ebx, eax
test eax, eax
js 0x140054d74
mov rax, qword gs:[0x30]
mov dword [rax + 0x68], r15d
cmp word [rsi], r15w
je 0x140054da1
mov dword [rsp + 0x28], r15d
lea rcx, [rbp + 0x1f0]
xor r9d, r9d
mov qword [rsp + 0x20], r15
xor r8d, r8d
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_CopyFileExW]
nop dword [rax + rax]
test eax, eax
je 0x140054d3f
mov r12, 0xffffffff80000002
lea rdx, [rbp - 0x70]
mov rcx, r12
mov r8, rsi
call qword [sym.imp.ADVAPI32.dll_RegLoadKeyW]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jne 0x140054d31
mov rax, qword [rsp + 0x68]
lea rdx, [rbp - 0x70]
mov r9d, 0x20019
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov rcx, r12
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jne 0x140054d1e
mov rcx, qword [rsp + 0x70]
lea r8, [rbp - 0x20]
mov r11d, 0x104
mov edx, r11d
call fcn.140001008
mov edi, eax
test eax, eax
js 0x140054cd7
mov rcx, qword [rsp + 0x78]
lea r8, [rbp - 0x70]
mov edx, r11d
call fcn.140001008
mov edi, eax
test eax, eax
js 0x140054cd7
mov rax, qword [rsp + 0x60]
mov r15d, r14d
mov dword [rax], r14d
jmp 0x140054d4d
bt edi, 0x1c
jae 0x140054d08
mov ecx, edi
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
nop dword [rax + rax]
cmp eax, 0x13d
jne 0x140054cf6
mov ebx, edi
jmp 0x140054d1e
mov ecx, edi
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
nop dword [rax + rax]
mov ebx, eax
jmp 0x140054d1e
mov edx, edi
movzx eax, di
and edx, 0x1fff0000
mov ebx, edi
cmp edx, 0x70000
cmove ebx, eax
lea rdx, [rbp - 0x70]
mov rcx, r12
call qword [sym.imp.ADVAPI32.dll_RegUnLoadKeyW]
nop dword [rax + rax]
lea rdx, [rbp - 0x20]
mov rcx, r13
call fcn.140054230
jmp 0x140054d4d
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
nop dword [rax + rax]
mov r8, rsi
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
nop dword [rax + rax]
xor edi, edi
jmp 0x140054e34
mov rcx, qword gs:[0x60]
mov r8, rsi
xor edx, edx
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
nop dword [rax + rax]
mov rax, qword gs:[0x30]
movzx ecx, bx
mov dword [rax + 0x68], ecx
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov r15d, dword [rsp + 0x40]
mov ebx, eax
jmp 0x140054d6d
mov r11d, 0x104
lea r8, [rbp + 0x1f0]
mov edx, r11d
mov rcx, r14
call fcn.140001008
test eax, eax
js 0x140054e34
lea r8, [rbp + 0x400]
mov edx, r11d
mov rcx, rsi
call fcn.140001008
test eax, eax
js 0x140054e34
mov rax, qword [rsp + 0x60]
mov r15d, 1
mov dword [rax], edi
jmp 0x140054e34
test ecx, ebx
mov ecx, ebx
je 0x140054e22
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
nop dword [rax + rax]
cmp eax, 0x13d
je 0x140054e34
mov ecx, ebx
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
nop dword [rax + rax]
mov ebx, eax
jmp 0x140054e34
and ecx, 0x1fff0000
movzx eax, bx
cmp ecx, 0x70000
cmove ebx, eax
cmp qword [rsp + 0x48], rdi
je 0x140054e4c
lea rcx, [rsp + 0x48]
call qword [sym.imp.RPCRT4.dll_RpcStringFreeW]
nop dword [rax + rax]
test ebx, ebx
je 0x140054e5e
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
nop dword [rax + rax]
mov eax, r15d
jmp 0x140054e76
mov ecx, 0x57
call qword [sym.imp.KERNEL32.dll_SetLastError]
nop dword [rax + rax]
xor eax, eax
mov rcx, qword [rbp + 0x610]
xor rcx, rsp
call fcn.140096bd0
mov rbx, qword [rsp + 0x760]
add rsp, 0x720
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret