Function at 0x140041460
Capabilities:
Enumerate files on windows
Query environment variable

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x5f0]
sub rsp, 0x6f0
mov rax, qword [0x140309918]
xor rax, rsp
mov qword [rbp + 0x5e0], rax
mov r12, rcx
xor r15d, r15d
mov r8d, 0xff
lea rdx, [rbp + 0x1e0]
lea rcx, str._PROGRAMFILES_
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov r8d, 0xff
lea rdx, [rbp + 0x3e0]
lea rcx, str._PROGRAMFILES_X86__
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
call fcn.140010210
mov rcx, rax
test rax, rax
je 0x140041a5c
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x1e0]
lea rdi, [r15 - 1]
cmp rax, 0x10000
jae 0x14004151b
lea rax, [rbp + 0x1e0]
movzx edx, ax
lea rcx, [rsp + 0x28]
call fcn.140010ac0
jmp 0x140041544
lea rcx, [rbp + 0x1e0]
mov rax, rdi
inc rax
cmp word [rcx + rax*2], 0
jne 0x140041525
mov r8d, eax
lea rdx, [rbp + 0x1e0]
lea rcx, [rsp + 0x28]
call fcn.140002aa8
nop
lea rbx, str.dotnet_sharedMicrosoft.WindowsDesktop.App
mov rax, rdi
nop
inc rax
cmp word [rbx + rax*2], 0
jne 0x140041550
mov r8d, eax
mov rdx, rbx
lea rcx, [rsp + 0x28]
call fcn.140005abc
call fcn.140010210
mov rcx, rax
test rax, rax
je 0x140041a67
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x20], rax
lea rax, [rbp + 0x3e0]
cmp rax, 0x10000
jae 0x1400415af
lea rax, [rbp + 0x3e0]
movzx edx, ax
lea rcx, [rsp + 0x20]
call fcn.140010ac0
jmp 0x1400415df
lea rcx, [rbp + 0x3e0]
mov rax, rdi
nop dword [rax]
inc rax
cmp word [rcx + rax*2], 0
jne 0x1400415c0
mov r8d, eax
lea rdx, [rbp + 0x3e0]
lea rcx, [rsp + 0x20]
call fcn.140002aa8
nop
mov rax, rdi
inc rax
cmp word [rbx + rax*2], 0
jne 0x1400415e2
mov r8d, eax
mov rdx, rbx
lea rcx, [rsp + 0x20]
call fcn.140005abc
lea rdx, [rbp - 0x70]
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov r14, rax
lea rsi, vtable.srl::Version.0
lea r13, vtable.srl::Value.0
cmp rax, 0xffffffffffffffff
je 0x1400417f4
test byte [rbp - 0x70], 0x10
je 0x1400417d6
mov qword [rsp + 0x60], rsi
call fcn.140010210
mov rcx, rax
test rax, rax
je 0x140041a51
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x68], rax
lea rcx, [rbp - 0x44]
mov rax, rdi
nop dword [rax]
inc rax
cmp word [rcx + rax*2], 0
jne 0x140041660
mov r8d, eax
lea rdx, [rbp - 0x44]
lea rcx, [rsp + 0x68]
call fcn.140002aa8
nop
call fcn.140010210
test rax, rax
je 0x140041a7d
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0x18]
add rax, 0x18
mov qword [rsp + 0x30], rax
mov rdx, qword [rsp + 0x68]
lea rax, [rdx - 1]
cmp rax, 0xfffe
ja 0x1400416bc
movzx edx, dx
lea rcx, [rsp + 0x30]
call fcn.140010ac0
jmp 0x1400416e8
test rdx, rdx
jne 0x1400416c5
xor eax, eax
jmp 0x1400416da
mov rax, rdi
nop dword [rax + rax]
inc rax
cmp word [rdx + rax*2], 0
jne 0x1400416d0
mov r8d, eax
lea rcx, [rsp + 0x30]
call fcn.140002aa8
nop
mov rsi, qword [rsp + 0x30]
lea rcx, [rsi - 0x18]
call fcn.140002c68
add rax, 0x18
mov qword [rsp + 0x40], rax
call fcn.140010210
mov rcx, rax
test rax, rax
je 0x140041a72
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x48], rax
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x48]
call fcn.140002bd8
mov edx, 0x2c
lea rcx, [rsp + 0x48]
call fcn.14003eda0
mov rbx, qword [rsp + 0x48]
mov r9, rbx
mov r8d, r15d
mov edx, 0x117a6
mov rcx, qword [r12]
call fcn.14001dce0
inc r15d
lea rdx, [rbx - 0x18]
mov eax, edi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140041772
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rdx, qword [rsp + 0x40]
add rdx, 0xffffffffffffffe8
mov eax, edi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140041791
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov eax, edi
lock xadd dword [rsi - 8], eax
sub eax, 1
jg 0x1400417ac
mov rcx, qword [rsi - 0x18]
mov rax, qword [rcx]
lea rdx, [rsi - 0x18]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x68]
add rdx, 0xffffffffffffffe8
mov eax, edi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400417ca
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov qword [rsp + 0x60], r13
lea rsi, vtable.srl::Version.0
lea rdx, [rbp - 0x70]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x140041626
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_FindClose]
lea rdx, [rbp - 0x70]
mov rbx, qword [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov r14, rax
cmp rax, 0xffffffffffffffff
je 0x1400419e1
test byte [rbp - 0x70], 0x10
je 0x1400419bf
mov qword [rsp + 0x70], rsi
call fcn.140010210
mov rcx, rax
test rax, rax
je 0x140041a51
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x78], rax
lea rcx, [rbp - 0x44]
mov rax, rdi
nop dword [rax]
inc rax
cmp word [rcx + rax*2], 0
jne 0x140041850
mov r8d, eax
lea rdx, [rbp - 0x44]
lea rcx, [rsp + 0x78]
call fcn.140002aa8
nop
call fcn.140010210
test rax, rax
je 0x140041a93
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0x18]
add rax, 0x18
mov qword [rsp + 0x38], rax
mov rdx, qword [rsp + 0x78]
lea rax, [rdx - 1]
cmp rax, 0xfffe
ja 0x1400418ac
movzx edx, dx
lea rcx, [rsp + 0x38]
call fcn.140010ac0
jmp 0x1400418d8
test rdx, rdx
jne 0x1400418b5
xor eax, eax
jmp 0x1400418ca
mov rax, rdi
nop dword [rax + rax]
inc rax
cmp word [rdx + rax*2], 0
jne 0x1400418c0
mov r8d, eax
lea rcx, [rsp + 0x38]
call fcn.140002aa8
nop
mov rsi, qword [rsp + 0x38]
lea rcx, [rsi - 0x18]
call fcn.140002c68
add rax, 0x18
mov qword [rsp + 0x50], rax
call fcn.140010210
mov rcx, rax
test rax, rax
je 0x140041a88
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x58], rax
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x58]
call fcn.140002bd8
mov edx, 0x2c
lea rcx, [rsp + 0x58]
call fcn.14003eda0
mov rbx, qword [rsp + 0x58]
mov r9, rbx
mov r8d, r15d
mov edx, 0x117a6
mov rcx, qword [r12]
call fcn.14001dce0
inc r15d
lea rdx, [rbx - 0x18]
mov eax, edi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140041962
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rdx, qword [rsp + 0x50]
add rdx, 0xffffffffffffffe8
mov eax, edi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140041981
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov eax, edi
lock xadd dword [rsi - 8], eax
sub eax, 1
jg 0x14004199c
mov rcx, qword [rsi - 0x18]
mov rax, qword [rcx]
lea rdx, [rsi - 0x18]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x78]
add rdx, 0xffffffffffffffe8
mov eax, edi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400419ba
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov qword [rsp + 0x70], r13
lea rdx, [rbp - 0x70]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x1400419dc
lea rsi, vtable.srl::Version.0
jmp 0x140041813
mov rbx, qword [rsp + 0x20]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_FindClose]
nop
lea rdx, [rbx - 0x18]
mov eax, edi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140041a05
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x28]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], edi
sub edi, 1
jg 0x140041a21
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rcx, qword [rbp + 0x5e0]
xor rcx, rsp
call fcn.1402113c0
lea r11, [rsp + 0x6f0]
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
mov ecx, 0x80004005
call fcn.140002d2c
nop
mov ecx, 0x80004005
call fcn.140002d2c
nop
mov ecx, 0x80004005
call fcn.140002d2c
nop
mov ecx, 0x80004005
call fcn.140002d2c
nop
mov ecx, 0x80004005
call fcn.140002d2c
nop
mov ecx, 0x80004005
call fcn.140002d2c
nop
mov ecx, 0x80004005
call fcn.140002d2c
int3