Function at 0x140211d00
Capabilities:
Hash data via wincrypt

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x120]
sub rsp, 0x220
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov rax, qword [0x1403ddfb8]
xor rax, rsp
mov qword [rbp + 0x110], rax
mov rsi, rdx
mov rbx, rcx
mov qword [rsp + 0x48], rdx
xor r12d, r12d
mov dword [rsp + 0x38], r12d
mov rdx, qword [r8]
mov r8, qword [r8 + 8]
sub r8, rdx
xor r9d, r9d
mov rcx, qword [rcx]
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
jne 0x140211dc4
mov qword [rbp + 0x98], 7
mov qword [rbp + 0x90], r12
mov word [rbp + 0x80], r12w
lea r8d, [r12 + 0xd]
lea rdx, [0x140307e68]
lea rcx, [rbp + 0x80]
call fcn.14002c3d0
nop
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, [rbp + 0x80]
lea rcx, [rbp + 0xd8]
call fcn.1402116a0
lea rdx, [0x1403d6698]
lea rcx, [rbp + 0xd8]
call fcn.14028e980
nop
mov dword [rsp + 0x34], r12d
mov dword [rsp + 0x20], r12d
lea r9, [rsp + 0x34]
xor r8d, r8d
lea edx, [r8 + 2]
mov rcx, qword [rbx]
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
jne 0x140211e3a
mov qword [rbp + 0x78], 7
mov qword [rbp + 0x70], r12
mov word [rbp + 0x60], r12w
lea r8d, [rax + 0x11]
lea rdx, [0x140307e88]
lea rcx, [rbp + 0x60]
call fcn.14002c3d0
nop
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, [rbp + 0x60]
lea rcx, [rbp + 0xa0]
call fcn.1402116a0
lea rdx, [0x1403d6698]
lea rcx, [rbp + 0xa0]
call fcn.14028e980
nop
mov byte [rsp + 0x30], r12b
mov edx, dword [rsp + 0x34]
mov qword [rsi], r12
mov qword [rsi + 8], r12
mov qword [rsi + 0x10], r12
lea r8, [rsp + 0x30]
mov rcx, rsi
call fcn.140132e20
mov dword [rsp + 0x38], 1
mov dword [rsp + 0x20], r12d
lea r9, [rsp + 0x34]
mov r8, qword [rsi]
mov edx, 2
mov rcx, qword [rbx]
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
jne 0x140211ed5
mov qword [rbp + 0x78], 7
mov qword [rbp + 0x70], r12
mov word [rbp + 0x60], r12w
lea r8d, [rax + 0x11]
lea rdx, [0x140307e88]
lea rcx, [rbp + 0x60]
call fcn.14002c3d0
nop
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, [rbp + 0x60]
lea rcx, [rbp + 0xa0]
call fcn.1402116a0
lea rdx, [0x1403d6698]
lea rcx, [rbp + 0xa0]
call fcn.14028e980
nop
mov edx, 2
lea r8d, [rdx - 1]
lea rcx, [rsp + 0x50]
call fcn.140211270
nop
mov rax, qword [rsp + 0x50]
movsxd rcx, dword [rax + 4]
or dword [rsp + rcx + 0x68], 4
mov rax, qword [rsp + 0x50]
movsxd rcx, dword [rax + 4]
and dword [rsp + rcx + 0x68], 0xfffffebf
or dword [rsp + rcx + 0x68], 0x80
mov rax, qword [rsp + 0x50]
movsxd rcx, dword [rax + 4]
and dword [rsp + rcx + 0x68], 0xfffff9ff
or dword [rsp + rcx + 0x68], 0x800
mov rbx, qword [rsi]
mov r14, r12
mov r15, qword [rsi + 8]
sub r15, rbx
cmp rbx, qword [rsi + 8]
cmova r15, r12
test r15, r15
je 0x140211fa1
nop dword [rax]
nop word [rax + rax]
movzx edi, byte [rbx]
mov edx, 2
lea rcx, [rbp + 0x80]
call fcn.1402beaf8
mov rcx, qword [rsp + 0x50]
movsxd rdx, dword [rcx + 4]
lea rcx, [rsp + 0x50]
add rcx, rdx
mov rdx, qword [rax + 8]
call qword [rax]
mov rax, qword [rsp + 0x50]
movsxd rcx, dword [rax + 4]
mov byte [rbp + rcx - 0x58], 0x30
mov edx, edi
lea rcx, [rsp + 0x50]
call fcn.1401326a0
lea rbx, [rbx + 1]
inc r14
cmp r14, r15
jne 0x140211f50
lea rdx, [rbp + 0x40]
lea rcx, [rsp + 0x50]
call fcn.1401347a0
nop
mov rax, qword [rsi]
mov qword [rsi + 8], rax
lea rdx, [rbp + 0x40]
cmp qword [rbp + 0x58], 0x10
cmovae rdx, qword [rbp + 0x40]
mov r8, qword [rbp + 0x50]
add r8, rdx
lea rdx, [rbp + 0x40]
cmp qword [rbp + 0x58], 0x10
cmovae rdx, qword [rbp + 0x40]
xor eax, eax
mov byte [rsp + 0x20], al
mov r9, rsi
lea rcx, [rbp + 0x80]
call fcn.1402110f0
nop
mov rax, qword [rbp + 0x58]
cmp rax, 0x10
jb 0x140212046
inc rax
mov rcx, qword [rbp + 0x40]
cmp rax, 0x1000
jb 0x140212041
test cl, 0x1f
je 0x140212014
call fcn.14029051c
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x140212023
call fcn.14029051c
int3
sub rcx, rax
cmp rcx, 8
jae 0x140212032
call fcn.14029051c
int3
cmp rcx, 0x27
jbe 0x14021203e
call fcn.14029051c
int3
mov rcx, rax
call fcn.14026d850
mov qword [rbp + 0x58], sendto
mov qword [rbp + 0x50], r12
mov byte [rbp + 0x40], 0
lea rcx, [rbp - 0x28]
call fcn.1401321f0
nop
lea rax, vtable.std::ios_base.0
mov qword [rbp - 0x28], rax
lea rcx, [rbp - 0x28]
call fcn.140108600
nop
mov rax, rsi
mov rcx, qword [rbp + 0x110]
xor rcx, rsp
call fcn.14026d870
add rsp, 0x220
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret