joyce8/EMBER2024-capa huggingface dataset:
Function at 0x52a9e0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x68cc00]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0x14]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 0x18]
push edi
mov edi, dword [ebp + 8]
mov eax, dword [edi]
cmp eax, 0xffffffff
jne 0x52aa25
mov eax, dword [esi]
mov ecx, esi
push str.Cannot_send_to_invalid_UDP_socket
call dword [eax + 0x14]
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005af5a8
mov esp, ebp
pop ebp
ret
cmp dword [edi + 8], 3
jl 0x52aa4a
mov eax, dword [esi]
mov ecx, esi
push str.Too_many_retries_for_this_nameserver.
call dword [eax + 0x14]
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005af5a8
mov esp, ebp
pop ebp
ret
push esi
push ecx
push 0
push dword [ebp + 0x10]
push eax
call fcn.0052afc0
add esp, 0x14
test al, al
jne 0x52aa8b
push str.Waited__but_cannot_send_on_UDP_socket_without_waiting_longer.
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x14]
push dword [edi]
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [edi], 0xffffffff
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005af5a8
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 8]
push eax
push 2
call fcn.0045c7f0
add esp, 8
mov ecx, ebx
call fcn.00438b90
movzx ecx, byte [ebp - 8]
push 0
mov byte [eax], cl
movzx ecx, byte [ebp - 7]
mov byte [eax + 1], cl
mov ecx, ebx
mov edx, dword [edi + 8]
mov al, byte [ebp - 8]
mov byte [edi + edx*2 + 0xc], al
mov edx, dword [edi + 8]
mov al, byte [ebp - 7]
mov byte [edi + edx*2 + 0xd], al
call fcn.00402f10
push eax
mov ecx, ebx
call fcn.00438b90
push eax
push dword [edi]
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
jne 0x52aafc
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push esi
push 0
push eax
call fcn.004ff220
add esp, 0xc
push str.Failed_to_send_DNS_query_on_UDP_socket.
jmp 0x52aa63
inc dword [edi + 8]
mov al, 1
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005af5a8
mov esp, ebp
pop ebp
ret
Function at 0x54d5e0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x68cc00]
xor eax, ebp
mov dword [ebp - 4], eax
movups xmm0, xmmword [0x691088]
push ebx
push esi
movups xmmword [ebp - 0x24], xmm0
push edi
movups xmm0, xmmword [0x691098]
mov edi, dword [ebp + 8]
mov ebx, 0xff
movups xmmword [ebp - 0x14], xmm0
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x20]
mov esi, dword [ebp - 8]
push 0x691128
lea eax, [ecx + ecx]
shr ecx, 0x1f
mov dword [ebp - 0x24], eax
lea eax, [edx + edx]
or ecx, eax
shr edx, 0x1f
mov dword [ebp - 0x20], ecx
mov ecx, dword [ebp - 0x1c]
lea eax, [ecx + ecx]
shr ecx, 0x1f
or edx, eax
mov dword [ebp - 0x1c], edx
mov edx, dword [ebp - 0x18]
lea eax, [edx + edx]
shr edx, 0x1f
or ecx, eax
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp - 0x14]
lea eax, [ecx + ecx]
shr ecx, 0x1f
or edx, eax
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0x10]
lea eax, [edx + edx]
shr edx, 0x1f
or ecx, eax
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebp - 0xc]
lea eax, [ecx + ecx]
shr ecx, 0x1f
or edx, eax
lea eax, [esi + esi]
or ecx, eax
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], ecx
lea ecx, [ebp - 0x24]
call fcn.005473b0
movzx eax, al
lea ecx, [ebp - 0x24]
xor eax, 1
shr esi, 0x1f
or eax, esi
push eax
push 0x691128
call fcn.0054fea0
mov edx, dword [ebp + 0xc]
mov eax, ebx
shr eax, 5
mov ecx, ebx
and ecx, 0x1f
mov eax, dword [edx + eax*4]
shr eax, cl
lea ecx, [ebp - 0x24]
and eax, 1
push eax
push edi
call fcn.005475b0
push 0x691128
lea ecx, [ebp - 0x24]
mov esi, eax
call fcn.005473b0
movzx ecx, al
xor ecx, 1
or ecx, esi
push ecx
push 0x691128
lea ecx, [ebp - 0x24]
call fcn.0054fea0
sub ebx, 1
jns 0x54d611
movups xmm0, xmmword [ebp - 0x24]
mov ecx, dword [ebp - 4]
xor ecx, ebp
movups xmmword [edi], xmm0
movups xmm0, xmmword [ebp - 0x14]
movups xmmword [edi + 0x10], xmm0
pop edi
pop esi
pop ebx
call fcn.005af5a8
mov esp, ebp
pop ebp
ret
Function at 0x568310
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x18]
dec eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
movd xmm0, eax
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
lea ecx, [esi + 0xfc]
pshufd xmm4, xmm0, 0
push edi
mov edi, dword [ebp + 0x14]
lea edx, [eax + 0xfc]
cmp eax, ecx
ja 0x568347
cmp edx, esi
jae 0x56837f
lea ecx, [edi + 0xfc]
cmp eax, ecx
ja 0x568355
cmp edx, edi
jae 0x56837f
lea ecx, [ebx + 0xfc]
cmp eax, ecx
ja 0x568363
cmp edx, ebx
jae 0x56837f
lea edx, [esi + 0xfc]
cmp ebx, edx
ja 0x568371
cmp ecx, esi
jae 0x56837f
lea edx, [edi + 0xfc]
cmp ebx, edx
ja 0x5683bd
cmp ecx, edi
jb 0x5683bd
sub edi, ebx
mov dword [ebp + 0x18], 0x40
sub ebx, esi
sub eax, esi
mov dword [ebp + 0xc], eax
nop
mov edx, dword [esi]
lea ecx, [ebx + esi]
mov eax, dword [ecx + edi]
lea esi, [esi + 4]
xor edx, eax
and edx, dword [ebp - 4]
xor eax, edx
mov dword [ecx], eax
mov eax, dword [esi - 4]
mov ecx, dword [ebp + 0xc]
xor eax, edx
sub dword [ebp + 0x18], 1
mov dword [ecx + esi - 4], eax
jne 0x568390
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
sub esi, edi
sub ebx, edi
sub eax, edi
mov ecx, 0x10
nop dword [eax + eax]
lea edi, [edi + 0x10]
movups xmm3, xmmword [esi + edi - 0x10]
movups xmm1, xmmword [edi - 0x10]
movaps xmm2, xmm3
pxor xmm2, xmm1
pand xmm2, xmm4
movaps xmm0, xmm2
pxor xmm2, xmm3
pxor xmm0, xmm1
movups xmmword [ebx + edi - 0x10], xmm0
movups xmmword [eax + edi - 0x10], xmm2
sub ecx, 1
jne 0x5683d0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x5688b0
Capabilities:
Encode data using xor
Encrypt data using curve25519

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [0x68cc00]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x194]
push ebx
mov ebx, dword [ebp + 8]
mov edx, 2
movups xmm0, xmmword [eax]
movups xmm1, xmmword [eax + 0x10]
movd eax, xmm0
movups xmmword [ebp - 0x14], xmm1
and al, 0xf8
psrldq xmm1, 0xf
movups xmmword [ebp - 0x24], xmm0
mov byte [ebp - 0x24], al
movd eax, xmm1
and al, 0x3f
or al, 0x40
mov byte [ebp - 5], al
mov eax, dword [ebp + 0x10]
add eax, 8
movd xmm1, dword [eax - 8]
xorps xmm0, xmm0
punpcklbw xmm1, xmm0
lea eax, [eax + 0x10]
punpcklwd xmm1, xmm0
lea ecx, [ecx + 0x40]
movups xmmword [ecx - 0x50], xmm1
movd xmm1, dword [eax - 0x14]
punpcklbw xmm1, xmm0
punpcklwd xmm1, xmm0
movups xmmword [ecx - 0x40], xmm1
movd xmm1, dword [eax - 0x10]
punpcklbw xmm1, xmm0
punpcklwd xmm1, xmm0
movups xmmword [ecx - 0x30], xmm1
movd xmm1, dword [eax - 0xc]
punpcklbw xmm1, xmm0
punpcklwd xmm1, xmm0
movups xmmword [ecx - 0x20], xmm1
sub edx, 1
jne 0x568903
push esi
push edi
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x1a4]
push eax
call fcn.00568ad0
lea eax, [ebp - 0x124]
push eax
push eax
call fcn.00568410
lea eax, [ebp - 0x124]
push eax
lea eax, [ebp - 0x1a4]
push eax
lea eax, [ebp - 0xa4]
push eax
call fcn.00567f00
add esp, 0x1c
lea esi, [ebp - 0xa4]
mov ecx, 0x20
lea edi, [ebp - 0x224]
rep movsd dword es:[edi], dword [esi]
xor ecx, ecx
xor edx, edx
pop edi
pop esi
nop word [eax + eax]
mov eax, dword [edx + 0x635600]
add eax, dword [ebp + edx - 0xa4]
add ecx, eax
movzx eax, cl
mov dword [ebp + edx - 0xa4], eax
add edx, 4
shr ecx, 8
cmp edx, 0x7c
jb 0x5689b0
mov eax, dword [ebp - 0x28]
sub eax, 0xffffff80
add eax, ecx
mov dword [ebp - 0x28], eax
shr eax, 7
and eax, 1
neg eax
movd xmm0, eax
xor eax, eax
pshufd xmm2, xmm0, 0
nop dword [eax]
nop word [eax + eax]
movups xmm1, xmmword [ebp + eax - 0xa4]
movups xmm0, xmmword [ebp + eax - 0x224]
pxor xmm0, xmm1
pand xmm0, xmm2
pxor xmm0, xmm1
movups xmmword [ebp + eax - 0xa4], xmm0
movups xmm1, xmmword [ebp + eax - 0x94]
movups xmm0, xmmword [ebp + eax - 0x214]
pxor xmm0, xmm1
pand xmm0, xmm2
pxor xmm0, xmm1
movups xmmword [ebp + eax - 0x94], xmm0
movups xmm1, xmmword [ebp + eax - 0x84]
movups xmm0, xmmword [ebp + eax - 0x204]
pxor xmm0, xmm1
pand xmm0, xmm2
pxor xmm0, xmm1
movups xmmword [ebp + eax - 0x84], xmm0
movups xmm1, xmmword [ebp + eax - 0x74]
movups xmm0, xmmword [ebp + eax - 0x1f4]
pxor xmm0, xmm1
pand xmm0, xmm2
pxor xmm0, xmm1
movups xmmword [ebp + eax - 0x74], xmm0
add eax, 0x40
cmp eax, 0x80
jb 0x568a00
xor eax, eax
nop word [eax + eax]
mov cl, byte [ebp + eax*4 - 0xa4]
mov byte [ebx + eax], cl
inc eax
cmp eax, 0x20
jb 0x568aa0
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop ebx
call fcn.005af5a8
mov esp, ebp
pop ebp
ret
Function at 0x5698d0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
movzx ebx, byte [ebp + 0x10]
push esi
mov esi, dword [ebp + 0xc]
neg ebx
push edi
lea edi, [eax + 0x7c]
lea ecx, [esi + 0x7c]
movd xmm0, ebx
pshufd xmm2, xmm0, 0
cmp eax, ecx
ja 0x569918
cmp edi, esi
jb 0x569918
sub esi, eax
lea edi, [edx + 0x20]
mov edx, dword [eax + esi]
lea eax, [eax + 4]
xor edx, dword [eax - 4]
and edx, ebx
xor dword [eax - 4], edx
sub edi, 1
jne 0x569900
pop edi
pop esi
pop ebx
pop ebp
ret
mov edi, esi
lea ecx, [eax + 0x10]
sub edi, eax
nop
movups xmm1, xmmword [ecx - 0x10]
lea ecx, [ecx + 0x20]
movups xmm0, xmmword [esi + edx*4]
add edx, 8
pxor xmm0, xmm1
pand xmm0, xmm2
pxor xmm0, xmm1
movups xmmword [ecx - 0x30], xmm0
movups xmm1, xmmword [ecx - 0x20]
movups xmm0, xmmword [edi + ecx - 0x20]
pxor xmm0, xmm1
pand xmm0, xmm2
pxor xmm0, xmm1
movups xmmword [ecx - 0x20], xmm0
cmp edx, 0x20
jl 0x569920
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x569970
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, 5
push edi
mov edi, dword [esi + 0x7c]
lea edx, [esi + 0x70]
xor edi, 0x7f
dec edi
shr edi, 0x1f
nop dword [eax + eax]
mov ecx, dword [edx - 0xc]
lea edx, [edx - 0x18]
mov eax, dword [edx + 0x10]
xor ecx, 0xff
xor eax, 0xff
dec ecx
dec eax
shr ecx, 0x1f
shr eax, 0x1f
and ecx, eax
mov eax, dword [edx + 0x20]
xor eax, 0xff
dec eax
shr eax, 0x1f
and ecx, eax
mov eax, dword [edx + 0x14]
xor eax, 0xff
dec eax
shr eax, 0x1f
and ecx, eax
mov eax, dword [edx + 0x1c]
xor eax, 0xff
dec eax
shr eax, 0x1f
and ecx, eax
mov eax, dword [edx + 0x18]
xor eax, 0xff
dec eax
shr eax, 0x1f
and ecx, eax
and edi, ecx
sub ebx, 1
jne 0x569990
mov ecx, 0xec
sub ecx, dword [esi]
shr ecx, 0x1f
and ecx, edi
neg ecx
mov eax, ecx
movzx edx, cl
and eax, 0x7f
sub dword [esi + 0x7c], eax
mov eax, 0x1e
nop dword [eax + eax]
sub dword [esi + eax*4], edx
dec eax
test eax, eax
jg 0x569a10
and ecx, 0xed
sub dword [esi], ecx
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x56ba00
Capabilities:
Encrypt data using curve25519

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c4
mov eax, dword [0x68cc00]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 0xc]
test eax, eax
je 0x56ba95
test esi, esi
je 0x56ba95
test ecx, ecx
je 0x56ba95
movups xmm0, xmmword [eax]
movups xmmword [ecx], xmm0
movups xmm0, xmmword [eax + 0x10]
movups xmmword [ecx + 0x10], xmm0
lea ecx, [ebp - 0x44]
push ecx
push 0x20
push eax
call fcn.004ebb70
mov al, byte [ebp - 0x25]
and byte [ebp - 0x44], 0xf8
and al, 0x3f
or al, 0x40
mov byte [ebp - 0x25], al
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0xc4]
push eax
call fcn.0056bc40
lea eax, [ebp - 0xc4]
push eax
lea eax, [ebp - 0x2c4]
push eax
call fcn.0056b470
lea eax, [ebp - 0x2c4]
push eax
push esi
call fcn.0056b3a0
add esp, 0x24
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005af5a8
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor al, al
xor ecx, ebp
pop esi
call fcn.005af5a8
mov esp, ebp
pop ebp
ret

