Function at 0x5c2460
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov ecx, dword [0x8c8664]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
lea eax, [esp - 0x34]
cmp eax, dword [ecx + 8]
jbe 0x5c2f30
sub esp, 0xb4
mov ecx, dword [esp + 0xc0]
test ecx, ecx
jbe 0x5c2f26
cmp ecx, 5
jb 0x5c2f1c
mov eax, dword [esp + 0xc4]
lea edx, [eax - 5]
mov dword [esp + 0x58], edx
mov ebx, edx
neg edx
sar edx, 0x1f
and edx, 5
mov ebp, dword [esp + 0xbc]
movzx esi, byte [ebp]
xchg esi, eax
mov byte [esp + 0x53], al
xchg esi, eax
add edx, ebp
mov dword [esp + 0x9c], edx
lea edi, [ecx - 5]
mov dword [esp + 0x54], edi
mov ecx, dword [esp + 0xb8]
cmp word [ecx + 0x10], 0x304
jne 0x5c251f
xchg esi, eax
cmp al, 0x14
xchg esi, eax
jne 0x5c251f
mov dword [esp + 0xc8], edx
mov dword [esp + 0xcc], edi
mov dword [esp + 0xd0], ebx
mov byte [esp + 0xd4], 0x14
mov dword [esp + 0xd8], 0
mov dword [esp + 0xdc], 0
add esp, 0xb4
ret
mov dword [esp], ecx
call sym.crypto_tls._halfConn_.explicitNonceLen
mov eax, dword [esp + 0xb8]
mov ecx, dword [eax + 0x14]
mov edx, dword [esp + 4]
test ecx, ecx
jne 0x5c2569
mov edx, eax
mov ecx, dword [esp + 0x58]
mov dword [esp + 0x60], ecx
mov ebx, dword [esp + 0x54]
mov ebp, dword [esp + 0x9c]
xor eax, eax
mov ecx, 0xffffffff
movzx esi, byte [esp + 0x53]
xchg esi, eax
mov byte [esp + 0x51], al
xchg esi, eax
mov esi, ebx
mov edi, ebp
jmp 0x5c2b74
je 0x5c2f04
mov dword [esp + 0x74], edx
mov edx, dword [eax + 0x18]
mov dword [esp + 0xa8], edx
lea ebx, [0x8839a0]
mov dword [esp], ebx
mov dword [esp + 4], ecx
call sym.runtime.interfaceSwitch
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
test eax, eax
je 0x5c2a2a
mov dword [esp + 0xb0], ecx
cmp eax, 1
je 0x5c2799
cmp eax, 2
jne 0x5c2f04
mov eax, dword [ecx + 0x10]
mov edx, dword [esp + 0xa8]
mov dword [esp], edx
call eax
mov eax, dword [esp + 4]
mov dword [esp + 0x78], eax
mov ecx, dword [esp + 0xb8]
mov edx, dword [ecx + 0x1c]
mov ebx, dword [ecx + 0x20]
mov edx, dword [edx + 0x18]
mov dword [esp], ebx
call edx
mov eax, dword [esp + 0x78]
test eax, eax
je 0x5c2eff
mov ebx, dword [esp + 4]
lea ebp, [ebx + 1]
mov ecx, eax
mov eax, dword [esp + 0x54]
cdq
idiv ecx
mov eax, ebp
mov ebp, edx
cmp ecx, 0xffffffff
je 0x5c260e
cdq
idiv ecx
jmp 0x5c2610
xor edx, edx
mov eax, ecx
sub eax, edx
cmp ecx, 0xffffffff
je 0x5c261e
cdq
idiv ecx
jmp 0x5c2620
xor edx, edx
add ebx, edx
mov ecx, dword [esp + 0x74]
lea ebx, [ebx + ecx + 1]
test ebp, ebp
jne 0x5c2747
mov eax, dword [esp + 0x54]
cmp ebx, eax
jg 0x5c2747
test ecx, ecx
jle 0x5c26b3
mov edx, dword [esp + 0x58]
cmp ecx, edx
ja 0x5c2efa
mov eax, dword [esp + 0xb0]
mov ebx, dword [eax + 0x18]
mov ebp, dword [esp + 0xa8]
mov dword [esp], ebp
mov esi, dword [esp + 0x9c]
mov dword [esp + 4], esi
mov dword [esp + 8], ecx
mov dword [esp + 0xc], edx
call ebx
mov eax, dword [esp + 0x74]
mov ecx, dword [esp + 0x54]
cmp eax, ecx
ja 0x5c2ef5
mov ecx, dword [esp + 0xc0]
sub ecx, eax
mov ebx, dword [esp + 0xc4]
sub ebx, eax
lea edx, [ebx - 5]
mov ebx, edx
neg ebx
sar ebx, 0x1f
and eax, ebx
mov ebx, dword [esp + 0x9c]
add eax, ebx
lea edi, [ecx - 5]
jmp 0x5c26c0
mov edx, dword [esp + 0x58]
mov edi, eax
mov eax, dword [esp + 0x9c]
mov dword [esp + 0x60], edx
mov dword [esp + 0x5c], edi
mov dword [esp + 0xa0], eax
mov ecx, dword [esp + 0xb0]
mov ecx, dword [ecx + 0x14]
mov ebx, dword [esp + 0xa8]
mov dword [esp], ebx
mov dword [esp + 4], eax
mov dword [esp + 8], edi
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], edx
call ecx
mov eax, dword [esp + 0xa0]
mov dword [esp], eax
mov ecx, dword [esp + 0x5c]
mov dword [esp + 4], ecx
mov edx, dword [esp + 0x60]
mov dword [esp + 8], edx
call sym.crypto_tls.extractPadding
mov eax, dword [esp + 0xc]
movzx ecx, byte [esp + 0x10]
mov edx, dword [esp + 0x60]
mov ebx, dword [esp + 0x5c]
mov ebp, dword [esp + 0xa0]
xor esi, esi
xor edi, edi
xor edx, edx
mov dword [esp + 0x58], edx
mov edx, dword [esp + 0x60]
jmp 0x5c2a84
mov dword [esp + 0xc8], 0
mov dword [esp + 0xcc], 0
mov dword [esp + 0xd0], 0
mov byte [esp + 0xd4], 0
lea eax, [0x713d48]
mov dword [esp + 0xd8], eax
mov eax, 0x14
lea ecx, [0x862de0]
lea eax, [ecx + eax*8]
mov dword [esp + 0xdc], eax
add esp, 0xb4
ret
mov eax, dword [esp + 0x74]
mov ebx, dword [esp + 0x54]
cmp eax, ebx
jg 0x5c29d8
mov edx, dword [esp + 0x58]
cmp eax, edx
ja 0x5c2eee
test eax, eax
jne 0x5c27cf
mov ebx, dword [esp + 0xb8]
lea edx, [ebx + 0x24]
mov ebp, 8
mov esi, 8
jmp 0x5c27e1
mov ebx, dword [esp + 0xb8]
mov ebp, eax
mov esi, edx
mov edx, dword [esp + 0x9c]
mov dword [esp + 0x6c], esi
mov edi, dword [esp + 0xc4]
sub edi, eax
add edi, 0xfffffffb
mov dword [esp + 0x60], edi
xchg edi, ebx
neg ebx
xchg edi, ebx
sar edi, 0x1f
and edi, eax
mov esi, dword [esp + 0x9c]
add esi, edi
mov dword [esp + 0xa0], esi
mov edi, dword [esp + 0xc0]
sub edi, eax
cmp word [ebx + 0x10], 0x304
jne 0x5c2857
mov eax, 5
mov eax, dword [esp + 0xc4]
mov dword [esp + 0x7c], eax
mov dword [esp + 0x88], ecx
mov ecx, dword [esp + 0xbc]
mov dword [esp + 0xac], ecx
mov eax, 5
mov ecx, dword [esp + 0x88]
jmp 0x5c28f2
mov dword [esp + 0x68], ebp
mov dword [esp + 0xa4], edx
mov dword [esp + 0x94], edi
mov eax, dword [ebx + 0x24]
mov edx, dword [ebx + 0x28]
mov dword [ebx + 0x2c], eax
mov dword [ebx + 0x30], edx
mov eax, dword [esp + 0xbc]
movzx edx, word [eax]
movzx ebp, byte [eax + 2]
mov word [ebx + 0x34], dx
xchg ebp, eax
mov byte [ebx + 0x36], al
xchg ebp, eax
mov edx, dword [ecx + 0x18]
mov ebp, dword [esp + 0xa8]
mov dword [esp], ebp
call edx
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0x94]
mov edx, ecx
sub ecx, eax
lea eax, [ecx - 5]
mov ecx, eax
sar eax, 8
mov ebx, dword [esp + 0xb8]
mov byte [ebx + 0x37], al
mov byte [ebx + 0x38], cl
lea eax, [ebx + 0x2c]
mov ecx, dword [esp + 0xb0]
mov ebp, dword [esp + 0x68]
mov esi, dword [esp + 0xa0]
mov edi, edx
mov edx, 0xd
mov dword [esp + 0x7c], edx
mov dword [esp + 0xac], eax
mov edx, dword [esp + 0xa4]
mov eax, 0xd
lea ebx, [edi - 5]
mov dword [esp + 0x5c], ebx
mov ecx, dword [ecx + 0x14]
mov edi, dword [esp + 0xa8]
mov dword [esp], edi
mov dword [esp + 4], esi
mov dword [esp + 8], 0
mov edi, dword [esp + 0x60]
mov dword [esp + 0xc], edi
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], ebp
mov edx, dword [esp + 0x6c]
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], edi
mov edx, dword [esp + 0xac]
mov dword [esp + 0x28], edx
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x7c]
mov dword [esp + 0x30], eax
call ecx
mov eax, dword [esp + 0x40]
test eax, eax
jne 0x5c2986
mov ebx, dword [esp + 0x34]
mov ebp, dword [esp + 0x38]
mov esi, dword [esp + 0x3c]
mov edx, dword [esp + 0x60]
xor eax, eax
mov ecx, 0xffffffff
mov edi, ebx
mov dword [esp + 0x58], esi
mov ebx, dword [esp + 0x5c]
mov esi, ebp
mov ebp, dword [esp + 0xa0]
jmp 0x5c2a84
mov dword [esp + 0xc8], 0
mov dword [esp + 0xcc], 0
mov dword [esp + 0xd0], 0
mov byte [esp + 0xd4], 0
lea eax, [0x713d48]
mov dword [esp + 0xd8], eax
mov eax, 0x14
lea ecx, [0x862de0]
lea eax, [ecx + eax*8]
mov dword [esp + 0xdc], eax
add esp, 0xb4
ret
mov dword [esp + 0xc8], 0
mov dword [esp + 0xcc], 0
mov dword [esp + 0xd0], 0
mov byte [esp + 0xd4], 0
lea eax, [0x713d48]
mov dword [esp + 0xd8], eax
mov eax, 0x14
lea ecx, [0x862de0]
lea eax, [ecx + eax*8]
mov dword [esp + 0xdc], eax
add esp, 0xb4
ret
mov eax, dword [ecx + 0x10]
mov ecx, dword [esp + 0xa8]
mov dword [esp], ecx
mov ecx, dword [esp + 0x9c]
mov dword [esp + 4], ecx
mov edx, dword [esp + 0x54]
mov dword [esp + 8], edx
mov ebx, dword [esp + 0x58]
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], ebx
call eax
mov edx, dword [esp + 0x58]
mov ebx, dword [esp + 0x54]
mov ebp, dword [esp + 0x9c]
xor eax, eax
mov ecx, 0xffffffff
xor esi, esi
xor edi, edi
xor ebx, ebx
mov dword [esp + 0x58], ebx
mov ebx, dword [esp + 0x54]
mov dword [esp + 0x60], edx
mov edx, dword [esp + 0xb8]
cmp word [edx + 0x10], 0x304
jne 0x5c2b5d
movzx edx, byte [esp + 0x53]
cmp dl, 0x17
jne 0x5c2b0b
cmp esi, 0x4001
jg 0x5c2ab9
mov dword [esp + 0x64], eax
lea edx, [esi - 1]
jmp 0x5c2e60
mov dword [esp + 0xc8], 0
mov dword [esp + 0xcc], 0
mov dword [esp + 0xd0], 0
mov byte [esp + 0xd4], 0
lea eax, [0x713d48]
mov dword [esp + 0xd8], eax
mov eax, 0x16
lea ecx, [0x862de0]
lea eax, [ecx + eax*8]
mov dword [esp + 0xdc], eax
add esp, 0xb4
ret
mov dword [esp + 0xc8], 0
mov dword [esp + 0xcc], 0
mov dword [esp + 0xd0], 0
mov byte [esp + 0xd4], 0
lea eax, [0x713d48]
mov dword [esp + 0xd8], eax
mov eax, 0xa
lea ecx, [0x862de0]
lea eax, [ecx + eax*8]
mov dword [esp + 0xdc], eax
add esp, 0xb4
ret
mov dword [esp + 0x80], eax
movzx eax, byte [esp + 0x53]
mov byte [esp + 0x51], al
mov eax, dword [esp + 0x80]
mov byte [esp + 0x52], cl
mov ecx, dword [edx + 0x1c]
test ecx, ecx
jne 0x5c2b88
mov eax, dword [esp + 0x58]
jmp 0x5c2d6c
mov dword [esp + 0x5c], ebx
mov dword [esp + 0xa0], ebp
mov dword [esp + 0x64], eax
mov eax, dword [edx + 0x20]
mov ecx, dword [ecx + 0x18]
mov dword [esp], eax
call ecx
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0x5c]
cmp ecx, eax
jl 0x5c2cd7
mov ebx, ecx
sub ebx, eax
mov ebp, dword [esp + 0x64]
sub ebx, ebp
mov ebp, ebx
shr ebx, 0x1f
dec ebx
and ebx, ebp
mov ebp, ebx
sar ebx, 8
lea esi, [ebp + eax]
mov edi, dword [esp + 0xbc]
mov byte [edi + 3], bl
xchg ebp, eax
mov byte [edi + 4], al
xchg ebp, eax
mov edx, dword [esp + 0x60]
cmp edx, esi
jb 0x5c2e54
cmp ebp, esi
ja 0x5c2e4b
sub edx, ebp
neg edx
sar edx, 0x1f
and edx, ebp
mov ebx, dword [esp + 0xa0]
add edx, ebx
cmp ecx, esi
jb 0x5c2e44
mov dword [esp + 0x70], eax
mov dword [esp + 0x94], ebp
mov dword [esp + 0x98], edx
mov eax, dword [esp + 0xb8]
mov edx, dword [eax + 0x1c]
mov ecx, dword [eax + 0x20]
mov dword [esp], edx
mov dword [esp + 4], ecx
lea ecx, [eax + 0x2c]
mov dword [esp + 8], ecx
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 0xd
lea ecx, [eax + 0x24]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], 8
mov dword [esp + 0x1c], 8
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], 5
mov ecx, dword [esp + 0xc4]
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebp
mov ecx, dword [esp + 0x60]
mov dword [esp + 0x34], ecx
sub ecx, esi
mov dword [esp + 0x90], ecx
mov edi, dword [esp + 0x5c]
sub edi, esi
neg ecx
sar ecx, 0x1f
and esi, ecx
lea ecx, [ebx + esi]
mov dword [esp + 0x38], ecx
mov dword [esp + 0x3c], edi
mov ecx, dword [esp + 0x90]
mov dword [esp + 0x40], ecx
call sym.crypto_tls.tls10MAC
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x70]
cmp eax, ecx
je 0x5c2cc6
xor edx, edx
jmp 0x5c2d44
mov edx, dword [esp + 0x44]
mov ebx, dword [esp + 0x98]
xor ecx, ecx
xor ebp, ebp
jmp 0x5c2d36
mov dword [esp + 0xc8], 0
mov dword [esp + 0xcc], 0
mov dword [esp + 0xd0], 0
mov byte [esp + 0xd4], 0
lea eax, [0x713d48]
mov dword [esp + 0xd8], eax
mov eax, 0x14
lea ecx, [0x862de0]
lea eax, [ecx + eax*8]
mov dword [esp + 0xdc], eax
add esp, 0xb4
ret
movzx esi, byte [ecx + edx]
movzx edi, byte [ecx + ebx]
xor esi, edi
inc ecx
or ebp, esi
cmp ecx, eax
jl 0x5c2d29
xchg ebp, eax
movzx edx, al
xchg ebp, eax
dec edx
nop
shr edx, 0x1f
movzx ebx, byte [esp + 0x52]
movzx ebx, bl
and ebx, edx
cmp ebx, 1
jne 0x5c2d73
mov edx, dword [esp + 0xb8]
mov eax, dword [esp + 0x60]
mov esi, dword [esp + 0x94]
mov edi, dword [esp + 0xa0]
mov ecx, 7
jmp 0x5c2dc6
mov dword [esp + 0xc8], 0
mov dword [esp + 0xcc], 0
mov dword [esp + 0xd0], 0
mov byte [esp + 0xd4], 0
lea eax, [0x713d48]
mov dword [esp + 0xd8], eax
mov eax, 0x14
lea ecx, [0x862de0]
lea eax, [ecx + eax*8]
mov dword [esp + 0xdc], eax
add esp, 0xb4
ret
dec ecx
test ecx, ecx
jl 0x5c2e2c
cmp ecx, 8
jae 0x5c2e20
movzx ebx, byte [edx + ecx + 0x24]
lea ebp, [ebx + 1]
xchg ebp, eax
mov byte [edx + ecx + 0x24], al
xchg ebp, eax
cmp bl, 0xff
je 0x5c2dc5
mov dword [esp + 0xc8], edi
mov dword [esp + 0xcc], esi
mov dword [esp + 0xd0], eax
movzx eax, byte [esp + 0x51]
mov byte [esp + 0xd4], al
mov dword [esp + 0xd8], 0
mov dword [esp + 0xdc], 0
add esp, 0xb4
ret
mov eax, ecx
mov ecx, 8
call sym.runtime.panicIndex
lea eax, [0x672480]
mov dword [esp], eax
lea eax, [0x712ef8]
mov dword [esp + 4], eax
call sym.runtime.gopanic
mov eax, esi
call sym.runtime.panicSliceB
mov eax, ebp
mov ecx, esi
call sym.runtime.panicSliceB
mov ecx, esi
call sym.runtime.panicSliceAcap
dec edx
mov eax, dword [esp + 0x64]
test edx, edx
jl 0x5c2ed0
cmp esi, edx
jbe 0x5c2ee5
movzx eax, byte [edi + edx]
test al, al
jne 0x5c2ec6
test edx, edx
jne 0x5c2e5b
mov dword [esp + 0xc8], 0
mov dword [esp + 0xcc], 0
mov dword [esp + 0xd0], 0
mov byte [esp + 0xd4], 0
lea eax, [0x713d48]
mov dword [esp + 0xd8], eax
mov eax, 0xa
lea ecx, [0x862de0]
lea eax, [ecx + eax*8]
mov dword [esp + 0xdc], eax
add esp, 0xb4
ret
mov esi, edx
mov edx, eax
mov eax, dword [esp + 0x64]
jmp 0x5c2ed5
mov edx, 0x17
mov byte [esp + 0x51], dl
mov edx, dword [esp + 0xb8]
jmp 0x5c2b74
mov eax, edx
mov ecx, esi
call sym.runtime.panicIndex
mov ecx, eax
call sym.runtime.panicSliceAcap
call sym.runtime.panicSliceB
call sym.runtime.panicSliceAcap
call sym.runtime.panicdivide
lea eax, [0x672480]
mov dword [esp], eax
lea eax, [0x712f00]
mov dword [esp + 4], eax
call sym.runtime.gopanic
mov eax, 5
call sym.runtime.panicSliceB
xor eax, eax
mov ecx, eax
call sym.runtime.panicIndex
nop
call sym.runtime.morestack_noctxt
jmp sym.crypto_tls._halfConn_.decrypt