Function at 0x1400417e0
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 [0x14030b918]
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 0x140041ddc
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 0x14004189b
lea rax, [rbp + 0x1e0]
movzx edx, ax
lea rcx, [rsp + 0x28]
call fcn.140010ac0
jmp 0x1400418c4
lea rcx, [rbp + 0x1e0]
mov rax, rdi
inc rax
cmp word [rcx + rax*2], 0
jne 0x1400418a5
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 0x1400418d0
mov r8d, eax
mov rdx, rbx
lea rcx, [rsp + 0x28]
call fcn.140005abc
call fcn.140010210
mov rcx, rax
test rax, rax
je 0x140041de7
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x20], rax
lea rax, [rbp + 0x3e0]
cmp rax, 0x10000
jae 0x14004192f
lea rax, [rbp + 0x3e0]
movzx edx, ax
lea rcx, [rsp + 0x20]
call fcn.140010ac0
jmp 0x14004195f
lea rcx, [rbp + 0x3e0]
mov rax, rdi
nop dword [rax]
inc rax
cmp word [rcx + rax*2], 0
jne 0x140041940
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 0x140041962
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 0x140041b74
test byte [rbp - 0x70], 0x10
je 0x140041b56
mov qword [rsp + 0x60], rsi
call fcn.140010210
mov rcx, rax
test rax, rax
je 0x140041dd1
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 0x1400419e0
mov r8d, eax
lea rdx, [rbp - 0x44]
lea rcx, [rsp + 0x68]
call fcn.140002aa8
nop
call fcn.140010210
test rax, rax
je 0x140041dfd
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 0x140041a3c
movzx edx, dx
lea rcx, [rsp + 0x30]
call fcn.140010ac0
jmp 0x140041a68
test rdx, rdx
jne 0x140041a45
xor eax, eax
jmp 0x140041a5a
mov rax, rdi
nop dword [rax + rax]
inc rax
cmp word [rdx + rax*2], 0
jne 0x140041a50
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 0x140041df2
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.14003f120
mov rbx, qword [rsp + 0x48]
mov r9, rbx
mov r8d, r15d
mov edx, 0x117a6
mov rcx, qword [r12]
call fcn.14001dde0
inc r15d
lea rdx, [rbx - 0x18]
mov eax, edi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140041af2
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 0x140041b11
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 0x140041b2c
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 0x140041b4a
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 0x1400419a6
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 0x140041d61
test byte [rbp - 0x70], 0x10
je 0x140041d3f
mov qword [rsp + 0x70], rsi
call fcn.140010210
mov rcx, rax
test rax, rax
je 0x140041dd1
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 0x140041bd0
mov r8d, eax
lea rdx, [rbp - 0x44]
lea rcx, [rsp + 0x78]
call fcn.140002aa8
nop
call fcn.140010210
test rax, rax
je 0x140041e13
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 0x140041c2c
movzx edx, dx
lea rcx, [rsp + 0x38]
call fcn.140010ac0
jmp 0x140041c58
test rdx, rdx
jne 0x140041c35
xor eax, eax
jmp 0x140041c4a
mov rax, rdi
nop dword [rax + rax]
inc rax
cmp word [rdx + rax*2], 0
jne 0x140041c40
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 0x140041e08
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.14003f120
mov rbx, qword [rsp + 0x58]
mov r9, rbx
mov r8d, r15d
mov edx, 0x117a6
mov rcx, qword [r12]
call fcn.14001dde0
inc r15d
lea rdx, [rbx - 0x18]
mov eax, edi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140041ce2
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 0x140041d01
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 0x140041d1c
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 0x140041d3a
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 0x140041d5c
lea rsi, vtable.srl::Version.0
jmp 0x140041b93
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 0x140041d85
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 0x140041da1
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.140211970
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