Function at 0x140004cdc
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 [0x14000a010]
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 0x1400052df
cmp word [rcx], r15w
je 0x1400052df
test rdx, rdx
je 0x1400052df
cmp word [rdx], r15w
je 0x1400052df
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 0x1400052d8
lea rcx, [rbp + 0x440]
mov rax, r12
inc rax
cmp word [rcx + rax*2], r15w
jne 0x140004d95
cmp word [rbp + rax*2 + 0x43e], 0x5c
je 0x140004dcc
mov r9, r12
lea r8, [0x140006920]
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 0x1400052d8
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, str.VSLANG
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.api_ms_win_core_processenvironment_l1_2_0.dll_GetEnvironmentVariableW]
dec eax
cmp eax, 4
ja 0x140004e6e
lea r9, [rsp + 0x30]
lea r8d, [rsi + 4]
lea rdx, [rbp + 0x208]
lea rcx, [rsp + 0x70]
call fcn.1400048c0
cmp dword [rsp + 0x30], r15d
je 0x140005013
mov rcx, qword [0x14000bd60]
mov edi, 1
test rcx, rcx
jne 0x140004eba
lea rcx, str.kernel32.dll
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_GetModuleHandleW]
test rax, rax
je 0x14000501a
lea rdx, str.SetThreadPreferredUILanguages
mov rcx, rax
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_GetProcAddress]
mov rcx, rax
mov rbx, rax
call qword [sym.imp.api_ms_win_core_util_l1_1_0.dll_EncodePointer]
mov qword [0x14000bd60], rax
jmp 0x140004ec3
call qword [sym.imp.api_ms_win_core_util_l1_1_0.dll_DecodePointer]
mov rbx, rax
test rbx, rbx
je 0x14000501a
xor r8d, r8d
lea rcx, str.VS_UNICODE_OUTPUT
xor edx, edx
call qword [sym.imp.api_ms_win_core_processenvironment_l1_2_0.dll_GetEnvironmentVariableW]
test eax, eax
jne 0x140004ef6
xor r8d, r8d
xor edx, edx
mov ecx, pe_nt_image_headers64
call rbx
test eax, eax
je 0x1400052d8
mov rcx, qword [0x14000bd68]
mov dword [rsp + 0x38], r15d
mov dword [rsp + 0x3c], r15d
test rcx, rcx
jne 0x140004f47
lea rcx, str.kernel32.dll
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_GetModuleHandleW]
test rax, rax
je 0x1400050bc
lea rdx, str.GetThreadPreferredUILanguages
mov rcx, rax
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_GetProcAddress]
mov rcx, rax
mov rdi, rax
call qword [sym.imp.api_ms_win_core_util_l1_1_0.dll_EncodePointer]
mov qword [0x14000bd68], rax
jmp 0x140004f50
call qword [sym.imp.api_ms_win_core_util_l1_1_0.dll_DecodePointer]
mov rdi, rax
test rdi, rdi
je 0x1400050bc
xor r8d, r8d
lea r9, [rsp + 0x38]
lea rdx, [rsp + 0x3c]
lea r13d, [r8 + 0x34]
mov ecx, r13d
call rdi
test eax, eax
je 0x1400052d8
mov ebx, dword [rsp + 0x38]
add rbx, rbx
call qword [sym.imp.api_ms_win_core_heap_l1_2_0.dll_GetProcessHeap]
mov r8, rbx
xor edx, edx
mov rcx, rax
call qword [sym.imp.api_ms_win_core_heap_l1_2_0.dll_HeapAlloc]
mov rsi, rax
test rax, rax
jne 0x140004fa4
mov eax, 0x8007000e
jmp 0x1400052e4
lea r9, [rsp + 0x38]
mov r8, rsi
lea rdx, [rsp + 0x3c]
mov ecx, r13d
call rdi
test eax, eax
je 0x1400052d8
mov rbx, rsi
cmp word [rsi], r15w
je 0x140004ff3
lea r9, [rsp + 0x30]
mov r8d, 0x10
mov rdx, rbx
lea rcx, [rsp + 0x70]
call fcn.1400048c0
mov edi, dword [rsp + 0x30]
test edi, edi
je 0x140004ff7
add rbx, 0xa
cmp word [rbx], r15w
jne 0x140004fc7
jmp 0x140004ff7
mov edi, dword [rsp + 0x30]
call qword [sym.imp.api_ms_win_core_heap_l1_2_0.dll_GetProcessHeap]
mov r8, rsi
xor edx, edx
mov rcx, rax
call qword [sym.imp.api_ms_win_core_heap_l1_2_0.dll_HeapFree]
test edi, edi
jne 0x1400050b6
xor eax, eax
jmp 0x1400052e4
call qword [sym.imp.api_ms_win_core_localization_obsolete_l1_2_0.dll_GetUserDefaultUILanguage]
mov r8d, 0x3ff
movzx ecx, ax
and cx, r8w
lea edx, [r8 + 0xa]
cmp cx, di
je 0x14000503c
cmp cx, 0xd
jne 0x14000503e
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.1400048c0
cmp dword [rsp + 0x30], r15d
je 0x140005013
inc ebx
add rdi, 2
cmp ebx, 3
jb 0x140005069
jmp 0x1400050bc
mov r13d, 0x104
lea r9, [rsp + 0x30]
mov r8d, 0xa
lea rdx, str.1033
lea rcx, [rsp + 0x70]
call fcn.1400048c0
mov esi, dword [rsp + 0x30]
test esi, esi
je 0x140005013
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 0x1400052d1
mov r9, r12
lea r8, [0x1400069cc]
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 0x1400052d1
lea rdx, [rbp - 0x50]
lea rcx, [rbp + 0x230]
call qword [sym.imp.api_ms_win_core_file_l1_2_1.dll_FindFirstFileW]
mov rbx, rax
cmp rax, r12
jne 0x14000515b
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_GetLastError]
mov ecx, eax
movzx eax, ax
or eax, 0x80070000
test ecx, ecx
cmovle eax, ecx
jmp 0x1400052e4
lea rax, [rbp + 0x440]
mov rdi, r12
inc rdi
cmp word [rax + rdi*2], r15w
jne 0x140005165
lea rdx, [rbp - 0x50]
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_file_l1_2_1.dll_FindNextFileW]
test eax, eax
je 0x1400052c4
test byte [rbp - 0x50], 0x10
je 0x14000516f
cmp word [rbp - 0x24], 0x2e
movzx eax, word [rbp - 0x22]
jne 0x1400051ae
test ax, ax
je 0x14000516f
cmp word [rbp - 0x24], 0x2e
jne 0x1400051ae
cmp ax, 0x2e
jne 0x1400051ae
cmp word [rbp - 0x20], r15w
je 0x14000516f
lea rcx, [rbp - 0x24]
test r14, r14
je 0x1400051cc
lea rdx, [rsp + 0x34]
call r14
test rax, rax
je 0x14000516f
cmp word [rax], r15w
je 0x1400051ef
jmp 0x14000516f
lea r9, [rsp + 0x48]
mov dword [rsp + 0x20], 1
lea r8, [rsp + 0x34]
lea rdx, [0x1400069d0]
call fcn.1400053dc
cmp eax, r12d
je 0x14000516f
lea rax, [rdi + rdi]
cmp rax, 0x208
jae 0x140005307
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 0x14000516f
mov r9, r12
lea r8, [0x140006920]
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 0x14000516f
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 0x14000516f
mov r8d, dword [rsp + 0x40]
lea rcx, [rbp + 0x230]
xor edx, edx
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_LoadLibraryExW]
mov rcx, rax
test rax, rax
je 0x14000516f
mov rax, qword [rsp + 0x58]
mov qword [rax], rcx
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x1400052a3
movzx eax, word [rsp + 0x34]
mov word [rcx], ax
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x1400052c1
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.api_ms_win_core_file_l1_2_1.dll_FindClose]
mov eax, esi
jmp 0x1400052e4
mov eax, 0x80070003
jmp 0x1400052e4
mov eax, 0x80004005
jmp 0x1400052e4
mov eax, 0x80070057
mov rcx, qword [rbp + 0x650]
xor rcx, rsp
call fcn.140002e50
add rsp, 0x768
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
call fcn.14000358c
int3