Function at 0x180009fac
Capabilities:
Enumerate files on windows
Identify system language via api
Query environment variable

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r13
push r14
push r15
lea rbp, [rsp - 0x650]
sub rsp, 0x750
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp + 0x640], rax
xor r14d, r14d
mov qword [rsp + 0x38], rdx
mov qword [rsp + 0x40], r8
mov qword [rsp + 0x50], r9
mov qword [rsp + 0x48], r14
mov qword [rsp + 0x60], 0x105
mov dword [rsp + 0x30], 0x60
cmp word [rcx], r14w
je 0x18000a5a6
test rdx, rdx
je 0x18000a5a6
cmp word [rdx], r14w
je 0x18000a5a6
mov qword [r8], r14
or r15, 0xffffffffffffffff
mov r8, rcx
mov r13d, 0x104
mov r9, r15
lea rcx, [rbp + 0x430]
mov edx, r13d
call fcn.18000e958
test eax, eax
jne 0x18000a59f
lea rcx, [rbp + 0x430]
mov rax, r15
inc rax
cmp word [rcx + rax*2], r14w
jne 0x18000a050
cmp word [rbp + rax*2 + 0x42e], 0x5c
je 0x18000a086
mov r9, r15
lea r8, [0x18002225c]
mov rdx, r13
lea rcx, [rbp + 0x430]
call fcn.18000ea3c
test eax, eax
jne 0x18000a59f
lea rax, [rbp + 0x430]
mov dword [rsp + 0x20], 0x80070002
mov qword [rsp + 0x68], rax
lea rdx, [rbp + 0x1f8]
lea rax, [rsp + 0x38]
mov qword [rsp + 0x70], rax
lea rcx, str.VSLANG
lea rax, [rsp + 0x30]
mov qword [rsp + 0x78], rax
lea rax, [rsp + 0x40]
mov qword [rbp - 0x80], rax
lea rax, [rsp + 0x48]
mov qword [rbp - 0x78], rax
lea rax, [rsp + 0x50]
mov qword [rbp - 0x70], rax
lea rax, [rsp + 0x60]
mov qword [rbp - 0x68], rax
xor eax, eax
mov qword [rbp + 0x1f8], rax
mov dword [rbp + 0x200], eax
lea r8d, [rax + 6]
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
dec eax
cmp eax, 4
ja 0x18000a131
cmp word [rbp + 0x1f8], r14w
je 0x18000a131
lea r9, [rsp + 0x20]
mov r8d, 0xa
lea rdx, [rbp + 0x1f8]
lea rcx, [rsp + 0x68]
call fcn.18000a5d4
cmp dword [rsp + 0x20], r14d
je 0x18000a2e6
mov rcx, qword [0x180028b48]
test rcx, rcx
jne 0x18000a178
lea rcx, [0x180022dc8]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x18000a2ed
lea rdx, str.SetThreadPreferredUILanguages
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov qword [0x180028b48], rax
jmp 0x18000a181
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov rbx, rax
test rbx, rbx
je 0x18000a2ed
xor r8d, r8d
lea rcx, str.VS_UNICODE_OUTPUT
xor edx, edx
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
jne 0x18000a1bc
mov rcx, rbx
call fcn.1800196e8
xor r8d, r8d
xor edx, edx
mov ecx, 0x100
call rbx
test eax, eax
je 0x18000a59f
mov rcx, qword [0x180028b40]
mov dword [rsp + 0x28], r14d
mov dword [rsp + 0x2c], r14d
test rcx, rcx
jne 0x18000a20d
lea rcx, str.kernel32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x18000a39e
lea rdx, str.GetThreadPreferredUILanguages
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov qword [0x180028b40], rax
jmp 0x18000a216
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov rdi, rax
test rdi, rdi
je 0x18000a39e
mov rcx, rdi
call fcn.1800196e8
xor r8d, r8d
lea r9, [rsp + 0x28]
lea rdx, [rsp + 0x2c]
lea r13d, [r8 + 0x34]
mov ecx, r13d
call rdi
test eax, eax
je 0x18000a59f
mov ebx, dword [rsp + 0x28]
add rbx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbx
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rsi, rax
test rax, rax
jne 0x18000a272
mov eax, 0x8007000e
jmp 0x18000a5ab
mov rcx, rdi
call fcn.1800196e8
lea r9, [rsp + 0x28]
mov r8, rsi
lea rdx, [rsp + 0x2c]
mov ecx, r13d
call rdi
test eax, eax
je 0x18000a59f
movzx eax, word [rsi]
mov rbx, rsi
jmp 0x18000a2c2
lea r9, [rsp + 0x20]
mov r8d, 0x10
mov rdx, rbx
lea rcx, [rsp + 0x68]
call fcn.18000a5d4
cmp dword [rsp + 0x20], r14d
je 0x18000a2c7
add rbx, 0xa
movzx eax, word [rbx]
test ax, ax
jne 0x18000a29c
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rsi
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
cmp dword [rsp + 0x20], r14d
jne 0x18000a398
xor eax, eax
jmp 0x18000a5ab
call qword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
mov r8d, 0x3ff
mov esi, 1
movzx ecx, ax
and cx, r8w
lea edx, [r8 + 0xa]
cmp cx, si
je 0x18000a314
cmp cx, 0xd
jne 0x18000a316
mov eax, edx
mov word [rbp + 0x1f0], ax
lea rdi, [rbp + 0x1f0]
and ax, r8w
mov word [rbp + 0x1f4], dx
mov ecx, 0x400
mov ebx, r14d
or ax, cx
mov word [rbp + 0x1f2], ax
movzx ecx, word [rdi]
lea rdx, [rbp + 0x208]
mov r9d, 0xa
lea r8d, [r9 - 4]
call fcn.18000e938
cmp word [rbp + 0x208], r14w
je 0x18000a380
lea r9, [rsp + 0x20]
mov r8d, 0xa
lea rdx, [rbp + 0x208]
lea rcx, [rsp + 0x68]
call fcn.18000a5d4
cmp dword [rsp + 0x20], r14d
je 0x18000a2e6
add ebx, esi
add rdi, 2
cmp ebx, 3
jb 0x18000a341
jmp 0x18000a39e
mov r13d, 0x104
lea r9, [rsp + 0x20]
mov r8d, 0xa
lea rdx, str.1033
lea rcx, [rsp + 0x68]
call fcn.18000a5d4
mov esi, dword [rsp + 0x20]
test esi, esi
je 0x18000a2e6
mov r9, r15
lea r8, [rbp + 0x430]
mov rdx, r13
lea rcx, [rbp + 0x220]
call fcn.18000e958
test eax, eax
jne 0x18000a598
mov r9, r15
lea r8, [0x18002228c]
mov rdx, r13
lea rcx, [rbp + 0x220]
call fcn.18000ea3c
test eax, eax
jne 0x18000a598
lea rdx, [rbp - 0x60]
lea rcx, [rbp + 0x220]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rdi, rax
cmp rax, r15
jne 0x18000a43b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
movzx eax, ax
or eax, 0x80070000
test ecx, ecx
cmovle eax, ecx
jmp 0x18000a5ab
lea rax, [rbp + 0x430]
mov rbx, r15
inc rbx
cmp word [rax + rbx*2], r14w
jne 0x18000a445
lea rdx, [rbp - 0x60]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x18000a58b
test byte [rbp - 0x60], 0x10
je 0x18000a44f
movzx ecx, word [rbp - 0x34]
cmp cx, word [0x1800222b4]
movzx eax, word [rbp - 0x32]
jne 0x18000a484
cmp ax, word [0x1800222b6]
je 0x18000a44f
cmp cx, word [0x180022e7c]
jne 0x18000a4a3
cmp ax, word [0x180022e7e]
jne 0x18000a4a3
movzx eax, word [rbp - 0x30]
cmp ax, word [0x180022e80]
je 0x18000a44f
lea rdx, [rsp + 0x24]
lea rcx, [rbp - 0x34]
call fcn.18000aa34
test rax, rax
je 0x18000a44f
cmp word [rax], r14w
jne 0x18000a44f
lea rax, [rbx + rbx]
cmp rax, 0x208
jae 0x18000a5cc
mov r9, r15
mov word [rbp + rax + 0x220], r14w
lea r8, [rbp - 0x34]
mov rdx, r13
lea rcx, [rbp + 0x220]
call fcn.18000ea3c
test eax, eax
jne 0x18000a44f
mov r9, r15
lea r8, [0x1800222dc]
mov rdx, r13
lea rcx, [rbp + 0x220]
call fcn.18000ea3c
test eax, eax
jne 0x18000a44f
mov r8, qword [rsp + 0x38]
lea rcx, [rbp + 0x220]
mov r9, r15
mov rdx, r13
call fcn.18000ea3c
test eax, eax
jne 0x18000a44f
mov r8d, dword [rsp + 0x30]
lea rcx, [rbp + 0x220]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rcx, rax
test rax, rax
je 0x18000a44f
mov rax, qword [rsp + 0x40]
mov qword [rax], rcx
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x18000a56d
movzx eax, word [rsp + 0x24]
mov word [rcx], ax
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x18000a588
mov rdx, qword [rsp + 0x60]
lea r8, [rbp + 0x220]
call fcn.18000eb3c
mov esi, r14d
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindClose]
mov eax, esi
jmp 0x18000a5ab
mov eax, 0x80070003
jmp 0x18000a5ab
mov eax, 0x80004005
jmp 0x18000a5ab
mov eax, 0x80070057
mov rcx, qword [rbp + 0x640]
xor rcx, rsp
call fcn.18000abd0
add rsp, 0x750
pop r15
pop r14
pop r13
pop rdi
pop rsi
pop rbx
pop rbp
ret
call fcn.18000acfc
int3