Function at 0x140041690
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 [0x14030a918]
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 0x140041c8c
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 0x14004174b
lea rax, [rbp + 0x1e0]
movzx edx, ax
lea rcx, [rsp + 0x28]
call fcn.140010ac0
jmp 0x140041774
lea rcx, [rbp + 0x1e0]
mov rax, rdi
inc rax
cmp word [rcx + rax*2], 0
jne 0x140041755
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 0x140041780
mov r8d, eax
mov rdx, rbx
lea rcx, [rsp + 0x28]
call fcn.140005abc
call fcn.140010210
mov rcx, rax
test rax, rax
je 0x140041c97
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x20], rax
lea rax, [rbp + 0x3e0]
cmp rax, 0x10000
jae 0x1400417df
lea rax, [rbp + 0x3e0]
movzx edx, ax
lea rcx, [rsp + 0x20]
call fcn.140010ac0
jmp 0x14004180f
lea rcx, [rbp + 0x3e0]
mov rax, rdi
nop dword [rax]
inc rax
cmp word [rcx + rax*2], 0
jne 0x1400417f0
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 0x140041812
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 0x140041a24
test byte [rbp - 0x70], 0x10
je 0x140041a06
mov qword [rsp + 0x60], rsi
call fcn.140010210
mov rcx, rax
test rax, rax
je 0x140041c81
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 0x140041890
mov r8d, eax
lea rdx, [rbp - 0x44]
lea rcx, [rsp + 0x68]
call fcn.140002aa8
nop
call fcn.140010210
test rax, rax
je 0x140041cad
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 0x1400418ec
movzx edx, dx
lea rcx, [rsp + 0x30]
call fcn.140010ac0
jmp 0x140041918
test rdx, rdx
jne 0x1400418f5
xor eax, eax
jmp 0x14004190a
mov rax, rdi
nop dword [rax + rax]
inc rax
cmp word [rdx + rax*2], 0
jne 0x140041900
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 0x140041ca2
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.14003efd0
mov rbx, qword [rsp + 0x48]
mov r9, rbx
mov r8d, r15d
mov edx, 0x117a6
mov rcx, qword [r12]
call fcn.14001dd00
inc r15d
lea rdx, [rbx - 0x18]
mov eax, edi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400419a2
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 0x1400419c1
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 0x1400419dc
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 0x1400419fa
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 0x140041856
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 0x140041c11
test byte [rbp - 0x70], 0x10
je 0x140041bef
mov qword [rsp + 0x70], rsi
call fcn.140010210
mov rcx, rax
test rax, rax
je 0x140041c81
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 0x140041a80
mov r8d, eax
lea rdx, [rbp - 0x44]
lea rcx, [rsp + 0x78]
call fcn.140002aa8
nop
call fcn.140010210
test rax, rax
je 0x140041cc3
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 0x140041adc
movzx edx, dx
lea rcx, [rsp + 0x38]
call fcn.140010ac0
jmp 0x140041b08
test rdx, rdx
jne 0x140041ae5
xor eax, eax
jmp 0x140041afa
mov rax, rdi
nop dword [rax + rax]
inc rax
cmp word [rdx + rax*2], 0
jne 0x140041af0
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 0x140041cb8
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.14003efd0
mov rbx, qword [rsp + 0x58]
mov r9, rbx
mov r8d, r15d
mov edx, 0x117a6
mov rcx, qword [r12]
call fcn.14001dd00
inc r15d
lea rdx, [rbx - 0x18]
mov eax, edi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140041b92
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 0x140041bb1
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 0x140041bcc
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 0x140041bea
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 0x140041c0c
lea rsi, vtable.srl::Version.0
jmp 0x140041a43
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 0x140041c35
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 0x140041c51
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.140211820
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