Function at 0x56bb30
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
push esi
mov esi, dword [ebp + 8]
mov eax, 0x650300
sub eax, esi
xor ecx, ecx
mov dword [ebp - 4], eax
xor ebx, ebx
mov eax, 0x650304
sub eax, esi
push edi
lea edi, [esi + 8]
mov dword [ebp - 8], eax
mov esi, dword [ebp - 4]
nop word [eax + eax]
add ecx, dword [ebx*4 + 0x650300]
lea edi, [edi + 0x10]
mov edx, dword [edi - 0x18]
mov al, dl
sub al, cl
sub edx, ecx
mov ecx, dword [edi - 0x14]
mov byte [ebp + ebx - 0x28], al
mov al, cl
shr edx, 0x1f
add edx, dword [ebx*4 + 0x650304]
sub al, dl
sub ecx, edx
mov edx, dword [edi - 0x10]
mov byte [ebp + ebx - 0x27], al
mov al, dl
shr ecx, 0x1f
add ecx, dword [esi + edi - 0x10]
sub al, cl
sub edx, ecx
mov byte [ebp + ebx - 0x26], al
mov eax, dword [ebp - 8]
shr edx, 0x1f
add edx, dword [eax + edi - 0x10]
mov eax, dword [edi - 0xc]
mov ecx, eax
sub al, dl
sub ecx, edx
mov byte [ebp + ebx - 0x25], al
add ebx, 4
shr ecx, 0x1f
cmp ebx, 0x20
jl 0x56bb60
mov esi, dword [ebp + 8]
lea eax, [ecx - 1]
movd xmm0, eax
xor eax, eax
pshufd xmm3, xmm0, 0
nop word [eax + eax]
movups xmm2, xmmword [esi + eax*4]
movd xmm1, dword [ebp + eax - 0x28]
xorps xmm0, xmm0
punpcklbw xmm1, xmm0
punpcklwd xmm1, xmm0
pxor xmm1, xmm2
pand xmm1, xmm3
pxor xmm1, xmm2
movups xmmword [esi + eax*4], xmm1
movups xmm2, xmmword [esi + eax*4 + 0x10]
movd xmm1, dword [ebp + eax - 0x24]
punpcklbw xmm1, xmm0
punpcklwd xmm1, xmm0
pxor xmm1, xmm2
pand xmm1, xmm3
pxor xmm1, xmm2
movups xmmword [esi + eax*4 + 0x10], xmm1
add eax, 8
cmp eax, 0x20
jl 0x56bbe0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x570cf0
Capabilities:
Encrypt data using salsa20 or chacha

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [str.expand_32_byte_k]
push esi
mov esi, dword [ebp + 8]
movzx ecx, byte [edx + 3]
shl ecx, 8
movzx eax, byte [edx + 2]
or ecx, eax
movzx eax, byte [edx + 1]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx]
shl ecx, 8
or ecx, eax
mov dword [esi], ecx
movzx ecx, byte [edx + 7]
movzx eax, byte [edx + 6]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 5]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 4]
shl ecx, 8
or ecx, eax
mov dword [esi + 4], ecx
movzx ecx, byte [edx + 0xb]
movzx eax, byte [edx + 0xa]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 9]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 8]
shl ecx, 8
or ecx, eax
mov dword [esi + 8], ecx
movzx ecx, byte [edx + 0xf]
movzx eax, byte [edx + 0xe]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 0xd]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 0xc]
mov edx, dword [ebp + 0xc]
shl ecx, 8
or ecx, eax
mov dword [esi + 0xc], ecx
movzx ecx, byte [edx + 3]
movzx eax, byte [edx + 2]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 1]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx]
shl ecx, 8
or ecx, eax
mov dword [esi + 0x10], ecx
movzx ecx, byte [edx + 7]
movzx eax, byte [edx + 6]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 5]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 4]
shl ecx, 8
or ecx, eax
mov dword [esi + 0x14], ecx
movzx ecx, byte [edx + 0xb]
movzx eax, byte [edx + 0xa]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 9]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 8]
shl ecx, 8
or ecx, eax
mov dword [esi + 0x18], ecx
movzx ecx, byte [edx + 0xf]
movzx eax, byte [edx + 0xe]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 0xd]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 0xc]
shl ecx, 8
or ecx, eax
mov dword [esi + 0x1c], ecx
movzx ecx, byte [edx + 0x13]
movzx eax, byte [edx + 0x12]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 0x11]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 0x10]
shl ecx, 8
or ecx, eax
mov dword [esi + 0x20], ecx
movzx ecx, byte [edx + 0x17]
movzx eax, byte [edx + 0x16]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 0x15]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 0x14]
shl ecx, 8
or ecx, eax
mov dword [esi + 0x24], ecx
movzx ecx, byte [edx + 0x1b]
movzx eax, byte [edx + 0x1a]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 0x19]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 0x18]
shl ecx, 8
or ecx, eax
mov dword [esi + 0x28], ecx
movzx ecx, byte [edx + 0x1f]
movzx eax, byte [edx + 0x1e]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 0x1d]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 0x1c]
shl ecx, 8
or ecx, eax
mov dword [esi + 0x40], 0x40
mov dword [esi + 0x2c], ecx
pop esi
pop ebp
ret
Function at 0x579850
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b73cd
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x68cc00]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x20], ecx
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x1c]
mov edi, dword [ebp + 0x14]
xorps xmm0, xmm0
mov ebx, dword [ebp + 0x10]
movq qword [ebp - 0x1c], xmm0
movzx eax, byte [esi + 0x24]
push eax
push str.readExpectedMessage
push edi
mov dword [ebp - 0x14], 0
call fcn.00447f20
cmp byte [esi + 0x24], 0
mov dword [ebp - 4], 0
je 0x5798c8
cmp dword [esi + 0x28], 0
jne 0x5798c8
mov eax, dword [edi]
mov ecx, edi
push str.No_m_pHandler.
call dword [eax + 0x14]
cmp dword [esi + 4], 0
mov dword [esi + 0x3c], 0
jne 0x5798e0
call sub.KERNEL32.DLL_GetTickCount
mov dword [esi + 4], eax
nop dword [eax]
mov eax, dword [esi + 0x10]
cmp eax, 5
jne 0x57990c
cmp dword [0x69126c], 0xa
jge 0x579903
mov eax, dword [edi]
mov ecx, edi
push str.sshRp.m_totalTimeoutMs_wf_is_too_small__2_
call dword [eax + 0x14]
inc dword [0x69126c]
mov dword [esi + 0x10], 0x7530
jmp 0x579910
test eax, eax
je 0x579941
cmp dword [esi + 4], 0
jne 0x57991e
call sub.KERNEL32.DLL_GetTickCount
mov dword [esi + 4], eax
cmp dword [esi + 0x10], 0x3e8
jae 0x57992e
mov dword [esi + 0x10], 0x7530
call sub.KERNEL32.DLL_GetTickCount
mov ecx, dword [esi + 4]
cmp eax, ecx
jbe 0x579941
sub eax, ecx
cmp eax, dword [esi + 0x10]
ja 0x57996e
mov ecx, dword [ebp - 0x20]
push edi
push ebx
push esi
call fcn.0057d3e0
test al, al
je 0x57999d
mov ecx, ebx
call fcn.0046d380
test al, al
jne 0x57999d
cmp byte [ebp + 0xc], al
je 0x57996a
cmp dword [esi + 0x3c], 0x5d
je 0x5798e0
mov bl, 1
jmp 0x57999f
mov ecx, ebx
call fcn.0046d400
mov byte [ebx + 0x14], 1
cmp byte [edi + 0x129], 0
je 0x57999d
mov eax, dword [edi]
mov ecx, edi
push str.Too_much_time_elapsed_waiting_for_response.
call dword [eax + 0x14]
push dword [esi + 0x10]
mov ecx, edi
push str.totalTimeoutMs
call fcn.00448710
xor bl, bl
lea ecx, [ebp - 0x1c]
call fcn.00447ff0
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005af5a8
mov esp, ebp
pop ebp
ret 0x10
Function at 0x57aa60
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5cac25
mov eax, dword fs:[0]
push eax
sub esp, 0x80
mov eax, dword [0x68cc00]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x88], ecx
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x1c]
mov esi, dword [ebp + 0x14]
xorps xmm0, xmm0
mov edi, dword [ebp + 0x10]
push str.readUntilRcvWindowAdjust
push esi
mov dword [ebp - 0x84], eax
movq qword [ebp - 0x1c], xmm0
mov dword [ebp - 0x14], 0
call fcn.00447ef0
mov dword [ebp - 4], 0
call sub.KERNEL32.DLL_GetTickCount
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x8c], eax
cmp dword [ebx + 0xb0], 0
jne 0x57aba8
push 0x64
lea eax, [ebp - 0x80]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea ecx, [ebp - 0x80]
call fcn.0056f0c0
mov eax, dword [ebp - 0x84]
mov ecx, edi
mov byte [ebp - 4], 1
mov dword [ebp - 0x6c], 0xffffffff
mov dword [ebp - 0x74], 0
mov eax, dword [eax + 0x10]
mov dword [ebp - 0x70], eax
call fcn.0046d400
mov ecx, dword [ebp - 0x88]
push esi
push edi
push dword [ebp - 0x84]
call fcn.0057d3e0
mov ecx, dword [edi + 4]
test ecx, ecx
je 0x57ab47
push esi
call fcn.004a80c0
test al, al
jne 0x57abd2
mov ecx, edi
call fcn.0046d3b0
test al, al
jne 0x57ac17
cmp byte [ebp - 0x51], al
jne 0x57ac09
cmp byte [ebp - 0x53], al
jne 0x57abfb
call sub.KERNEL32.DLL_GetTickCount
sub eax, dword [ebp - 0x8c]
cmp eax, 0xea60
ja 0x57abe0
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 0
mov dword [ebp - 0x80], vtable.SshReadParams.0
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x58], 0
call fcn.00434c20
cmp dword [ebx + 0xb0], 0
je 0x57aae2
mov bl, 1
lea ecx, [ebp - 0x1c]
call fcn.00447ff0
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005af5a8
mov esp, ebp
pop ebp
ret 0x10
mov eax, dword [esi]
mov ecx, esi
push str.aborted_by_user_application.
call dword [eax + 0x14]
jmp 0x57ac24
mov ecx, dword [ebp - 0x88]
push esi
push edi
call fcn.005731f0
mov eax, dword [esi]
mov ecx, esi
push str.No_WINDOW_ADJUST_seems_to_be_coming...
call dword [eax + 0x14]
jmp 0x57ac24
mov eax, dword [esi]
mov ecx, esi
push str.Received_CHANNEL_CLOSE
call dword [eax + 0x14]
jmp 0x57ac24
mov eax, dword [esi]
mov ecx, esi
push str.Received_DISCONNECT
call dword [eax + 0x14]
jmp 0x57ac24
push esi
push str.sshWindowAdjust1
mov ecx, edi
call fcn.0046d4b0
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x80], vtable.SshReadParams.0
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x58], 0
call fcn.00434c20
xor bl, bl
jmp 0x57abaa
Function at 0x57d900
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
cmp dword [esi + 0x10], 0
je 0x57d953
cmp dword [esi + 4], 0
jne 0x57d91b
call sub.KERNEL32.DLL_GetTickCount
mov dword [esi + 4], eax
cmp dword [esi + 0x10], 0x3e8
jae 0x57d92b
mov dword [esi + 0x10], 0x7530
call sub.KERNEL32.DLL_GetTickCount
mov ecx, dword [esi + 4]
cmp eax, ecx
jbe 0x57d953
sub eax, ecx
cmp eax, dword [esi + 0x10]
jbe 0x57d953
mov esi, dword [ebp + 0xc]
mov ecx, esi
call fcn.0046d400
mov byte [esi + 0x14], 1
mov al, 1
pop esi
pop ebp
ret 0xc
xor al, al
pop esi
pop ebp
ret 0xc
Function at 0x585c80
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5cbab0
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x68cc00]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
test esi, esi
je 0x585d8c
mov ebx, dword [ebp + 0x10]
test ebx, ebx
je 0x585cc7
cmp ebx, 1
jne 0x585d8c
cmp edi, 4
ja 0x585d8c
push 0xfa74
mov dword [ebp - 4], 0
call fcn.005af5bb
add esp, 4
test eax, eax
je 0x585d73
mov dword [eax], esi
mov dword [esi + 0x20], eax
mov dword [eax + 4], 0xa
mov dword [eax + 0x20], 0
mov dword [eax + 0x1c], 0
mov dword [eax + 0xc64], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov byte [eax + 0x28], bl
mov dword [eax + 0xc54], 0
mov dword [eax + 0xc50], 0
mov dword [eax + 0xc4c], 0
mov dword [eax + 0x2c], 0
mov dword [eax + 0x30], edi
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, 0xfffffffd
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, 0xfffffffe
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc