Function at 0x1400ea840
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 [0x14015d010]
xor rax, rsp
mov qword [rbp + 0xb0], rax
mov rbx, r9
mov qword [rsp + 0x58], rbx
mov r12, r8
mov r15, rdx
mov rax, qword [r8 + 0x10]
xorps xmm0, xmm0
test rax, rax
jne 0x1400ea8bc
movups xmmword [rdx], xmm0
xor r14d, r14d
mov qword [rdx + 0x10], r14
mov qword [rdx + 0x18], 0xf
mov byte [rdx], r14b
mov byte [rsp + 0x50], 0
mov r8d, 1
lea rdx, [rsp + 0x50]
mov rcx, r15
call fcn.1400dbd10
jmp 0x1400eb0ac
movups xmmword [rbp + 0x20], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 0x30], xmm1
mov r8d, 0xc
cmp rax, r8
cmovb r8, rax
mov rdx, r12
cmp qword [r12 + 0x18], 0x10
jb 0x1400ea8e4
mov rdx, qword [r12]
lea rcx, [rbp + 0x20]
call fcn.1400d1420
lea rcx, [rbp + 0x20]
cmp qword [rbp + 0x38], 0x10
cmovae rcx, qword [rbp + 0x20]
mov r8, qword [rbp + 0x30]
cmp r8, 0xc
jne 0x1400eb06b
lea rdx, str.dQw4w9WgXcQ:
call fcn.1400ffb70
test eax, eax
jne 0x1400eb06b
lea rcx, [rbp + 0x20]
call fcn.1400d1370
mov r13d, dword [rbx]
xorps xmm0, xmm0
test r13d, r13d
jne 0x1400ea94c
movups xmmword [r15], xmm0
xor r14d, r14d
mov qword [r15 + 0x10], r14
mov qword [r15 + 0x18], 0xf
mov byte [r15], r14b
jmp 0x1400ea89f
movups xmmword [rbp + 0x90], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 0xa0], xmm1
mov rax, qword [r12 + 0x10]
cmp rax, 0xc
jb 0x1400eb0f3
add rax, 0xfffffffffffffff4
mov r8, 0xffffffffffffffff
cmp rax, r8
cmovb r8, rax
mov rdx, r12
cmp qword [r12 + 0x18], 0x10
jb 0x1400ea98e
mov rdx, qword [r12]
add rdx, 0xc
lea rcx, [rbp + 0x90]
call fcn.1400d1420
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.1400d11c0
mov rdx, rax
lea rcx, [rbp + 0x40]
call fcn.1400fa530
mov rdx, qword [rbp + 0x40]
lea r8, [rdx + 0xf]
add rdx, 3
lea rcx, [rbp + 0x70]
call fcn.1400dca30
mov rbx, qword [rbp + 0x48]
mov rdi, qword [rbp + 0x40]
add rdi, 0xf
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x18], xmm0
xor r14d, r14d
mov qword [rbp - 8], r14
mov rdx, rbx
sub rdx, rdi
mov esi, r14d
je 0x1400eaa2c
lea rcx, [rbp - 0x18]
call fcn.1400dd910
mov rsi, qword [rbp - 0x18]
sub rbx, rdi
mov r8, rbx
mov rdx, rdi
mov rcx, rsi
call fcn.1400ff4e0
add rsi, rbx
mov rdx, rsi
mov qword [rbp - 0x10], rdx
jmp 0x1400eaa30
mov rdx, qword [rbp - 0x10]
sub esi, dword [rbp - 0x18]
mov eax, 0x100
cmp esi, eax
jge 0x1400eaa73
sub eax, esi
mov ebx, eax
mov byte [rsp + 0x50], r14b
cmp rdx, qword [rbp - 8]
je 0x1400eaa5b
mov byte [rdx], r14b
mov rdx, qword [rbp - 0x10]
inc rdx
mov qword [rbp - 0x10], rdx
jmp 0x1400eaa6d
lea r8, [rsp + 0x50]
lea rcx, [rbp - 0x18]
call fcn.1400e0710
mov rdx, qword [rbp - 0x10]
sub rbx, 1
jne 0x1400eaa40
mov qword [rsp + 0x60], r14
mov qword [rsp + 0x68], r14
xor eax, eax
mov qword [rsp + 0x70], rax
mov dword [rsp + 0x78], eax
mov dword [rbp], r14d
mov dword [rbp - 0x20], r14d
xor r9d, r9d
xor r8d, r8d
lea rdx, [0x140145b68]
lea rcx, [rsp + 0x60]
call qword [sym.imp.bcrypt.dll_BCryptOpenAlgorithmProvider]
mov ebx, eax
test eax, eax
js 0x1400eadb2
mov dword [rsp + 0x20], r14d
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 0x1400eadb2
mov dword [rsp + 0x28], r14d
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 0x1400eadb2
mov dword [rsp + 0x28], r14d
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 0x1400eadb2
mov dword [rsp + 0x30], r14d
mov dword [rsp + 0x28], r13d
mov rax, qword [rsp + 0x58]
mov rax, qword [rax + 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 0x1400eadb2
mov edi, dword [rsp + 0x74]
xorps xmm0, xmm0
movdqu xmmword [rbp + 0x20], xmm0
mov qword [rbp + 0x30], r14
test rdi, rdi
je 0x1400eabba
mov edx, edi
lea rcx, [rbp + 0x20]
call fcn.1400dd910
mov rbx, qword [rbp + 0x20]
mov r8d, edi
xor edx, edx
mov rcx, rbx
call fcn.1400ff0e0
lea rax, [rdi + rbx]
mov qword [rbp + 0x28], rax
mov edi, dword [rsp + 0x70]
xorps xmm0, xmm0
movdqu xmmword [rbp + 0x58], xmm0
mov qword [rbp + 0x68], r14
mov ecx, r14d
mov eax, r14d
test rdi, rdi
je 0x1400eabf7
mov edx, edi
lea rcx, [rbp + 0x58]
call fcn.1400dd910
mov rbx, qword [rbp + 0x58]
mov r8d, edi
xor edx, edx
mov rcx, rbx
call fcn.1400ff0e0
lea rcx, [rdi + rbx]
mov eax, ecx
xorps xmm0, xmm0
xor edx, edx
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], rdx
mov dword [rbp - 0x80], 0x58
mov dword [rbp - 0x7c], 1
lea rdx, [rbp + 0x70]
cmp qword [rbp + 0x88], 0x10
jb 0x1400eac36
mov rdx, qword [rbp + 0x70]
mov ecx, eax
mov qword [rbp - 0x78], rdx
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 edi, dword [rbp]
movdqu xmmword [rbp + 8], xmm0
mov qword [rbp + 0x18], r14
mov ecx, r14d
test rdi, rdi
je 0x1400eac98
mov edx, edi
lea rcx, [rbp + 8]
call fcn.1400dd910
mov rbx, qword [rbp + 8]
mov r8d, edi
xor edx, edx
mov rcx, rbx
call fcn.1400ff0e0
lea rcx, [rbx + rdi]
mov qword [rbp + 0x10], rcx
mov dword [rbp - 0x30], 1
mov rax, qword [rbp + 8]
sub ecx, eax
mov dword [rsp + 0x48], r14d
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 0x1400eaeb0
mov rcx, qword [rbp + 8]
test rcx, rcx
je 0x1400ead32
mov rdx, qword [rbp + 0x18]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400ead21
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400eb0e7
call fcn.1400fb608
xorps xmm0, xmm0
movdqu xmmword [rbp + 8], xmm0
mov qword [rbp + 0x18], r14
mov rcx, qword [rbp + 0x58]
test rcx, rcx
je 0x1400ead78
mov rdx, qword [rbp + 0x68]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400ead67
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400eb0e7
call fcn.1400fb608
xorps xmm0, xmm0
movdqu xmmword [rbp + 0x58], xmm0
mov qword [rbp + 0x68], r14
mov rcx, qword [rbp + 0x20]
test rcx, rcx
je 0x1400eadb2
mov rdx, qword [rbp + 0x30]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400eadad
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400eb0e7
call fcn.1400fb608
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x1400eadc4
xor edx, edx
call qword [sym.imp.bcrypt.dll_BCryptCloseAlgorithmProvider]
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x1400eadd4
call qword [sym.imp.bcrypt.dll_BCryptDestroyKey]
mov rcx, r15
test ebx, ebx
je 0x1400eafca
mov byte [rsp + 0x50], r14b
xorps xmm0, xmm0
movups xmmword [r15], xmm0
mov qword [r15 + 0x10], r14
mov qword [r15 + 0x18], 0xf
mov byte [r15], r14b
mov r8d, 1
lea rdx, [rsp + 0x50]
call fcn.1400dbd10
mov rcx, qword [rbp - 0x18]
test rcx, rcx
je 0x1400eae50
mov rdx, qword [rbp - 8]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400eae3f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400eb0e1
call fcn.1400fb608
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x18], xmm0
mov qword [rbp - 8], r14
lea rcx, [rbp + 0x70]
call fcn.1400d1370
mov rcx, qword [rbp + 0x40]
test rcx, rcx
je 0x1400eae9f
mov rdx, qword [rbp + 0x50]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400eae8e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400eb0e1
call fcn.1400fb608
xorps xmm0, xmm0
movdqu xmmword [rbp + 0x40], xmm0
mov qword [rbp + 0x50], r14
lea rcx, [rbp + 0x90]
call fcn.1400d1370
jmp 0x1400eb0ac
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], r14d
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 0x1400eaf42
mov rdx, qword [rbp + 0x18]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400eaf31
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400eb0e7
call fcn.1400fb608
xorps xmm0, xmm0
movdqu xmmword [rbp + 8], xmm0
mov qword [rbp + 0x18], r14
mov rcx, qword [rbp + 0x58]
test rcx, rcx
je 0x1400eaf88
mov rdx, qword [rbp + 0x68]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400eaf77
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400eb0e7
call fcn.1400fb608
xorps xmm0, xmm0
movdqu xmmword [rbp + 0x58], xmm0
mov qword [rbp + 0x68], r14
mov rcx, qword [rbp + 0x20]
test rcx, rcx
je 0x1400eadb2
mov rdx, qword [rbp + 0x30]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400eadad
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400eb0e7
jmp 0x1400eadad
lea r8d, [rsi - 0x10]
mov rdx, qword [rbp - 0x18]
add r8, rdx
call fcn.1400dca30
mov rcx, qword [rbp - 0x18]
test rcx, rcx
je 0x1400eb020
mov rdx, qword [rbp - 8]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400eb00f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400eb0ed
call fcn.1400fb608
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x18], xmm0
mov qword [rbp - 8], r14
lea rcx, [rbp + 0x70]
call fcn.1400d1370
mov rcx, qword [rbp + 0x40]
test rcx, rcx
je 0x1400eae9f
mov rdx, qword [rbp + 0x50]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400eae8e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400eb0ed
jmp 0x1400eae8e
lea rcx, [rbp + 0x20]
call fcn.1400d1370
xorps xmm0, xmm0
movups xmmword [r15], xmm0
xor r14d, r14d
mov qword [r15 + 0x10], r14
mov qword [r15 + 0x18], r14
movups xmm0, xmmword [r12]
movups xmmword [r15], xmm0
movups xmm1, xmmword [r12 + 0x10]
movups xmmword [r15 + 0x10], xmm1
mov qword [r12 + 0x10], r14
mov qword [r12 + 0x18], 0xf
mov byte [r12], r14b
mov rcx, r12
call fcn.1400d1370
mov rax, r15
mov rcx, qword [rbp + 0xb0]
xor rcx, rsp
call fcn.1400faff0
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.14010432c
int3
call fcn.14010432c
int3
call fcn.14010432c
int3
call fcn.1400d3e60
int3