Function at 0x1400eb340
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 - 0xc0]
sub rsp, 0x1c0
mov rax, qword [0x140159040]
xor rax, rsp
mov qword [rbp + 0xb0], rax
mov r13, r9
mov r14, r8
mov rsi, rdx
mov rax, qword [r8 + 0x10]
xorps xmm0, xmm0
test rax, rax
jne 0x1400eb3af
movups xmmword [rdx], xmm0
xor edi, edi
mov qword [rdx + 0x10], rdi
mov qword [rdx + 0x18], rdi
mov byte [rsp + 0x50], 0
mov r8d, 1
lea rdx, [rsp + 0x50]
mov rcx, rsi
call fcn.1400d16c0
jmp 0x1400ebb7c
movups xmmword [rbp + 0x20], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 0x30], xmm1
mov r8d, 0xc
cmp rax, r8
cmovb r8, rax
mov rdx, r14
cmp qword [r14 + 0x18], 0xf
jbe 0x1400eb3d5
mov rdx, qword [r14]
lea rcx, [rbp + 0x20]
call fcn.1400d16c0
lea rcx, [rbp + 0x20]
cmp qword [rbp + 0x38], 0xf
cmova rcx, qword [rbp + 0x20]
mov r8, qword [rbp + 0x30]
cmp r8, 0xc
jne 0x1400ebb44
lea rdx, str.dQw4w9WgXcQ:
call fcn.140125a70
test eax, eax
jne 0x1400ebb44
lea rcx, [rbp + 0x20]
call fcn.1400d1610
xorps xmm0, xmm0
cmp dword [r13], 0
jne 0x1400eb433
movups xmmword [rsi], xmm0
xor edi, edi
mov qword [rsi + 0x10], rdi
mov qword [rsi + 0x18], rdi
jmp 0x1400eb392
movups xmmword [rbp + 0x90], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 0xa0], xmm1
mov rax, qword [r14 + 0x10]
cmp rax, 0xc
jb 0x1400ebbc3
add rax, 0xfffffffffffffff4
mov r8, 0xffffffffffffffff
cmp rax, r8
cmovb r8, rax
mov rdx, r14
cmp qword [r14 + 0x18], 0xf
jbe 0x1400eb472
mov rdx, qword [r14]
add rdx, 0xc
lea rcx, [rbp + 0x90]
call fcn.1400d16c0
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp + 0x40], xmm0
mov qword [rbp + 0x50], rax
lea rdx, [rbp + 0x90]
lea rcx, [rbp + 0x20]
call fcn.1400d1460
mov rdx, rax
lea rcx, [rbp + 0x40]
call fcn.1400fb230
mov rdx, qword [rbp + 0x40]
lea r8, [rdx + 0xf]
add rdx, 3
lea rcx, [rbp + 0x70]
call fcn.1400dcd40
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x18], xmm0
xor edi, edi
mov qword [rbp - 8], rdi
mov rax, qword [rbp + 0x40]
add rax, 0xf
mov qword [rsp + 0x58], rax
mov r15, qword [rbp + 0x48]
sub r15, rax
mov r12d, edi
je 0x1400eb514
mov rdx, r15
lea rcx, [rbp - 0x18]
call fcn.1400ddec0
mov rbx, qword [rbp - 0x18]
mov r8, r15
mov rdx, qword [rsp + 0x58]
mov rcx, rbx
call fcn.1401253f0
lea r12, [rbx + r15]
mov rdx, r12
mov qword [rbp - 0x10], rdx
jmp 0x1400eb518
mov rdx, qword [rbp - 0x10]
sub r12d, dword [rbp - 0x18]
mov eax, pe_nt_image_headers64
cmp r12d, eax
jge 0x1400eb55e
mov byte [rsp + 0x50], dil
sub eax, r12d
mov ebx, eax
cmp rdx, qword [rbp - 8]
je 0x1400eb546
mov byte [rdx], dil
mov rdx, qword [rbp - 0x10]
inc rdx
mov qword [rbp - 0x10], rdx
jmp 0x1400eb558
lea r8, [rsp + 0x50]
lea rcx, [rbp - 0x18]
call fcn.1400e0a30
mov rdx, qword [rbp - 0x10]
sub rbx, 1
jne 0x1400eb530
mov qword [rsp + 0x60], rdi
mov qword [rsp + 0x68], rdi
xor eax, eax
mov qword [rsp + 0x70], rax
mov dword [rsp + 0x78], eax
mov dword [rbp], edi
mov dword [rbp - 0x20], edi
xor r9d, r9d
xor r8d, r8d
lea rdx, [0x140141a28]
lea rcx, [rsp + 0x60]
call qword [sym.imp.bcrypt.dll_BCryptOpenAlgorithmProvider]
mov ebx, eax
test eax, eax
js 0x1400eb897
mov dword [rsp + 0x20], edi
mov r9d, 0x20
lea r8, str.ChainingModeGCM
lea rdx, str.ChainingMode
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.bcrypt.dll_BCryptSetProperty]
mov ebx, eax
test eax, eax
js 0x1400eb897
mov dword [rsp + 0x28], edi
lea rax, [rbp - 0x20]
mov qword [rsp + 0x20], rax
mov r9d, 0xc
lea r8, [rsp + 0x70]
lea rdx, str.AuthTagLength
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.bcrypt.dll_BCryptGetProperty]
mov ebx, eax
test eax, eax
js 0x1400eb897
mov dword [rsp + 0x28], edi
lea rax, [rbp - 0x20]
mov qword [rsp + 0x20], rax
mov r9d, 4
lea r8, [rbp]
lea rdx, str.BlockLength
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.bcrypt.dll_BCryptGetProperty]
mov ebx, eax
test eax, eax
js 0x1400eb897
mov dword [rsp + 0x30], edi
mov eax, dword [r13]
mov dword [rsp + 0x28], eax
mov rax, qword [r13 + 8]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea rdx, [rsp + 0x68]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.bcrypt.dll_BCryptGenerateSymmetricKey]
mov ebx, eax
test eax, eax
js 0x1400eb897
mov r15d, dword [rsp + 0x74]
xorps xmm0, xmm0
movdqu xmmword [rbp + 0x20], xmm0
mov qword [rbp + 0x30], rdi
test r15, r15
je 0x1400eb69f
mov edx, r15d
lea rcx, [rbp + 0x20]
call fcn.1400ddec0
mov rbx, qword [rbp + 0x20]
mov r8d, r15d
xor edx, edx
mov rcx, rbx
call fcn.140125030
lea rax, [rbx + r15]
mov qword [rbp + 0x28], rax
mov r15d, dword [rsp + 0x70]
xorps xmm0, xmm0
movdqu xmmword [rbp + 0x58], xmm0
mov qword [rbp + 0x68], rdi
mov ecx, edi
mov edx, edi
test r15, r15
je 0x1400eb6dc
mov edx, r15d
lea rcx, [rbp + 0x58]
call fcn.1400ddec0
mov rbx, qword [rbp + 0x58]
mov r8d, r15d
xor edx, edx
mov rcx, rbx
call fcn.140125030
lea rcx, [rbx + r15]
mov edx, ecx
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp - 0x80], xmm0
movups xmmword [rbp - 0x70], xmm0
movups xmmword [rbp - 0x60], xmm0
movups xmmword [rbp - 0x50], xmm0
movups xmmword [rbp - 0x40], xmm0
mov qword [rbp - 0x30], rax
mov dword [rbp - 0x80], 0x58
mov dword [rbp - 0x7c], 1
lea rax, [rbp + 0x70]
cmp qword [rbp + 0x88], 0xf
jbe 0x1400eb71b
mov rax, qword [rbp + 0x70]
mov ecx, edx
mov qword [rbp - 0x78], rax
mov eax, dword [rbp + 0x80]
mov dword [rbp - 0x70], eax
mov rax, qword [rbp + 0x58]
mov qword [rbp - 0x58], rax
sub ecx, eax
mov dword [rbp - 0x50], ecx
mov rcx, qword [rbp + 0x20]
mov qword [rbp - 0x48], rcx
mov eax, dword [rbp + 0x28]
sub eax, ecx
mov dword [rbp - 0x40], eax
mov r15d, dword [rbp]
movdqu xmmword [rbp + 8], xmm0
mov qword [rbp + 0x18], rdi
mov ecx, edi
test r15, r15
je 0x1400eb77e
mov edx, r15d
lea rcx, [rbp + 8]
call fcn.1400ddec0
mov rbx, qword [rbp + 8]
mov r8d, r15d
xor edx, edx
mov rcx, rbx
call fcn.140125030
lea rcx, [rbx + r15]
mov qword [rbp + 0x10], rcx
mov dword [rbp - 0x30], 1
mov rax, qword [rbp + 8]
sub ecx, eax
mov dword [rsp + 0x48], edi
lea rdx, [rbp - 0x20]
mov qword [rsp + 0x40], rdx
mov dword [rsp + 0x38], 0x80
mov rdx, qword [rbp - 0x18]
mov qword [rsp + 0x30], rdx
mov dword [rsp + 0x28], ecx
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x80]
mov r8d, 0x80
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.bcrypt.dll_BCryptDecrypt]
mov ebx, eax
test eax, eax
jns 0x1400eb98d
mov rcx, qword [rbp + 8]
test rcx, rcx
je 0x1400eb817
mov rdx, qword [rbp + 0x18]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400eb806
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400ebbb7
call fcn.1400fc2f8
xorps xmm0, xmm0
movdqu xmmword [rbp + 8], xmm0
mov qword [rbp + 0x18], rdi
mov rcx, qword [rbp + 0x58]
test rcx, rcx
je 0x1400eb85d
mov rdx, qword [rbp + 0x68]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400eb84c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400ebbb7
call fcn.1400fc2f8
xorps xmm0, xmm0
movdqu xmmword [rbp + 0x58], xmm0
mov qword [rbp + 0x68], rdi
mov rcx, qword [rbp + 0x20]
test rcx, rcx
je 0x1400eb897
mov rdx, qword [rbp + 0x30]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400eb892
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400ebbb7
call fcn.1400fc2f8
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x1400eb8a9
xor edx, edx
call qword [sym.imp.bcrypt.dll_BCryptCloseAlgorithmProvider]
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x1400eb8b9
call qword [sym.imp.bcrypt.dll_BCryptDestroyKey]
mov rcx, rsi
test ebx, ebx
je 0x1400ebaa6
mov byte [rsp + 0x50], dil
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
mov qword [rsi + 0x10], rdi
mov qword [rsi + 0x18], rdi
mov r8d, 1
lea rdx, [rsp + 0x50]
call fcn.1400d16c0
mov rcx, qword [rbp - 0x18]
test rcx, rcx
je 0x1400eb92d
mov rdx, qword [rbp - 8]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400eb91c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400ebbb1
call fcn.1400fc2f8
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x18], xmm0
mov qword [rbp - 8], rdi
lea rcx, [rbp + 0x70]
call fcn.1400d1610
mov rcx, qword [rbp + 0x40]
test rcx, rcx
je 0x1400eb97c
mov rdx, qword [rbp + 0x50]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400eb96b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400ebbb1
call fcn.1400fc2f8
xorps xmm0, xmm0
movdqu xmmword [rbp + 0x40], xmm0
mov qword [rbp + 0x50], rdi
lea rcx, [rbp + 0x90]
call fcn.1400d1610
jmp 0x1400ebb7c
mov rdx, qword [rbp - 0x18]
sub rdx, 0xffffffffffffff80
mov ecx, dword [rbp + 0x10]
mov rax, qword [rbp + 8]
sub ecx, eax
mov dword [rsp + 0x48], edi
lea r9, [rbp - 0x20]
mov qword [rsp + 0x40], r9
mov dword [rsp + 0x38], 0x80
mov qword [rsp + 0x30], rdx
mov dword [rsp + 0x28], ecx
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x80]
mov r8d, 0x80
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.bcrypt.dll_BCryptDecrypt]
mov ebx, eax
mov rcx, qword [rbp + 8]
test rcx, rcx
je 0x1400eba1e
mov rdx, qword [rbp + 0x18]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400eba0d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400ebbb7
call fcn.1400fc2f8
xorps xmm0, xmm0
movdqu xmmword [rbp + 8], xmm0
mov qword [rbp + 0x18], rdi
mov rcx, qword [rbp + 0x58]
test rcx, rcx
je 0x1400eba64
mov rdx, qword [rbp + 0x68]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400eba53
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400ebbb7
call fcn.1400fc2f8
xorps xmm0, xmm0
movdqu xmmword [rbp + 0x58], xmm0
mov qword [rbp + 0x68], rdi
mov rcx, qword [rbp + 0x20]
test rcx, rcx
je 0x1400eb897
mov rdx, qword [rbp + 0x30]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400eb892
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400ebbb7
jmp 0x1400eb892
lea r8d, [r12 - 0x10]
mov rdx, qword [rbp - 0x18]
add r8, rdx
call fcn.1400dcd40
mov rcx, qword [rbp - 0x18]
test rcx, rcx
je 0x1400ebafd
mov rdx, qword [rbp - 8]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400ebaec
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400ebbbd
call fcn.1400fc2f8
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x18], xmm0
mov qword [rbp - 8], rdi
lea rcx, [rbp + 0x70]
call fcn.1400d1610
mov rcx, qword [rbp + 0x40]
test rcx, rcx
je 0x1400eb97c
mov rdx, qword [rbp + 0x50]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400eb96b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400ebbbd
jmp 0x1400eb96b
lea rcx, [rbp + 0x20]
call fcn.1400d1610
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
xor edi, edi
mov qword [rsi + 0x10], rdi
mov qword [rsi + 0x18], rdi
movups xmm0, xmmword [r14]
movups xmmword [rsi], xmm0
movups xmm1, xmmword [r14 + 0x10]
movups xmmword [rsi + 0x10], xmm1
mov qword [r14 + 0x10], rdi
mov qword [r14 + 0x18], 0xf
mov byte [r14], dil
mov rcx, r14
call fcn.1400d1610
mov rax, rsi
mov rcx, qword [rbp + 0xb0]
xor rcx, rsp
call fcn.1400fbcf0
mov rbx, qword [rsp + 0x200]
add rsp, 0x1c0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.140105498
int3
call fcn.140105498
int3
call fcn.140105498
int3
call fcn.1400d3f20
int3