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

Disassembly:
push 0xffffffffffffffff
push 0x650076
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x89c
mov eax, dword [esp + 0x8bc]
mov edx, dword [esp + 0x8b8]
push ebx
push ebp
mov ebp, ecx
push esi
mov ecx, dword [eax + 4]
mov dword [edx], 0
mov al, byte [ebp + 0xc4]
push edi
test al, al
mov dword [esp + 0x24], ecx
je 0x578055
mov esi, dword [esp + 0x8c0]
test esi, esi
je 0x57803c
lea ecx, [esp + 0x30]
call fcn.004e57f0
push esi
push 0x6b8d90
lea ecx, [esp + 0x38]
mov dword [esp + 0x8bc], 0
call fcn.004e3e40
push 0x6b5dfc
lea ecx, [esp + 0x34]
call fcn.004e50d0
test al, al
jne 0x578008
push 0x6b5dfc
lea ecx, [esp + 0x34]
call fcn.004e5040
lea ecx, [esp + 0x30]
call fcn.004dda00
push eax
mov eax, dword [esp + 0x8c0]
push eax
push 0x6ff88c
mov ecx, ebp
call fcn.00579ee0
lea ecx, [esp + 0x30]
mov dword [esp + 0x8b4], 0xffffffff
call fcn.004e58d0
jmp 0x578055
mov ecx, dword [esp + 0x8bc]
push 0x6b5dfc
push ecx
push 0x6ff88c
mov ecx, ebp
call fcn.00579ee0
call sub.KERNEL32.dll_GetTickCount
mov ecx, dword [ebp + 0x468]
mov edi, dword [esp + 0x8c4]
inc ecx
lea esi, [ebp + 0x540]
mov dword [ebp + 0x468], ecx
mov ecx, esi
mov dword [ebp + 0x45c], eax
mov dword [esp + 0x1c], edi
call fcn.004dd9e0
mov eax, dword [ebp + 0xad8]
test eax, eax
je 0x578123
mov al, byte [ebp + 0x4ec]
test al, al
je 0x5780b8
mov edx, dword [esp + 0x8d0]
lea ecx, [ebp + 0x4f0]
push edx
push esi
call fcn.00621620
mov byte [ebp + 0x4ec], 0
mov eax, dword [ebp + 0x5e8]
xor bl, bl
test eax, eax
mov byte [esp + 0x10], bl
je 0x5780d5
mov bl, 1
dec eax
mov byte [esp + 0x10], bl
mov dword [ebp + 0x5e8], eax
mov eax, dword [esp + 0x8d0]
mov ecx, dword [esp + 0x10]
push 0
push eax
push esi
push ecx
push edi
lea ecx, [ebp + 0x4f0]
call fcn.00621710
mov ecx, edi
call fcn.005a8750
test bl, bl
mov edi, eax
jne 0x57811f
cmp edi, 0x40
jbe 0x57811f
mov ecx, esi
call fcn.005a8750
mov edx, edi
shr edx, 3
add eax, edx
cmp eax, edi
jbe 0x57811f
mov dword [ebp + 0x5e8], 0x10
mov dword [esp + 0x1c], esi
mov eax, dword [ebp + 0xb00]
mov esi, 8
cmp eax, 1
je 0x578156
cmp eax, 2
je 0x578156
cmp eax, 0xc
je 0x578156
cmp eax, 9
je 0x578156
cmp eax, 0xa
je 0x578156
cmp eax, 0xb
je 0x578156
cmp eax, 3
je 0x578156
cmp eax, 4
jne 0x57815b
mov esi, 0x10
mov ecx, dword [esp + 0x1c]
call fcn.005a8750
mov ecx, dword [ebp + 0xb00]
xor edx, edx
cmp ecx, 0xd
lea edi, [eax + 5]
setne dl
dec edx
mov dword [esp + 0x2c], eax
and edx, 4
mov eax, edi
sub eax, edx
xor edx, edx
add eax, 4
div esi
mov eax, esi
sub eax, edx
xor edx, edx
div esi
mov ebx, edx
add ebx, 4
add edi, ebx
mov dword [esp + 0x10], ebx
cmp edi, 0x10
jae 0x5781ad
cmp ecx, 0xd
je 0x5781ad
add ebx, esi
add edi, esi
mov dword [esp + 0x10], ebx
mov ecx, dword [esp + 0x8c8]
lea esi, [ebp + 0x578]
lea eax, [edi - 4]
mov dword [ecx], edi
mov ecx, esi
mov dword [esp + 0x18], eax
call fcn.004dd9e0
mov eax, dword [ebp + 0xb00]
cmp eax, 0xd
jne 0x5782a8
add edi, 0x10
mov ecx, esi
push edi
mov dword [esp + 0x2c], edi
call fcn.004dda20
mov ebx, eax
mov eax, dword [esp + 0x18]
mov edx, eax
mov ecx, eax
shr edx, 0x18
mov byte [ebx], dl
mov edx, eax
shr ecx, 0x10
shr edx, 8
mov byte [ebx + 1], cl
mov byte [ebx + 2], dl
mov byte [ebx + 3], al
mov ecx, dword [ebp + 0x664]
push ecx
lea eax, [ebp + 0x188c]
push 4
push ebx
push eax
mov ecx, ebp
call fcn.00574b40
mov dl, byte [esp + 0x10]
mov ecx, dword [esp + 0x1c]
mov byte [ebx + 4], dl
call fcn.004dda10
mov esi, eax
mov eax, dword [esp + 0x2c]
mov ecx, eax
lea edi, [ebx + 5]
mov edx, ecx
lea eax, [ebx + eax + 5]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x14]
push ecx
call fcn.0055c590
mov edx, dword [esp + 0x20]
lea eax, [ebx + 4]
push edx
push eax
lea eax, [ebp + 0x1910]
push eax
call fcn.00574b70
mov ecx, dword [esp + 0x8e4]
mov eax, dword [esp + 0x2c]
mov edx, dword [ebp + 0x664]
add esp, 0x14
add eax, 4
push ecx
push edx
push eax
push ebx
lea ecx, [ebp + 0x188c]
call fcn.00577e20
mov ecx, dword [esp + 0x28]
push ecx
lea ecx, [ebp + 0x578]
call fcn.004dda50
jmp 0x5783d5
test eax, eax
push esi
je 0x5783aa
mov edx, dword [esp + 0x1c]
push edx
call fcn.005da3a0
add esp, 8
mov ecx, esi
push ebx
call fcn.004e0da0
mov eax, dword [esp + 0x1c]
mov ecx, esi
push eax
call fcn.004de6c0
push esi
push ebx
call fcn.0055c550
lea ebx, [ebp + 0x55c]
add esp, 8
mov ecx, ebx
call fcn.004dd9e0
mov eax, dword [ebp + 0xb1c]
test eax, eax
jne 0x57830b
mov ecx, dword [esp + 0x8d0]
push str.No_output_encryptor_
mov edx, dword [ecx]
call dword [edx + 0x14]
xor al, al
jmp 0x578615
mov edi, dword [esp + 0x8d0]
mov ecx, esi
push edi
push ebx
call fcn.005a8750
push eax
mov ecx, esi
call fcn.004dda10
push eax
lea eax, [ebp + 0xbb4]
lea ecx, [ebp + 0x11a0]
push eax
push ecx
mov ecx, dword [ebp + 0xb1c]
call fcn.0052ec70
mov ecx, ebx
call fcn.005a8750
mov ecx, esi
mov ebx, eax
call fcn.005a8750
cmp ebx, eax
je 0x5783dc
mov edx, dword [edi]
push str.Size_of_encrypted_data_changed_
mov ecx, edi
call dword [edx + 0x14]
mov ecx, esi
call fcn.005a8750
push eax
push str.unencryptedPacketSize
mov ecx, edi
call fcn.004effe0
lea ecx, [ebp + 0x55c]
call fcn.005a8750
push eax
push str.encryptedPacketSize
mov ecx, edi
call fcn.004effe0
push 0x6b5dfc
push str.Failed_to_encrypt.
push str.TRAN
mov ecx, ebp
call fcn.00579ee0
xor al, al
jmp 0x578615
mov eax, dword [esp + 0x1c]
push eax
call fcn.005da3a0
add esp, 8
mov ecx, esi
push ebx
call fcn.004e0da0
mov ecx, dword [esp + 0x1c]
push ecx
mov ecx, esi
call fcn.004de6c0
push esi
push ebx
call fcn.0055c550
add esp, 8
mov edi, dword [esp + 0x8d0]
cmp dword [ebp + 0xb00], 0xd
je 0x578522
lea ebx, [ebp + 0x524]
mov ecx, ebx
call fcn.004dd9e0
mov eax, dword [ebp + 0xae4]
xor esi, esi
cmp eax, esi
je 0x5784dd
mov eax, dword [ebp + 0x664]
mov edx, eax
mov ecx, eax
shr edx, 0x18
shr ecx, 0x10
mov byte [esp + 0x10], dl
mov dl, byte [ebp + 0x664]
mov byte [esp + 0x11], cl
lea ecx, [esp + 0xa4]
shr eax, 8
mov byte [esp + 0x12], al
mov byte [esp + 0x13], dl
call fcn.004e07d0
mov dword [esp + 0xa8], esi
mov dword [esp + 0x4a8], esi
lea esi, [ebp + 0x578]
lea eax, [esp + 0x10]
mov ecx, esi
mov dword [esp + 0x8b4], 1
mov dword [esp + 0x8a8], 3
mov dword [esp + 0xac], eax
mov dword [esp + 0x4ac], 4
call fcn.004dda10
mov ecx, esi
mov dword [esp + 0xb0], eax
call fcn.005a8750
mov ecx, dword [ebp + 0x1a90]
push edi
lea esi, [ebp + 0x1ab0]
push ebx
push ecx
mov ecx, esi
mov dword [esp + 0x4bc], eax
call fcn.005a8750
push eax
mov ecx, esi
call fcn.004dda10
lea edx, [esp + 0xb4]
push eax
push edx
call fcn.005dd1e0
add esp, 0x18
lea ecx, [esp + 0xa4]
mov dword [esp + 0x8b4], 0xffffffff
call fcn.004e0810
mov eax, dword [ebp + 0xb00]
test eax, eax
je 0x5784f9
lea eax, [ebp + 0x55c]
lea ecx, [ebp + 0x578]
push eax
call fcn.004e0cd0
mov ecx, ebx
call fcn.005a8750
test eax, eax
je 0x578522
cmp dword [ebp + 0xae4], 6
jne 0x578516
push 8
mov ecx, ebx
call fcn.004dfbb0
push ebx
lea ecx, [ebp + 0x578]
call fcn.004de6c0
mov ebx, dword [ebp + 0x66c]
test ebx, ebx
je 0x578539
cmp ebx, 0xbb8
jae 0x578539
mov ebx, 0xbb8
mov eax, dword [esp + 0x24]
test eax, eax
je 0x578548
mov byte [eax + 0x94], 1
mov ecx, dword [esp + 0x8cc]
lea edx, [esp + 0x20]
push ecx
push edi
push edx
lea esi, [ebp + 0x578]
push ebx
push 0
mov ecx, esi
mov dword [esp + 0x34], 0
call fcn.005a8750
push eax
push esi
lea ecx, [ebp + 0x46c]
call fcn.006223a0
test al, al
mov byte [esp + 0x17], al
jne 0x5785d7
mov eax, dword [esp + 0x20]
test eax, eax
jbe 0x5785cb
mov ecx, esi
call fcn.005a8750
push eax
push str.packetSize
mov ecx, edi
call fcn.004effe0
mov eax, dword [esp + 0x20]
mov ecx, edi
push eax
push str.numBytesSent
call fcn.004effe0
push ebx
push str.idleTimeoutMs
mov ecx, edi
call fcn.004effe0
mov edx, dword [edi]
push str.Failed_to_send_entire_SSH_packet.
mov ecx, edi
call dword [edx + 0x14]
jmp 0x5785d7
mov eax, dword [edi]
push str.SSH_SendBytes_failed.
mov ecx, edi
call dword [eax + 0x14]
mov eax, dword [esp + 0x24]
test eax, eax
je 0x5785e6
mov byte [eax + 0x94], 0
mov ecx, dword [ebp + 0x664]
mov al, byte [esp + 0x17]
inc ecx
test al, al
mov dword [ebp + 0x664], ecx
jne 0x578611
push 0x6b5dfc
push str.Failed_to_send.
push str.TRAN
mov ecx, ebp
call fcn.00579ee0
mov al, byte [esp + 0x17]
mov ecx, dword [esp + 0x8ac]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x8a8
ret 0x18