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

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x668]
sub rsp, 0x768
mov rax, qword [0x140009010]
xor rax, rsp
mov qword [rbp + 0x650], rax
mov rax, qword [rbp + 0x6d0]
xor r15d, r15d
mov r14, qword [rbp + 0x6e8]
mov qword [rsp + 0x68], rax
mov rax, qword [rbp + 0x6e0]
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x50], rdx
mov dword [rsp + 0x40], r8d
mov qword [rsp + 0x58], r9
test rcx, rcx
je 0x1400043ef
cmp word [rcx], r15w
je 0x1400043ef
test rdx, rdx
je 0x1400043ef
cmp word [rdx], r15w
je 0x1400043ef
mov qword [r9], r15
mov r8, rcx
or r12, 0xffffffffffffffff
lea rcx, [rbp + 0x440]
mov r13d, 0x104
mov r9, r12
mov edx, r13d
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy_s]
test eax, eax
jne 0x1400043e8
lea rcx, [rbp + 0x440]
mov rax, r12
inc rax
cmp word [rcx + rax*2], r15w
jne 0x140003ea5
cmp word [rbp + rax*2 + 0x43e], 0x5c
je 0x140003edc
mov r9, r12
lea r8, [0x140006604]
mov rdx, r13
lea rcx, [rbp + 0x440]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncat_s]
test eax, eax
jne 0x1400043e8
lea rax, [rbp + 0x440]
mov dword [rsp + 0x30], 0x80070002
mov qword [rsp + 0x70], rax
lea rdx, [rbp + 0x208]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x78], rax
lea rcx, [0x140006608]
lea rax, [rsp + 0x40]
mov qword [rbp - 0x80], rax
lea rax, [rsp + 0x58]
mov qword [rbp - 0x78], rax
lea rax, [rsp + 0x60]
mov qword [rbp - 0x70], rax
lea rax, [rsp + 0x68]
mov qword [rbp - 0x68], rax
lea rax, [rbp + 0x6d8]
mov qword [rbp - 0x60], rax
xor eax, eax
mov qword [rbp + 0x208], rax
mov dword [rbp + 0x210], eax
lea esi, [rax + 6]
mov r8d, esi
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
dec eax
cmp eax, 4
ja 0x140003f7e
lea r9, [rsp + 0x30]
lea r8d, [rsi + 4]
lea rdx, [rbp + 0x208]
lea rcx, [rsp + 0x70]
call fcn.1400039d0
cmp dword [rsp + 0x30], r15d
je 0x140004123
mov rcx, qword [0x14000aec0]
mov edi, 1
test rcx, rcx
jne 0x140003fca
lea rcx, str.kernel32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000412a
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 [0x14000aec0], rax
jmp 0x140003fd3
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov rbx, rax
test rbx, rbx
je 0x14000412a
xor r8d, r8d
lea rcx, str.VS_UNICODE_OUTPUT
xor edx, edx
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
jne 0x140004006
xor r8d, r8d
xor edx, edx
mov ecx, pe_nt_image_headers64
call rbx
test eax, eax
je 0x1400043e8
mov rcx, qword [0x14000aec8]
mov dword [rsp + 0x38], r15d
mov dword [rsp + 0x3c], r15d
test rcx, rcx
jne 0x140004057
lea rcx, str.kernel32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400041cc
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 [0x14000aec8], rax
jmp 0x140004060
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov rdi, rax
test rdi, rdi
je 0x1400041cc
xor r8d, r8d
lea r9, [rsp + 0x38]
lea rdx, [rsp + 0x3c]
lea r13d, [r8 + 0x34]
mov ecx, r13d
call rdi
test eax, eax
je 0x1400043e8
mov ebx, dword [rsp + 0x38]
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 0x1400040b4
mov eax, 0x8007000e
jmp 0x1400043f4
lea r9, [rsp + 0x38]
mov r8, rsi
lea rdx, [rsp + 0x3c]
mov ecx, r13d
call rdi
test eax, eax
je 0x1400043e8
mov rbx, rsi
cmp word [rsi], r15w
je 0x140004103
lea r9, [rsp + 0x30]
mov r8d, 0x10
mov rdx, rbx
lea rcx, [rsp + 0x70]
call fcn.1400039d0
mov edi, dword [rsp + 0x30]
test edi, edi
je 0x140004107
add rbx, 0xa
cmp word [rbx], r15w
jne 0x1400040d7
jmp 0x140004107
mov edi, dword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rsi
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
test edi, edi
jne 0x1400041c6
xor eax, eax
jmp 0x1400043f4
call qword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
mov r8d, 0x3ff
movzx ecx, ax
and cx, r8w
lea edx, [r8 + 0xa]
cmp cx, di
je 0x14000414c
cmp cx, 0xd
jne 0x14000414e
mov eax, edx
mov word [rbp + 0x200], ax
lea rdi, [rbp + 0x200]
and ax, r8w
mov word [rbp + 0x204], dx
mov ecx, 0x400
mov ebx, r15d
or ax, cx
mov word [rbp + 0x202], ax
movzx ecx, word [rdi]
lea rdx, [rbp + 0x218]
mov r9d, 0xa
mov r8, rsi
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll__itow_s]
lea r9, [rsp + 0x30]
mov r8d, 0xa
lea rdx, [rbp + 0x218]
lea rcx, [rsp + 0x70]
call fcn.1400039d0
cmp dword [rsp + 0x30], r15d
je 0x140004123
inc ebx
add rdi, 2
cmp ebx, 3
jb 0x140004179
jmp 0x1400041cc
mov r13d, 0x104
lea r9, [rsp + 0x30]
mov r8d, 0xa
lea rdx, str.1033
lea rcx, [rsp + 0x70]
call fcn.1400039d0
mov esi, dword [rsp + 0x30]
test esi, esi
je 0x140004123
mov r9, r12
lea r8, [rbp + 0x440]
mov rdx, r13
lea rcx, [rbp + 0x230]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy_s]
test eax, eax
jne 0x1400043e1
mov r9, r12
lea r8, [0x1400066ac]
mov rdx, r13
lea rcx, [rbp + 0x230]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncat_s]
test eax, eax
jne 0x1400043e1
lea rdx, [rbp - 0x50]
lea rcx, [rbp + 0x230]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rbx, rax
cmp rax, r12
jne 0x14000426b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
movzx eax, ax
or eax, 0x80070000
test ecx, ecx
cmovle eax, ecx
jmp 0x1400043f4
lea rax, [rbp + 0x440]
mov rdi, r12
inc rdi
cmp word [rax + rdi*2], r15w
jne 0x140004275
lea rdx, [rbp - 0x50]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x1400043d4
test byte [rbp - 0x50], 0x10
je 0x14000427f
cmp word [rbp - 0x24], 0x2e
movzx eax, word [rbp - 0x22]
jne 0x1400042be
test ax, ax
je 0x14000427f
cmp word [rbp - 0x24], 0x2e
jne 0x1400042be
cmp ax, 0x2e
jne 0x1400042be
cmp word [rbp - 0x20], r15w
je 0x14000427f
lea rcx, [rbp - 0x24]
test r14, r14
je 0x1400042dc
lea rdx, [rsp + 0x34]
call r14
test rax, rax
je 0x14000427f
cmp word [rax], r15w
je 0x1400042ff
jmp 0x14000427f
lea r9, [rsp + 0x48]
mov dword [rsp + 0x20], 1
lea r8, [rsp + 0x34]
lea rdx, [0x1400066b0]
call fcn.1400044ec
cmp eax, r12d
je 0x14000427f
lea rax, [rdi + rdi]
cmp rax, 0x208
jae 0x140004417
mov r9, r12
mov word [rbp + rax + 0x230], r15w
lea r8, [rbp - 0x24]
mov rdx, r13
lea rcx, [rbp + 0x230]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncat_s]
test eax, eax
jne 0x14000427f
mov r9, r12
lea r8, [0x140006604]
mov rdx, r13
lea rcx, [rbp + 0x230]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncat_s]
test eax, eax
jne 0x14000427f
mov r8, qword [rsp + 0x50]
lea rcx, [rbp + 0x230]
mov r9, r12
mov rdx, r13
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncat_s]
test eax, eax
jne 0x14000427f
mov r8d, dword [rsp + 0x40]
lea rcx, [rbp + 0x230]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rcx, rax
test rax, rax
je 0x14000427f
mov rax, qword [rsp + 0x58]
mov qword [rax], rcx
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x1400043b3
movzx eax, word [rsp + 0x34]
mov word [rcx], ax
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x1400043d1
mov rdx, qword [rbp + 0x6d8]
lea r8, [rbp + 0x230]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
mov esi, r15d
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindClose]
mov eax, esi
jmp 0x1400043f4
mov eax, 0x80070003
jmp 0x1400043f4
mov eax, 0x80004005
jmp 0x1400043f4
mov eax, 0x80070057
mov rcx, qword [rbp + 0x650]
xor rcx, rsp
call fcn.140002180
add rsp, 0x768
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
call fcn.1400028ac
int3