Function at 0x140044110
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 - 0x620]
sub rsp, 0x720
mov rax, qword [0x14031a940]
xor rax, rsp
mov qword [rbp + 0x610], rax
mov r13, rcx
xor r12d, r12d
mov dword [rsp + 0x20], r12d
xor r15d, r15d
mov r8d, 0xff
lea rdx, [rbp + 0x210]
lea rcx, str._PROGRAMFILES_
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov r8d, 0xff
lea rdx, [rbp + 0x410]
lea rcx, str._PROGRAMFILES_X86__
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
call fcn.140010254
mov rcx, rax
test rax, rax
je 0x140044942
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x30], rax
lea rax, [rbp + 0x210]
lea rdi, [r12 - 1]
cmp rax, 0x10000
lea rax, [rbp + 0x210]
jae 0x1400441d4
movzx edx, ax
lea rcx, [rsp + 0x30]
call fcn.140010ab0
jmp 0x1400441fd
mov r8, rdi
nop word [rax + rax]
inc r8
cmp word [rax + r8*2], 0
jne 0x1400441e0
lea rdx, [rbp + 0x210]
lea rcx, [rsp + 0x30]
call fcn.140002a9c
nop
lea rbx, str.dotnet_sharedMicrosoft.WindowsDesktop.App
mov r8, rdi
nop word [rax + rax]
inc r8
cmp word [rbx + r8*2], 0
jne 0x140044210
mov rdx, rbx
lea rcx, [rsp + 0x30]
call fcn.140005af4
call fcn.140010254
mov rcx, rax
test rax, rax
je 0x14004494d
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x410]
cmp rax, 0x10000
lea rax, [rbp + 0x410]
jae 0x14004426d
movzx edx, ax
lea rcx, [rsp + 0x28]
call fcn.140010ab0
jmp 0x14004428d
mov r8, rdi
inc r8
cmp word [rax + r8*2], 0
jne 0x140044270
lea rdx, [rbp + 0x410]
lea rcx, [rsp + 0x28]
call fcn.140002a9c
nop
mov r8, rdi
inc r8
cmp word [rbx + r8*2], 0
jne 0x140044290
mov rdx, rbx
lea rcx, [rsp + 0x28]
call fcn.140005af4
lea rdx, [rbp - 0x40]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov r14, rax
lea rsi, vtable.srl::Version.0
cmp rax, 0xffffffffffffffff
je 0x1400445bc
nop dword [rax + rax]
test byte [rbp - 0x40], 0x10
je 0x14004459e
mov qword [rbp - 0x60], rsi
call fcn.140010254
mov rcx, rax
test rax, rax
je 0x140044937
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rbp - 0x58], rax
lea rax, [rbp - 0x14]
mov r8, rdi
inc r8
cmp word [rax + r8*2], 0
jne 0x140044304
lea rdx, [rbp - 0x14]
lea rcx, [rbp - 0x58]
call fcn.140002a9c
nop
call fcn.140010254
test rax, rax
je 0x14004496e
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0x18]
add rax, 0x18
mov qword [rsp + 0x38], rax
mov rdx, qword [rbp - 0x58]
lea rax, [rdx - 1]
cmp rax, 0xfffe
ja 0x14004435c
movzx edx, dx
lea rcx, [rsp + 0x38]
call fcn.140010ab0
jmp 0x140044386
test rdx, rdx
jne 0x140044366
xor r8d, r8d
jmp 0x14004437b
mov r8, rdi
nop dword [rax]
inc r8
cmp word [rdx + r8*2], 0
jne 0x140044370
lea rcx, [rsp + 0x38]
call fcn.140002a9c
nop
mov rsi, qword [rsp + 0x38]
lea rcx, [rsi - 0x18]
call fcn.140002c5c
add rax, 0x18
mov qword [rsp + 0x60], rax
call fcn.140010254
mov rcx, rax
test rax, rax
je 0x140044963
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x68], rax
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x68]
call fcn.140002bcc
mov edx, 0x2c
lea rcx, [rsp + 0x68]
call fcn.140041bd0
mov rbx, qword [rsp + 0x68]
mov r9, rbx
mov r8d, r12d
mov edx, 0x117a6
mov rcx, qword [r13]
call fcn.14001e730
inc r12d
lea rdx, [rbx - 0x18]
mov eax, edi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140044410
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rdx, qword [rsp + 0x60]
add rdx, 0xffffffffffffffe8
mov eax, edi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14004442f
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 0x140044449
mov rcx, qword [rsi - 0x18]
mov rax, qword [rcx]
lea rdx, [rsi - 0x18]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
call fcn.140010254
test rax, rax
je 0x14004496e
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0x18]
add rax, 0x18
mov qword [rsp + 0x40], rax
mov rdx, qword [rbp - 0x58]
lea rax, [rdx - 1]
cmp rax, 0xfffe
ja 0x140044488
movzx edx, dx
lea rcx, [rsp + 0x40]
call fcn.140010ab0
jmp 0x1400444ab
test rdx, rdx
jne 0x140044492
xor r8d, r8d
jmp 0x1400444a0
mov r8, rdi
inc r8
cmp word [rdx + r8*2], 0
jne 0x140044495
lea rcx, [rsp + 0x40]
call fcn.140002a9c
nop
mov rsi, qword [rsp + 0x40]
lea rcx, [rsi - 0x18]
call fcn.140002c5c
add rax, 0x18
mov qword [rsp + 0x70], rax
call fcn.140010254
mov rcx, rax
test rax, rax
je 0x140044958
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x78], rax
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x78]
call fcn.140002bcc
mov edx, 0x2c
lea rcx, [rsp + 0x78]
call fcn.140041bd0
mov rbx, qword [rsp + 0x78]
mov r9, rbx
mov r8d, r15d
mov edx, 0x117bf
mov rcx, qword [r13]
call fcn.14001e730
inc r15d
lea rdx, [rbx - 0x18]
mov eax, edi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140044535
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rdx, qword [rsp + 0x70]
add rdx, 0xffffffffffffffe8
mov eax, edi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140044554
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 0x14004456f
mov rcx, qword [rsi - 0x18]
mov rax, qword [rcx]
lea rdx, [rsi - 0x18]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rbp - 0x58]
add rdx, 0xffffffffffffffe8
mov eax, edi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14004458c
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
lea rax, vtable.srl::Value.0
mov qword [rbp - 0x60], rax
lea rsi, vtable.srl::Version.0
lea rdx, [rbp - 0x40]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x1400442d0
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_FindClose]
lea rdx, [rbp - 0x40]
mov rbx, qword [rsp + 0x28]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov r14, rax
cmp rax, 0xffffffffffffffff
je 0x1400448c7
nop dword [rax + rax]
test byte [rbp - 0x40], 0x10
je 0x1400448a5
mov qword [rbp - 0x50], rsi
call fcn.140010254
mov rcx, rax
test rax, rax
je 0x140044937
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rbp - 0x48], rax
lea rax, [rbp - 0x14]
mov r8, rdi
inc r8
cmp word [rax + r8*2], 0
jne 0x140044614
lea rdx, [rbp - 0x14]
lea rcx, [rbp - 0x48]
call fcn.140002a9c
nop
call fcn.140010254
test rax, rax
je 0x14004498f
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0x18]
add rax, 0x18
mov qword [rsp + 0x48], rax
mov rdx, qword [rbp - 0x48]
lea rax, [rdx - 1]
cmp rax, 0xfffe
ja 0x14004466c
movzx edx, dx
lea rcx, [rsp + 0x48]
call fcn.140010ab0
jmp 0x140044696
test rdx, rdx
jne 0x140044676
xor r8d, r8d
jmp 0x14004468b
mov r8, rdi
nop dword [rax]
inc r8
cmp word [rdx + r8*2], 0
jne 0x140044680
lea rcx, [rsp + 0x48]
call fcn.140002a9c
nop
mov rsi, qword [rsp + 0x48]
lea rcx, [rsi - 0x18]
call fcn.140002c5c
add rax, 0x18
mov qword [rbp - 0x80], rax
call fcn.140010254
mov rcx, rax
test rax, rax
je 0x140044984
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rbp - 0x78], rax
lea rdx, [rbp - 0x80]
lea rcx, [rbp - 0x78]
call fcn.140002bcc
mov edx, 0x2c
lea rcx, [rbp - 0x78]
call fcn.140041bd0
mov rbx, qword [rbp - 0x78]
mov r9, rbx
mov r8d, r12d
mov edx, 0x117a6
mov rcx, qword [r13]
call fcn.14001e730
inc r12d
lea rdx, [rbx - 0x18]
mov eax, edi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14004471a
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rdx, qword [rbp - 0x80]
add rdx, 0xffffffffffffffe8
mov eax, edi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140044738
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 0x140044752
mov rcx, qword [rsi - 0x18]
mov rax, qword [rcx]
lea rdx, [rsi - 0x18]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
call fcn.140010254
test rax, rax
je 0x14004498f
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0x18]
add rax, 0x18
mov qword [rsp + 0x50], rax
mov rdx, qword [rbp - 0x48]
lea rax, [rdx - 1]
cmp rax, 0xfffe
ja 0x140044791
movzx edx, dx
lea rcx, [rsp + 0x50]
call fcn.140010ab0
jmp 0x1400447b6
test rdx, rdx
jne 0x14004479b
xor r8d, r8d
jmp 0x1400447ab
mov r8, rdi
nop
inc r8
cmp word [rdx + r8*2], 0
jne 0x1400447a0
lea rcx, [rsp + 0x50]
call fcn.140002a9c
nop
mov rsi, qword [rsp + 0x50]
lea rcx, [rsi - 0x18]
call fcn.140002c5c
add rax, 0x18
mov qword [rbp - 0x70], rax
call fcn.140010254
mov rcx, rax
test rax, rax
je 0x140044979
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rbp - 0x68], rax
lea rdx, [rbp - 0x70]
lea rcx, [rbp - 0x68]
call fcn.140002bcc
mov edx, 0x2c
lea rcx, [rbp - 0x68]
call fcn.140041bd0
mov rbx, qword [rbp - 0x68]
mov r9, rbx
mov r15d, dword [rsp + 0x20]
mov r8d, r15d
mov edx, 0x117be
mov rcx, qword [r13]
call fcn.14001e730
inc r15d
mov dword [rsp + 0x20], r15d
lea rdx, [rbx - 0x18]
mov eax, edi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140044844
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rdx, qword [rbp - 0x70]
add rdx, 0xffffffffffffffe8
mov eax, edi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140044862
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 0x14004487d
mov rcx, qword [rsi - 0x18]
mov rax, qword [rcx]
lea rdx, [rsi - 0x18]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rbp - 0x48]
add rdx, 0xffffffffffffffe8
mov eax, edi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14004489a
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
lea rax, vtable.srl::Value.0
mov qword [rbp - 0x50], rax
lea rdx, [rbp - 0x40]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x1400448c2
lea rsi, vtable.srl::Version.0
jmp 0x1400445e0
mov rbx, qword [rsp + 0x28]
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 0x1400448eb
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x30]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], edi
sub edi, 1
jg 0x140044907
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rcx, qword [rbp + 0x610]
xor rcx, rsp
call fcn.140220510
lea r11, [rsp + 0x720]
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.140002d6c
nop
mov ecx, 0x80004005
call fcn.140002d6c
nop
mov ecx, 0x80004005
call fcn.140002d6c
nop
mov ecx, 0x80004005
call fcn.140002d6c
nop
mov ecx, 0x80004005
call fcn.140002d6c
nop
mov ecx, 0x80004005
call fcn.140002d6c
nop
mov ecx, 0x80004005
call fcn.140002d6c
nop
mov ecx, 0x80004005
call fcn.140002d6c
nop
mov ecx, 0x80004005
call fcn.140002d6c
int3