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

Disassembly:
jmp 0x140036fb0
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, [0x140098944]
call fcn.140022068
nop
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.140021b9f
nop
mov edx, 0x20
lea rcx, [rbp + 0x178]
call fcn.140021b9f
nop
mov dword [rbp + 0x4a], 0x15
mov r8d, 0x15
mov edx, 0x45
lea rcx, [rbp + 0x4e]
call fcn.140021c76
nop
mov r8d, 0x10
mov edx, 0x45
lea rcx, [rbp + 0x63]
call fcn.140021c76
nop
mov r8d, 0x20
lea rdx, str.C110DD4FE9434147B92A5A1E3FDBF29A
lea rcx, [rbp + 0x178]
call fcn.1400217df
nop
mov eax, 1
imul rax, rax, 0xd
lea rax, [rbp + rax + 0x178]
mov r8d, 0x10
lea rdx, [rbp + 0x63]
mov rcx, rax
call fcn.1400217df
nop
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 0x1400370e7
jmp 0x140037256
xor r9d, r9d
xor r8d, r8d
lea rdx, [0x140072950]
lea rcx, [rbp + 0xb8]
call fcn.14002168b
test eax, eax
jge 0x140037109
jmp 0x140037256
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.1400216c7
test eax, eax
jge 0x140037147
jmp 0x140037256
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 0x14003724c
mov eax, dword [rbp + 0x4a]
mov r8d, eax
lea rdx, [rbp + 0x4e]
mov rcx, qword [rbp + 0x1b8]
call fcn.1400217df
nop
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 0x14003724c
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.140021db1
mov dword [rbp + 0x24], eax
cmp dword [rbp + 0x24], 0
jl 0x140037239
mov dword [rbp + 0x384], 1
jmp 0x140037243
mov dword [rbp + 0x384], 0
mov eax, dword [rbp + 0x384]
mov dword [rbp + 4], eax
xor eax, eax
test eax, eax
jne 0x140037086
cmp qword [rbp + 0xd8], 0
je 0x14003726d
mov rcx, qword [rbp + 0xd8]
call fcn.140021f2d
nop
cmp qword [rbp + 0xb8], 0
je 0x140037286
xor edx, edx
mov rcx, qword [rbp + 0xb8]
call fcn.140021c12
nop
cmp dword [rbp + 4], 0
je 0x14003735d
cmp dword [rbp + 0x154], 0
je 0x14003735d
cmp qword [rbp + 0x118], 0
je 0x14003735d
mov eax, dword [rbp + 0x154]
add rax, 0x34
mov dword [rbp + 0x1d4], eax
mov eax, dword [rbp + 0x1d4]
mov ecx, eax
call fcn.1400212f3
mov qword [rbp + 0x1f8], rax
cmp qword [rbp + 0x1f8], 0
je 0x14003735d
mov r8d, 0x2e
lea rdx, [rbp + 0x48]
mov rcx, qword [rbp + 0x1f8]
call fcn.1400217df
nop
mov eax, dword [rbp + 0x154]
mov rcx, qword [rbp + 0x1f8]
add rcx, 0x2e
mov r8d, eax
mov rdx, qword [rbp + 0x118]
call fcn.1400217df
nop
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 0x140037375
mov rcx, qword [rbp + 0xf8]
call qword [sym.imp.KERNEL32.dll_HeapDestroy]
nop
mov eax, dword [rbp + 4]
mov edi, eax
lea rcx, [rbp - 0x50]
lea rdx, [0x1400726c0]
call fcn.140021d8e
mov eax, edi
lea rsp, [rbp + 0x398]
pop rdi
pop rbp
ret