joyce8/EMBER2024-capa huggingface dataset:
Function at 0x575b50
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
push 0xffffffffffffffff
push 0x691738
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov eax, dword [0x78f694]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [esp + 0x34]
movzx eax, byte [edi + 0x121]
push eax
push str.createSocket_ipv4
push edi
lea ecx, [esp + 0x20]
call fcn.004b1880
xor ebx, ebx
mov dword [esp + 0x28], ebx
call fcn.005723d0
test al, al
jne 0x575bbb
lea ecx, [esp + 0x14]
mov dword [esp + 0x28], 0xffffffff
call fcn.004b18c0
xor al, al
jmp 0x575d8c
mov ecx, esi
call fcn.00573ed0
mov ebp, dword [sym.imp.WS2_32.dll_socket]
push ebx
push 1
push 2
mov byte [esp + 0x40], 1
call ebp
cmp eax, 0xffffffff
mov dword [esi + 0x294], eax
jne 0x575c3c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
cmp ebx, 0x2726
jne 0x575bff
mov edx, dword [edi]
mov eax, dword [edx + 0x18]
push str.Retry_with_IPPROTO_TCP_explicitly_specified...
mov ecx, edi
call eax
jmp 0x575c2e
cmp ebx, 0x2734
jne 0x575c3c
push 0x14
call fcn.004ab8b0
add esp, 4
push 0
push 1
push 2
call ebp
cmp eax, 0xffffffff
mov dword [esi + 0x294], eax
jne 0x575c3c
push 0x14
call fcn.004ab8b0
add esp, 4
push 6
push 1
push 2
call ebp
mov dword [esi + 0x294], eax
cmp dword [esi + 0x294], 0xffffffff
jne 0x575ca9
cmp ebx, 0x276d
jne 0x575c84
mov ecx, edi
call fcn.005721e0
test al, al
jne 0x575c5f
push str.startupWSA_failed__B_
jmp 0x575c9b
push 0
push 1
push 2
call ebp
cmp eax, 0xffffffff
mov dword [esi + 0x294], eax
jne 0x575ca9
push edi
push 0
call fcn.00574660
add esp, 8
push str.Failed_to_create_TCP_socket__AF_INET_SOCK_STREAM_
jmp 0x575c9b
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push edi
push 0
push eax
call fcn.00572a30
add esp, 0xc
push str.Failed_to_create_TCP_socket__AF_INET___SOCK_STREAM_
mov edx, dword [edi]
mov eax, dword [edx + 0x14]
mov ecx, edi
call eax
mov byte [esp + 0x34], 0
cmp dword [esi + 0x294], 0xffffffff
mov dword [esi + 0x298], 2
je 0x575d77
mov ebp, dword [esp + 0x30]
cmp byte [ebp + 0xb94], 0
jne 0x575cd5
push edi
mov ecx, esi
call fcn.00572670
cmp byte [ebp + 0xb9c], 0
jne 0x575ce6
push edi
mov ecx, esi
call fcn.005726f0
cmp byte [esp + 0x38], 0
je 0x575d77
lea ebx, [ebp + 0xba0]
mov ecx, ebx
call fcn.005d5d40
test eax, eax
jne 0x575d0a
cmp dword [ebp + 0xc14], eax
je 0x575d77
push ebx
push str.bindIpAddr1
mov ecx, edi
call fcn.004b1210
mov eax, dword [ebp + 0xc14]
test eax, eax
je 0x575d2e
push eax
push str.bindPort
mov ecx, edi
call fcn.004b14c0
push edi
lea ecx, [esp + 0x3c]
push ecx
mov ecx, ebx
mov byte [esp + 0x40], 0
call fcn.00483ec0
movzx edx, word [ebp + 0xc14]
push eax
push edx
mov ecx, esi
call fcn.00575040
test al, al
mov byte [esp + 0x34], al
jne 0x575d77
mov eax, dword [edi]
mov edx, dword [eax + 0x14]
push str.Failed_to_bind_to_local_IP_address
mov ecx, edi
call edx
mov ecx, esi
call fcn.00573ed0
mov dword [esi + 0x294], 0xffffffff
lea ecx, [esp + 0x14]
mov dword [esp + 0x28], 0xffffffff
call fcn.004b18c0
mov al, byte [esp + 0x34]
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret 0xc
Function at 0x576010
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
cmp dword [ecx + 0x298], 2
jne 0x57601e
jmp fcn.00574680
jmp fcn.005747b0
Function at 0x5769c0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push 0xffffffffffffffff
push 0x692388
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x78f694]
xor eax, esp
mov dword [esp + 0x14], eax
push esi
push edi
mov eax, dword [0x78f694]
xor eax, esp
push eax
lea eax, [esp + 0x24]
mov dword fs:[0], eax
mov edi, dword [esp + 0x34]
mov esi, ecx
mov eax, dword [esi + 0x294]
cmp eax, 0xffffffff
jne 0x576a08
mov byte [esi + 0x290], 0
cmp byte [esi + 0x290], 0
je 0x576a48
cmp byte [esi + 0xd6], 0
jne 0x576a48
cmp byte [esi + 0xd5], 0
jne 0x576a99
cmp byte [esi + 0xd4], 0
jne 0x576a99
push 2
push 1
lea ecx, [esp + 0x20]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jne 0x576a4c
push edi
mov ecx, esi
call fcn.00575200
xor al, al
jmp 0x576a9b
cmp eax, 0xffffffff
je 0x576a55
test eax, eax
jge 0x576a99
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x576a99
push str.isConnected_recv_peek
push edi
lea ecx, [esp + 0x14]
call fcn.004b1850
push edi
push 0
mov dword [esp + 0x34], 0
call fcn.00574660
add esp, 8
lea ecx, [esp + 0xc]
mov dword [esp + 0x2c], 0xffffffff
call fcn.004b18c0
xor al, al
jmp 0x576a9b
mov al, 1
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.0062cbd3
add esp, 0x24
ret 4
Function at 0x583d90
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x693666
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
mov eax, dword [0x78f694]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
xor ebx, ebx
lea ecx, [esi + 0x14]
mov dword [esi], vtable.TlsRawRecord.0
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov byte [esi + 0x10], bl
call fcn.00468060
lea ecx, [esi + 0x30]
mov dword [esp + 0x18], ebx
call fcn.00468060
lea ecx, [esi + 0x4c]
mov byte [esp + 0x18], 1
call fcn.00468060
mov byte [esi + 0x68], bl
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x10
ret

