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

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x210
mov rax, qword [0x14011c7e0]
xor rax, rsp
mov qword [rsp + 0x200], rax
mov dword [rsp + 0x50], 0
mov qword [rsp + 0x138], 0
mov qword [rsp + 0x140], 0
mov dword [rsp + 0x54], 0
mov rcx, qword [rsp + 0x228]
call fcn.140002f54
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0x70]
sub rax, 0xf
mov qword [rsp + 0x60], rax
mov dword [rsp + 0x1b0], 0
mov edx, 0x18
lea rcx, [rsp + 0x1d0]
call fcn.140002e64
lea rcx, [rsp + 0x58]
call fcn.1400022e4
mov r8, rax
mov rdx, qword [rsp + 0x70]
lea rcx, [rsp + 0x1d0]
call fcn.14000ef28
nop
mov edx, 0x18
lea rcx, [rsp + 0x1b8]
call fcn.140002e64
lea rcx, [rsp + 0x1b8]
call fcn.140002ebc
nop
mov edx, 0x18
lea rcx, [rsp + 0x1e8]
call fcn.140002e64
lea rcx, [rsp + 0x59]
call fcn.1400022e4
mov r8, rax
mov edx, recv
lea rcx, [rsp + 0x1e8]
call fcn.14000ef28
nop
lea rdx, [rsp + 0x108]
lea rcx, [rsp + 0x1e8]
call fcn.14000e8c8
mov rax, qword [rax]
mov qword [rsp + 0x90], rax
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x98], rax
mov rcx, qword [rsp + 0x228]
call fcn.14000fb88
add rax, 0xf
mov qword [rsp + 0xa0], rax
mov rcx, qword [rsp + 0x228]
call fcn.14000fb88
add rax, 3
mov qword [rsp + 0xa8], rax
mov r9, qword [rsp + 0x98]
mov r8, qword [rsp + 0xa0]
mov rdx, qword [rsp + 0xa8]
lea rcx, [rsp + 0x110]
call fcn.1400140e0
lea rdx, [rsp + 0x118]
lea rcx, [rsp + 0x1d0]
call fcn.14000e8c8
mov rax, qword [rax]
mov qword [rsp + 0xb0], rax
mov rax, qword [rsp + 0xb0]
mov qword [rsp + 0xb8], rax
mov rcx, qword [rsp + 0x228]
call fcn.14000fb88
add rax, qword [rsp + 0x70]
mov qword [rsp + 0xc0], rax
mov rcx, qword [rsp + 0x228]
call fcn.14000fb88
add rax, 0xf
mov qword [rsp + 0xc8], rax
mov r9, qword [rsp + 0xb8]
mov r8, qword [rsp + 0xc0]
mov rdx, qword [rsp + 0xc8]
lea rcx, [rsp + 0x120]
call fcn.1400140e0
xor r9d, r9d
xor r8d, r8d
lea rdx, [0x140108fa0]
lea rcx, [rsp + 0x138]
call qword [sym.imp.bcrypt.dll_BCryptOpenAlgorithmProvider]
mov dword [rsp + 0x54], eax
cmp dword [rsp + 0x54], 0
jge 0x14000abf4
lea rdx, [0x140107dd1]
mov rcx, qword [rsp + 0x220]
call fcn.14000225c
mov eax, dword [rsp + 0x50]
or eax, 1
mov dword [rsp + 0x50], eax
lea rcx, [rsp + 0x1e8]
call fcn.140002ea4
nop
lea rcx, [rsp + 0x1b8]
call fcn.140002ea4
nop
lea rcx, [rsp + 0x1d0]
call fcn.140002ea4
nop
mov rcx, qword [rsp + 0x228]
call fcn.1400030d0
mov rax, qword [rsp + 0x220]
jmp 0x14000b0e7
mov dword [rsp + 0x20], 0
mov r9d, 0x20
lea r8, str.ChainingModeGCM
lea rdx, str.ChainingMode
mov rcx, qword [rsp + 0x138]
call qword [sym.imp.bcrypt.dll_BCryptSetProperty]
mov dword [rsp + 0x54], eax
cmp dword [rsp + 0x54], 0
jge 0x14000ac9c
xor edx, edx
mov rcx, qword [rsp + 0x138]
call qword [sym.imp.bcrypt.dll_BCryptCloseAlgorithmProvider]
lea rdx, [0x140107dd2]
mov rcx, qword [rsp + 0x220]
call fcn.14000225c
mov eax, dword [rsp + 0x50]
or eax, 1
mov dword [rsp + 0x50], eax
lea rcx, [rsp + 0x1e8]
call fcn.140002ea4
nop
lea rcx, [rsp + 0x1b8]
call fcn.140002ea4
nop
lea rcx, [rsp + 0x1d0]
call fcn.140002ea4
nop
mov rcx, qword [rsp + 0x228]
call fcn.1400030d0
mov rax, qword [rsp + 0x220]
jmp 0x14000b0e7
mov dword [rsp + 0x30], 0
mov rax, qword [rsp + 0x230]
mov eax, dword [rax]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x230]
mov rax, qword [rax + 8]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea rdx, [rsp + 0x140]
mov rcx, qword [rsp + 0x138]
call qword [sym.imp.bcrypt.dll_BCryptGenerateSymmetricKey]
mov dword [rsp + 0x54], eax
cmp dword [rsp + 0x54], 0
jge 0x14000ad5d
xor edx, edx
mov rcx, qword [rsp + 0x138]
call qword [sym.imp.bcrypt.dll_BCryptCloseAlgorithmProvider]
lea rdx, [0x140107dd3]
mov rcx, qword [rsp + 0x220]
call fcn.14000225c
mov eax, dword [rsp + 0x50]
or eax, 1
mov dword [rsp + 0x50], eax
lea rcx, [rsp + 0x1e8]
call fcn.140002ea4
nop
lea rcx, [rsp + 0x1b8]
call fcn.140002ea4
nop
lea rcx, [rsp + 0x1d0]
call fcn.140002ea4
nop
mov rcx, qword [rsp + 0x228]
call fcn.1400030d0
mov rax, qword [rsp + 0x220]
jmp 0x14000b0e7
lea rax, [rsp + 0x150]
mov rdi, rax
xor eax, eax
mov ecx, 0x58
rep stosb byte [rdi], al
mov dword [rsp + 0x150], 0x58
mov dword [rsp + 0x154], 1
mov rax, qword [rsp + 0x60]
sub rax, 0x10
mov qword [rsp + 0x60], rax
lea rcx, [rsp + 0x1e8]
call fcn.140004298
mov qword [rsp + 0x158], rax
mov dword [rsp + 0x160], send
lea rcx, [rsp + 0x1d0]
call fcn.140004298
add rax, qword [rsp + 0x60]
mov qword [rsp + 0x178], rax
mov dword [rsp + 0x180], reloc.WS2_32.dll_recv
lea rcx, [rsp + 0x1d0]
call fcn.140004298
mov qword [rsp + 0xd0], rax
mov rax, qword [rsp + 0x140]
mov qword [rsp + 0xd8], rax
mov dword [rsp + 0x48], 0
lea rax, [rsp + 0x1b0]
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x150]
mov r8d, dword [rsp + 0x60]
mov rdx, qword [rsp + 0xd0]
mov rcx, qword [rsp + 0xd8]
call qword [sym.imp.bcrypt.dll_BCryptDecrypt]
mov dword [rsp + 0x54], eax
cmp dword [rsp + 0x54], 0
jge 0x14000aec7
lea rdx, [0x140107de1]
mov rcx, qword [rsp + 0x220]
call fcn.14000225c
mov eax, dword [rsp + 0x50]
or eax, 1
mov dword [rsp + 0x50], eax
lea rcx, [rsp + 0x1e8]
call fcn.140002ea4
nop
lea rcx, [rsp + 0x1b8]
call fcn.140002ea4
nop
lea rcx, [rsp + 0x1d0]
call fcn.140002ea4
nop
mov rcx, qword [rsp + 0x228]
call fcn.1400030d0
mov rax, qword [rsp + 0x220]
jmp 0x14000b0e7
mov eax, dword [rsp + 0x1b0]
mov edx, eax
lea rcx, [rsp + 0x1b8]
call fcn.14000ee60
mov eax, dword [rsp + 0x1b0]
mov dword [rsp + 0x68], eax
lea rcx, [rsp + 0x1b8]
call fcn.140004298
mov qword [rsp + 0xe0], rax
lea rcx, [rsp + 0x1d0]
call fcn.140004298
mov qword [rsp + 0xe8], rax
mov rax, qword [rsp + 0x140]
mov qword [rsp + 0xf0], rax
mov dword [rsp + 0x48], 0
lea rax, [rsp + 0x1b0]
mov qword [rsp + 0x40], rax
mov eax, dword [rsp + 0x68]
mov dword [rsp + 0x38], eax
mov rax, qword [rsp + 0xe0]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x150]
mov r8d, dword [rsp + 0x60]
mov rdx, qword [rsp + 0xe8]
mov rcx, qword [rsp + 0xf0]
call qword [sym.imp.bcrypt.dll_BCryptDecrypt]
mov dword [rsp + 0x54], eax
cmp dword [rsp + 0x54], 0
jge 0x14000afee
lea rdx, [0x140107de2]
mov rcx, qword [rsp + 0x220]
call fcn.14000225c
mov eax, dword [rsp + 0x50]
or eax, 1
mov dword [rsp + 0x50], eax
lea rcx, [rsp + 0x1e8]
call fcn.140002ea4
nop
lea rcx, [rsp + 0x1b8]
call fcn.140002ea4
nop
lea rcx, [rsp + 0x1d0]
call fcn.140002ea4
nop
mov rcx, qword [rsp + 0x228]
call fcn.1400030d0
mov rax, qword [rsp + 0x220]
jmp 0x14000b0e7
mov rcx, qword [rsp + 0x140]
call qword [sym.imp.bcrypt.dll_BCryptDestroyKey]
xor edx, edx
mov rcx, qword [rsp + 0x138]
call qword [sym.imp.bcrypt.dll_BCryptCloseAlgorithmProvider]
lea rcx, [rsp + 0x5a]
call fcn.1400022e4
mov qword [rsp + 0x78], rax
lea rdx, [rsp + 0x128]
lea rcx, [rsp + 0x1b8]
call fcn.14000e840
mov rax, qword [rax]
mov qword [rsp + 0xf8], rax
mov rax, qword [rsp + 0xf8]
mov qword [rsp + 0x80], rax
lea rdx, [rsp + 0x130]
lea rcx, [rsp + 0x1b8]
call fcn.14000e8c8
mov rax, qword [rax]
mov qword [rsp + 0x100], rax
mov rax, qword [rsp + 0x100]
mov qword [rsp + 0x88], rax
mov r9, qword [rsp + 0x78]
mov r8, qword [rsp + 0x80]
mov rdx, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x220]
call fcn.1400139a4
mov eax, dword [rsp + 0x50]
or eax, 1
mov dword [rsp + 0x50], eax
lea rcx, [rsp + 0x1e8]
call fcn.140002ea4
nop
lea rcx, [rsp + 0x1b8]
call fcn.140002ea4
nop
lea rcx, [rsp + 0x1d0]
call fcn.140002ea4
nop
mov rcx, qword [rsp + 0x228]
call fcn.1400030d0
mov rax, qword [rsp + 0x220]
mov rcx, qword [rsp + 0x200]
xor rcx, rsp
call fcn.1400b4690
add rsp, 0x210
pop rdi
ret