Function at 0x140003fd4
Capabilities:
Create new key via cryptacquirecontext
Encode data using xor
Initialize hashing via wincrypt

Disassembly:
mov rax, rsp
mov qword [rax + 0x20], rbx
mov dword [rax + 0x18], r8d
mov qword [rax + 0x10], rdx
mov dword [rax + 8], ecx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x70
mov rdi, r9
mov ebx, ecx
xor esi, esi
lea rcx, [rax - 0x50]
lea r9d, [rsi + 0x18]
xor r8d, r8d
xor edx, edx
mov dword [rsp + 0x20], 0xf0000000
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x140004260
mov rcx, qword [rsp + 0x58]
lea rax, [rsp + 0x50]
xor r9d, r9d
xor r8d, r8d
mov edx, ebx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x140004253
mov rcx, qword [rsp + 0x50]
and dword [rsp + 0x20], esi
lea r9, [rsp + 0x40]
lea edx, [rsi + 2]
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
je 0x140004248
mov ebx, dword [rsp + 0xd0]
lea r12d, [rsi + 0x40]
lea rdx, [rbx + 4]
mov ecx, r12d
mov r14, rbx
mov qword [rsp + 0x68], rbx
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov r13, rax
mov qword [rsp + 0x60], rax
test rax, rax
je 0x140004248
mov edx, dword [rsp + 0x40]
mov ecx, r12d
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rbp, rax
test rax, rax
je 0x14000423f
mov edx, dword [rsp + 0x40]
mov ecx, r12d
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov r12, rax
test rax, rax
je 0x140004236
mov r8, rbx
mov rdx, rdi
mov rcx, r13
mov esi, 1
call sub.msvcrt.dll_memcpy
mov r15d, dword [rsp + 0xe8]
mov eax, esi
mov dword [rsp + 0x44], eax
test r15d, r15d
je 0x14000422d
lea ecx, [rbx + 4]
mov dword [rsp + 0x48], ecx
mov r8d, dword [rsp + 0xc0]
mov rdx, qword [rsp + 0xb8]
bswap eax
mov dword [r14 + r13], eax
mov eax, dword [rsp + 0x40]
mov r9, r13
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], r12
mov dword [rsp + 0x20], ecx
mov ecx, dword [rsp + 0xb0]
call fcn.140003e18
mov r8d, dword [rsp + 0x40]
mov rdx, r12
mov rcx, rbp
call sub.msvcrt.dll_memcpy
mov eax, dword [rsp + 0xd8]
mov edi, dword [rsp + 0x40]
cmp eax, esi
jbe 0x1400041e7
mov r13d, dword [rsp + 0xb0]
mov r14d, dword [rsp + 0xc0]
mov r15, qword [rsp + 0xb8]
lea ebx, [rax - 1]
mov dword [rsp + 0x30], edi
mov r9, r12
mov r8d, r14d
mov rdx, r15
mov ecx, r13d
mov qword [rsp + 0x28], r12
mov dword [rsp + 0x20], edi
call fcn.140003e18
mov edi, dword [rsp + 0x40]
xor r11d, r11d
test edi, edi
je 0x1400041b4
mov rdx, r12
mov rcx, rbp
sub rdx, rbp
mov al, byte [rdx + rcx]
add r11d, esi
xor byte [rcx], al
mov edi, dword [rsp + 0x40]
add rcx, rsi
cmp r11d, edi
jb 0x1400041a0
cmp dword [rsp + 0xf0], 0
je 0x1400041d0
mov r8d, edi
mov rdx, rbp
mov rcx, r12
call sub.msvcrt.dll_memcpy
mov edi, dword [rsp + 0x40]
sub rbx, rsi
jne 0x14000416e
mov r13, qword [rsp + 0x60]
mov r14, qword [rsp + 0x68]
mov r15d, dword [rsp + 0xe8]
mov rcx, qword [rsp + 0xe0]
cmp r15d, edi
mov rdx, rbp
cmovb edi, r15d
mov r8d, edi
mov ebx, edi
call sub.msvcrt.dll_memcpy
mov eax, dword [rsp + 0x44]
add qword [rsp + 0xe0], rbx
mov ecx, dword [rsp + 0x48]
sub r15d, edi
add eax, esi
mov dword [rsp + 0x44], eax
mov dword [rsp + 0xe8], r15d
test r15d, r15d
jne 0x1400040fa
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov rcx, qword [rsp + 0x58]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, esi
mov rbx, qword [rsp + 0xc8]
add rsp, 0x70
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret