Function at 0x1400739a0
Capabilities:
Encrypt or decrypt via wincrypt

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x548]
sub rsp, 0x648
mov rax, qword [0x1403ceac0]
xor rax, rsp
mov qword [rbp + 0x538], rax
mov r15, r9
mov r14d, r8d
mov r12, rdx
mov rsi, rcx
mov qword [rsp + 0x40], rcx
mov r13, qword [rbp + 0x5b0]
cmp qword [rcx + 0x10], 0
jne 0x140073b22
xor eax, eax
mov qword [rbp + 8], rax
mov qword [rbp + 0x10], 7
mov word [rbp - 8], ax
mov qword [rbp + 0x28], rax
mov qword [rbp + 0x30], 7
mov word [rbp + 0x18], ax
mov ebx, 1
mov edx, ebx
lea rcx, [rbp + 0x40]
call fcn.140029460
nop
nop dword [rax]
nop word [rax + rax]
xor eax, eax
lock cmpxchg dword [0x1403e3090], ebx
test eax, eax
je 0x140073a4d
cmp eax, 1
jne 0x140073a6b
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x140073a30
call fcn.14002b3e0
mov qword [0x1403e3098], rax
neg rax
sbb ecx, ecx
and ecx, 2
mov eax, ebx
lock cmpxchg dword [0x1403e3090], ecx
mov rcx, qword [0x1403e3098]
mov qword [rbp + 0x138], rcx
add rcx, 0x28
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rax, qword [rbp + 0x138]
mov dword [rax + 8], 4
mov rax, qword [rbp + 0x138]
mov dword [rax + 0x10], 0x121
lea rdi, str.CPcCrypt::EncryptData
mov qword [rax + 0x18], rdi
lea rdx, str.E:BT3304243d_d858_4efc_85b8_b3526d9f21d2PartnerCustomSharedSrcPCCryptoPCCrypt.cpp
mov qword [rax + 0x20], rdx
mov dword [rbp - 0x10], 0x121
mov r8d, 0x58
lea rcx, [rbp - 8]
call fcn.14002b640
mov dword [rbp + 0x38], 4
mov r8d, reloc.WS2_32.dll_setsockopt
mov rdx, rdi
lea rcx, [rbp + 0x18]
call fcn.14002b640
nop
lea rdx, str.Encrypt_data_failed__key_not_initialized.
lea rcx, [rsp + 0x70]
call fcn.1400270c0
nop
mov rdx, rax
lea rcx, [rbp - 0x10]
call fcn.14002be60
nop
lea rcx, [rsp + 0x70]
call fcn.14002ce60
nop
lea rcx, [rbp - 0x10]
call fcn.140028cd0
mov eax, 0x139f
jmp 0x14007402d
test r8d, r8d
je 0x140073ee6
cmp qword [rdx], 0
je 0x140073ee6
mov dword [r13], r14d
lea ecx, [r14 + r14]
call fcn.1402974ec
mov rdi, rax
movzx ecx, byte [rbp + 0x530]
mov byte [rbp + 0x530], cl
mov qword [rsp + 0x58], rax
lea rax, [rbp + 0x530]
mov qword [rsp + 0x60], rax
mov byte [rsp + 0x68], 1
mov ecx, 0x18
call fcn.140296fc8
mov qword [rsp + 0x48], rax
xorps xmm0, xmm0
movups xmmword [rax], xmm0
mov ebx, 1
mov dword [rax + 8], ebx
mov dword [rax + 0xc], ebx
lea rcx, vtable.._AV___Ref_count_resource_PEAEU__default_delete___BY0A_E_std___std__.0
mov qword [rax], rcx
mov qword [rax + 0x10], rdi
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x50], rax
lea rdx, [rsp + 0x48]
mov rcx, r15
call fcn.14003b2e0
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x140073bed
mov esi, 0xffffffff
mov eax, esi
lock xadd dword [rcx + 8], eax
cmp eax, ebx
jne 0x140073be8
mov rdi, qword [rsp + 0x50]
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax]
lock xadd dword [rdi + 0xc], esi
cmp esi, ebx
jne 0x140073be8
mov rcx, qword [rsp + 0x50]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [r15]
test rdi, rdi
jne 0x140073d42
xor eax, eax
mov qword [rbp + 0x158], rax
mov qword [rbp + 0x160], 7
mov word [rbp + 0x148], ax
mov qword [rbp + 0x178], rax
mov qword [rbp + 0x180], 7
mov word [rbp + 0x168], ax
mov edx, ebx
lea rcx, [rbp + 0x190]
call fcn.140029460
nop
nop dword [rax]
xor eax, eax
lock cmpxchg dword [0x1403e3090], ebx
test eax, eax
je 0x140073c5d
cmp eax, 1
jne 0x140073c7b
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x140073c40
call fcn.14002b3e0
mov qword [0x1403e3098], rax
neg rax
sbb ecx, ecx
and ecx, 2
mov eax, ebx
lock cmpxchg dword [0x1403e3090], ecx
mov rcx, qword [0x1403e3098]
mov qword [rbp + 0x288], rcx
add rcx, 0x28
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rax, qword [rbp + 0x288]
mov dword [rax + 8], 4
mov rax, qword [rbp + 0x288]
mov dword [rax + 0x10], 0x12d
lea rdi, str.CPcCrypt::EncryptData
mov qword [rax + 0x18], rdi
lea rdx, str.E:BT3304243d_d858_4efc_85b8_b3526d9f21d2PartnerCustomSharedSrcPCCryptoPCCrypt.cpp
mov qword [rax + 0x20], rdx
mov dword [rbp + 0x140], 0x12d
mov r8d, 0x58
lea rcx, [rbp + 0x148]
call fcn.14002b640
mov dword [rbp + 0x188], 4
mov r8d, reloc.WS2_32.dll_setsockopt
mov rdx, rdi
lea rcx, [rbp + 0x168]
call fcn.14002b640
nop
lea rdx, str.Encrypt_data_failed__memory_related_problems.
lea rcx, [rbp - 0x70]
call fcn.1400270c0
nop
mov rdx, rax
lea rcx, [rbp + 0x140]
call fcn.14002be60
nop
lea rcx, [rbp - 0x70]
call fcn.14002ce60
nop
lea rcx, [rbp + 0x140]
call fcn.140028cd0
mov eax, 8
jmp 0x14007402d
mov ecx, dword [r13]
add ecx, r14d
xor eax, eax
rep stosb byte [rdi], al
mov edx, dword [r13]
add edx, r14d
mov r9, r14
mov r8, qword [r12]
mov rcx, qword [r15]
call fcn.14003b6e0
mov edx, dword [r13]
add edx, r14d
mov rax, qword [r15]
mov dword [rsp + 0x30], edx
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov r8d, ebx
xor edx, edx
mov rcx, qword [rsi + 0x10]
call qword [sym.imp.ADVAPI32.dll_CryptEncrypt]
mov esi, eax
cmp eax, 1
je 0x140073edf
xor eax, eax
mov qword [rbp + 0x2a8], rax
mov qword [rbp + 0x2b0], 7
mov word [rbp + 0x298], ax
mov qword [rbp + 0x2c8], rax
mov qword [rbp + 0x2d0], 7
mov word [rbp + 0x2b8], ax
mov edx, ebx
lea rcx, [rbp + 0x2e0]
call fcn.140029460
nop
nop dword [rax + rax]
xor eax, eax
lock cmpxchg dword [0x1403e3090], ebx
test eax, eax
je 0x140073dfd
cmp eax, 1
jne 0x140073e1b
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x140073de0
call fcn.14002b3e0
mov qword [0x1403e3098], rax
neg rax
sbb ecx, ecx
and ecx, 2
mov eax, ebx
lock cmpxchg dword [0x1403e3090], ecx
mov rcx, qword [0x1403e3098]
mov qword [rbp + 0x3d8], rcx
add rcx, 0x28
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rax, qword [rbp + 0x3d8]
mov dword [rax + 8], 4
mov rax, qword [rbp + 0x3d8]
mov dword [rax + 0x10], 0x138
lea rdi, str.CPcCrypt::EncryptData
mov qword [rax + 0x18], rdi
lea rdx, str.E:BT3304243d_d858_4efc_85b8_b3526d9f21d2PartnerCustomSharedSrcPCCryptoPCCrypt.cpp
mov qword [rax + 0x20], rdx
mov dword [rbp + 0x290], 0x138
mov r8d, 0x58
lea rcx, [rbp + 0x298]
call fcn.14002b640
mov dword [rbp + 0x2d8], 4
mov r8d, reloc.WS2_32.dll_setsockopt
mov rdx, rdi
lea rcx, [rbp + 0x2b8]
call fcn.14002b640
nop
lea rdx, str.Encrypt_data_failed__CryptEncrypt_call_failed.
lea rcx, [rbp - 0x50]
call fcn.1400270c0
nop
mov rdx, rax
lea rcx, [rbp + 0x290]
call fcn.14002be60
nop
lea rcx, [rbp - 0x50]
call fcn.14002ce60
nop
lea rcx, [rbp + 0x290]
call fcn.140028cd0
mov eax, esi
jmp 0x14007402d
xor eax, eax
jmp 0x14007402d
xor eax, eax
mov qword [rbp + 0x3f8], rax
mov qword [rbp + 0x400], 7
mov word [rbp + 0x3e8], ax
mov qword [rbp + 0x418], rax
mov qword [rbp + 0x420], 7
mov word [rbp + 0x408], ax
mov ebx, 1
mov edx, ebx
lea rcx, [rbp + 0x430]
call fcn.140029460
nop
nop
xor eax, eax
lock cmpxchg dword [0x1403e3090], ebx
test eax, eax
je 0x140073f4d
cmp eax, 1
jne 0x140073f6b
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x140073f30
call fcn.14002b3e0
mov qword [0x1403e3098], rax
neg rax
sbb ecx, ecx
and ecx, 2
mov eax, ebx
lock cmpxchg dword [0x1403e3090], ecx
mov rcx, qword [0x1403e3098]
mov qword [rbp + 0x528], rcx
add rcx, 0x28
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rax, qword [rbp + 0x528]
mov dword [rax + 8], 4
mov rax, qword [rbp + 0x528]
mov dword [rax + 0x10], 0x126
lea rdi, str.CPcCrypt::EncryptData
mov qword [rax + 0x18], rdi
lea rdx, str.E:BT3304243d_d858_4efc_85b8_b3526d9f21d2PartnerCustomSharedSrcPCCryptoPCCrypt.cpp
mov qword [rax + 0x20], rdx
mov dword [rbp + 0x3e0], 0x126
mov r8d, 0x58
lea rcx, [rbp + 0x3e8]
call fcn.14002b640
mov dword [rbp + 0x428], 4
mov r8d, reloc.WS2_32.dll_setsockopt
mov rdx, rdi
lea rcx, [rbp + 0x408]
call fcn.14002b640
nop
lea rdx, str.Encrypt_data_failed__size_and_input_are_invalid.
lea rcx, [rbp - 0x30]
call fcn.1400270c0
nop
mov rdx, rax
lea rcx, [rbp + 0x3e0]
call fcn.14002be60
nop
lea rcx, [rbp - 0x30]
call fcn.14002ce60
nop
lea rcx, [rbp + 0x3e0]
call fcn.140028cd0
mov eax, 0x57
mov rcx, qword [rbp + 0x538]
xor rcx, rsp
call fcn.140296f70
add rsp, 0x648
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret