Function at 0x1401ff9f0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0xb98]
sub rsp, 0xc98
mov rax, qword [0x140353c70]
xor rax, rsp
mov qword [rbp + 0xb80], rax
mov rsi, r9
mov rdi, r8
mov r15, rdx
mov rbx, rcx
mov rcx, qword [rbp + 0xc00]
mov qword [rsp + 0x60], rcx
mov rax, qword [rbp + 0xc08]
mov qword [rsp + 0x50], rax
mov r14, qword [rbp + 0xc10]
mov rax, qword [rax + 8]
mov qword [rsp + 0x48], rax
xor r12d, r12d
mov dword [rcx], r12d
cmp byte [rbx + 0x118], r12b
je 0x1401ffb1f
test r8, r8
je 0x1401ffb06
xorps xmm0, xmm0
movups xmmword [rsp + 0x70], xmm0
movups xmmword [rbp - 0x80], xmm0
movups xmmword [rbp - 0x70], xmm0
movups xmmword [rbp - 0x60], xmm0
movups xmmword [rbp - 0x50], xmm0
movups xmmword [rbp - 0x40], xmm0
movups xmmword [rbp - 0x30], xmm0
movups xmmword [rbp - 0x20], xmm0
movups xmmword [rbp - 0x10], xmm0
lea rcx, [rsp + 0x70]
call fcn.14002e000
nop
mov r8, rdi
lea rdx, [0x140302230]
lea rcx, [rsp + 0x70]
call fcn.14002e110
lea rdx, [0x140254f04]
lea rcx, [rsp + 0x70]
call fcn.140032ed0
test al, al
jne 0x1401ffada
lea rdx, [0x140254f04]
lea rcx, [rsp + 0x70]
call fcn.14002e730
lea rcx, [rsp + 0x70]
call fcn.140033b70
mov r9, rax
mov r8, r15
lea rdx, [0x1402ec780]
mov rcx, rbx
call fcn.140204580
nop
lea rcx, [rsp + 0x70]
call fcn.14002e050
jmp 0x1401ffb1f
lea r9, [0x140254f04]
mov r8, r15
lea rdx, [0x1402ec780]
mov rcx, rbx
call fcn.140204580
call sub.KERNEL32.dll_GetTickCount
mov dword [rbx + 0xbcc], eax
inc dword [rbx + 0xbd8]
lea rcx, [rbx + 0xd60]
call fcn.140040520
cmp dword [rbx + 0x152c], 0
je 0x1401ffbe7
cmp byte [rbx + 0xcc0], 0
je 0x1401ffb6f
lea rcx, [rbx + 0xcc8]
mov r8, r14
lea rdx, [rbx + 0xd60]
call fcn.1401bcb20
mov byte [rbx + 0xcc0], 0
xor r15b, r15b
mov eax, dword [rbx + 0xe80]
test eax, eax
je 0x1401ffb87
mov r15b, 1
dec eax
mov dword [rbx + 0xe80], eax
lea rcx, [rbx + 0xcc8]
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], r14
lea r9, [rbx + 0xd60]
movzx r8d, r15b
mov rdx, rsi
call fcn.1401bc9c0
mov rcx, rsi
call fcn.140042d30
mov edi, eax
test r15b, r15b
jne 0x1401ffbe0
cmp eax, 0x40
jbe 0x1401ffbe0
lea rcx, [rbx + 0xd60]
call fcn.140042d30
mov ecx, edi
shr ecx, 3
add eax, ecx
cmp eax, edi
jbe 0x1401ffbe0
mov dword [rbx + 0xe80], 0x10
lea rsi, [rbx + 0xd60]
mov edi, 8
mov eax, dword [rbx + 0x1554]
cmp eax, 0xf
ja 0x1401ffc06
mov ecx, 0xde1e
bt ecx, eax
jae 0x1401ffc06
mov edi, reloc.WS2_32.dll_recv
mov rcx, rsi
call fcn.140042d30
mov dword [rsp + 0x58], eax
cmp byte [rbx + 0x27c8], 0
jne 0x1401ffc2c
mov ecx, dword [rbx + 0x1554]
sub ecx, 0xd
cmp ecx, 2
mov ecx, r12d
ja 0x1401ffc31
mov ecx, 4
lea r8d, [rax + 5]
mov eax, r8d
sub eax, ecx
add eax, 4
xor edx, edx
div edi
mov eax, edi
sub eax, edx
xor edx, edx
div edi
lea r13d, [rdx + 4]
lea edi, [r8 + r13]
lea r12d, [rdi - 4]
mov rax, qword [rsp + 0x60]
mov dword [rax], edi
lea r15, [rbx + 0xdc0]
mov rcx, r15
call fcn.140040520
mov ecx, dword [rbx + 0x1554]
cmp ecx, 0xd
jne 0x1401ffd5d
lea eax, [rdi + 0x10]
mov dword [rsp + 0x60], eax
mov edx, eax
mov rcx, r15
call fcn.140042850
mov rdi, rax
mov qword [rsp + 0x40], rax
mov ecx, r12d
shr ecx, 0x18
mov byte [rax], cl
mov ecx, r12d
shr ecx, 0x10
mov byte [rax + 1], cl
mov ecx, r12d
shr ecx, 8
mov byte [rax + 2], cl
mov byte [rax + 3], r12b
lea rdx, [rbx + 0x2480]
mov ecx, dword [rbx + 0xf18]
mov dword [rsp + 0x20], ecx
mov r9d, 4
mov r8, rax
mov rcx, rbx
call fcn.1401fac10
mov byte [rdi + 4], r13b
mov edi, dword [rsp + 0x58]
mov rcx, rsi
call fcn.1400428d0
mov rdx, rax
mov rsi, qword [rsp + 0x40]
lea rcx, [rsi + 5]
mov r8d, edi
call sub.VCRUNTIME140.dll_memcpy
mov edi, dword [rsp + 0x58]
add edi, 5
mov r8d, edi
add r8, rsi
mov r9, r14
mov edx, r13d
mov rcx, rbx
call fcn.1401fab30
test al, al
je 0x1401fff0a
lea rcx, [rbx + 0x2504]
mov r8d, r12d
lea rdx, [rsi + 4]
call fcn.1401f4b20
mov qword [rsp + 0x20], r14
mov r9d, dword [rbx + 0xf18]
lea r8d, [rdi + r13]
mov rdx, rsi
lea rcx, [rbx + 0x2480]
call fcn.1401f4700
mov edx, dword [rsp + 0x60]
mov rcx, r15
call fcn.14003e750
jmp 0x140200061
lea eax, [rcx - 0xe]
cmp eax, 1
jbe 0x1401ffef0
test ecx, ecx
je 0x1401ffeb4
cmp byte [rbx + 0x27c8], 0
jne 0x1401ffd85
mov rdx, r15
mov ecx, r12d
call fcn.140196b90
movzx edx, r13b
mov rcx, r15
call fcn.14003eaf0
mov rdx, rsi
mov rcx, r15
call fcn.14003e810
mov r9, r14
mov r8, r15
mov edx, r13d
mov rcx, rbx
call fcn.140202ba0
test al, al
je 0x1401fff0a
lea rsi, [rbx + 0xd90]
mov rcx, rsi
call fcn.140040520
cmp qword [rbx + 0x1570], 0
jne 0x1401ffde5
mov rax, qword [r14]
lea rdx, str.No_output_encryptor_
mov rcx, r14
call qword [rax + 0x28]
xor al, al
jmp 0x1402003ac
lea rcx, [rbx + 0xdc0]
call fcn.140042d30
mov edi, eax
lea rcx, [rbx + 0xdc0]
call fcn.1400428d0
mov r9, rax
lea r8, [rbx + 0x16a8]
lea rdx, [rbx + 0x1d58]
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x28], rsi
mov dword [rsp + 0x20], edi
mov rcx, qword [rbx + 0x1570]
call fcn.1400f4b00
lea rcx, [rbx + 0xdc0]
call fcn.140042d30
mov edi, eax
mov rcx, rsi
call fcn.140042d30
cmp eax, edi
je 0x140200061
mov rax, qword [r14]
lea rdx, str.Size_of_encrypted_data_changed_
mov rcx, r14
call qword [rax + 0x28]
lea rcx, [rbx + 0xdc0]
call fcn.140042d30
mov r8d, eax
lea rdx, str.unencryptedPacketSize
mov rcx, r14
call fcn.14004d750
mov rcx, rsi
call fcn.140042d30
mov r8d, eax
lea rdx, str.encryptedPacketSize
mov rcx, r14
call fcn.14004d750
lea r9, [0x140254f04]
lea r8, str.Failed_to_encrypt.
lea rdx, str.TRAN
mov rcx, rbx
call fcn.140204580
xor al, al
jmp 0x1402003ac
mov rdx, r15
mov ecx, r12d
call fcn.140196b90
movzx edx, r13b
mov rcx, r15
call fcn.14003eaf0
mov rdx, rsi
mov rcx, r15
call fcn.14003e810
mov r9, r14
mov r8, r15
mov edx, r13d
mov rcx, rbx
call fcn.140202ba0
test al, al
je 0x1401fff0a
jmp 0x140200061
cmp qword [rbx + 0x1570], 0
jne 0x1401fff11
mov rax, qword [r14]
lea rdx, str.No_output_GCM_encryptor_
mov rcx, r14
call qword [rax + 0x28]
xor al, al
jmp 0x1402003ac
lea rcx, [rbx + 0x1728]
call fcn.140040520
lea rdx, [rbx + 0x1728]
mov ecx, r12d
call fcn.140196b90
lea r8, [rbx + 0x2630]
lea rdx, [rbx + 0x262c]
lea rcx, [rbx + 0x16a8]
call fcn.1400f65a0
lea rdx, [rbx + 0x1d58]
mov r9, r14
lea r8, [rbx + 0x16a8]
mov rcx, qword [rbx + 0x1570]
call fcn.140166580
movzx edx, r13b
mov rcx, r15
call fcn.14003eaf0
mov rdx, rsi
mov rcx, r15
call fcn.14003e810
mov r9, r14
mov r8, r15
mov edx, r13d
mov rcx, rbx
call fcn.140202ba0
test al, al
je 0x1401fff0a
lea rsi, [rbx + 0xd90]
mov rcx, rsi
call fcn.140040520
mov rcx, r15
call fcn.140042d30
mov edi, eax
mov rcx, r15
call fcn.1400428d0
mov r9, rax
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x28], rsi
mov dword [rsp + 0x20], edi
lea r8, [rbx + 0x16a8]
lea rdx, [rbx + 0x1d58]
mov rcx, qword [rbx + 0x1570]
call fcn.1400f4b00
mov r9, r14
lea r8, [rbx + 0x16a8]
lea rdx, [rbx + 0x1d58]
mov rcx, qword [rbx + 0x1570]
call fcn.1401664d0
test al, al
jne 0x140200017
mov rax, qword [r14]
lea rdx, str.SSH_gcm_encrypt_finalize_failed.
mov rcx, r14
call qword [rax + 0x28]
xor al, al
jmp 0x1402003ac
lea rcx, [rbx + 0x1758]
call fcn.140042d30
cmp eax, 0x10
je 0x14020003f
mov rax, qword [r14]
lea rdx, str.SSH_GCM_auth_tag_is_not_16_bytes.
mov rcx, r14
call qword [rax + 0x28]
xor al, al
jmp 0x1402003ac
lea rcx, [rbx + 0x2637]
mov rdx, 0xffffffffffffd9d0
sub rdx, rbx
add byte [rcx], 1
jne 0x140200061
dec rcx
lea rax, [rdx + rcx]
test rax, rax
jns 0x140200050
mov ecx, dword [rbx + 0x1554]
lea eax, [rcx - 0xe]
cmp eax, 1
jbe 0x140200255
cmp ecx, 0xd
je 0x140200296
lea r15, [rbx + 0xd30]
mov rcx, r15
call fcn.140040520
cmp dword [rbx + 0x1538], 0
je 0x1402001d4
movzx eax, byte [rbx + 0xf1b]
mov byte [rsp + 0x60], al
movzx eax, byte [rbx + 0xf1a]
mov byte [rsp + 0x61], al
movzx eax, byte [rbx + 0xf19]
mov byte [rsp + 0x62], al
movzx eax, byte [rbx + 0xf18]
mov byte [rsp + 0x63], al
lea rcx, [rsp + 0x70]
call fcn.14003e2b0
nop
mov dword [rbp + 0xb78], 3
mov qword [rsp + 0x78], 0
mov dword [rbp + 0x778], 0
lea rax, [rsp + 0x60]
mov qword [rbp - 0x80], rax
mov dword [rbp + 0x77c], 4
cmp byte [rbx + 0x27c8], 0
je 0x14020016c
mov eax, r12d
shr eax, 0x18
mov byte [rsp + 0x58], al
mov eax, r12d
shr eax, 0x10
mov byte [rsp + 0x59], al
mov eax, r12d
shr eax, 8
mov byte [rsp + 0x5a], al
mov byte [rsp + 0x5b], r12b
mov dword [rbp + 0xb78], 4
lea rax, [rsp + 0x58]
mov qword [rbp - 0x78], rax
mov dword [rbp + 0x780], 4
lea rcx, [rbx + 0xd90]
call fcn.1400428d0
mov qword [rbp - 0x70], rax
lea rcx, [rbx + 0xd90]
call fcn.140042d30
mov dword [rbp + 0x784], eax
jmp 0x14020018e
lea rcx, [rbx + 0xdc0]
call fcn.1400428d0
mov qword [rbp - 0x78], rax
lea rcx, [rbx + 0xdc0]
call fcn.140042d30
mov dword [rbp + 0x780], eax
lea rcx, [rbx + 0x2730]
call fcn.140042d30
mov esi, eax
lea rcx, [rbx + 0x2730]
call fcn.1400428d0
mov rdx, rax
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], r15
mov r9d, dword [rbx + 0x26f8]
mov r8d, esi
lea rcx, [rsp + 0x70]
call fcn.1401090b0
nop
lea rcx, [rsp + 0x70]
call fcn.14003e4a0
cmp dword [rbx + 0x1554], 0
je 0x140200222
lea rcx, [rbx + 0xdc0]
cmp byte [rbx + 0x27c8], 0
je 0x140200216
call fcn.140040520
lea rdx, [rbx + 0xdc0]
mov ecx, r12d
call fcn.140196b90
lea rdx, [rbx + 0xd90]
lea rcx, [rbx + 0xdc0]
call fcn.14003e810
jmp 0x140200222
lea rdx, [rbx + 0xd90]
call fcn.140044b20
lea rcx, [rbx + 0xd30]
call fcn.140042d30
test eax, eax
je 0x140200296
cmp dword [rbx + 0x1538], 6
jne 0x14020024c
lea rcx, [rbx + 0xd30]
mov edx, 8
call fcn.140044900
lea rdx, [rbx + 0xd30]
jmp 0x14020028a
lea rcx, [rbx + 0xdc0]
call fcn.140040520
lea rdx, [rbx + 0xdc0]
mov ecx, r12d
call fcn.140196b90
lea rdx, [rbx + 0xd90]
lea rcx, [rbx + 0xdc0]
call fcn.14003e810
lea rdx, [rbx + 0x1758]
lea rcx, [rbx + 0xdc0]
call fcn.14003e810
mov edi, dword [rbx + 0xf20]
lea eax, [rdi - 1]
mov ecx, 0xbb8
cmp eax, 0xbb6
cmovbe edi, ecx
mov r15, qword [rsp + 0x48]
test r15, r15
je 0x1402002be
mov byte [r15 + 0xdc], 1
mov dword [rsp + 0x68], 0
lea rcx, [rbx + 0xdc0]
call fcn.140042d30
mov r8d, eax
lea rdx, [rbx + 0xdc0]
lea rcx, [rbx + 0xbe0]
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r14
lea rax, [rsp + 0x68]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], edi
xor r9d, r9d
call fcn.1401f2530
movzx esi, al
test al, al
jne 0x140200373
cmp dword [rsp + 0x68], 0
jbe 0x140200363
lea rcx, [rbx + 0xdc0]
call fcn.140042d30
mov r8d, eax
lea rdx, str.packetSize
mov rcx, r14
call fcn.14004d750
mov r8d, dword [rsp + 0x68]
lea rdx, str.numBytesSent
mov rcx, r14
call fcn.14004d750
mov r8d, edi
lea rdx, str.idleTimeoutMs
mov rcx, r14
call fcn.14004d750
lea rdx, str.Failed_to_send_entire_SSH_packet.
jmp 0x14020036a
lea rdx, str.SSH_SendBytes_failed.
mov rax, qword [r14]
mov rcx, r14
call qword [rax + 0x28]
test r15, r15
je 0x140200380
mov byte [r15 + 0xdc], 0
inc dword [rbx + 0xf18]
test sil, sil
jne 0x1402003a8
lea r9, [0x140254f04]
lea r8, str.Failed_to_send.
lea rdx, str.TRAN
mov rcx, rbx
call fcn.140204580
movzx eax, sil
mov rcx, qword [rbp + 0xb80]
xor rcx, rsp
call fcn.1402474e0
add rsp, 0xc98
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret