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

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x90]
sub rsp, 0x190
mov rax, qword [0x18014a040]
xor rax, rsp
mov qword [rbp + 0x88], rax
mov r15, r8
mov rdi, rdx
mov rsi, rcx
mov qword [rbp - 0x70], rcx
mov qword [rbp], rdx
xor r12d, r12d
mov qword [rbp - 0x78], r12
mov qword [rbp - 0x70], r12
mov r14, qword [rdx + 0x18]
mov dword [rbp + 0x70], r12d
xorps xmm0, xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 0x10], xmm1
movdqu xmmword [rbp + 0x20], xmm0
lea rax, [rbp + 8]
mov qword [rbp + 0x80], rax
lea ecx, [r12 + 0x10]
call fcn.180028cf0
mov qword [rbp + 0x78], rax
lea rcx, [rbp + 0x10]
mov qword [rax], rcx
mov qword [rax + 8], r12
mov qword [rbp + 0x10], rax
test r14, r14
je 0x180012f24
movabs rax, 0x7fffffffffffffff
cmp r14, rax
ja 0x1800134eb
mov rcx, r14
call fcn.180027e50
mov qword [rbp + 0x18], rax
lea rbx, [rax + r14]
mov qword [rbp + 0x28], rbx
mov r8, r14
xor edx, edx
mov rcx, rax
call fcn.180106aa0
mov qword [rbp + 0x20], rbx
xorps xmm0, xmm0
movdqu xmmword [rbp + 0x50], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 0x60], xmm1
mov ecx, reloc.WS2_32.dll_recv
call fcn.180028cf0
mov qword [rax + 8], r12
mov qword [rbp + 0x50], rax
lea rcx, [rbp + 0x50]
mov qword [rax], rcx
xorps xmm0, xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 0x30], xmm1
movdqu xmmword [rbp + 0x40], xmm0
lea rax, [rbp + 8]
mov qword [rbp + 0x80], rax
mov ecx, reloc.WS2_32.dll_recv
call fcn.180028cf0
mov qword [rbp + 0x78], rax
lea rcx, [rbp + 0x30]
mov qword [rax], rcx
mov qword [rax + 8], r12
mov qword [rbp + 0x30], rax
mov ecx, listen
call fcn.180027e50
mov qword [rbp + 0x38], rax
lea rcx, [rax + 0xc]
mov qword [rbp + 0x48], rcx
xor edx, edx
mov qword [rax], rdx
mov dword [rax + 8], edx
mov qword [rbp + 0x40], rcx
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x50], xmm0
mov rax, qword [rbp + 0x38]
mov qword [rsp + 0x60], rax
mov edx, 3
lea rcx, [rbp + 0x78]
call fcn.18002a500
mov rbx, qword [rbp + 0x30]
mov rax, qword [rsp + 0x50]
cmp rax, rbx
je 0x180012ffb
test rax, rax
je 0x180012fe4
lea rcx, [rsp + 0x50]
call fcn.180009ea0
mov rax, qword [rbx + 8]
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x50]
mov qword [rbx + 8], rax
mov qword [rsp + 0x50], rbx
lea rcx, [rbp + 0x78]
call fcn.18002a5e0
lea rdx, [rdi + 8]
cmp qword [rdi + 0x20], 0xf
jbe 0x18001301b
mov r8, qword [rdx]
add r8, 0xf
mov rdx, qword [rdx]
jmp 0x18001301f
lea r8, [rdx + 0xf]
add rdx, 3
lea r9, [rsp + 0x50]
lea rcx, [rsp + 0x68]
call fcn.180022e60
mov edx, 3
lea rcx, [rbp + 0x78]
call fcn.18002a500
lea rcx, [rsp + 0x68]
call fcn.180009ea0
lea rcx, [rbp + 0x78]
call fcn.18002a5e0
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x50], xmm0
mov rax, qword [rbp + 0x18]
mov qword [rsp + 0x60], rax
mov edx, 3
lea rcx, [rbp + 0x78]
call fcn.18002a500
mov rbx, qword [rbp + 0x10]
mov rax, qword [rsp + 0x50]
cmp rax, rbx
je 0x1800130a7
test rax, rax
je 0x180013090
lea rcx, [rsp + 0x50]
call fcn.180009ea0
mov rax, qword [rbx + 8]
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x50]
mov qword [rbx + 8], rax
mov qword [rsp + 0x50], rbx
lea rcx, [rbp + 0x78]
call fcn.18002a5e0
cmp qword [rdi + 0x20], 0xf
jbe 0x1800130c4
mov rax, qword [rdi + 8]
lea r8, [r14 + rax]
mov rdx, rax
jmp 0x1800130cf
lea r8, [rdi + 8]
add r8, r14
lea rdx, [rdi + 8]
add rdx, 0xf
lea r9, [rsp + 0x50]
lea rcx, [rsp + 0x68]
call fcn.180022e60
mov edx, 3
lea rcx, [rbp + 0x78]
call fcn.18002a500
lea rcx, [rsp + 0x68]
call fcn.180009ea0
lea rcx, [rbp + 0x78]
call fcn.18002a5e0
xor r9d, r9d
xor r8d, r8d
lea rdx, [0x1801386c0]
lea rcx, [rbp - 0x78]
call qword [sym.imp.bcrypt.dll_BCryptOpenAlgorithmProvider]
mov ebx, eax
test eax, eax
jns 0x18001316e
lea rdx, str.BCryptOpenAlgorithmProvider_failed_with_status:
lea rcx, [0x18014c9d0]
call fcn.180022020
mov edx, ebx
mov rcx, rax
call fcn.18001be10
mov rcx, rax
call fcn.1800222d0
mov qword [rsi], r12
xorps xmm0, xmm0
movups xmmword [rsi + 8], xmm0
mov qword [rsi + 0x18], r12
mov qword [rsi + 0x20], r12
xor r8d, r8d
lea rdx, [0x1801379c0]
mov rcx, rsi
call fcn.180024450
jmp 0x1800133cf
mov dword [rsp + 0x20], r12d
mov r9d, reloc.WLDAP32.dll_Ordinal_32
lea r8, str.ChainingModeGCM
lea rdx, str.ChainingMode
mov rcx, qword [rbp - 0x78]
call qword [sym.imp.bcrypt.dll_BCryptSetProperty]
mov ebx, eax
test eax, eax
jns 0x1800131cd
lea rdx, str.BCryptSetProperty_failed_with_status:
lea rcx, [0x18014c9d0]
call fcn.180022020
mov edx, ebx
mov rcx, rax
call fcn.18001be10
mov rcx, rax
call fcn.1800222d0
xor edx, edx
mov rcx, qword [rbp - 0x78]
call qword [sym.imp.bcrypt.dll_BCryptCloseAlgorithmProvider]
jmp 0x180013145
mov dword [rsp + 0x30], r12d
mov eax, dword [r15]
mov dword [rsp + 0x28], eax
mov rax, qword [r15 + 8]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea rdx, [rbp - 0x70]
mov rcx, qword [rbp - 0x78]
call qword [sym.imp.bcrypt.dll_BCryptGenerateSymmetricKey]
mov ebx, eax
test eax, eax
jns 0x180013205
lea rdx, str.BcryptGenertaeSymmetricKey_failed_with_status:
jmp 0x18001319e
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp - 0x60], xmm0
movups xmmword [rbp - 0x50], xmm0
movups xmmword [rbp - 0x40], xmm0
movups xmmword [rbp - 0x30], xmm0
movups xmmword [rbp - 0x20], xmm0
mov qword [rbp - 0x10], rax
mov dword [rbp - 0x60], 0x58
mov dword [rbp - 0x5c], 1
add r14, 0xffffffffffffffe1
mov rax, qword [rbp + 0x38]
mov qword [rbp - 0x58], rax
mov dword [rbp - 0x50], listen
mov rdx, qword [rbp + 0x18]
lea rax, [rdx + r14]
mov qword [rbp - 0x38], rax
mov dword [rbp - 0x30], reloc.WS2_32.dll_recv
mov dword [rsp + 0x48], r12d
lea rax, [rbp + 0x70]
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x38], r12d
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], r12d
mov qword [rsp + 0x20], r12
lea r9, [rbp - 0x60]
mov r8d, r14d
mov rcx, qword [rbp - 0x70]
call qword [sym.imp.bcrypt.dll_BCryptDecrypt]
mov ebx, eax
test eax, eax
jns 0x18001329b
lea rdx, str.BCryptDecrypt__1__failed_with_status:
jmp 0x180013127
mov edx, dword [rbp + 0x70]
lea rcx, [rbp + 0x50]
call fcn.180018840
mov dword [rsp + 0x48], r12d
lea rax, [rbp + 0x70]
mov qword [rsp + 0x40], rax
mov eax, dword [rbp + 0x70]
mov dword [rsp + 0x38], eax
mov rax, qword [rbp + 0x58]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], r12d
mov qword [rsp + 0x20], r12
lea r9, [rbp - 0x60]
mov r8d, r14d
mov rdx, qword [rbp + 0x18]
mov rcx, qword [rbp - 0x70]
call qword [sym.imp.bcrypt.dll_BCryptDecrypt]
mov ebx, eax
test eax, eax
jns 0x1800132f6
lea rdx, str.BCrypt_Decrypt__2__failed_with_status:
jmp 0x180013127
xor edx, edx
mov rcx, qword [rbp - 0x78]
call qword [sym.imp.bcrypt.dll_BCryptCloseAlgorithmProvider]
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x50], xmm0
mov rax, qword [rbp + 0x60]
mov qword [rsp + 0x60], rax
mov edx, 3
lea rcx, [rbp + 0x78]
call fcn.18002a500
mov rbx, qword [rbp + 0x50]
mov rax, qword [rsp + 0x50]
cmp rax, rbx
je 0x180013356
test rax, rax
je 0x18001333f
lea rcx, [rsp + 0x50]
call fcn.180009ea0
mov rax, qword [rbx + 8]
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x50]
mov qword [rbx + 8], rax
mov qword [rsp + 0x50], rbx
lea rcx, [rbp + 0x78]
call fcn.18002a5e0
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x68], xmm0
mov rax, qword [rbp + 0x58]
mov qword [rsp + 0x78], rax
mov edx, 3
lea rcx, [rbp + 0x78]
call fcn.18002a500
mov rbx, qword [rbp + 0x50]
mov rax, qword [rsp + 0x68]
cmp rax, rbx
je 0x1800133b3
test rax, rax
je 0x18001339c
lea rcx, [rsp + 0x68]
call fcn.180009ea0
mov rax, qword [rbx + 8]
mov qword [rsp + 0x70], rax
lea rax, [rsp + 0x68]
mov qword [rbx + 8], rax
mov qword [rsp + 0x68], rbx
lea rcx, [rbp + 0x78]
call fcn.18002a5e0
lea r8, [rsp + 0x50]
lea rdx, [rsp + 0x68]
mov rcx, rsi
call fcn.1800230a0
nop
lea rcx, [rbp + 0x30]
call fcn.1800096b0
mov rdx, qword [rbp + 0x38]
test rdx, rdx
je 0x1800133f9
mov r8, qword [rbp + 0x48]
sub r8, rdx
call fcn.1800099c0
xorps xmm0, xmm0
movdqu xmmword [rbp + 0x38], xmm0
mov qword [rbp + 0x48], r12
mov rcx, qword [rbp + 0x30]
mov qword [rbp + 0x30], r12
mov edx, reloc.WS2_32.dll_recv
call fcn.180028cb0
nop
lea rcx, [rbp + 0x50]
call fcn.1800096b0
mov rdx, qword [rbp + 0x58]
test rdx, rdx
je 0x180013436
mov r8, qword [rbp + 0x68]
sub r8, rdx
call fcn.1800099c0
xorps xmm0, xmm0
movdqu xmmword [rbp + 0x58], xmm0
mov qword [rbp + 0x68], r12
mov rcx, qword [rbp + 0x50]
mov qword [rbp + 0x50], r12
mov edx, reloc.WS2_32.dll_recv
call fcn.180028cb0
nop
lea rcx, [rbp + 0x10]
call fcn.1800096b0
mov rdx, qword [rbp + 0x18]
test rdx, rdx
je 0x180013473
mov r8, qword [rbp + 0x28]
sub r8, rdx
call fcn.1800099c0
xorps xmm0, xmm0
movdqu xmmword [rbp + 0x18], xmm0
mov qword [rbp + 0x28], r12
mov rcx, qword [rbp + 0x10]
mov qword [rbp + 0x10], r12
mov edx, reloc.WS2_32.dll_recv
call fcn.180028cb0
nop
mov rcx, rdi
call fcn.1800096b0
mov r8, qword [rdi + 0x20]
cmp r8, 0xf
jbe 0x1800134a7
inc r8
mov rdx, qword [rdi + 8]
mov rcx, rdi
call fcn.1800099c0
mov qword [rdi + 0x18], r12
mov qword [rdi + 0x20], reloc.WS2_32.dll_ntohs
mov byte [rdi + 8], 0
mov rcx, qword [rdi]
mov qword [rdi], r12
mov edx, reloc.WS2_32.dll_recv
call fcn.180028cb0
mov rax, rsi
mov rcx, qword [rbp + 0x88]
xor rcx, rsp
call fcn.180028950
add rsp, 0x190
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
call fcn.180025ff0
nop
int3