joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5da040
Capabilities:
Encode data using xor
Encrypt data using curve25519

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [0x717f80]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov edx, 2
mov ecx, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 8]
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
add ecx, 8
mov byte [ebp - 5], al
lea eax, [ebp - 0x194]
movd xmm1, dword [ecx - 8]
xorps xmm0, xmm0
punpcklbw xmm1, xmm0
lea ecx, [ecx + 0x10]
punpcklwd xmm1, xmm0
lea eax, [eax + 0x40]
movups xmmword [eax - 0x50], xmm1
movd xmm1, dword [ecx - 0x14]
punpcklbw xmm1, xmm0
punpcklwd xmm1, xmm0
movups xmmword [eax - 0x40], xmm1
movd xmm1, dword [ecx - 0x10]
punpcklbw xmm1, xmm0
punpcklwd xmm1, xmm0
movups xmmword [eax - 0x30], xmm1
movd xmm1, dword [ecx - 0xc]
punpcklbw xmm1, xmm0
punpcklwd xmm1, xmm0
movups xmmword [eax - 0x20], xmm1
sub edx, 1
jne 0x5da093
push esi
push edi
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x1a4]
push eax
call fcn.005da250
lea eax, [ebp - 0x124]
push eax
push eax
call fcn.005d9ba0
lea eax, [ebp - 0x124]
push eax
lea eax, [ebp - 0x1a4]
push eax
lea eax, [ebp - 0xa4]
push eax
call fcn.005d9680
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 + 0x6ab518]
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 0x5da140
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]
xorps xmm0, xmm1
andps xmm0, xmm2
xorps xmm0, xmm1
movups xmmword [ebp + eax - 0xa4], xmm0
movups xmm1, xmmword [ebp + eax - 0x94]
movups xmm0, xmmword [ebp + eax - 0x214]
xorps xmm0, xmm1
andps xmm0, xmm2
xorps xmm0, xmm1
movups xmmword [ebp + eax - 0x94], xmm0
movups xmm1, xmmword [ebp + eax - 0x84]
movups xmm0, xmmword [ebp + eax - 0x204]
xorps xmm0, xmm1
andps xmm0, xmm2
xorps xmm0, xmm1
movups xmmword [ebp + eax - 0x84], xmm0
movups xmm1, xmmword [ebp + eax - 0x74]
movups xmm0, xmmword [ebp + eax - 0x1f4]
xorps xmm0, xmm1
andps xmm0, xmm2
xorps xmm0, xmm1
movups xmmword [ebp + eax - 0x74], xmm0
add eax, 0x40
cmp eax, 0x80
jb 0x5da190
xor eax, eax
nop
mov cl, byte [ebp + eax*4 - 0xa4]
mov byte [ebx + eax], cl
inc eax
cmp eax, 0x20
jb 0x5da220
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop ebx
call fcn.00622073
mov esp, ebp
pop ebp
ret
Function at 0x5dae30
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 0x5dae78
cmp edi, esi
jb 0x5dae78
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 0x5dae60
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
xorps xmm0, xmm1
andps xmm0, xmm2
xorps xmm0, xmm1
movups xmmword [ecx - 0x30], xmm0
movups xmm1, xmmword [ecx - 0x20]
movups xmm0, xmmword [edi + ecx - 0x20]
xorps xmm0, xmm1
andps xmm0, xmm2
xorps xmm0, xmm1
movups xmmword [ecx - 0x20], xmm0
cmp edx, 0x20
jl 0x5dae80
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x5daec0
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 0x5daee0
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 0x5daf60
and ecx, 0xed
sub dword [esi], ecx
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x5dcf50
Capabilities:
Encrypt data using curve25519

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c4
mov eax, dword [0x717f80]
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 0x5dcfe5
test esi, esi
je 0x5dcfe5
test ecx, ecx
je 0x5dcfe5
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.005482d0
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.005dd3e0
lea eax, [ebp - 0xc4]
push eax
lea eax, [ebp - 0x2c4]
push eax
call fcn.005dc9c0
lea eax, [ebp - 0x2c4]
push eax
push esi
call fcn.005dc8f0
add esp, 0x24
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00622073
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor al, al
xor ecx, ebp
pop esi
call fcn.00622073
mov esp, ebp
pop ebp
ret

