Function at 0x1401539e0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbp
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x500
lea rbp, [rsp + 0x80]
mov rsi, rcx
mov rbx, qword [rdx + 8]
cmp rbx, 0xffffffffffffffff
je 0x140153b4d
mov eax, dword [rdx + 0x10]
movzx r15d, word [rdx + 0x40]
movzx r14d, word [rdx + 0x42]
movzx r12d, word [rdx + 0x44]
mov dword [rdx + 0x10], 0
cmp eax, 1
jne 0x140153a4c
mov rdi, qword [rdx]
cmp r15w, 0x2e
jne 0x140153b59
test r14w, r14w
je 0x140153a4c
mov eax, r14d
xor eax, 0x2e
or ax, r12w
jne 0x140153b59
mov r14, rdx
lea rdi, [rbp + 0x1c0]
mov r8d, 0x250
mov rcx, rdi
xor edx, edx
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
mov rcx, rbx
mov rdx, rdi
call sub.kernel32.dll_FindNextFileW
test eax, eax
je 0x140153b43
mov rdi, qword [r14]
lea r14, [rbp + 0x1c0]
jmp 0x140153aa3
mov rcx, rbx
mov rdx, r14
call sub.kernel32.dll_FindNextFileW
test eax, eax
je 0x140153b43
cmp word [rbp + 0x1ec], 0x2e
jne 0x140153ac9
movzx eax, word [rbp + 0x1ee]
test ax, ax
je 0x140153a90
cmp ax, 0x2e
jne 0x140153ac9
cmp word [rbp + 0x1f0], 0
je 0x140153a90
lock inc qword [rdi]
jle 0x140153c81
mov rax, qword [rbp + 0x1c0]
mov qword [rbp + 0x478], rax
movups xmm0, xmmword [rbp + 0x1c8]
movaps xmmword [rbp + 0x440], xmm0
movups xmm0, xmmword [rbp + 0x1d8]
movaps xmmword [rbp + 0x450], xmm0
mov eax, dword [rbp + 0x1e8]
mov dword [rbp + 0x460], eax
movzx r15d, word [rbp + 0x1ec]
movzx r14d, word [rbp + 0x1ee]
movzx r12d, word [rbp + 0x1f0]
lea rdx, [rbp + 0x1f2]
lea rcx, [rbp - 0x5e]
mov r8d, 0x21e
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
lea rax, [rbp + 0x470]
jmp 0x140153bc8
call sub.kernel32.dll_GetLastError
cmp eax, 0x12
jne 0x140153bac
mov qword [rsi], 0
jmp 0x140153c6f
lock inc qword [rdi]
jle 0x140153c81
lea rax, [rdx + 0x46]
mov rcx, qword [rdx + 0x14]
mov qword [rbp + 0x478], rcx
movups xmm0, xmmword [rdx + 0x1c]
movups xmm1, xmmword [rdx + 0x2c]
movaps xmmword [rbp + 0x440], xmm0
movaps xmmword [rbp + 0x450], xmm1
mov ecx, dword [rdx + 0x3c]
mov dword [rbp + 0x460], ecx
lea rcx, [rbp - 0x5e]
mov r8d, 0x21e
mov rdx, rax
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
mov qword [rbp + 0x470], rdi
jmp 0x140153bd2
mov edi, eax
shl rdi, 0x20
or rdi, 2
mov qword [rbp + 0x470], 0
lea rax, [rbp + 0x478]
mov qword [rax], rdi
mov rdi, qword [rbp + 0x470]
mov rbx, qword [rbp + 0x478]
test rdi, rdi
je 0x140153c1c
mov eax, dword [rbp + 0x460]
mov dword [rbp + 0x430], eax
movaps xmm0, xmmword [rbp + 0x440]
movaps xmm1, xmmword [rbp + 0x450]
movaps xmmword [rbp + 0x420], xmm1
movaps xmmword [rbp + 0x410], xmm0
lea rcx, [rbp + 0x1c0]
lea rdx, [rbp - 0x5e]
mov r8d, 0x21e
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
mov qword [rsi + 8], rdi
mov qword [rsi + 0x10], rbx
movaps xmm0, xmmword [rbp + 0x410]
movaps xmm1, xmmword [rbp + 0x420]
movups xmmword [rsi + 0x18], xmm0
movups xmmword [rsi + 0x28], xmm1
mov eax, dword [rbp + 0x430]
mov dword [rsi + 0x38], eax
mov word [rsi + 0x3c], r15w
mov word [rsi + 0x3e], r14w
mov word [rsi + 0x40], r12w
lea rcx, [rsi + 0x42]
lea rdx, [rbp + 0x1c0]
mov r8d, 0x21e
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
mov qword [rsi], 1
add rsp, 0x500
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
pop rbp
ret
ud2