Function at 0x7ff706812940
Capabilities:
Create new key via cryptacquirecontext
Encrypt data using rc4 via winapi
Encrypt or decrypt via wincrypt
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt
Write file on windows

Disassembly:
mov rax, rsp
push rbx
sub rsp, 0x70
xor ebx, ebx
mov qword [rax + 0x10], rsi
mov qword [rax - 0x18], r12
mov qword [rax - 0x20], r13
mov qword [rax - 0x48], rbx
mov qword [rax - 0x28], r14
mov r14d, edx
mov r13, rcx
mov dword [rax - 0x50], 0x80
lea r8d, [rbx + 1]
lea edx, [rbx + 2]
lea rcx, str.brbconfig.tmp
xor r9d, r9d
mov qword [rax + 0x20], rbx
mov qword [rax - 0x30], rbx
mov qword [rax - 0x38], rbx
mov esi, ebx
mov dword [rax - 0x58], 2
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov r12, rax
cmp rax, 0xffffffffffffffff
jne 0x7ff7068129be
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test eax, eax
jle 0x7ff706812bcc
movzx ebx, ax
or ebx, 0x80070000
jmp 0x7ff706812bcc
lea r8, str.Microsoft_Enhanced_Cryptographic_Provider_v1.0
lea rcx, [rsp + 0x98]
mov r9d, 1
xor edx, edx
mov dword [rsp + 0x20], ebx
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x7ff7068129e9
call qword [sym.imp.KERNEL32.dll_GetLastError]
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x80090016
jne 0x7ff706812a1f
lea r8, str.Microsoft_Enhanced_Cryptographic_Provider_v1.0
lea rcx, [rsp + 0x98]
mov r9d, 1
xor edx, edx
mov dword [rsp + 0x20], 8
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x7ff706812a8f
mov rcx, qword [rsp + 0x98]
lea rax, [rsp + 0x40]
xor r9d, r9d
xor r8d, r8d
mov edx, 0x8003
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x7ff706812a8f
mov rcx, qword [rsp + 0x40]
xor r9d, r9d
lea rdx, str.YnJiYm90
lea r8d, [r9 + 8]
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x7ff706812a8f
mov r8, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x98]
lea rax, [rsp + 0x48]
mov r9d, 0x800000
mov edx, 0x6801
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_CryptDeriveKey]
test eax, eax
jne 0x7ff706812aad
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test eax, eax
jle 0x7ff706812bc7
movzx ebx, ax
or ebx, 0x80070000
jmp 0x7ff706812bc7
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov edx, 8
mov r8d, 0x3f0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rsi, rax
test rax, rax
jne 0x7ff706812ad9
mov ebx, 0x8007000e
jmp 0x7ff706812bc7
mov qword [rsp + 0x80], rbp
mov qword [rsp + 0x68], rdi
mov rdi, r13
xor bpl, bpl
nop dword [rax]
mov eax, r13d
sub eax, edi
add eax, r14d
mov dword [rsp + 0x90], eax
cmp eax, 0x3e8
jae 0x7ff706812b20
mov r8d, eax
mov rdx, rdi
mov rcx, rsi
call fcn.7ff706818d00
mov eax, dword [rsp + 0x90]
mov bpl, 1
jmp 0x7ff706812b2c
mov eax, 0x3e8
mov dword [rsp + 0x90], eax
mov r8d, eax
mov rdx, rdi
mov rcx, rsi
call fcn.7ff706818d00
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x90]
mov dword [rsp + 0x30], 0x3f0
mov qword [rsp + 0x28], rax
movzx r8d, bpl
xor r9d, r9d
xor edx, edx
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ADVAPI32.dll_CryptEncrypt]
test eax, eax
je 0x7ff706812ba3
mov r8d, dword [rsp + 0x90]
lea r9, [rsp + 0x90]
mov rdx, rsi
mov rcx, r12
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x7ff706812ba3
add rdi, 0x3e8
test bpl, bpl
je 0x7ff706812af0
jmp 0x7ff706812bba
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jg 0x7ff706812bb1
mov ebx, eax
jmp 0x7ff706812bba
movzx ebx, ax
or ebx, 0x80070000
mov rbp, qword [rsp + 0x80]
mov rdi, qword [rsp + 0x68]
test r12, r12
je 0x7ff706812bd5
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r14, qword [rsp + 0x50]
mov r13, qword [rsp + 0x58]
mov r12, qword [rsp + 0x60]
test rsi, rsi
je 0x7ff706812c00
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rsi
mov edx, 8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x88]
test rcx, rcx
je 0x7ff706812c18
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x7ff706812c28
call qword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov rcx, qword [rsp + 0x98]
test rcx, rcx
je 0x7ff706812c3d
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, ebx
add rsp, 0x70
pop rbx
ret