Function at 0x140229510
Capabilities:
Hash data via wincrypt

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x110]
sub rsp, 0x210
mov rax, qword [0x1403ceac0]
xor rax, rsp
mov qword [rbp + 0x108], rax
mov rdi, rdx
mov r14, rcx
mov qword [rbp + 0x30], rdx
xor r15d, r15d
mov dword [rsp + 0x34], r15d
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
je 0x1402299ba
mov dword [rsp + 0x38], r15d
mov dword [rsp + 0x20], r15d
lea r9, [rsp + 0x38]
xor r8d, r8d
lea edx, [r15 + 2]
mov rcx, qword [r14]
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
je 0x1402299fa
mov esi, dword [rsp + 0x38]
mov qword [rdi], r15
mov qword [rdi + 8], r15
mov qword [rdi + 0x10], r15
test rsi, rsi
je 0x140229609
cmp rsi, 0x1000
jb 0x1402295db
lea rcx, [rsi + 0x27]
cmp rcx, rsi
jbe 0x140229a3a
call fcn.140296fc8
mov rcx, rax
test rax, rax
je 0x140229a40
add rax, 0x27
and rax, 0xffffffffffffffe0
mov qword [rax - 8], rcx
jmp 0x1402295e3
mov rcx, rsi
call fcn.140296fc8
mov qword [rdi], rax
mov qword [rdi + 8], rax
add rax, rsi
mov qword [rdi + 0x10], rax
mov rbx, qword [rdi]
mov r8, rsi
xor edx, edx
mov rcx, rbx
call fcn.1402b60e0
lea rax, [rbx + rsi]
mov qword [rdi + 8], rax
mov dword [rsp + 0x34], 1
mov dword [rsp + 0x20], r15d
lea r9, [rsp + 0x38]
mov r8, qword [rdi]
mov edx, 2
mov rcx, qword [r14]
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
je 0x140229a46
lea rax, [0x1403152e8]
mov qword [rsp + 0x40], rax
mov qword [rbp - 0x30], r15
mov qword [rbp - 8], r15
xorps xmm0, xmm0
movdqa xmmword [rbp], xmm0
lea rax, vtable.std::basic_ios_char__struct_std::char_traits_char__.0
mov qword [rbp - 0x38], rax
mov dword [rsp + 0x34], 3
xor r9d, r9d
xor r8d, r8d
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x40]
call fcn.14012a700
nop
mov rax, qword [rsp + 0x40]
movsxd rcx, dword [rax + 4]
lea r12, vtable.std::basic_ostringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov qword [rsp + rcx + 0x40], r12
mov rax, qword [rsp + 0x40]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x88]
mov dword [rsp + rcx + 0x3c], edx
lea rax, vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
mov qword [rsp + 0x48], rax
mov ecx, reloc.WS2_32.dll_recv
call fcn.140296fc8
mov rbx, rax
test rax, rax
je 0x1402296cc
mov cl, 1
call fcn.1400fd0ac
mov qword [rbx + 8], rax
jmp 0x1402296cf
mov rbx, r15
mov qword [rbp - 0x58], rbx
lea rax, [rsp + 0x50]
mov qword [rsp + 0x60], rax
lea rax, [rsp + 0x58]
mov qword [rsp + 0x68], rax
lea rax, [rsp + 0x70]
mov qword [rbp - 0x80], rax
lea rax, [rsp + 0x78]
mov qword [rbp - 0x78], rax
lea rax, [rbp - 0x70]
mov qword [rbp - 0x68], rax
lea rax, [rbp - 0x6c]
mov qword [rbp - 0x60], rax
mov qword [rsp + 0x58], r15
mov qword [rsp + 0x78], r15
mov qword [rbp - 0x70], r15
mov qword [rsp + 0x50], r15
mov qword [rsp + 0x70], r15
lea rax, vtable.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov qword [rsp + 0x48], rax
mov qword [rbp - 0x50], r15
mov dword [rbp - 0x48], 4
mov rax, qword [rsp + 0x40]
movsxd rcx, dword [rax + 4]
or dword [rsp + rcx + 0x58], 4
mov rax, qword [rsp + 0x40]
movsxd rcx, dword [rax + 4]
mov eax, dword [rsp + rcx + 0x58]
and eax, 0xfffffebf
bts eax, 7
mov dword [rsp + rcx + 0x58], eax
mov rax, qword [rsp + 0x40]
movsxd rcx, dword [rax + 4]
mov eax, dword [rsp + rcx + 0x58]
and eax, 0xfffff9ff
bts eax, 0xb
mov dword [rsp + rcx + 0x58], eax
mov r14, qword [rdi + 8]
mov rsi, qword [rdi]
cmp rsi, r14
je 0x1402297de
nop word [rax + rax]
movzx ebx, byte [rsi]
mov edx, 2
lea rcx, [rbp + 0x58]
call fcn.1402ea0c8
mov r8, qword [rax]
mov rcx, qword [rsp + 0x40]
movsxd rdx, dword [rcx + 4]
lea rcx, [rsp + 0x40]
add rcx, rdx
mov rdx, qword [rax + 8]
call r8
mov rax, qword [rsp + 0x40]
movsxd rcx, dword [rax + 4]
mov byte [rbp + rcx - 0x68], 0x30
mov edx, ebx
lea rcx, [rsp + 0x40]
call fcn.14012ac30
inc rsi
cmp rsi, r14
jne 0x140229790
mov qword [rbp + 0x38], r15
mov r9, r15
mov qword [rbp + 0x48], r15
mov edx, select
mov qword [rbp + 0x50], rdx
mov byte [rbp + 0x38], r9b
mov dword [rsp + 0x34], select
xorps xmm0, xmm0
movups xmmword [rbp + 0x58], xmm0
mov ecx, dword [rbp - 0x48]
mov eax, ecx
and al, 0x22
cmp al, 2
je 0x140229832
mov rax, qword [rbp - 0x78]
mov r8, qword [rax]
test r8, r8
je 0x140229832
mov rax, qword [rsp + 0x68]
mov rcx, qword [rax]
cmp r8, qword [rbp - 0x50]
cmovb r8, qword [rbp - 0x50]
sub r8, rcx
jmp 0x140229862
test cl, 4
jne 0x14022985a
mov rax, qword [rbp - 0x80]
mov r10, qword [rax]
test r10, r10
je 0x14022985a
mov rax, qword [rsp + 0x60]
mov rcx, qword [rax]
mov rax, qword [rbp - 0x68]
movsxd r8, dword [rax]
sub r8, rcx
add r8, r10
jmp 0x140229862
mov r8, qword [rbp + 0x60]
mov rcx, qword [rbp + 0x58]
test rcx, rcx
je 0x14022987b
mov rdx, rcx
lea rcx, [rbp + 0x38]
call fcn.14002cad0
mov rdx, qword [rbp + 0x50]
mov r9, qword [rbp + 0x48]
mov dword [rsp + 0x34], 7
mov rax, qword [rdi]
mov qword [rdi + 8], rax
lea rsi, [rbp + 0x38]
mov rcx, qword [rbp + 0x38]
cmp rdx, 0x10
cmovae rsi, rcx
add rsi, r9
lea rbx, [rbp + 0x38]
cmp rdx, 0x10
cmovae rbx, rcx
cmp rbx, rsi
je 0x1402298e6
nop
movzx eax, byte [rbx]
mov byte [rsp + 0x30], al
mov rdx, qword [rdi + 8]
cmp rdx, qword [rdi + 0x10]
je 0x1402298c9
mov byte [rdx], al
inc qword [rdi + 8]
jmp 0x1402298d6
lea r8, [rsp + 0x30]
mov rcx, rdi
call fcn.1400cdc40
inc rbx
cmp rbx, rsi
jne 0x1402298b0
mov rdx, qword [rbp + 0x50]
mov rcx, qword [rbp + 0x38]
cmp rdx, 0x10
jb 0x140229919
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140229914
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1402299b4
call fcn.140296f94
mov qword [rbp + 0x48], r15
mov qword [rbp + 0x50], setsockopt
mov byte [rbp + 0x38], 0
mov rax, qword [rsp + 0x40]
movsxd rcx, dword [rax + 4]
mov qword [rsp + rcx + 0x40], r12
mov rax, qword [rsp + 0x40]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x88]
mov dword [rsp + rcx + 0x3c], edx
lea rcx, [rsp + 0x48]
call fcn.14012ab30
mov rax, qword [rsp + 0x40]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov qword [rsp + rcx + 0x40], rax
mov rcx, qword [rsp + 0x40]
movsxd rdx, dword [rcx + 4]
lea r8d, [rdx - 0x10]
mov dword [rsp + rdx + 0x3c], r8d
lea rax, vtable.std::ios_base.0
mov qword [rbp - 0x38], rax
lea rcx, [rbp - 0x38]
call fcn.1400fd440
nop
mov rax, rdi
mov rcx, qword [rbp + 0x108]
xor rcx, rsp
call fcn.140296f70
add rsp, 0x210
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
call fcn.1402ba3ec
nop
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
lea rdx, [0x14032ac38]
lea rcx, [rbp + 0x58]
call fcn.14002b3a0
nop
mov r8d, ebx
lea rdx, [rbp + 0x58]
lea rcx, [rbp + 0xd0]
call fcn.140228c90
lea rdx, [0x1403c5d28]
lea rcx, [rbp + 0xd0]
call fcn.1402b5304
nop
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
lea rdx, [0x14032ac58]
lea rcx, [rbp + 0x78]
call fcn.14002b3a0
nop
mov r8d, ebx
lea rdx, [rbp + 0x78]
lea rcx, [rbp + 0x98]
call fcn.140228c90
lea rdx, [0x1403c5d28]
lea rcx, [rbp + 0x98]
call fcn.1402b5304
nop
call fcn.14002c9b0
int3
call fcn.1402ba3ec
int3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
lea rdx, [0x14032ac58]
lea rcx, [rbp + 0x78]
call fcn.14002b3a0
nop
mov r8d, ebx
lea rdx, [rbp + 0x78]
lea rcx, [rbp + 0x98]
call fcn.140228c90
lea rdx, [0x1403c5d28]
lea rcx, [rbp + 0x98]
call fcn.1402b5304
int3