Function at 0x10001705
Capabilities:
Decrypt data via sspi

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x190
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 8], eax
and dword [ebp - 0x15c], 0
mov eax, dword [0x100063dc]
mov dword [ebp - 0x178], edx
mov dword [ebp - 0x170], ecx
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x168], ebx
push esi
push edi
test eax, eax
jne 0x10001748
cmp dword [0x10006350], eax
je 0x10001757
push eax
call dword [sym.imp.MSVCR120.dll_free]
and dword [0x10006350], 0
pop ecx
lea eax, [ebp - 0x150]
push eax
push 4
push ebx
call dword [sym.imp.Secur32.dll_QueryContextAttributesA]
mov esi, eax
test esi, esi
je 0x10001774
mov eax, esi
jmp 0x10001a6d
mov eax, dword [ebp - 0x148]
add eax, dword [ebp - 0x14c]
add eax, dword [ebp - 0x150]
push eax
mov dword [ebp - 0x174], eax
call dword [sym.imp.MSVCR120.dll_malloc]
mov ebx, eax
mov dword [ebp - 0x158], ebx
pop ecx
test ebx, ebx
jne 0x100017aa
mov eax, 0x80090304
jmp 0x10001a6d
xor edi, edi
test edi, edi
je 0x100017b8
cmp esi, 0x80090318
jne 0x100017fe
mov eax, dword [ebp - 0x174]
push 0
sub eax, edi
push eax
lea eax, [edi + ebx]
push eax
push dword [ebp - 0x170]
call dword [0x100063d4]
mov esi, eax
cmp esi, 0xffffffff
je 0x10001a6b
test esi, esi
je 0x10001a63
push esi
lea eax, [ebp - 0x10c]
push str._d_bytes_of__encrypted__application_data_received_n
push eax
call dword [sym.imp.MSVCR120.dll_sprintf]
add esp, 0xc
add edi, esi
and dword [ebp - 0x12c], 0
lea eax, [ebp - 0x13c]
and dword [ebp - 0x120], 0
and dword [ebp - 0x114], 0
and dword [ebp - 0x184], 0
push 0
mov dword [ebp - 0x17c], eax
lea eax, [ebp - 0x184]
push 0
push eax
push dword [ebp - 0x168]
mov dword [ebp - 0x134], ebx
mov dword [ebp - 0x13c], edi
mov dword [ebp - 0x138], 1
mov dword [ebp - 0x180], 4
call dword [sym.imp.Secur32.dll_DecryptMessage]
mov esi, eax
mov dword [ebp - 0x16c], esi
cmp esi, 0x80090318
je 0x100017ac
cmp esi, 0x90317
je 0x10001a6b
test esi, esi
je 0x1000188d
cmp esi, 0x90321
jne 0x1000176d
push 3
xor edi, edi
lea eax, [ebp - 0x130]
xor ebx, ebx
pop ecx
test edi, edi
jne 0x100018a5
cmp dword [eax + 4], 1
cmove edi, eax
test ebx, ebx
jne 0x100018b0
cmp dword [eax + 4], 5
cmove ebx, eax
add eax, 0xc
dec ecx
jne 0x1000189a
mov dword [ebp - 0x164], ebx
test edi, edi
je 0x100019da
push dword [0x10006350]
lea eax, [ebp - 0x10c]
push 1
push dword [ebp - 0x15c]
push dword [edi]
push str.Decrypted_data:__d_bytes__packets_done__d__hackmode__d__hacklen__d_n
push eax
call dword [sym.imp.MSVCR120.dll_sprintf]
mov eax, dword [0x100063d8]
add esp, 0x18
test eax, eax
je 0x100018fa
push eax
call dword [sym.imp.MSVCR120.dll_free]
pop ecx
mov ebx, dword [edi]
push ebx
mov dword [ebp - 0x154], ebx
call dword [sym.imp.MSVCR120.dll_malloc]
pop ecx
mov ecx, dword [edi + 8]
push ebx
push ecx
push eax
mov dword [0x100063d8], eax
mov dword [ebp - 0x160], ecx
call sub.MSVCR120.dll_memcpy
mov ecx, dword [0x100063dc]
add esp, 0xc
mov dword [0x10006348], ebx
mov ebx, dword [0x10006350]
test ecx, ecx
je 0x10001986
test ebx, ebx
je 0x10001986
mov eax, dword [ebp - 0x154]
add eax, ebx
push eax
push ecx
call dword [sym.imp.MSVCR120.dll_realloc]
mov edx, dword [edi + 8]
pop ecx
pop ecx
mov ecx, dword [edi]
mov dword [ebp - 0x154], ecx
xor ecx, ecx
mov dword [0x100063dc], eax
cmp dword [ebp - 0x154], ecx
jle 0x100019cc
mov esi, dword [ebp - 0x154]
add eax, ebx
mov dword [ebp - 0x160], eax
mov ebx, eax
mov al, byte [edx]
inc edx
mov byte [ebx + ecx], al
inc ecx
cmp ecx, esi
jl 0x10001979
jmp 0x100019c0
mov eax, dword [ebp - 0x154]
push eax
call dword [sym.imp.MSVCR120.dll_malloc]
pop ecx
mov ecx, dword [ebp - 0x154]
xor edx, edx
mov dword [0x100063dc], eax
test ecx, ecx
jle 0x100019cc
add eax, ebx
mov ebx, dword [ebp - 0x160]
mov dword [ebp - 0x154], eax
mov esi, eax
mov al, byte [ebx]
inc ebx
mov byte [esi + edx], al
inc edx
cmp edx, ecx
jl 0x100019b5
mov esi, dword [ebp - 0x16c]
mov ebx, dword [0x10006350]
add ebx, dword [edi]
mov dword [0x10006350], ebx
mov ebx, dword [ebp - 0x164]
test ebx, ebx
je 0x100019f5
push dword [ebx]
push dword [ebx + 8]
push dword [ebp - 0x158]
call sub.MSVCR120.dll_memcpy
mov edi, dword [ebx]
add esp, 0xc
jmp 0x100019f7
xor edi, edi
cmp esi, 0x90321
jne 0x10001a52
mov edx, dword [ebp - 0x178]
lea eax, [ebp - 0x190]
mov ecx, dword [ebp - 0x170]
push eax
push 0
push dword [ebp - 0x168]
call fcn.1000136a
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x1000176d
mov ebx, dword [ebp - 0x158]
cmp dword [ebp - 0x188], eax
je 0x10001a58
mov edi, dword [ebp - 0x190]
push edi
push dword [ebp - 0x188]
push ebx
call sub.MSVCR120.dll_memcpy
add esp, 0xc
jmp 0x10001a58
mov ebx, dword [ebp - 0x158]
inc dword [ebp - 0x15c]
jmp 0x100017ac
test edi, edi
jne 0x100017a0
xor eax, eax
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100028b7
mov esp, ebp
pop ebp
ret