Function at 0x10134630
Capabilities:
Encrypt data via sspi

Disassembly:
sub esp, 0x54
mov eax, dword [0x1022d400]
xor eax, esp
mov dword [esp + 0x50], eax
push ebx
mov ebx, dword [esp + 0x64]
push ebp
mov ebp, dword [esp + 0x60]
push esi
mov esi, dword [esp + 0x68]
push edi
mov eax, dword [ebp + 0x2c]
xor edi, edi
mov dword [esp + 0x18], ebp
test eax, eax
je 0x10134667
push eax
call fcn.100d28c0
add esp, 4
mov dword [ebp + 0x2c], edi
cmp byte [ebp + 0x39], 0
je 0x10134693
lea ecx, [esp + 0x2c]
push ecx
lea eax, [ebp + 0x20]
push 0
push eax
mov dword [esp + 0x1c], eax
call sub.Secur32.dll_QueryContextAttributesA
test eax, eax
je 0x101346a9
push str.QueryContextAttributes
push eax
call fcn.10134b20
add esp, 8
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
mov ecx, dword [esp + 0x50]
xor ecx, esp
call fcn.1009f33b
add esp, 0x54
ret
test ebx, ebx
je 0x101346ba
mov eax, dword [esp + 0x74]
add eax, 4
mov dword [esp + 0x14], eax
jmp 0x101346d2
lea eax, [esp + 0x14]
push eax
push esi
call fcn.10134a20
mov edi, eax
add esp, 8
test edi, edi
je 0x10134693
mov eax, dword [esp + 0x14]
mov esi, dword [esp + 0x34]
add esi, dword [esp + 0x38]
add esi, eax
push esi
call fcn.100d28d0
mov ebp, eax
add esp, 4
mov dword [esp + 0x1c], ebp
test ebp, ebp
jne 0x101346fa
push edi
call fcn.100d28c0
add esp, 4
jmp 0x10134693
mov eax, dword [esp + 0x38]
lea edx, [eax + ebp]
test ebx, ebx
je 0x10134774
mov ecx, ebx
mov dword [edx], 1
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10134710
sub esi, dword [esp + 0x38]
add edx, 4
sub esi, 4
sub ecx, edi
je 0x101347de
test edx, edx
jne 0x10134742
call fcn.100b18cb
mov dword [eax], 0x16
call fcn.100a6384
jmp 0x101347de
cmp esi, ecx
jb 0x10134756
push ecx
push ebx
push edx
call fcn.100a1570
add esp, 0xc
jmp 0x101347de
push esi
push 0
push edx
call fcn.100a13a0
add esp, 0xc
call fcn.100b18cb
mov dword [eax], 0x22
call fcn.100a6384
jmp 0x101347de
mov ebx, dword [esp + 0x14]
sub esi, eax
test ebx, ebx
je 0x101347d5
test edx, edx
jne 0x1013478f
call fcn.100b18cb
mov dword [eax], 0x16
jmp 0x101347d0
test edi, edi
je 0x101347a4
cmp esi, ebx
jb 0x101347a4
push ebx
push edi
push edx
call fcn.100a1570
add esp, 0xc
jmp 0x101347d5
push esi
push 0
push edx
call fcn.100a13a0
add esp, 0xc
test edi, edi
jne 0x101347c1
call fcn.100b18cb
mov dword [eax], 0x16
jmp 0x101347d0
cmp esi, ebx
jae 0x101347d5
call fcn.100b18cb
mov dword [eax], 0x22
call fcn.100a6384
push edi
call fcn.100d28c0
add esp, 4
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x3c]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 0x3c], eax
push 0
mov dword [esp + 0x28], 3
lea ecx, [eax + ebp]
mov dword [esp + 0x24], 0
mov eax, dword [esp + 0x38]
mov dword [esp + 0x58], eax
lea eax, [ecx + edx]
mov dword [esp + 0x60], eax
lea eax, [esp + 0x24]
mov dword [esp + 0x54], ecx
xor ecx, ecx
cmp dword [esp + 0x7c], ecx
push eax
mov eax, reloc.WS2_32.dll_accept
mov dword [esp + 0x48], 2
cmovne eax, ecx
mov dword [esp + 0x4c], ebp
push eax
push dword [esp + 0x1c]
mov dword [esp + 0x58], edx
mov dword [esp + 0x5c], 1
mov dword [esp + 0x68], 9
call sub.Secur32.dll_EncryptMessage
mov esi, eax
test esi, esi
je 0x10134876
push ebp
call fcn.100d28c0
push 0x1015748c
push esi
call fcn.10134b20
add esp, 0xc
jmp 0x10134693
mov esi, dword [esp + 0x54]
add esi, dword [esp + 0x48]
add esi, dword [esp + 0x3c]
push esi
call fcn.100d28d0
mov ebx, dword [esp + 0x40]
add esp, 4
mov ebp, dword [esp + 0x44]
mov edi, eax
test ebx, ebx
je 0x101348f0
test edi, edi
jne 0x101348aa
call fcn.100b18cb
mov dword [eax], 0x16
jmp 0x101348eb
test ebp, ebp
je 0x101348bf
cmp esi, ebx
jb 0x101348bf
push ebx
push ebp
push edi
call fcn.100a1570
add esp, 0xc
jmp 0x101348f0
push esi
push 0
push edi
call fcn.100a13a0
add esp, 0xc
test ebp, ebp
jne 0x101348dc
call fcn.100b18cb
mov dword [eax], 0x16
jmp 0x101348eb
cmp esi, ebx
jae 0x101348f0
call fcn.100b18cb
mov dword [eax], 0x22
call fcn.100a6384
mov edx, dword [esp + 0x3c]
mov ebx, esi
mov ebp, dword [esp + 0x48]
sub ebx, edx
mov eax, dword [esp + 0x50]
mov dword [esp + 0x10], eax
lea ecx, [edx + edi]
test ebp, ebp
je 0x10134965
test ecx, ecx
jne 0x1013491c
call fcn.100b18cb
mov dword [eax], 0x16
jmp 0x10134960
test eax, eax
je 0x10134931
cmp ebx, ebp
jb 0x10134931
push ebp
push eax
push ecx
call fcn.100a1570
add esp, 0xc
jmp 0x10134965
push ebx
push 0
push ecx
call fcn.100a13a0
add esp, 0xc
cmp dword [esp + 0x10], 0
jne 0x10134951
call fcn.100b18cb
mov dword [eax], 0x16
jmp 0x10134960
cmp ebx, ebp
jae 0x10134965
call fcn.100b18cb
mov dword [eax], 0x22
call fcn.100a6384
mov eax, dword [esp + 0x48]
mov ebx, esi
mov ebp, dword [esp + 0x54]
sub ebx, eax
add eax, dword [esp + 0x3c]
sub ebx, dword [esp + 0x3c]
add eax, edi
mov ecx, dword [esp + 0x5c]
mov dword [esp + 0x10], ecx
test ebp, ebp
je 0x101349d4
test eax, eax
jne 0x10134998
call fcn.100b18cb
mov dword [eax], 0x16
jmp 0x101349cf
test ecx, ecx
je 0x101349ad
cmp ebx, ebp
jb 0x101349ad
push ebp
push ecx
push eax
call fcn.100a1570
add esp, 0xc
jmp 0x101349d4
push ebx
push 0
push eax
call fcn.100a13a0
add esp, 0xc
cmp dword [esp + 0x10], 0
je 0x1013498b
cmp ebx, ebp
jae 0x101349d4
call fcn.100b18cb
mov dword [eax], 0x22
call fcn.100a6384
push esi
push edi
call fcn.10134aa0
mov ecx, dword [esp + 0x20]
xor ebx, ebx
push dword [esp + 0x24]
test eax, eax
setne bl
mov dword [ecx + 0x2c], eax
lea ebx, [ebx*2 - 1]
call fcn.100d28c0
push edi
call fcn.100d28c0
mov ecx, dword [esp + 0x70]
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1009f33b
add esp, 0x54
ret