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

Disassembly:
mov ecx, dword [0x8c8664]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
lea eax, [esp - 0xe4]
cmp eax, dword [ecx + 8]
jbe 0x5bd3f2
sub esp, 0x164
mov ecx, dword [esp + 0x188]
lea eax, [ecx - 0x10]
cmp ecx, eax
jb 0x5bd3ec
mov dword [esp + 0x48], eax
mov edx, dword [esp + 0x18c]
sub edx, ecx
add edx, 0x10
mov dword [esp + 0x54], edx
neg edx
sar edx, 0x1f
and edx, eax
lea edi, [esp + 0x28]
xor eax, eax
call fcn.0046c898
mov ecx, dword [esp + 0x168]
test byte [ecx], al
mov ebp, dword [esp + 0x184]
add edx, ebp
mov dword [esp + 0x15c], edx
lea edi, [esp + 0xac]
call fcn.0046c876
lea ecx, [esp + 0xac]
mov dword [esp], ecx
mov ecx, dword [esp + 0x168]
mov dword [esp + 4], ecx
mov dword [esp + 8], 0x20
mov dword [esp + 0xc], 0x20
mov ecx, dword [esp + 0x178]
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 0x17c]
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x180]
mov dword [esp + 0x18], ecx
call sym.vendor_golang.org_x_crypto_chacha20.newUnauthenticatedCipher
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x154], ecx
mov dword [esp], ecx
lea edx, [esp + 0x28]
mov dword [esp + 4], edx
mov dword [esp + 8], 0x20
mov dword [esp + 0xc], 0x20
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], 0x20
mov dword [esp + 0x18], 0x20
call sym.vendor_golang.org_x_crypto_chacha20._Cipher_.XORKeyStream
mov ecx, dword [esp + 0x154]
mov edx, dword [ecx + 0x20]
mov ebx, dword [ecx + 0x70]
shr ebx, 6
movzx ebp, byte [ecx + 0x74]
nop
mov esi, edx
sub edx, ebx
xchg ebp, eax
test al, al
xchg ebp, eax
jne 0x5bd3d4
cmp edx, 1
ja 0x5bd3d4
cmp esi, 1
jbe 0x5bcf64
lea edx, [esi - 1]
shl edx, 6
mov dword [ecx + 0x70], edx
jmp 0x5bcf72
mov dword [ecx + 0x20], 1
mov dword [ecx + 0x70], 0
mov ecx, dword [esp + 0x170]
mov edx, dword [esp + 0x188]
lea ebx, [edx + ecx - 0x10]
mov dword [esp + 0x4c], ebx
nop
lea edi, [esp + 0x5c]
xor eax, eax
call fcn.0046c88c
movzx ecx, byte [esp + 0x28]
movzx ebp, byte [esp + 0x29]
mov esi, ebp
shl ebp, 8
or ecx, ebp
shr esi, 0x18
movzx ebp, byte [esp + 0x2a]
mov eax, ebp
shl ebp, 0x10
or ecx, ebp
shr eax, 0x10
or esi, eax
movzx ebp, byte [esp + 0x2b]
mov eax, ebp
shr ebp, 8
or esi, ebp
shl eax, 0x18
or ecx, eax
and ecx, 0xfffffff
movzx ebp, byte [esp + 0x2c]
or ebp, esi
movzx esi, byte [esp + 0x2d]
shl esi, 8
or esi, ebp
movzx ebp, byte [esp + 0x2e]
shl ebp, 0x10
or ebp, esi
movzx esi, byte [esp + 0x2f]
shl esi, 0x18
or esi, ebp
and esi, 0xffffffc
nop
mov dword [esp + 0x74], ecx
mov dword [esp + 0x78], esi
movzx ecx, byte [esp + 0x30]
movzx ebp, byte [esp + 0x31]
mov esi, ebp
shl ebp, 8
or ecx, ebp
shr esi, 0x18
movzx ebp, byte [esp + 0x32]
mov eax, ebp
shl ebp, 0x10
or ebp, ecx
shr eax, 0x10
or esi, eax
movzx ecx, byte [esp + 0x33]
mov eax, ecx
shr ecx, 8
or ecx, esi
shl eax, 0x18
or eax, ebp
and eax, 0xffffffc
movzx ebp, byte [esp + 0x34]
or ebp, ecx
movzx ecx, byte [esp + 0x35]
shl ecx, 8
or ecx, ebp
movzx ebp, byte [esp + 0x36]
shl ebp, 0x10
or ebp, ecx
movzx ecx, byte [esp + 0x37]
shl ecx, 0x18
or ecx, ebp
and ecx, 0xffffffc
mov dword [esp + 0x7c], eax
mov dword [esp + 0x80], ecx
movzx ecx, byte [esp + 0x38]
movzx ebp, byte [esp + 0x39]
mov esi, ebp
shl ebp, 8
or ecx, ebp
shr esi, 0x18
movzx ebp, byte [esp + 0x3a]
mov eax, ebp
shl ebp, 0x10
or ecx, ebp
shr eax, 0x10
or esi, eax
movzx ebp, byte [esp + 0x3b]
mov eax, ebp
shr ebp, 8
or esi, ebp
shl eax, 0x18
or ecx, eax
movzx ebp, byte [esp + 0x3c]
or ebp, esi
movzx esi, byte [esp + 0x3d]
shl esi, 8
or ebp, esi
movzx esi, byte [esp + 0x3e]
shl esi, 0x10
or esi, ebp
movzx ebp, byte [esp + 0x3f]
shl ebp, 0x18
or esi, ebp
mov dword [esp + 0x84], ecx
mov dword [esp + 0x88], esi
movzx ecx, byte [esp + 0x40]
movzx ebp, byte [esp + 0x41]
mov esi, ebp
shl ebp, 8
or ecx, ebp
shr esi, 0x18
movzx ebp, byte [esp + 0x42]
mov eax, ebp
shr ebp, 0x10
or ebp, esi
shl eax, 0x10
or eax, ecx
movzx ecx, byte [esp + 0x43]
mov esi, ecx
shr ecx, 8
or ecx, ebp
shl esi, 0x18
or esi, eax
movzx ebp, byte [esp + 0x44]
or ebp, ecx
movzx ecx, byte [esp + 0x45]
shl ecx, 8
or ecx, ebp
movzx ebp, byte [esp + 0x46]
shl ebp, 0x10
or ebp, ecx
movzx ecx, byte [esp + 0x47]
shl ecx, 0x18
or ecx, ebp
mov dword [esp + 0x8c], esi
mov dword [esp + 0x90], ecx
lea ecx, [esp + 0x5c]
mov dword [esp], ecx
mov ebp, dword [esp + 0x190]
mov dword [esp + 4], ebp
mov ebp, dword [esp + 0x194]
mov dword [esp + 8], ebp
mov esi, dword [esp + 0x198]
mov dword [esp + 0xc], esi
call sym.vendor_golang.org_x_crypto_chacha20poly1305.writeWithPadding
lea ecx, [esp + 0x5c]
mov dword [esp], ecx
mov edx, dword [esp + 0x184]
mov dword [esp + 4], edx
mov ebx, dword [esp + 0x48]
mov dword [esp + 8], ebx
mov ebp, dword [esp + 0x18c]
mov dword [esp + 0xc], ebp
call sym.vendor_golang.org_x_crypto_chacha20poly1305.writeWithPadding
lea ecx, [esp + 0x5c]
mov dword [esp], ecx
mov edx, dword [esp + 0x194]
mov dword [esp + 4], edx
call sym.vendor_golang.org_x_crypto_chacha20poly1305.writeUint64
lea ecx, [esp + 0x5c]
mov dword [esp], ecx
mov edx, dword [esp + 0x48]
mov dword [esp + 4], edx
call sym.vendor_golang.org_x_crypto_chacha20poly1305.writeUint64
nop
mov edx, dword [esp + 0x174]
mov ecx, dword [esp + 0x4c]
cmp edx, ecx
jl 0x5bd1e8
jb 0x5bd3cf
mov eax, dword [esp + 0x16c]
jmp 0x5bd21a
lea eax, [0x672500]
mov dword [esp], eax
mov dword [esp + 4], ecx
mov eax, dword [esp + 0x170]
mov dword [esp + 8], eax
mov edx, dword [esp + 0x16c]
mov dword [esp + 0xc], edx
call sym.runtime.makeslicecopy
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x4c]
mov edx, ecx
mov ebx, dword [esp + 0x170]
cmp ebx, ecx
ja 0x5bd3c8
mov dword [esp + 0x58], edx
mov dword [esp + 0x160], eax
mov ebp, edx
sub edx, ebx
mov dword [esp + 0x50], edx
mov esi, edx
neg edx
sar edx, 0x1f
and ebx, edx
lea edx, [eax + ebx]
mov dword [esp + 0x158], edx
mov ebx, dword [esp + 0x188]
cmp ebx, 0x10
jne 0x5bd264
mov edi, dword [esp + 0x184]
jmp 0x5bd296
jne 0x5bd26f
mov edi, dword [esp + 0x184]
jmp 0x5bd296
mov edi, dword [esp + 0x184]
cmp edi, edx
je 0x5bd296
lea ebp, [edi + ebx - 0x11]
nop
cmp ebp, edx
jb 0x5bd296
mov ebp, dword [esp + 0x158]
lea ecx, [ebp + ebx - 0x11]
cmp ecx, edi
jae 0x5bd3b0
lea eax, [esp + 0x5c]
mov dword [esp], eax
mov eax, dword [esp + 0x15c]
mov dword [esp + 4], eax
mov dword [esp + 8], 0x10
mov eax, dword [esp + 0x54]
mov dword [esp + 0xc], eax
call sym.vendor_golang.org_x_crypto_internal_poly1305._MAC_.Verify
movzx eax, byte [esp + 0x10]
test al, al
jne 0x5bd32b
mov eax, dword [esp + 0x188]
cmp eax, 0x10
je 0x5bd2e9
mov eax, dword [esp + 0x158]
mov dword [esp], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 4], eax
call sym.runtime.memclrNoHeapPointers
mov eax, dword [0x8825c0]
mov ecx, dword [0x8825c4]
mov dword [esp + 0x19c], 0
mov dword [esp + 0x1a0], 0
mov dword [esp + 0x1a4], 0
mov dword [esp + 0x1a8], eax
mov dword [esp + 0x1ac], ecx
add esp, 0x164
ret
mov eax, dword [esp + 0x154]
mov dword [esp], eax
mov eax, dword [esp + 0x158]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 8], eax
mov ecx, dword [esp + 0x50]
mov dword [esp + 0xc], ecx
mov ecx, dword [esp + 0x184]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x18c]
mov dword [esp + 0x18], eax
call sym.vendor_golang.org_x_crypto_chacha20._Cipher_.XORKeyStream
mov eax, dword [esp + 0x160]
mov dword [esp + 0x19c], eax
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x1a0], eax
mov eax, dword [esp + 0x58]
mov dword [esp + 0x1a4], eax
mov dword [esp + 0x1a8], 0
mov dword [esp + 0x1ac], 0
add esp, 0x164
ret
lea eax, [0x672480]
mov dword [esp], eax
lea eax, [0x7134f8]
mov dword [esp + 4], eax
call sym.runtime.gopanic
mov eax, ebx
call sym.runtime.panicSliceB
call sym.runtime.panicSliceAcap
lea eax, [0x672480]
mov dword [esp], eax
lea eax, [0x713500]
mov dword [esp + 4], eax
call sym.runtime.gopanic
call sym.runtime.panicSliceB
nop
call sym.runtime.morestack_noctxt
jmp sym.vendor_golang.org_x_crypto_chacha20poly1305._chacha20poly1305_.openGeneric