Function at 0x596520
Capabilities:
Access peb ldr_data

Disassembly:
lea r12, [rsp - 0x58]
cmp r12, qword [r14 + 0x10]
jbe 0x596855
push rbp
mov rbp, rsp
sub rsp, 0xd0
mov qword [rsp + 0x118], rbx
mov qword [rsp + 0x130], rsi
cmp byte [0x0093bba7], 0
je 0x5967c8
mov qword [rsp + 0x128], rdi
mov qword [rsp + 0x120], rcx
mov qword [rsp + 0x118], rbx
movups xmmword [rsp + 0x68], xmm15
movups xmmword [rsp + 0x78], xmm15
movups xmmword [rsp + 0x88], xmm15
movups xmmword [rsp + 0x98], xmm15
test byte [rax], al
mov rbx, rax
mov rcx, rsi
mov rdi, r8
mov rsi, r9
lea rax, [rsp + 0x68]
call sym.vendor_golang.org_x_crypto_chacha20poly1305.setupState
mov rcx, qword [rsp + 0xe8]
lea rdx, [rcx - 0x10]
mov r8, qword [rsp + 0xf0]
nop dword [rax]
cmp r8, rdx
jb 0x596849
mov qword [rsp + 0xa8], rdx
mov rax, qword [rsp + 0x120]
lea rbx, [rcx + rax]
lea rbx, [rbx - 0x10]
mov qword [rsp + 0xb0], rbx
nop
mov rsi, qword [rsp + 0x128]
cmp rsi, rbx
jl 0x596607
jb 0x59683e
mov rdi, qword [rsp + 0x118]
jmp 0x59664c
mov rcx, rax
mov rdi, qword [rsp + 0x118]
lea rax, [0x0066e760]
call sym.runtime.makeslicecopy
mov rcx, qword [rsp + 0xe8]
mov rdx, qword [rsp + 0xa8]
mov rbx, qword [rsp + 0xb0]
mov r8, qword [rsp + 0xf0]
mov rsi, rbx
mov rdi, rax
mov rax, qword [rsp + 0x120]
cmp rax, rbx
ja 0x596836
mov qword [rsp + 0xb8], rsi
mov qword [rsp + 0xc8], rdi
mov r9, rsi
sub rsi, rax
mov r10, rsi
neg rsi
sar rsi, 0x3f
and rax, rsi
lea rsi, [rdi + rax]
nop dword [rax]
cmp rcx, 0x10
jne 0x596690
mov r11, qword [rsp + 0xe0]
jmp 0x5966d9
jne 0x59669c
mov r11, qword [rsp + 0xe0]
jmp 0x5966d9
mov r11, qword [rsp + 0xe0]
cmp r11, rsi
je 0x5966d9
mov r12, rsi
lea r13, [r11 + rcx]
lea r13, [r13 - 0x11]
nop
cmp r13, rsi
jb 0x5966d6
mov rsi, r11
lea r13, [rcx + r12]
lea r13, [r13 - 0x11]
cmp r13, r11
jae 0x596823
mov r11, rsi
mov rsi, r12
jmp 0x5966d9
mov rsi, r12
mov qword [rsp + 0xc0], rsi
mov qword [rsp], rsi
mov qword [rsp + 8], rdx
mov qword [rsp + 0x10], r10
lea rax, [rsp + 0x68]
mov qword [rsp + 0x18], rax
mov qword [rsp + 0x20], 0x10
mov qword [rsp + 0x28], 0x10
mov qword [rsp + 0x30], r11
mov qword [rsp + 0x38], rdx
mov qword [rsp + 0x40], r8
mov rax, qword [rsp + 0xf8]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x100]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x108]
mov qword [rsp + 0x58], rax
call sym.vendor_golang.org_x_crypto_chacha20poly1305.chacha20Poly1305Open.abi0
xorps xmm15, xmm15
mov r14, qword [0x0093b1d0]
mov r14, qword gs:[r14]
mov r14, qword [r14]
cmp byte [rsp + 0x60], 0
jne 0x5967a3
mov rdx, qword [rsp + 0xe8]
cmp rdx, 0x10
je 0x596785
mov rax, qword [rsp + 0xc0]
mov rbx, qword [rsp + 0xa8]
nop dword [rax]
call sym.runtime.memclrNoHeapPointers
mov rdi, qword [0x008e7560]
mov rsi, qword [0x008e7568]
xor eax, eax
xor ebx, ebx
mov rcx, rbx
add rsp, 0xd0
pop rbp
ret
mov rax, qword [rsp + 0xc8]
mov rbx, qword [rsp + 0xb0]
mov rcx, qword [rsp + 0xb8]
xor edi, edi
xor esi, esi
add rsp, 0xd0
pop rbp
ret
mov rdx, qword [rsp + 0xe0]
mov qword [rsp], rdx
mov rdx, qword [rsp + 0xe8]
mov qword [rsp + 8], rdx
mov rdx, qword [rsp + 0xf0]
mov qword [rsp + 0x10], rdx
mov rdx, qword [rsp + 0xf8]
mov qword [rsp + 0x18], rdx
mov rdx, qword [rsp + 0x100]
mov qword [rsp + 0x20], rdx
mov rdx, qword [rsp + 0x108]
mov qword [rsp + 0x28], rdx
call sym.vendor_golang.org_x_crypto_chacha20poly1305._chacha20poly1305_.openGeneric
add rsp, 0xd0
pop rbp
ret
lea rax, [0x0066e6e0]
lea rbx, [0x00746bd0]
call sym.runtime.gopanic
mov rcx, rbx
call sym.runtime.panicSliceB
mov rcx, rbx
mov rdx, rsi
call sym.runtime.panicSliceAcap
mov rcx, rdx
mov rdx, r8
call sym.runtime.panicSliceAcap
nop
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x48], rcx
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x58], rsi
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
call sym.runtime.morestack_noctxt.abi0
mov rax, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
mov r8, qword [rsp + 0x60]
mov r9, qword [rsp + 0x68]
jmp sym.vendor_golang.org_x_crypto_chacha20poly1305._chacha20poly1305_.open