Function at 0x5000f120
Capabilities:
Decrypt data via sspi
Receive data
Receive data on socket

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x230
mov dword [rsp + 0x20], 0
mov rax, qword [rsp + 0x240]
add rax, 0x70
lea r8, [rsp + 0x188]
mov edx, 4
mov rcx, rax
call sub.Secur32.dll_QueryContextAttributesA
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
jge 0x5000f175
mov eax, 0xffffffff
jmp 0x5000fa64
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x24], 0
mov dword [rsp + 0x1a0], 0
lea rax, [rsp + 0x1a4]
mov rdi, rax
xor eax, eax
mov ecx, 0x4c
rep stosb byte [rdi], al
imul eax, dword [rsp + 0x190], 0xa
mov edx, eax
lea rcx, [rsp + 0x50]
call fcn.50007610
mov rax, qword [rsp + 0x240]
cmp dword [rax + 0x4b8], 0
je 0x5000f45f
mov rax, qword [rsp + 0x240]
mov eax, dword [rax + 0x4b8]
cmp dword [rsp + 0x250], eax
jg 0x5000f3af
mov rax, qword [rsp + 0x240]
mov rax, qword [rax + 0x4a8]
mov qword [rsp + 0x170], rax
movsxd rax, dword [rsp + 0x250]
mov r8, rax
mov rdx, qword [rsp + 0x170]
mov rcx, qword [rsp + 0x248]
call fcn.50005ea0
mov rax, qword [rsp + 0x240]
mov edx, dword [rax + 0x4b8]
lea rcx, [rsp + 0x178]
call fcn.50007610
mov rax, qword [rsp + 0x240]
movsxd rax, dword [rax + 0x4b8]
mov qword [rsp + 0xb8], rax
mov rax, qword [rsp + 0x208]
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x240]
mov rax, qword [rax + 0x4a8]
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x210]
mov qword [rsp + 0x80], rax
mov rax, qword [rsp + 0x178]
mov qword [rsp + 0x80], rax
mov r8, qword [rsp + 0xb8]
mov rdx, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x80]
call fcn.50005ea0
mov rax, qword [rsp + 0x240]
mov ecx, dword [rsp + 0x250]
mov eax, dword [rax + 0x4b8]
sub eax, ecx
cdqe
mov qword [rsp + 0xc8], rax
mov rax, qword [rsp + 0x178]
mov qword [rsp + 0xc0], rax
movsxd rax, dword [rsp + 0x250]
mov rcx, qword [rsp + 0xc0]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0xd0], rax
mov rax, qword [rsp + 0x218]
mov qword [rsp + 0x88], rax
mov rax, qword [rsp + 0x240]
mov rax, qword [rax + 0x4a8]
mov qword [rsp + 0x88], rax
mov r8, qword [rsp + 0xc8]
mov rdx, qword [rsp + 0xd0]
mov rcx, qword [rsp + 0x88]
call fcn.50005ea0
mov rax, qword [rsp + 0x240]
mov ecx, dword [rsp + 0x250]
mov eax, dword [rax + 0x4b8]
sub eax, ecx
mov rcx, qword [rsp + 0x240]
mov dword [rcx + 0x4b8], eax
mov eax, dword [rsp + 0x250]
mov dword [rsp + 0x60], eax
mov rax, qword [rsp + 0x178]
mov qword [rsp + 0xd8], rax
mov rcx, qword [rsp + 0xd8]
call fcn.50002860
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0xe0], rax
mov rcx, qword [rsp + 0xe0]
call fcn.50002860
mov eax, dword [rsp + 0x60]
jmp 0x5000fa64
mov rax, qword [rsp + 0x240]
movsxd rax, dword [rax + 0x4b8]
mov qword [rsp + 0xe8], rax
mov rax, qword [rsp + 0x220]
mov qword [rsp + 0x90], rax
mov rax, qword [rsp + 0x240]
mov rax, qword [rax + 0x4a8]
mov qword [rsp + 0x90], rax
mov r8, qword [rsp + 0xe8]
mov rdx, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x248]
call fcn.50005ea0
mov rax, qword [rsp + 0x240]
mov eax, dword [rax + 0x4b8]
mov dword [rsp + 0x250], eax
mov rax, qword [rsp + 0x240]
mov dword [rax + 0x4b8], 0
mov eax, dword [rsp + 0x250]
mov dword [rsp + 0x64], eax
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0xf0], rax
mov rcx, qword [rsp + 0xf0]
call fcn.50002860
mov eax, dword [rsp + 0x64]
jmp 0x5000fa64
mov eax, dword [rsp + 0x190]
mov dword [rsp + 0x40], eax
mov eax, dword [rsp + 0x190]
cmp dword [rsp + 0x40], eax
jbe 0x5000f482
mov eax, dword [rsp + 0x190]
mov dword [rsp + 0x40], eax
mov dword [rsp + 0x30], 0
mov rax, qword [rsp + 0x240]
cmp dword [rax + 0x4a0], 0
je 0x5000f553
mov rax, qword [rsp + 0x240]
movsxd rax, dword [rax + 0x4a0]
mov qword [rsp + 0x100], rax
mov rax, qword [rsp + 0x1f0]
mov qword [rsp + 0x98], rax
mov rax, qword [rsp + 0x240]
mov rax, qword [rax + 0x490]
mov qword [rsp + 0x98], rax
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0xf8], rax
movsxd rax, dword [rsp + 0x24]
mov rcx, qword [rsp + 0xf8]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x108], rax
mov r8, qword [rsp + 0x100]
mov rdx, qword [rsp + 0x98]
mov rcx, qword [rsp + 0x108]
call fcn.50005ea0
mov rax, qword [rsp + 0x240]
mov eax, dword [rax + 0x4a0]
mov ecx, dword [rsp + 0x24]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x24], eax
mov rax, qword [rsp + 0x240]
mov dword [rax + 0x4a0], 0
jmp 0x5000f5df
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x110], rax
movsxd rax, dword [rsp + 0x24]
mov rcx, qword [rsp + 0x110]
add rcx, rax
mov rax, rcx
xor r9d, r9d
mov r8d, dword [rsp + 0x40]
mov rdx, rax
mov rax, qword [rsp + 0x240]
mov rcx, qword [rax + 0x4d0]
call sub.WS2_32.dll_recv
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
je 0x5000f5a4
cmp dword [rsp + 0x30], 0xffffffff
jne 0x5000f5cf
mov eax, dword [rsp + 0x30]
mov dword [rsp + 0x68], eax
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x118], rax
mov rcx, qword [rsp + 0x118]
call fcn.50002860
mov eax, dword [rsp + 0x68]
jmp 0x5000fa64
mov eax, dword [rsp + 0x30]
mov ecx, dword [rsp + 0x24]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x24], eax
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x120], rax
mov eax, reloc.WS2_32.dll_recv
imul rax, rax, 0
mov rcx, qword [rsp + 0x120]
mov qword [rsp + rax + 0x1a8], rcx
mov eax, reloc.WS2_32.dll_recv
imul rax, rax, 0
mov ecx, dword [rsp + 0x24]
mov dword [rsp + rax + 0x1a0], ecx
mov eax, reloc.WS2_32.dll_recv
imul rax, rax, 0
mov dword [rsp + rax + 0x1a4], 1
mov eax, reloc.WS2_32.dll_recv
imul rax, rax, 1
mov dword [rsp + rax + 0x1a4], 0
mov eax, reloc.WS2_32.dll_recv
imul rax, rax, 2
mov dword [rsp + rax + 0x1a4], 0
mov eax, reloc.WS2_32.dll_recv
imul rax, rax, 3
mov dword [rsp + rax + 0x1a4], 0
mov rax, qword [rsp + 0x240]
mov dword [rax + 0x468], 0
mov rax, qword [rsp + 0x240]
lea rcx, [rsp + 0x1a0]
mov qword [rax + 0x470], rcx
mov rax, qword [rsp + 0x240]
mov dword [rax + 0x46c], 4
mov rax, qword [rsp + 0x240]
add rax, 0x468
mov rcx, qword [rsp + 0x240]
add rcx, 0x70
xor r9d, r9d
xor r8d, r8d
mov rdx, rax
call sub.Secur32.dll_DecryptMessage
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0x80090318
jne 0x5000f6df
jmp 0x5000f45f
cmp dword [rsp + 0x20], 0
je 0x5000f725
cmp dword [rsp + 0x20], 0x90321
je 0x5000f725
cmp dword [rsp + 0x20], 0x90317
je 0x5000f725
mov dword [rsp + 0x6c], 0xffffffff
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x128], rax
mov rcx, qword [rsp + 0x128]
call fcn.50002860
mov eax, dword [rsp + 0x6c]
jmp 0x5000fa64
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x48], 0
mov dword [rsp + 0x2c], 0
jmp 0x5000f74b
mov eax, dword [rsp + 0x2c]
inc eax
mov dword [rsp + 0x2c], eax
cmp dword [rsp + 0x2c], 4
jge 0x5000f7b6
cmp qword [rsp + 0x38], 0
jne 0x5000f783
movsxd rax, dword [rsp + 0x2c]
imul rax, rax, 0x10
cmp dword [rsp + rax + 0x1a4], 1
jne 0x5000f783
movsxd rax, dword [rsp + 0x2c]
imul rax, rax, 0x10
lea rax, [rsp + rax + 0x1a0]
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x48], 0
jne 0x5000f7b4
movsxd rax, dword [rsp + 0x2c]
imul rax, rax, 0x10
cmp dword [rsp + rax + 0x1a4], 5
jne 0x5000f7b4
movsxd rax, dword [rsp + 0x2c]
imul rax, rax, 0x10
lea rax, [rsp + rax + 0x1a0]
mov qword [rsp + 0x48], rax
jmp 0x5000f741
cmp qword [rsp + 0x48], 0
je 0x5000f881
mov rax, qword [rsp + 0x240]
mov rcx, qword [rsp + 0x48]
mov ecx, dword [rcx]
mov dword [rax + 0x4a0], ecx
mov rax, qword [rsp + 0x240]
add rax, 0x490
mov qword [rsp + 0x130], rax
mov rax, qword [rsp + 0x240]
mov eax, dword [rax + 0x4a0]
add eax, 0xa
mov edx, eax
mov rcx, qword [rsp + 0x130]
call fcn.5000c380
mov rax, qword [rsp + 0x240]
movsxd rax, dword [rax + 0x4a0]
mov qword [rsp + 0x138], rax
mov rax, qword [rsp + 0x48]
mov rax, qword [rax + 8]
mov qword [rsp + 0x140], rax
mov rax, qword [rsp + 0x1f8]
mov qword [rsp + 0xa0], rax
mov rax, qword [rsp + 0x240]
mov rax, qword [rax + 0x490]
mov qword [rsp + 0xa0], rax
mov r8, qword [rsp + 0x138]
mov rdx, qword [rsp + 0x140]
mov rcx, qword [rsp + 0xa0]
call fcn.50005ea0
mov dword [rsp + 0x24], 0
cmp dword [rsp + 0x20], 0x90321
jne 0x5000f8ce
mov rcx, qword [rsp + 0x240]
call fcn.50007750
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
jge 0x5000f8ce
mov dword [rsp + 0x70], 0xffffffff
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x148], rax
mov rcx, qword [rsp + 0x148]
call fcn.50002860
mov eax, dword [rsp + 0x70]
jmp 0x5000fa64
cmp qword [rsp + 0x38], 0
jne 0x5000f8db
jmp 0x5000fa3e
mov rax, qword [rsp + 0x38]
mov eax, dword [rax]
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x250]
cmp dword [rsp + 0x28], eax
jg 0x5000f916
movsxd rax, dword [rsp + 0x28]
mov r8, rax
mov rax, qword [rsp + 0x38]
mov rdx, qword [rax + 8]
mov rcx, qword [rsp + 0x248]
call fcn.50005ea0
jmp 0x5000fa37
mov eax, dword [rsp + 0x250]
mov dword [rsp + 0x28], eax
movsxd rax, dword [rsp + 0x28]
mov r8, rax
mov rax, qword [rsp + 0x38]
mov rdx, qword [rax + 8]
mov rcx, qword [rsp + 0x248]
call fcn.50005ea0
mov rax, qword [rsp + 0x38]
mov ecx, dword [rsp + 0x28]
mov eax, dword [rax]
sub eax, ecx
mov rcx, qword [rsp + 0x240]
mov dword [rcx + 0x4b8], eax
mov rax, qword [rsp + 0x240]
add rax, 0x4a8
mov qword [rsp + 0x150], rax
mov rax, qword [rsp + 0x240]
mov eax, dword [rax + 0x4b8]
add eax, 0x64
mov edx, eax
mov rcx, qword [rsp + 0x150]
call fcn.5000c380
mov rax, qword [rsp + 0x240]
add rax, 0x4a8
mov qword [rsp + 0xa8], rax
mov rax, qword [rsp + 0xa8]
mov eax, dword [rax + 8]
mov r8d, eax
xor edx, edx
mov rax, qword [rsp + 0xa8]
mov rcx, qword [rax]
call fcn.500060a0
mov rax, qword [rsp + 0x240]
movsxd rax, dword [rax + 0x4b8]
mov qword [rsp + 0x158], rax
movsxd rax, dword [rsp + 0x28]
mov rcx, qword [rsp + 0x38]
add rax, qword [rcx + 8]
mov qword [rsp + 0x160], rax
mov rax, qword [rsp + 0x200]
mov qword [rsp + 0xb0], rax
mov rax, qword [rsp + 0x240]
mov rax, qword [rax + 0x4a8]
mov qword [rsp + 0xb0], rax
mov r8, qword [rsp + 0x158]
mov rdx, qword [rsp + 0x160]
mov rcx, qword [rsp + 0xb0]
call fcn.50005ea0
jmp 0x5000fa3e
mov eax, dword [rsp + 0x28]
mov dword [rsp + 0x74], eax
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x168], rax
mov rcx, qword [rsp + 0x168]
call fcn.50002860
mov eax, dword [rsp + 0x74]
add rsp, 0x230
pop rdi
ret