Function at 0x140020127
Capabilities:
Encrypt or decrypt data via bcrypt

Disassembly:
jmp 0x140035c30
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x3e8
lea rbp, [rsp + 0x50]
lea rdi, [rsp + 0x50]
mov ecx, 0x86
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x408]
lea rcx, [0x140095944]
call fcn.140021040
mov dword [rbp + 4], 0
mov qword [rbp + 0xb8], 0
mov qword [rbp + 0xd8], 0
mov qword [rbp + 0xf8], 0
mov qword [rbp + 0x118], 0
mov dword [rbp + 0x154], 0
mov edx, 0x2e
lea rcx, [rbp + 0x48]
call fcn.140020b7c
mov edx, 0x20
lea rcx, [rbp + 0x178]
call fcn.140020b7c
mov dword [rbp + 0x4a], 0x15
mov r8d, 0x15
mov edx, 0x45
lea rcx, [rbp + 0x4e]
call fcn.140020c53
mov r8d, 0x10
mov edx, 0x45
lea rcx, [rbp + 0x63]
call fcn.140020c53
mov r8d, 0x20
lea rdx, str.C110DD4FE9434147B92A5A1E3FDBF29A
lea rcx, [rbp + 0x178]
call fcn.1400207c6
mov eax, 1
imul rax, rax, 0xd
lea rax, [rbp + rax + 0x178]
mov r8d, 0x10
lea rdx, [rbp + 0x63]
mov rcx, rax
call fcn.1400207c6
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_HeapCreate]
mov qword [rbp + 0xf8], rax
cmp qword [rbp + 0xf8], 0
jne 0x140035d60
jmp 0x140035ece
xor r9d, r9d
xor r8d, r8d
lea rdx, [0x14006f950]
lea rcx, [rbp + 0xb8]
call fcn.140020677
test eax, eax
jge 0x140035d82
jmp 0x140035ece
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x20
lea rax, [rbp + 0x178]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea rdx, [rbp + 0xd8]
mov rcx, qword [rbp + 0xb8]
call fcn.1400206b3
test eax, eax
jge 0x140035dc0
jmp 0x140035ece
mov eax, dword [rbp + 0x4a]
mov r8d, eax
mov edx, 8
mov rcx, qword [rbp + 0xf8]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rbp + 0x1b8], rax
cmp qword [rbp + 0x1b8], 0
je 0x140035ec4
mov eax, dword [rbp + 0x4a]
mov r8d, eax
lea rdx, [rbp + 0x4e]
mov rcx, qword [rbp + 0x1b8]
call fcn.1400207c6
mov eax, dword [rbp + 0x3b8]
add eax, 0x40
mov dword [rbp + 0x134], eax
mov eax, dword [rbp + 0x134]
mov r8d, eax
mov edx, 8
mov rcx, qword [rbp + 0xf8]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rbp + 0x118], rax
cmp qword [rbp + 0x118], 0
je 0x140035ec4
mov dword [rsp + 0x48], 1
lea rax, [rbp + 0x154]
mov qword [rsp + 0x40], rax
mov eax, dword [rbp + 0x134]
mov dword [rsp + 0x38], eax
mov rax, qword [rbp + 0x118]
mov qword [rsp + 0x30], rax
mov eax, dword [rbp + 0x4a]
mov dword [rsp + 0x28], eax
mov rax, qword [rbp + 0x1b8]
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov r8d, dword [rbp + 0x3b8]
mov rdx, qword [rbp + 0x3b0]
mov rcx, qword [rbp + 0xd8]
call fcn.140020d89
mov dword [rbp + 0x24], eax
cmp dword [rbp + 0x24], 0
jl 0x140035eb1
mov dword [rbp + 0x384], 1
jmp 0x140035ebb
mov dword [rbp + 0x384], 0
mov eax, dword [rbp + 0x384]
mov dword [rbp + 4], eax
xor eax, eax
test eax, eax
jne 0x140035d01
cmp qword [rbp + 0xd8], 0
je 0x140035ee4
mov rcx, qword [rbp + 0xd8]
call fcn.140020f05
cmp qword [rbp + 0xb8], 0
je 0x140035efc
xor edx, edx
mov rcx, qword [rbp + 0xb8]
call fcn.140020bef
cmp dword [rbp + 4], 0
je 0x140035fcd
cmp dword [rbp + 0x154], 0
je 0x140035fcd
cmp qword [rbp + 0x118], 0
je 0x140035fcd
mov eax, dword [rbp + 0x154]
add rax, 0x34
mov dword [rbp + 0x1d4], eax
mov eax, dword [rbp + 0x1d4]
mov ecx, eax
call fcn.1400202ee
mov qword [rbp + 0x1f8], rax
cmp qword [rbp + 0x1f8], 0
je 0x140035fcd
mov r8d, 0x2e
lea rdx, [rbp + 0x48]
mov rcx, qword [rbp + 0x1f8]
call fcn.1400207c6
mov eax, dword [rbp + 0x154]
mov rcx, qword [rbp + 0x1f8]
add rcx, 0x2e
mov r8d, eax
mov rdx, qword [rbp + 0x118]
call fcn.1400207c6
mov eax, dword [rbp + 0x1d4]
mov rcx, qword [rbp + 0x1f8]
lea rax, [rcx + rax - 6]
mov qword [rbp + 0x98], rax
mov rax, qword [rbp + 0x98]
mov ecx, dword [rbp + 0x154]
mov dword [rax], ecx
mov rax, qword [rbp + 0x3c0]
mov rcx, qword [rbp + 0x1f8]
mov qword [rax], rcx
mov rax, qword [rbp + 0x3c8]
mov ecx, dword [rbp + 0x1d4]
mov dword [rax], ecx
cmp qword [rbp + 0xf8], 0
je 0x140035fe4
mov rcx, qword [rbp + 0xf8]
call qword [sym.imp.KERNEL32.dll_HeapDestroy]
mov eax, dword [rbp + 4]
mov edi, eax
lea rcx, [rbp - 0x50]
lea rdx, [0x14006f6c0]
call fcn.140020d66
mov eax, edi
lea rsp, [rbp + 0x398]
pop rdi
pop rbp
ret