Function at 0x140004c9c
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 0x14000529f
cmp word [rcx], r15w
je 0x14000529f
test rdx, rdx
je 0x14000529f
cmp word [rdx], r15w
je 0x14000529f
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 0x140005298
lea rcx, [rbp + 0x440]
mov rax, r12
inc rax
cmp word [rcx + rax*2], r15w
jne 0x140004d55
cmp word [rbp + rax*2 + 0x43e], 0x5c
je 0x140004d8c
mov r9, r12
lea r8, [0x140006774]
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 0x140005298
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, [0x140006778]
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 0x140004e2e
lea r9, [rsp + 0x30]
lea r8d, [rsi + 4]
lea rdx, [rbp + 0x208]
lea rcx, [rsp + 0x70]
call fcn.140004880
cmp dword [rsp + 0x30], r15d
je 0x140004fd3
mov rcx, qword [0x14000ad60]
mov edi, 1
test rcx, rcx
jne 0x140004e7a
lea rcx, str.kernel32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140004fda
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 [0x14000ad60], rax
jmp 0x140004e83
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov rbx, rax
test rbx, rbx
je 0x140004fda
xor r8d, r8d
lea rcx, str.VS_UNICODE_OUTPUT
xor edx, edx
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
jne 0x140004eb6
xor r8d, r8d
xor edx, edx
mov ecx, pe_nt_image_headers64
call rbx
test eax, eax
je 0x140005298
mov rcx, qword [0x14000ad68]
mov dword [rsp + 0x38], r15d
mov dword [rsp + 0x3c], r15d
test rcx, rcx
jne 0x140004f07
lea rcx, str.kernel32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000507c
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 [0x14000ad68], rax
jmp 0x140004f10
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov rdi, rax
test rdi, rdi
je 0x14000507c
xor r8d, r8d
lea r9, [rsp + 0x38]
lea rdx, [rsp + 0x3c]
lea r13d, [r8 + 0x34]
mov ecx, r13d
call rdi
test eax, eax
je 0x140005298
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 0x140004f64
mov eax, 0x8007000e
jmp 0x1400052a4
lea r9, [rsp + 0x38]
mov r8, rsi
lea rdx, [rsp + 0x3c]
mov ecx, r13d
call rdi
test eax, eax
je 0x140005298
mov rbx, rsi
cmp word [rsi], r15w
je 0x140004fb3
lea r9, [rsp + 0x30]
mov r8d, 0x10
mov rdx, rbx
lea rcx, [rsp + 0x70]
call fcn.140004880
mov edi, dword [rsp + 0x30]
test edi, edi
je 0x140004fb7
add rbx, 0xa
cmp word [rbx], r15w
jne 0x140004f87
jmp 0x140004fb7
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 0x140005076
xor eax, eax
jmp 0x1400052a4
call qword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
mov r8d, 0x3ff
movzx ecx, ax
and cx, r8w
lea edx, [r8 + 0xa]
cmp cx, di
je 0x140004ffc
cmp cx, 0xd
jne 0x140004ffe
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.140004880
cmp dword [rsp + 0x30], r15d
je 0x140004fd3
inc ebx
add rdi, 2
cmp ebx, 3
jb 0x140005029
jmp 0x14000507c
mov r13d, 0x104
lea r9, [rsp + 0x30]
mov r8d, 0xa
lea rdx, str.1033
lea rcx, [rsp + 0x70]
call fcn.140004880
mov esi, dword [rsp + 0x30]
test esi, esi
je 0x140004fd3
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 0x140005291
mov r9, r12
lea r8, [0x14000681c]
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 0x140005291
lea rdx, [rbp - 0x50]
lea rcx, [rbp + 0x230]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rbx, rax
cmp rax, r12
jne 0x14000511b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
movzx eax, ax
or eax, 0x80070000
test ecx, ecx
cmovle eax, ecx
jmp 0x1400052a4
lea rax, [rbp + 0x440]
mov rdi, r12
inc rdi
cmp word [rax + rdi*2], r15w
jne 0x140005125
lea rdx, [rbp - 0x50]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x140005284
test byte [rbp - 0x50], 0x10
je 0x14000512f
cmp word [rbp - 0x24], 0x2e
movzx eax, word [rbp - 0x22]
jne 0x14000516e
test ax, ax
je 0x14000512f
cmp word [rbp - 0x24], 0x2e
jne 0x14000516e
cmp ax, 0x2e
jne 0x14000516e
cmp word [rbp - 0x20], r15w
je 0x14000512f
lea rcx, [rbp - 0x24]
test r14, r14
je 0x14000518c
lea rdx, [rsp + 0x34]
call r14
test rax, rax
je 0x14000512f
cmp word [rax], r15w
je 0x1400051af
jmp 0x14000512f
lea r9, [rsp + 0x48]
mov dword [rsp + 0x20], 1
lea r8, [rsp + 0x34]
lea rdx, [0x140006820]
call fcn.14000539c
cmp eax, r12d
je 0x14000512f
lea rax, [rdi + rdi]
cmp rax, 0x208
jae 0x1400052c7
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 0x14000512f
mov r9, r12
lea r8, [0x140006774]
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 0x14000512f
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 0x14000512f
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 0x14000512f
mov rax, qword [rsp + 0x58]
mov qword [rax], rcx
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x140005263
movzx eax, word [rsp + 0x34]
mov word [rcx], ax
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x140005281
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 0x1400052a4
mov eax, 0x80070003
jmp 0x1400052a4
mov eax, 0x80004005
jmp 0x1400052a4
mov eax, 0x80070057
mov rcx, qword [rbp + 0x650]
xor rcx, rsp
call fcn.140002e40
add rsp, 0x768
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
call fcn.14000357c
int3