Function at 0x583e10
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x6936a6
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x78f694]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 8], esi
mov dword [esi], vtable.TlsRawRecord.0
lea ecx, [esi + 0x4c]
mov dword [esp + 0x14], 1
call fcn.00468860
lea ecx, [esi + 0x30]
mov byte [esp + 0x14], 0
call fcn.00468860
lea ecx, [esi + 0x14]
mov dword [esp + 0x14], 0xffffffff
call fcn.00468860
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret

Function at 0x583f20
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x693729
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
mov eax, dword [0x78f694]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
call fcn.0048ea90
xor ebx, ebx
mov dword [esi + 0x28], ebx
lea ecx, [esi + 0x34]
mov dword [esp + 0x18], ebx
mov dword [esi], vtable.TlsServerHello.0
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], ebx
call fcn.00468060
lea ecx, [esi + 0x50]
mov byte [esp + 0x18], 1
call fcn.00468060
lea ecx, [esi + 0x70]
mov byte [esp + 0x18], 2
mov dword [esi + 0x6c], ebx
call fcn.00468060
lea ecx, [esi + 0x94]
mov byte [esp + 0x18], 3
mov byte [esi + 0x8e], bl
mov byte [esi + 0x8f], bl
mov byte [esi + 0x90], bl
mov byte [esi + 0x91], bl
call fcn.00468060
mov byte [esi + 0xb0], bl
mov byte [esi + 0xb1], bl
mov byte [esi + 0x8c], bl
mov byte [esi + 0x8d], bl
mov dword [esi + 0x28], 2
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x10
ret
Function at 0x584100
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x693897
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
mov eax, dword [0x78f694]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
call fcn.0048ea90
xor ebx, ebx
mov dword [esi + 0x28], ebx
lea ecx, [esi + 0x34]
mov dword [esp + 0x18], ebx
mov dword [esi], vtable.TlsServerKeyExchange.0
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], ebx
call fcn.00468060
lea ecx, [esi + 0x50]
mov byte [esp + 0x18], 1
call fcn.00468060
lea ecx, [esi + 0x6c]
mov byte [esp + 0x18], 2
call fcn.00468060
lea ecx, [esi + 0x88]
mov byte [esp + 0x18], 3
call fcn.00468060
lea ecx, [esi + 0xa4]
mov byte [esp + 0x18], 4
call fcn.00468060
mov byte [esi + 0xc0], bl
mov dword [esi + 0xc4], ebx
mov dword [esi + 0x1c8], ebx
mov dword [esi + 0x28], 0xc
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x10
ret
Function at 0x587dc0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x681708
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push esi
push edi
mov eax, dword [0x78f694]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [esi + 0x308]
test edi, edi
je 0x587df8
cmp byte [esp + 0x38], 0
je 0x587e05
lea ecx, [esi + 0x2e8]
call fcn.00544a30
mov edi, eax
lea ecx, [esp + 0xc]
call fcn.00468060
push 0x40
lea ecx, [esp + 0x10]
mov dword [esp + 0x34], 0
mov byte [esp + 0x28], 1
call fcn.0046c5f0
test al, al
jne 0x587e51
lea ecx, [esp + 0xc]
mov dword [esp + 0x30], 0xffffffff
call fcn.00468860
xor al, al
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x28
ret 0x14
cmp dword [esi + 0x60], 2
jne 0x587e60
lea eax, [esp + 0xc]
push eax
push 2
jmp 0x587e67
lea ecx, [esp + 0xc]
push ecx
push 7
push edi
lea ecx, [esi + 0x2e8]
call fcn.00467d80
push eax
call fcn.0048e660
add esp, 0x10
cmp byte [esp + 0x3c], 0
mov edi, str.client_finished
jne 0x587e8d
mov edi, str.server_finished
mov edx, dword [esi + 0x78]
mov eax, dword [esp + 0x44]
push edx
push eax
lea ecx, [esp + 0x14]
call fcn.00544a30
push eax
lea ecx, [esp + 0x18]
call fcn.00467d80
push eax
push edi
push 0x30
lea ecx, [esi + 0x2cc]
call fcn.00467d80
push eax
mov ecx, esi
call fcn.0057f600
mov ecx, dword [esi + 0x78]
mov edx, dword [esp + 0x48]
mov dword [edx], ecx
lea ecx, [esp + 0xc]
mov dword [esp + 0x30], 0xffffffff
call fcn.00468860
mov al, 1
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x28
ret 0x14
Function at 0x597120
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x697238
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
push edi
mov eax, dword [0x78f694]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [esp + 0x30]
push str.sshTlsCloseChannel
push edi
lea ecx, [esp + 0x14]
call fcn.004b1850
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
push edi
push eax
push ecx
lea ecx, [esi + 0xc]
mov dword [esp + 0x2c], 0
call fcn.005a6d50
lea ecx, [esp + 0xc]
mov esi, eax
mov dword [esp + 0x20], 0xffffffff
call fcn.004b18c0
mov eax, esi
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x18
ret 0xc

