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

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x90]
sub rsp, 0x190
mov rax, qword [0x140079040]
xor rax, rsp
mov qword [rbp + 0x80], rax
mov rdi, r9
mov r12, r8
mov r15, rdx
mov qword [rsp + 0x60], rdx
mov qword [rbp - 0x20], r9
mov r8, r9
cmp qword [r9 + 0x18], 0xf
jbe 0x140005417
mov r8, qword [r9]
add r8, 0xf
mov rdx, rdi
cmp qword [r9 + 0x18], 0xf
jbe 0x140005428
mov rdx, qword [r9]
add rdx, 3
xorps xmm0, xmm0
movups xmmword [rbp + 0x60], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 0x70], xmm1
cmp rdx, r8
jne 0x140005453
movdqa xmm0, xmmword [0x140072150]
movdqu xmmword [rbp + 0x70], xmm0
mov byte [rbp + 0x60], 0
jmp 0x140005460
sub r8, rdx
lea rcx, [rbp + 0x60]
call fcn.14000bbe8
nop
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp - 0x10], xmm0
mov qword [rbp], rax
mov rcx, rdi
cmp qword [rdi + 0x18], 0xf
jbe 0x14000547a
mov rcx, qword [rdi]
mov rsi, qword [rdi + 0x10]
add rsi, rcx
mov rax, rdi
cmp qword [rdi + 0x18], 0xf
jbe 0x14000548e
mov rax, qword [rdi]
lea r14, [rax + 0xf]
movdqu xmmword [rbp - 0x10], xmm0
and qword [rbp], 0
sub rsi, r14
movabs rax, 0x7fffffffffffffff
je 0x1400054f0
cmp rsi, rax
ja 0x140005bb5
mov rcx, rsi
cmp rsi, 0x1000
jb 0x1400054c7
call fcn.1400163f0
jmp 0x1400054cc
call fcn.140020dd8
mov qword [rbp - 0x10], rax
mov qword [rbp - 8], rax
lea rbx, [rax + rsi]
mov qword [rbp], rbx
mov r8, rsi
mov rdx, r14
mov rcx, rax
call fcn.140041870
mov qword [rbp - 8], rbx
jmp 0x1400054f4
mov rbx, qword [rbp - 8]
mov r13d, ebx
sub r13d, dword [rbp - 0x10]
mov eax, pe_nt_image_headers64
cmp r13d, eax
jge 0x140005540
mov byte [rsp + 0x50], 0
sub eax, r13d
mov esi, eax
cmp rbx, qword [rbp]
je 0x140005525
mov byte [rbx], 0
mov rbx, qword [rbp - 8]
inc rbx
mov qword [rbp - 8], rbx
jmp 0x14000553a
lea r8, [rsp + 0x50]
mov rdx, rbx
lea rcx, [rbp - 0x10]
call fcn.1400110d0
mov rbx, qword [rbp - 8]
sub rsi, 1
jne 0x14000550f
xor esi, esi
mov dword [rbp - 0x18], esi
mov dword [rbp + 0x28], esi
mov qword [rsp + 0x58], rsi
mov qword [rsp + 0x60], rsi
xor eax, eax
mov qword [rsp + 0x68], rax
mov dword [rsp + 0x70], eax
xor r9d, r9d
xor r8d, r8d
lea rdx, [0x14006d140]
lea rcx, [rsp + 0x58]
call qword [sym.imp.bcrypt.dll_BCryptOpenAlgorithmProvider]
mov ebx, eax
test eax, eax
js 0x1400057f9
mov dword [rsp + 0x20], esi
lea r9d, [rsi + 0x20]
lea r8, str.ChainingModeGCM
lea rdx, str.ChainingMode
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.bcrypt.dll_BCryptSetProperty]
mov ebx, eax
test eax, eax
js 0x1400057f9
mov dword [rsp + 0x28], esi
lea rax, [rbp - 0x18]
mov qword [rsp + 0x20], rax
lea r9d, [rsi + 0xc]
lea r8, [rsp + 0x68]
lea rdx, str.AuthTagLength
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.bcrypt.dll_BCryptGetProperty]
mov ebx, eax
test eax, eax
js 0x1400057f9
mov dword [rsp + 0x28], esi
lea rax, [rbp - 0x18]
mov qword [rsp + 0x20], rax
lea r9d, [rsi + 4]
lea r8, [rbp + 0x28]
lea rdx, str.BlockLength
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.bcrypt.dll_BCryptGetProperty]
mov ebx, eax
test eax, eax
js 0x1400057f9
mov dword [rsp + 0x30], esi
mov eax, dword [r12]
mov dword [rsp + 0x28], eax
mov rax, qword [r12 + 8]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.bcrypt.dll_BCryptGenerateSymmetricKey]
mov ebx, eax
test eax, eax
js 0x1400057f9
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp + 8], xmm0
mov qword [rbp + 0x18], rax
mov edx, dword [rsp + 0x6c]
lea rcx, [rbp + 8]
call fcn.140008710
nop
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp + 0x48], xmm0
mov qword [rbp + 0x58], rax
mov edx, dword [rsp + 0x68]
lea rcx, [rbp + 0x48]
call fcn.140008710
nop
lea ebx, [rsi + 0x58]
mov r8d, ebx
xor edx, edx
lea rcx, [rbp - 0x80]
call fcn.140041f10
mov dword [rbp - 0x80], ebx
mov dword [rbp - 0x7c], 1
lea rax, [rbp + 0x60]
cmp qword [rbp + 0x78], 0xf
cmova rax, qword [rbp + 0x60]
mov qword [rbp - 0x78], rax
mov eax, dword [rbp + 0x70]
mov dword [rbp - 0x70], eax
mov rcx, qword [rbp + 0x48]
mov qword [rbp - 0x58], rcx
mov eax, dword [rbp + 0x50]
sub eax, ecx
mov dword [rbp - 0x50], eax
mov rcx, qword [rbp + 8]
mov qword [rbp - 0x48], rcx
mov eax, dword [rbp + 0x10]
sub eax, ecx
mov dword [rbp - 0x40], eax
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp + 0x30], xmm0
mov qword [rbp + 0x40], rax
mov edx, dword [rbp + 0x28]
lea rcx, [rbp + 0x30]
call fcn.140008710
mov dword [rbp - 0x30], 1
mov ecx, dword [rbp + 0x38]
mov rax, qword [rbp + 0x30]
sub ecx, eax
mov dword [rsp + 0x48], esi
lea rdx, [rbp - 0x18]
mov qword [rsp + 0x40], rdx
lea r14d, [rsi + 0x40]
mov dword [rsp + 0x38], r14d
mov rdx, qword [rbp - 0x10]
mov qword [rsp + 0x30], rdx
mov dword [rsp + 0x28], ecx
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x80]
mov r8d, r14d
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.bcrypt.dll_BCryptDecrypt]
mov ebx, eax
test eax, eax
jns 0x14000584f
mov rcx, qword [rbp + 0x30]
test rcx, rcx
mov r14d, 0x1000
je 0x140005781
mov rdx, qword [rbp + 0x40]
sub rdx, rcx
cmp rdx, r14
mov rax, rcx
jb 0x140005770
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140005bc1
call fcn.140020dd0
xorps xmm0, xmm0
movdqu xmmword [rbp + 0x30], xmm0
mov qword [rbp + 0x40], rsi
mov rcx, qword [rbp + 0x48]
test rcx, rcx
je 0x1400057c3
mov rdx, qword [rbp + 0x58]
sub rdx, rcx
cmp rdx, r14
mov rax, rcx
jb 0x1400057b2
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140005bbb
call fcn.140020dd0
xorps xmm0, xmm0
movdqu xmmword [rbp + 0x48], xmm0
mov qword [rbp + 0x58], rsi
mov rcx, qword [rbp + 8]
test rcx, rcx
je 0x1400057f9
mov rdx, qword [rbp + 0x18]
sub rdx, rcx
cmp rdx, r14
mov rax, rcx
jb 0x1400057f4
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140005bc7
call fcn.140020dd0
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x14000580b
xor edx, edx
call qword [sym.imp.bcrypt.dll_BCryptCloseAlgorithmProvider]
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x14000581b
call qword [sym.imp.bcrypt.dll_BCryptDestroyKey]
xorps xmm0, xmm0
test ebx, ebx
jne 0x140005a81
movups xmmword [rbp + 8], xmm0
mov r12, qword [rbp - 0x10]
mov r14, qword [rbp - 8]
cmp r12, r14
jne 0x140005898
mov rcx, rsi
mov qword [rbp + 0x18], rcx
lea r9d, [rbx + 0xf]
mov qword [rbp + 0x20], r9
mov byte [rbp + 8], sil
jmp 0x140005947
mov rdx, qword [rbp - 0x10]
add rdx, r14
mov ecx, dword [rbp + 0x38]
mov rax, qword [rbp + 0x30]
sub ecx, eax
mov dword [rsp + 0x48], esi
lea r9, [rbp - 0x18]
mov qword [rsp + 0x40], r9
mov dword [rsp + 0x38], r14d
mov qword [rsp + 0x30], rdx
mov dword [rsp + 0x28], ecx
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x80]
mov r8d, r14d
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.bcrypt.dll_BCryptDecrypt]
mov ebx, eax
jmp 0x140005739
sub r14, r12
mov qword [rbp + 0x18], rsi
mov qword [rbp + 0x20], 0xf
movabs rax, 0x7fffffffffffffff
cmp r14, rax
ja 0x140005bcd
mov esi, 0xf
cmp r14, rsi
jbe 0x140005917
mov rsi, r14
or rsi, 0xf
cmp rsi, rax
jbe 0x1400058df
mov rsi, rax
movabs rcx, 0x8000000000000000
jmp 0x140005901
mov eax, 0x16
cmp rsi, rax
cmovb rsi, rax
lea rcx, [rsi + 1]
test rcx, rcx
jne 0x1400058f8
xor eax, eax
jmp 0x14000590d
cmp rcx, 0x1000
jb 0x140005908
call fcn.1400163f0
jmp 0x14000590d
call fcn.140020dd8
mov qword [rbp + 8], rax
mov qword [rbp + 0x20], rsi
jmp 0x14000591b
mov rax, qword [rbp + 8]
lea rbx, [rbp + 8]
cmp rsi, 0xf
cmova rbx, rax
mov r8, r14
mov rdx, r12
mov rcx, rbx
call fcn.140041870
mov qword [rbp + 0x18], r14
xor esi, esi
mov byte [rbx + r14], sil
mov r9, qword [rbp + 0x20]
mov rcx, qword [rbp + 0x18]
lea r8d, [r13 - 0x10]
cmp r13d, 0x10
cmovbe r8d, r13d
xorps xmm0, xmm0
movups xmmword [r15], xmm0
mov qword [r15 + 0x10], rsi
mov qword [r15 + 0x18], rsi
cmp rcx, r8
cmovb r8, rcx
lea rdx, [rbp + 8]
cmp r9, 0xf
cmova rdx, qword [rbp + 8]
mov rcx, r15
call fcn.14000bbe8
nop
mov rdx, qword [rbp + 0x20]
mov ebx, 0x1000
cmp rdx, 0xf
jbe 0x1400059bc
inc rdx
mov rcx, qword [rbp + 8]
mov rax, rcx
cmp rdx, rbx
jb 0x1400059b6
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140005bd3
call fcn.140020dd0
nop
mov rcx, qword [rbp - 0x10]
test rcx, rcx
je 0x1400059fe
mov rdx, qword [rbp]
sub rdx, rcx
mov rax, rcx
cmp rdx, rbx
jb 0x1400059ed
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140005bd9
call fcn.140020dd0
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x10], xmm0
mov qword [rbp], rsi
mov rdx, qword [rbp + 0x78]
cmp rdx, 0xf
jbe 0x140005a35
inc rdx
mov rcx, qword [rbp + 0x60]
mov rax, rcx
cmp rdx, rbx
jb 0x140005a30
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140005bdf
call fcn.140020dd0
movdqa xmm0, xmmword [0x140072150]
movdqu xmmword [rbp + 0x70], xmm0
mov byte [rbp + 0x60], sil
mov rdx, qword [rdi + 0x18]
cmp rdx, 0xf
jbe 0x140005b67
inc rdx
mov rcx, qword [rdi]
cmp rdx, rbx
jb 0x140005b62
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140005ba9
jmp 0x140005b5f
mov byte [rsp + 0x50], sil
lea rdx, [rsp + 0x50]
movups xmmword [r15], xmm0
mov qword [r15 + 0x10], rsi
mov qword [r15 + 0x18], rsi
mov r8d, 1
mov rcx, r15
call fcn.14000bbe8
nop
mov rcx, qword [rbp - 0x10]
mov ebx, 0x1000
test rcx, rcx
je 0x140005aed
mov rdx, qword [rbp]
sub rdx, rcx
mov rax, rcx
cmp rdx, rbx
jb 0x140005adc
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140005be5
call fcn.140020dd0
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x10], xmm0
mov qword [rbp], rsi
mov rdx, qword [rbp + 0x78]
cmp rdx, 0xf
jbe 0x140005b24
inc rdx
mov rcx, qword [rbp + 0x60]
mov rax, rcx
cmp rdx, rbx
jb 0x140005b1f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140005ba3
call fcn.140020dd0
movdqa xmm0, xmmword [0x140072150]
movdqu xmmword [rbp + 0x70], xmm0
mov byte [rbp + 0x60], sil
mov rdx, qword [rdi + 0x18]
cmp rdx, 0xf
jbe 0x140005b67
inc rdx
mov rcx, qword [rdi]
cmp rdx, rbx
jb 0x140005b62
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140005baf
mov rcx, r8
call fcn.140020dd0
mov rax, r15
mov byte [rdi], sil
mov qword [rdi + 0x18], 0xf
mov qword [rdi + 0x10], rsi
mov rcx, qword [rbp + 0x80]
xor rcx, rsp
call fcn.140020db0
mov rbx, qword [rsp + 0x1d0]
add rsp, 0x190
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.14002e0c8
nop
call fcn.14002e0c8
int3
call fcn.14002e0c8
nop
call fcn.14000a9b4
nop
call fcn.14002e0c8
nop
call fcn.14002e0c8
nop
call fcn.14002e0c8
int3
call fcn.140003004
int3
call fcn.14002e0c8
nop
call fcn.14002e0c8
nop
call fcn.14002e0c8
nop
call fcn.14002e0c8
int3