Function at 0x5dd080
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
mov ebx, dword [ebp + 8]
mov eax, 0x6c6218
sub eax, ebx
xor edx, edx
mov dword [ebp - 4], eax
mov eax, 0x6c621c
push esi
xor esi, esi
sub eax, ebx
push edi
lea edi, [ebx + 8]
mov dword [ebp - 8], eax
mov ebx, dword [ebp - 4]
nop word [eax + eax]
add edx, dword [esi*4 + 0x6c6218]
lea edi, [edi + 0x10]
mov ecx, dword [edi - 0x18]
mov al, cl
sub al, dl
sub ecx, edx
mov edx, dword [edi - 0x14]
mov byte [ebp + esi - 0x28], al
mov al, dl
shr ecx, 0x1f
add ecx, dword [esi*4 + 0x6c621c]
sub al, cl
sub edx, ecx
mov ecx, dword [edi - 0x10]
mov byte [ebp + esi - 0x27], al
mov al, cl
shr edx, 0x1f
add edx, dword [edi + ebx - 0x10]
sub al, dl
sub ecx, edx
mov byte [ebp + esi - 0x26], al
mov eax, dword [ebp - 8]
shr ecx, 0x1f
add ecx, dword [edi + eax - 0x10]
mov eax, dword [edi - 0xc]
mov edx, eax
sub al, cl
sub edx, ecx
mov byte [ebp + esi - 0x25], al
add esi, 4
shr edx, 0x1f
cmp esi, 0x20
jl 0x5dd0b0
mov ebx, dword [ebp + 8]
lea eax, [edx - 1]
movd xmm0, eax
xor eax, eax
pshufd xmm3, xmm0, 0
nop word [eax + eax]
movups xmm2, xmmword [ebx + eax*4]
movd xmm1, dword [ebp + eax - 0x28]
xorps xmm0, xmm0
punpcklbw xmm1, xmm0
punpcklwd xmm1, xmm0
xorps xmm1, xmm2
andps xmm1, xmm3
xorps xmm1, xmm2
movups xmmword [ebx + eax*4], xmm1
movups xmm2, xmmword [ebx + eax*4 + 0x10]
movd xmm1, dword [ebp + eax - 0x24]
punpcklbw xmm1, xmm0
punpcklwd xmm1, xmm0
xorps xmm1, xmm2
andps xmm1, xmm3
xorps xmm1, xmm2
movups xmmword [ebx + eax*4 + 0x10], xmm1
add eax, 8
cmp eax, 0x20
jl 0x5dd130
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x5e1070
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 0x5e5240
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x62bcfd
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x717f80]
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.004b24c0
cmp byte [esi + 0x24], 0
mov dword [ebp - 4], 0
je 0x5e52b8
cmp dword [esi + 0x28], 0
jne 0x5e52b8
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 0x5e52d0
call sub.KERNEL32.dll_GetTickCount
mov dword [esi + 4], eax
nop dword [eax]
mov eax, dword [esi + 0x10]
cmp eax, 5
jne 0x5e52fc
cmp dword [0x7dc738], 0xa
jge 0x5e52f3
mov eax, dword [edi]
mov ecx, edi
push str.sshRp.m_totalTimeoutMs_wf_is_too_small__2_
call dword [eax + 0x14]
inc dword [0x7dc738]
mov dword [esi + 0x10], 0x7530
jmp 0x5e5300
test eax, eax
je 0x5e5331
cmp dword [esi + 4], 0
jne 0x5e530e
call sub.KERNEL32.dll_GetTickCount
mov dword [esi + 4], eax
cmp dword [esi + 0x10], 0x3e8
jae 0x5e531e
mov dword [esi + 0x10], 0x7530
call sub.KERNEL32.dll_GetTickCount
mov ecx, dword [esi + 4]
cmp eax, ecx
jbe 0x5e5331
sub eax, ecx
cmp eax, dword [esi + 0x10]
ja 0x5e535e
mov ecx, dword [ebp - 0x20]
push edi
push ebx
push esi
call fcn.005e6ec0
test al, al
je 0x5e538d
mov ecx, ebx
call fcn.004d9060
test al, al
jne 0x5e538d
cmp byte [ebp + 0xc], al
je 0x5e535a
cmp dword [esi + 0x3c], 0x5d
je 0x5e52d0
mov bl, 1
jmp 0x5e538f
mov ecx, ebx
call fcn.004d90e0
mov byte [ebx + 0x14], 1
cmp byte [edi + 0x129], 0
je 0x5e538d
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.004b2d90
xor bl, bl
lea ecx, [ebp - 0x1c]
call fcn.004b2630
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.00622073
mov esp, ebp
pop ebp
ret 0x10
Function at 0x5e5fa0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x63ea05
mov eax, dword fs:[0]
push eax
sub esp, 0x80
mov eax, dword [0x717f80]
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.004b2490
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 0x5e60e8
push 0x64
lea eax, [ebp - 0x80]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea ecx, [ebp - 0x80]
call fcn.005e0870
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.004d90e0
mov ecx, dword [ebp - 0x88]
push esi
push edi
push dword [ebp - 0x84]
call fcn.005e6ec0
mov ecx, dword [edi + 4]
test ecx, ecx
je 0x5e6087
push esi
call fcn.00518b10
test al, al
jne 0x5e6112
mov ecx, edi
call fcn.004d9090
test al, al
jne 0x5e6157
cmp byte [ebp - 0x51], al
jne 0x5e6149
cmp byte [ebp - 0x53], al
jne 0x5e613b
call sub.KERNEL32.dll_GetTickCount
sub eax, dword [ebp - 0x8c]
cmp eax, 0xea60
ja 0x5e6120
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.0049ecf0
cmp dword [ebx + 0xb0], 0
je 0x5e6022
mov bl, 1
lea ecx, [ebp - 0x1c]
call fcn.004b2630
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.00622073
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 0x5e6164
mov ecx, dword [ebp - 0x88]
push esi
push edi
call fcn.005e1850
mov eax, dword [esi]
mov ecx, esi
push str.No_WINDOW_ADJUST_seems_to_be_coming...
call dword [eax + 0x14]
jmp 0x5e6164
mov eax, dword [esi]
mov ecx, esi
push str.Received_CHANNEL_CLOSE
call dword [eax + 0x14]
jmp 0x5e6164
mov eax, dword [esi]
mov ecx, esi
push str.Received_DISCONNECT
call dword [eax + 0x14]
jmp 0x5e6164
push esi
push str.sshWindowAdjust1
mov ecx, edi
call fcn.004d9190
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x80], vtable.SshReadParams.0
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x58], 0
call fcn.0049ecf0
xor bl, bl
jmp 0x5e60ea
Function at 0x5ef5f0
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 0x5ef643
cmp dword [esi + 4], 0
jne 0x5ef60b
call sub.KERNEL32.dll_GetTickCount
mov dword [esi + 4], eax
cmp dword [esi + 0x10], 0x3e8
jae 0x5ef61b
mov dword [esi + 0x10], 0x7530
call sub.KERNEL32.dll_GetTickCount
mov ecx, dword [esi + 4]
cmp eax, ecx
jbe 0x5ef643
sub eax, ecx
cmp eax, dword [esi + 0x10]
jbe 0x5ef643
mov esi, dword [ebp + 0xc]
mov ecx, esi
call fcn.004d90e0
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 0x5f6730
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x63fc0d
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x717f80]
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 eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x44]
mov edi, dword [ebp + 0x14]
xorps xmm0, xmm0
mov esi, dword [ebp + 8]
mov ebx, dword [ebp + 0x10]
push str.dns_gethostbyname
push edi
mov dword [ebp - 0x48], eax
movq qword [ebp - 0x44], xmm0
mov dword [ebp - 0x3c], 0
call fcn.004b2490
mov eax, dword [ebp - 0x48]
mov ecx, ebx
mov dword [ebp - 4], 0
mov dword [eax], 0
call fcn.00496de0
mov eax, dword [edi]
mov ecx, edi
push esi
push str.hostname
call dword [eax + 0x2c]
push esi
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov edx, eax
test edx, edx
je 0x5f6816
mov ecx, dword [edx + 0xc]
mov ecx, dword [ecx]
test ecx, ecx
je 0x5f67c5
mov eax, dword [ecx]
jmp 0x5f67c7
xor eax, eax
mov ecx, dword [ebp - 0x48]
mov dword [ecx], eax
mov eax, dword [edx + 0xc]
mov ecx, dword [eax]
lea eax, [ecx + 3]
push eax
lea eax, [ecx + 2]
push eax
lea eax, [ecx + 1]
push eax
push ecx
push str._b._b._b._b
lea eax, [ebp - 0x38]
push 0x28
push eax
call fcn.004b1240
add esp, 0x1c
lea eax, [ebp - 0x38]
mov ecx, ebx
push eax
call fcn.0049b7e0
cmp byte [edi + 0x129], 0
je 0x5f6812
push ebx
push 0x6860f0
mov ecx, edi
call fcn.004b3100
mov bl, 1
jmp 0x5f6818
xor bl, bl
lea ecx, [ebp - 0x44]
call fcn.004b2630
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.00622073
mov esp, ebp
pop ebp
ret
Function at 0x5f7a70
Capabilities:
Connect socket
Connect udp socket
Create udp socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x717f80]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0x14]
push 0
push 2
push 2
mov dword [esi + 4], 0
call dword [sym.imp.WS2_32.dll_socket]
mov dword [esi], eax
cmp eax, 0xffffffff
jne 0x5f7ac0
mov eax, dword [edi]
mov ecx, edi
push str.Failed_to_create_a_UDP_socket.
call dword [eax + 0x14]
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00622073
mov esp, ebp
pop ebp
ret
xorps xmm0, xmm0
lea ecx, [esi + 0x1c]
mov eax, 2
movlpd qword [ebp - 0xc], xmm0
mov word [ebp - 0x14], ax
call fcn.00499300
push eax
call dword [sym.imp.WS2_32.dll_inet_addr]
push 0x35
mov dword [ebp - 0x10], eax
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x12], ax
lea eax, [ebp - 0x14]
push 0x10
push eax
push dword [esi]
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x5f7b2e
mov eax, dword [edi]
mov ecx, edi
push str.Failed_to_specify_a_UDP_socket_destination_address.
call dword [eax + 0x14]
push dword [esi]
call dword [sym.imp.WS2_32.dll_closesocket]
pop edi
mov dword [esi], 0xffffffff
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00622073
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
xor ecx, ebp
pop esi
call fcn.00622073
mov esp, ebp
pop ebp
ret
Function at 0x5f7b40
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64c
mov eax, dword [0x717f80]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x18]
push esi
mov esi, dword [ebp + 0x1c]
push edi
mov edi, dword [ebp + 0x10]
mov ecx, edi
mov dword [ebp - 0x648], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x64c], eax
call fcn.004a0bb0
push 0x640
lea eax, [ebp - 0x644]
push 0
push eax
call fcn.00477810
add esp, 0xc
mov ecx, ebx
push esi
call fcn.004d9240
test al, al
je 0x5f7bba
mov eax, dword [esi]
mov ecx, esi
push dword [0x715bb0]
call dword [eax + 0x14]
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00622073
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x64c]
lea eax, [ebp - 0x644]
push 0
push 0x640
push eax
mov eax, dword [ebp - 0x648]
lea eax, [eax + eax*8]
add eax, eax
push dword [ecx + eax*8]
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
jne 0x5f7c78
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2743
jne 0x5f7c27
push esi
push 0
push eax
mov byte [ebx + 0x18], 1
call fcn.00585780
mov eax, dword [esi]
add esp, 0xc
mov ecx, esi
push str.Failed_to_receive_DNS_query_response_on_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.00622073
mov esp, ebp
pop ebp
ret
cmp eax, 0x2733
je 0x5f7c59
push esi
push 0
push eax
call fcn.00585780
mov eax, dword [esi]
add esp, 0xc
mov ecx, esi
push str.Failed_to_receive_DNS_query_response_on_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.00622073
mov esp, ebp
pop ebp
ret
mov eax, dword [esi]
mov ecx, esi
push str.Received_0_bytes.
call dword [eax + 0x14]
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00622073
mov esp, ebp
pop ebp
ret
test eax, eax
jne 0x5f7c9b
mov eax, dword [esi]
mov ecx, esi
push str.Received_0_response_from_recv.
call dword [eax + 0x14]
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00622073
mov esp, ebp
pop ebp
ret
push eax
lea eax, [ebp - 0x644]
mov ecx, edi
push eax
call fcn.0049f210
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00622073
mov esp, ebp
pop ebp
ret
Function at 0x5f8850
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x717f80]
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 0x5f8895
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.00622073
mov esp, ebp
pop ebp
ret
cmp dword [edi + 8], 6
jl 0x5f88ba
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.00622073
mov esp, ebp
pop ebp
ret
push esi
push ecx
push 0
push dword [ebp + 0x10]
push eax
call fcn.005f8e40
add esp, 0x14
test al, al
jne 0x5f88fb
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.00622073
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 8]
push eax
push 2
call fcn.004ecfe0
add esp, 8
mov ecx, ebx
call fcn.004a2ca0
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.0046e290
push eax
mov ecx, ebx
call fcn.004a2ca0
push eax
push dword [edi]
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
jne 0x5f896c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push esi
push 0
push eax
call fcn.00585780
add esp, 0xc
push str.Failed_to_send_DNS_query_on_UDP_socket.
jmp 0x5f88d3
inc dword [edi + 8]
mov al, 1
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00622073
mov esp, ebp
pop ebp
ret