Function at 0x5971a0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x6931a8
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x78f694]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [esp + 0x30]
push str.sshTlsCloseTunnel
push edi
lea ecx, [esp + 0x18]
call fcn.004b1850
mov eax, dword [esp + 0x2c]
push edi
push eax
lea ecx, [esi + 0xc]
mov dword [esp + 0x2c], 0
call fcn.005a6e10
lea ecx, [esp + 0x10]
mov bl, al
mov dword [esp + 0x24], 0xffffffff
call fcn.004b18c0
mov al, bl
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x18
ret 8

Function at 0x597690
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x691738
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov eax, dword [0x78f694]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [esp + 0x44]
movzx eax, byte [edi + 0x122]
push eax
push str.scReceiveBytes
push edi
lea ecx, [esp + 0x20]
call fcn.004b1880
mov ebp, dword [esp + 0x48]
mov ebx, dword [esp + 0x3c]
mov ecx, dword [esp + 0x30]
mov byte [ebp], 0
mov dword [esp + 0x28], 0
mov byte [ebx], 0
call fcn.00544a30
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x34]
push edi
push ecx
mov ecx, dword [esp + 0x38]
push ebx
push edx
push eax
push ecx
lea edx, [esi + 0xc]
push edx
lea ecx, [esi + 0x8c]
call fcn.005962d0
mov bl, al
movzx eax, byte [esi + 0xb4]
lea ecx, [esp + 0x14]
mov byte [ebp], al
mov dword [esp + 0x28], 0xffffffff
call fcn.004b18c0
mov al, bl
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret 0x1c
Function at 0x598600
Capabilities:
Encrypt data using salsa20 or chacha

Disassembly:
xor edx, edx
mov ecx, dword [0x78ca48]
mov dh, byte [ecx + 3]
push edi
movzx edi, byte [ecx + 1]
mov dl, byte [ecx + 2]
shl edx, 8
or edx, edi
movzx edi, byte [ecx]
shl edx, 8
or edx, edi
mov dword [esi], edx
xor edx, edx
mov dh, byte [ecx + 7]
movzx edi, byte [ecx + 5]
mov dl, byte [ecx + 6]
shl edx, 8
or edx, edi
movzx edi, byte [ecx + 4]
shl edx, 8
or edx, edi
mov dword [esi + 4], edx
xor edx, edx
mov dh, byte [ecx + 0xb]
movzx edi, byte [ecx + 9]
mov dl, byte [ecx + 0xa]
shl edx, 8
or edx, edi
movzx edi, byte [ecx + 8]
shl edx, 8
or edx, edi
mov dword [esi + 8], edx
xor edx, edx
mov dh, byte [ecx + 0xf]
movzx edi, byte [ecx + 0xd]
mov dl, byte [ecx + 0xe]
movzx ecx, byte [ecx + 0xc]
shl edx, 8
or edx, edi
shl edx, 8
or edx, ecx
mov dword [esi + 0xc], edx
xor edx, edx
mov dh, byte [eax + 3]
movzx ecx, byte [eax + 1]
mov dl, byte [eax + 2]
shl edx, 8
or edx, ecx
movzx ecx, byte [eax]
shl edx, 8
or edx, ecx
mov dword [esi + 0x10], edx
xor edx, edx
mov dh, byte [eax + 7]
movzx ecx, byte [eax + 5]
mov dl, byte [eax + 6]
shl edx, 8
or edx, ecx
movzx ecx, byte [eax + 4]
shl edx, 8
or edx, ecx
mov dword [esi + 0x14], edx
movzx ecx, byte [eax + 9]
xor edx, edx
mov dh, byte [eax + 0xb]
mov dl, byte [eax + 0xa]
shl edx, 8
or edx, ecx
movzx ecx, byte [eax + 8]
shl edx, 8
or edx, ecx
mov dword [esi + 0x18], edx
movzx ecx, byte [eax + 0xd]
xor edx, edx
mov dh, byte [eax + 0xf]
mov dl, byte [eax + 0xe]
shl edx, 8
or edx, ecx
movzx ecx, byte [eax + 0xc]
shl edx, 8
or edx, ecx
mov dword [esi + 0x1c], edx
xor edx, edx
mov dh, byte [eax + 0x13]
movzx ecx, byte [eax + 0x11]
pop edi
mov dl, byte [eax + 0x12]
shl edx, 8
or edx, ecx
movzx ecx, byte [eax + 0x10]
shl edx, 8
or edx, ecx
mov dword [esi + 0x20], edx
movzx ecx, byte [eax + 0x15]
xor edx, edx
mov dh, byte [eax + 0x17]
mov dl, byte [eax + 0x16]
shl edx, 8
or edx, ecx
movzx ecx, byte [eax + 0x14]
shl edx, 8
or edx, ecx
mov dword [esi + 0x24], edx
movzx ecx, byte [eax + 0x19]
xor edx, edx
mov dh, byte [eax + 0x1b]
mov dl, byte [eax + 0x1a]
shl edx, 8
or edx, ecx
movzx ecx, byte [eax + 0x18]
shl edx, 8
or edx, ecx
mov dword [esi + 0x28], edx
movzx ecx, byte [eax + 0x1d]
xor edx, edx
mov dh, byte [eax + 0x1f]
mov dl, byte [eax + 0x1e]
movzx eax, byte [eax + 0x1c]
mov dword [esi + 0x40], 0x40
shl edx, 8
or edx, ecx
shl edx, 8
or edx, eax
mov dword [esi + 0x2c], edx
ret
Function at 0x59a3d0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x681708
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push esi
push edi
mov eax, dword [0x78f694]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov esi, ecx
lea ecx, [esp + 0xc]
call fcn.00468060
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x38]
push eax
push ecx
lea ecx, [esp + 0x14]
mov dword [esp + 0x38], 0
call fcn.0046bd30
cmp byte [esi + 0x4ed], 0
mov edi, dword [esp + 0x44]
push 0
push edi
je 0x59a4a9
mov edx, dword [esp + 0x48]
push edx
lea eax, [esp + 0x18]
push eax
push 1
lea ecx, [esi + 0x508]
call fcn.005a5e60
test al, al
jne 0x59a47b
mov edx, dword [edi]
mov eax, dword [edx + 0x14]
push str.Failed_to_begin_zlib_decompression.
mov ecx, edi
call eax
lea ecx, [esp + 0xc]
mov dword [esp + 0x30], 0xffffffff
call fcn.00468860
xor al, al
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x28
ret 0x10
mov byte [esi + 0x4ed], 0
lea ecx, [esp + 0xc]
mov dword [esp + 0x30], 0xffffffff
call fcn.00468860
mov al, 1
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x28
ret 0x10
mov ecx, dword [esp + 0x48]
push ecx
lea edx, [esp + 0x18]
push edx
lea ecx, [esi + 0x508]
call fcn.005a5d50
test al, al
jne 0x59a482
mov eax, dword [edi]
mov edx, dword [eax + 0x14]
push str.Failed_to_continue_zlib_decompression.
mov ecx, edi
call edx
jmp 0x59a454

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

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0
je 0x59d990
cmp dword [esi + 4], 0
jne 0x59d959
call sub.KERNEL32.dll_GetTickCount
mov dword [esi + 4], eax
cmp dword [esi + 0x10], 0x3e8
jae 0x59d969
mov dword [esi + 0x10], 0x7530
call sub.KERNEL32.dll_GetTickCount
mov ecx, dword [esi + 4]
cmp eax, ecx
jbe 0x59d990
sub eax, ecx
cmp eax, dword [esi + 0x10]
jbe 0x59d990
mov esi, dword [esp + 0xc]
mov ecx, esi
call fcn.00512090
mov al, 1
mov byte [esi + 0x14], al
pop esi
ret 0xc
xor al, al
pop esi
ret 0xc
Function at 0x59e680
Capabilities:
Access peb ldr_data

Disassembly:
push esi
mov esi, ecx
mov ecx, 0xc64d29ea
cmp dword [esi + 0xa0], ecx
jne 0x51df5f
mov eax, dword [esi + 0xb08]
test eax, eax
je 0x51df90
cmp dword [eax + 0x24], ecx
je 0x51dfa4
push 0
call fcn.0047ab30
add esp, 4
cmp dword [esi + 0xb14], 2
jne 0x51dfb0
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
push edx
push eax
push ecx
lea ecx, [esi + 0x164]
call fcn.00596f00
pop esi
ret 0xc
cmp dword [esi + 0xb14], 2
jne 0x51dfb0
lea ecx, [esi + 0x164]
call fcn.00597100
test eax, eax
je 0x51df69
pop esi
mov ecx, eax
jmp 0x59e680
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
push edx
push eax
push ecx
lea ecx, [esi + 0x7b8]
call fcn.00576010
pop esi
ret 0xc
push 0xffffffffffffffff
push 0x68c018
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
mov eax, dword [0x78f694]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov esi, ecx
push esi
lea ecx, [esp + 0x10]
call fcn.004afa40
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
push eax
push ecx
push edx
lea ecx, [esi + 0x46c]
mov dword [esp + 0x2c], 0
call fcn.005a7080
lea ecx, [esp + 0xc]
mov bl, al
mov dword [esp + 0x20], 0xffffffff
call fcn.004afa70
mov al, bl
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x18
ret 0xc
Function at 0x5a36d0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push 0xffffffffffffffff
push 0x691738
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov eax, dword [0x78f694]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov ebx, ecx
mov esi, dword [esp + 0x30]
movzx eax, byte [esi + 0x24]
mov edi, dword [esp + 0x3c]
push eax
push str.readExpectedMessage
push edi
lea ecx, [esp + 0x20]
call fcn.004b1880
xor ebp, ebp
cmp byte [esi + 0x24], 0
mov dword [esp + 0x28], ebp
je 0x5a3734
cmp dword [esi + 0x28], ebp
jne 0x5a3734
mov edx, dword [edi]
mov eax, dword [edx + 0x14]
push str.No_m_pHandler.
mov ecx, edi
call eax
cmp dword [esi + 4], ebp
mov dword [esi + 0x34], ebp
jne 0x5a3744
call sub.KERNEL32.dll_GetTickCount
mov dword [esi + 4], eax
mov ebp, dword [esp + 0x38]
mov eax, dword [esi + 0x10]
cmp eax, 5
jne 0x5a3777
cmp dword [0x796b80], 0xa
jge 0x5a376e
mov edx, dword [edi]
mov eax, dword [edx + 0x14]
push str.sshRp.m_totalTimeoutMs_wf_is_too_small__2_
mov ecx, edi
call eax
add dword [0x796b80], 1
mov dword [esi + 0x10], 0x7530
jmp 0x5a377b
test eax, eax
je 0x5a37ac
cmp dword [esi + 4], 0
jne 0x5a3789
call sub.KERNEL32.dll_GetTickCount
mov dword [esi + 4], eax
cmp dword [esi + 0x10], 0x3e8
jae 0x5a3799
mov dword [esi + 0x10], 0x7530
call sub.KERNEL32.dll_GetTickCount
mov ecx, dword [esi + 4]
cmp eax, ecx
jbe 0x5a37ac
sub eax, ecx
cmp eax, dword [esi + 0x10]
ja 0x5a37fe
push edi
push ebp
push esi
mov ecx, ebx
call fcn.005a3170
test al, al
je 0x5a3830
mov ecx, ebp
call fcn.00512030
test al, al
jne 0x5a3830
cmp byte [esp + 0x34], al
je 0x5a37d5
cmp dword [esi + 0x34], 0x5d
je 0x5a3748
lea ecx, [esp + 0x14]
mov dword [esp + 0x28], 0xffffffff
call fcn.004b18c0
mov al, 1
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret 0x10
mov ecx, ebp
call fcn.00512090
mov byte [ebp + 0x14], 1
cmp byte [edi + 0x121], 0
je 0x5a3830
mov edx, dword [edi]
mov eax, dword [edx + 0x14]
push str.Too_much_time_elapsed_waiting_for_response.
mov ecx, edi
call eax
mov ecx, dword [esi + 0x10]
push ecx
push str.totalTimeoutMs
mov ecx, edi
call fcn.004b14c0
lea ecx, [esp + 0x14]
mov dword [esp + 0x28], 0xffffffff
call fcn.004b18c0
xor al, al
jmp 0x5a37e8
Function at 0x5a3ca0
Capabilities:
Check for time delay via gettickcount
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x695950
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x78f694]
xor eax, esp
push eax
lea eax, [esp + 0x80]
mov dword fs:[0], eax
mov dword [esp + 0x14], ecx
mov esi, dword [esp + 0x9c]
push str.readUntilRcvWindowAdjust
push esi
lea ecx, [esp + 0x20]
call fcn.004b1850
xor ebx, ebx
mov dword [esp + 0x88], ebx
call sub.KERNEL32.dll_GetTickCount
mov dword [esp + 0x9c], eax
mov eax, dword [esp + 0x90]
cmp dword [eax + 0xb0], ebx
jne 0x5a3e36
mov ebp, dword [esp + 0x94]
mov edi, dword [esp + 0x98]
lea ebx, [ebx]
lea ecx, [esp + 0x5c]
mov dword [esp + 0x24], vtable.SshReadParams.0
mov dword [esp + 0x28], ebx
mov byte [esp + 0x2c], 1
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], 0xea60
mov dword [esp + 0x38], 0xffffffff
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebx
mov byte [esp + 0x48], bl
mov dword [esp + 0x4c], ebx
mov byte [esp + 0x50], bl
mov byte [esp + 0x51], bl
mov byte [esp + 0x52], bl
mov byte [esp + 0x53], bl
mov byte [esp + 0x54], bl
mov byte [esp + 0x55], bl
mov dword [esp + 0x58], ebx
call fcn.00468060
mov dword [esp + 0x78], ebx
mov dword [esp + 0x7c], ebx
mov ecx, dword [ebp + 0x10]
mov dword [esp + 0x34], ecx
mov ecx, edi
mov byte [esp + 0x88], 1
mov dword [esp + 0x38], 0xffffffff
mov dword [esp + 0x30], ebx
call fcn.00512090
mov ecx, dword [esp + 0x14]
push esi
push edi
push ebp
call fcn.005a3170
mov ecx, dword [edi + 4]
cmp ecx, ebx
je 0x5a3dc9
push esi
call fcn.004d0e20
test al, al
jne 0x5a3e65
mov ecx, edi
call fcn.00512000
test al, al
jne 0x5a3eab
cmp byte [esp + 0x53], bl
jne 0x5a3eba
cmp byte [esp + 0x51], bl
jne 0x5a3ec1
call sub.KERNEL32.dll_GetTickCount
sub eax, dword [esp + 0x9c]
cmp eax, 0xea60
ja 0x5a3ec8
lea ecx, [esp + 0x5c]
mov byte [esp + 0x88], bl
mov dword [esp + 0x24], vtable.SshReadParams.0
mov dword [esp + 0x44], ebx
mov dword [esp + 0x4c], ebx
call fcn.00468860
mov edx, dword [esp + 0x90]
cmp dword [edx + 0xb0], ebx
je 0x5a3d20
lea ecx, [esp + 0x18]
mov dword [esp + 0x88], 0xffffffff
call fcn.004b18c0
mov al, 1
mov ecx, dword [esp + 0x80]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x78
ret 0x10
push str.aborted_by_user_application.
mov eax, dword [esi]
mov edx, dword [eax + 0x14]
mov ecx, esi
call edx
lea ecx, [esp + 0x5c]
mov byte [esp + 0x88], bl
mov dword [esp + 0x24], vtable.SshReadParams.0
mov dword [esp + 0x44], ebx
mov dword [esp + 0x4c], ebx
call fcn.00468860
lea ecx, [esp + 0x18]
mov dword [esp + 0x88], 0xffffffff
call fcn.004b18c0
xor al, al
jmp 0x5a3e4c
push esi
push str.sshWindowAdjust1
mov ecx, edi
call fcn.00512100
jmp 0x5a3e73
push str.Received_DISCONNECT
jmp 0x5a3e6a
push str.Received_CHANNEL_CLOSE
jmp 0x5a3e6a
mov ecx, dword [esp + 0x14]
push esi
push edi
call fcn.0059dc90
push str.No_WINDOW_ADJUST_seems_to_be_coming...
jmp 0x5a3e6a