Function at 0x180007ae0
Capabilities:
Copy file
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x10060]
mov eax, 0x10160
call fcn.180010320
sub rsp, rax
mov rax, qword [0x180043080]
xor rax, rsp
mov qword [rbp + 0x10050], rax
xor esi, esi
mov edi, esi
mov r8d, 0x7fff
lea rdx, [rbp + 0x8050]
lea rcx, str.C:WindowsAppPatchCustom_
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
mov r8d, 0x7fff
lea rdx, [rbp + 0x50]
lea rcx, str.c:WindowsAppPatchCustom_
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
mov qword [rsp + 0x58], rsi
mov qword [rsp + 0x60], rsi
lea rax, [rbp + 0x50]
mov rbx, 0xffffffffffffffff
mov r8, rbx
inc r8
cmp byte [rax + r8], sil
jne 0x180007b73
lea rdx, [rbp + 0x50]
lea rcx, [rsp + 0x48]
call fcn.180003e70
nop
mov r8d, 0xd
lea rdx, str.UrlMapMod.dll
lea rcx, [rsp + 0x48]
call fcn.18000b5e0
xorps xmm0, xmm0
movups xmmword [rsp + 0x28], xmm0
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x40], rsi
lea rax, [rbp + 0x8050]
nop dword [rax + rax]
inc rbx
cmp byte [rax + rbx], 0
jne 0x180007bc0
mov r8, rbx
lea rdx, [rbp + 0x8050]
lea rcx, [rsp + 0x28]
call fcn.180003e70
nop
mov r8d, 0xf
lea rdx, str.UrlMapMod64.dll
lea rcx, [rsp + 0x28]
call fcn.18000b5e0
lea rdx, [rsp + 0x48]
cmp qword [rsp + 0x60], 0x10
cmovae rdx, qword [rsp + 0x48]
lea rcx, [rbp + 0x10]
call fcn.180003f70
nop
lea rdx, [rsp + 0x28]
cmp qword [rsp + 0x40], 0x10
cmovae rdx, qword [rsp + 0x28]
lea rcx, [rbp - 0x10]
call fcn.180003f70
nop
call fcn.18000dfc4
lea rbx, str.C:WindowsSoftwareDistributionDataStoreDataStorein.edb
mov qword [rsp + 0x70], rbx
mov qword [rsp + 0x78], 0x39
lea r8, [rsp + 0x70]
mov edx, eax
lea rcx, [rbp - 0x50]
call fcn.180002220
nop
call fcn.18000dfc4
lea r14, str.C:WindowsSoftwareDistributionDataStoreDataStoreyn.edb
mov qword [rsp + 0x70], r14
mov qword [rsp + 0x78], 0x39
lea r8, [rsp + 0x70]
mov edx, eax
lea rcx, [rbp - 0x70]
call fcn.180002220
nop
mov qword [rsp + 0x20], rsi
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_Wow64DisableWow64FsRedirection]
lea rcx, [rbp - 0x50]
call fcn.180003b80
mov r12, qword [rbp + 0x10]
mov r15, qword [rbp - 0x10]
test al, al
je 0x1800080c0
lea rcx, [rbp - 0x70]
call fcn.180003b80
test al, al
je 0x1800080c0
lea rcx, [rbp - 0x50]
cmp qword [rbp - 0x38], 8
cmovae rcx, qword [rbp - 0x50]
mov r9d, 0xffffffff
mov r8d, 9
lea rdx, [rsp + 0x70]
call fcn.18000e1b4
test eax, eax
jne 0x1800080fb
cmp qword [rsp + 0x78], 0
jbe 0x1800080c0
lea rcx, [rbp - 0x70]
cmp qword [rbp - 0x58], 8
cmovae rcx, qword [rbp - 0x70]
mov r9d, 0xffffffff
lea r8d, [rax + 9]
lea rdx, [rsp + 0x70]
call fcn.18000e1b4
test eax, eax
jne 0x1800080e8
cmp qword [rsp + 0x78], 0
jbe 0x1800080c0
mov rdx, rbx
lea rcx, [rbp - 0x30]
call fcn.180003f70
nop
mov rdx, r14
lea rcx, [rbp + 0x30]
call fcn.180003f70
nop
lea rdx, [rbp + 0x10]
cmp qword [rbp + 0x28], 0x10
cmovae rdx, r12
lea rcx, [rbp - 0x30]
mov r14, qword [rbp - 0x30]
mov rbx, qword [rbp - 0x18]
cmp rbx, 0x10
cmovae rcx, r14
mov r13, qword [rbp + 0x48]
mov rsi, qword [rbp + 0x30]
mov r8, qword [rbp - 0x20]
cmp r8, qword [rbp + 0x20]
jne 0x180007dc0
call fcn.1800122d0
test eax, eax
jne 0x180007dc0
lea rdx, [rbp - 0x10]
cmp qword [rbp + 8], 0x10
cmovae rdx, r15
lea rcx, [rbp + 0x30]
cmp r13, 0x10
cmovae rcx, rsi
mov r8, qword [rbp + 0x40]
cmp r8, qword [rbp]
jne 0x180007dc0
call fcn.1800122d0
test eax, eax
jne 0x180007dc0
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_Wow64RevertWow64FsRedirection]
jmp 0x180007e7b
lea rdx, [rsp + 0x48]
cmp qword [rsp + 0x60], 0x10
cmovae rdx, qword [rsp + 0x48]
xor r8d, r8d
lea rcx, str.C:WindowsSoftwareDistributionDataStoreDataStorein.edb
call qword [sym.imp.KERNEL32.dll_CopyFileA]
mov ebx, eax
lea rdx, [rsp + 0x28]
cmp qword [rsp + 0x40], 0x10
cmovae rdx, qword [rsp + 0x28]
xor r8d, r8d
lea rcx, str.C:WindowsSoftwareDistributionDataStoreDataStoreyn.edb
call qword [sym.imp.KERNEL32.dll_CopyFileA]
test ebx, ebx
je 0x180007e0c
test eax, eax
jne 0x180007e6c
call fcn.1800077f0
test eax, eax
je 0x180007e61
lea rdx, [rsp + 0x48]
cmp qword [rsp + 0x60], 0x10
cmovae rdx, qword [rsp + 0x48]
xor r8d, r8d
lea rcx, str.C:WindowsSoftwareDistributionDataStoreDataStorein.edb
call qword [sym.imp.KERNEL32.dll_CopyFileA]
mov ebx, eax
lea rdx, [rsp + 0x28]
cmp qword [rsp + 0x40], 0x10
cmovae rdx, qword [rsp + 0x28]
xor r8d, r8d
lea rcx, str.C:WindowsSoftwareDistributionDataStoreDataStoreyn.edb
call qword [sym.imp.KERNEL32.dll_CopyFileA]
test ebx, ebx
je 0x180007e61
test eax, eax
jne 0x180007e6c
inc edi
cmp edi, 2
jb 0x180007dc0
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_Wow64RevertWow64FsRedirection]
mov rbx, qword [rbp - 0x18]
cmp r13, 0x10
jb 0x180007eb3
lea rdx, [r13 + 1]
mov rax, rsi
cmp rdx, 0x1000
jb 0x180007eaa
add rdx, 0x27
mov rsi, qword [rsi - 8]
sub rax, rsi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1800080d6
mov rcx, rsi
call fcn.18000f810
nop
cmp rbx, 0x10
jb 0x180007eea
lea rdx, [rbx + 1]
mov rax, r14
cmp rdx, 0x1000
jb 0x180007ee2
add rdx, 0x27
mov r14, qword [r14 - 8]
sub rax, r14
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1800080dc
mov rcx, r14
call fcn.18000f810
xor esi, esi
mov rdx, qword [rbp - 0x58]
cmp rdx, 8
jb 0x180007f2c
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180007f27
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1800080e2
call fcn.18000f810
movdqa xmm0, xmmword [0x18003cc70]
movdqu xmmword [rbp - 0x60], xmm0
mov word [rbp - 0x70], si
mov rdx, qword [rbp - 0x38]
cmp rdx, 8
jb 0x180007f7d
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180007f78
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18000810e
call fcn.18000f810
movdqa xmm0, xmmword [0x18003cc70]
movdqu xmmword [rbp - 0x40], xmm0
mov word [rbp - 0x50], si
mov rax, qword [rbp + 8]
cmp rax, 0x10
jb 0x180007fca
lea rdx, [rax + 1]
mov rax, r15
cmp rdx, 0x1000
jb 0x180007fc1
add rdx, 0x27
mov r15, qword [r15 - 8]
sub rax, r15
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180008114
mov rcx, r15
call fcn.18000f810
nop
mov rax, qword [rbp + 0x28]
cmp rax, 0x10
jb 0x180008007
lea rdx, [rax + 1]
mov rax, r12
cmp rdx, 0x1000
jb 0x180007ffe
add rdx, 0x27
mov r12, qword [r12 - 8]
sub rax, r12
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18000811a
mov rcx, r12
call fcn.18000f810
nop
mov rdx, qword [rsp + 0x40]
cmp rdx, 0x10
jb 0x180008044
inc rdx
mov rcx, qword [rsp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18000803f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180008120
call fcn.18000f810
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x40], 0xf
mov byte [rsp + 0x28], 0
mov rdx, qword [rsp + 0x60]
cmp rdx, 0x10
jb 0x180008090
inc rdx
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18000808b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1800080d0
call fcn.18000f810
mov rcx, qword [rbp + 0x10050]
xor rcx, rsp
call fcn.18000f7f0
lea r11, [rsp + 0x10160]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_Wow64RevertWow64FsRedirection]
jmp 0x180007eec
call fcn.180018434
nop
call fcn.180018434
nop
call fcn.180018434
nop
call fcn.180018434
nop
lea r8, [rbp - 0x70]
mov edx, eax
lea rcx, str.file_size
call fcn.1800030e0
int3
lea r8, [rbp - 0x50]
mov edx, eax
lea rcx, str.file_size
call fcn.1800030e0
nop
call fcn.180018434
nop
call fcn.180018434
nop
call fcn.180018434
nop
call fcn.180018434
int3