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

Disassembly:
mov eax, 0x30
call fcn.00551a90
mov eax, dword [0x5ea6f0]
xor eax, esp
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x44]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x40]
mov bl, byte [esi]
mov dword [esp + 0x18], eax
mov eax, dword [esi + 0x28]
mov dword [esp + 0x14], ecx
mov ecx, dword [esi + 0x2c]
mov dword [esp + 0x20], edx
mov byte [esp + 0xf], bl
mov dword [esp + 0x1c], eax
mov dword [esp + 0x10], ecx
test bl, 0x40
jne 0x41f948
push ecx
lea ecx, [esi + 0x10]
push ecx
push esi
call eax
add esp, 0xc
movzx eax, bl
and eax, 7
mov ebx, 0xf
sub ebx, eax
mov byte [esi], al
mov eax, ebx
xor ecx, ecx
mov dword [esp + 0x24], ebx
cmp eax, 0xf
jae 0x41f977
movzx edx, byte [esi + eax]
or ecx, edx
mov byte [esi + eax], 0
inc eax
shl ecx, 8
cmp eax, 0xf
jb 0x41f964
movzx eax, byte [esi + 0xf]
mov ebp, dword [esp + 0x4c]
or ecx, eax
mov byte [esi + 0xf], 1
cmp ecx, ebp
je 0x41f99e
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.005507d9
add esp, 0x30
ret
push edi
mov edi, ebp
shr edi, 4
test edi, edi
je 0x41f9df
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
lea ecx, [esi + 0x10]
push ecx
mov ecx, dword [esp + 0x20]
push esi
push edx
push edi
push eax
push ecx
call dword [esp + 0x3c]
shl edi, 4
mov edx, edi
add dword [esp + 0x34], edx
add dword [esp + 0x30], edx
add esp, 0x18
sub ebp, edx
je 0x41fa47
shr edx, 4
mov ecx, esi
call fcn.0041f6b0
test ebp, ebp
je 0x41fa47
mov edx, dword [esp + 0x14]
push edx
lea eax, [esp + 0x30]
push eax
push esi
call dword [esp + 0x2c]
add esp, 0xc
xor eax, eax
test ebp, ebp
je 0x41fa36
mov edi, dword [esp + 0x1c]
lea ecx, [esp + 0x2c]
sub edi, ecx
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x2c]
sub ecx, edx
mov dword [esp + 0x24], ecx
movzx ebx, byte [esp + eax + 0x2c]
lea ecx, [esp + eax + 0x2c]
movzx edx, byte [edi + ecx]
xor edx, ebx
mov ebx, dword [esp + 0x24]
mov byte [ebx + ecx], dl
xor byte [esi + eax + 0x10], dl
inc eax
cmp eax, ebp
jb 0x41fa13
mov ebx, dword [esp + 0x28]
mov ecx, dword [esp + 0x14]
lea eax, [esi + 0x10]
push ecx
push eax
push eax
call dword [esp + 0x2c]
add esp, 0xc
pop edi
cmp ebx, 0x10
jae 0x41fa63
mov edx, 0x10
sub edx, ebx
push edx
lea eax, [esi + ebx]
push 0
push eax
call fcn.00550c40
add esp, 0xc
mov eax, dword [esp + 0x10]
push eax
lea ecx, [esp + 0x2c]
push ecx
push esi
call dword [esp + 0x28]
mov eax, dword [esp + 0x38]
mov edx, dword [esp + 0x34]
xor dword [esi + 0x14], eax
xor dword [esi + 0x10], edx
mov ecx, dword [esp + 0x3c]
xor dword [esi + 0x18], ecx
mov al, byte [esp + 0x1b]
mov edx, dword [esp + 0x40]
xor dword [esi + 0x1c], edx
mov ecx, dword [esp + 0x44]
add esp, 0xc
mov byte [esi], al
pop esi
pop ebp
pop ebx
xor ecx, esp
xor eax, eax
call fcn.005507d9
add esp, 0x30
ret
Function at 0x41ff20
Capabilities:
Encode data using xor

Disassembly:
mov eax, 4
call fcn.00551a90
mov eax, dword [esp + 0x1c]
push ebx
mov ebx, dword [esp + 0x14]
push ebp
push esi
mov esi, dword [eax]
push edi
mov edi, dword [esp + 0x28]
test esi, esi
je 0x41ff65
test ebx, ebx
je 0x41ff65
mov cl, byte [esi + edi]
mov ebp, dword [esp + 0x18]
xor cl, byte [ebp]
mov eax, dword [esp + 0x1c]
mov byte [eax], cl
inc eax
inc ebp
inc esi
dec ebx
and esi, 0xf
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], ebp
jne 0x41ff40
cmp ebx, 0x10
jb 0x41ffdd
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov eax, edx
sub eax, edi
mov dword [esp + 0x20], eax
mov eax, ebx
shr eax, 4
mov ebp, ecx
mov dword [esp + 0x10], eax
shl eax, 4
add ecx, eax
sub ebp, edi
add edx, eax
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], edx
mov edx, dword [esp + 0x24]
push edx
push edi
push edi
call dword [esp + 0x3c]
add esp, 0xc
cmp esi, 0x10
jae 0x41ffca
mov ecx, 0xf
sub ecx, esi
shr ecx, 2
lea eax, [esi + edi]
inc ecx
mov edx, dword [esp + 0x20]
mov edx, dword [edx + eax]
xor edx, dword [eax]
add eax, 4
dec ecx
mov dword [eax + ebp - 4], edx
jne 0x41ffb7
add dword [esp + 0x20], 0x10
sub ebx, 0x10
add ebp, 0x10
xor esi, esi
dec dword [esp + 0x10]
jne 0x41ff96
test ebx, ebx
je 0x420019
mov eax, dword [esp + 0x24]
push eax
push edi
push edi
call dword [esp + 0x3c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
add esp, 0xc
lea eax, [esi + edi]
sub ebp, edi
sub ecx, edi
add esi, ebx
mov dl, byte [eax + ebp]
xor dl, byte [eax]
inc eax
dec ebx
mov byte [eax + ecx - 1], dl
jne 0x420000
mov eax, dword [esp + 0x2c]
pop edi
mov dword [eax], esi
pop esi
pop ebp
pop ebx
pop ecx
ret
mov ecx, dword [esp + 0x2c]
pop edi
mov dword [ecx], esi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x4204e0
Capabilities:
Encode data using xor

Disassembly:
mov eax, 4
call fcn.00551a90
mov eax, dword [esp + 0x20]
push ebx
mov ebx, dword [eax]
push ebp
push esi
mov esi, dword [esp + 0x28]
push edi
mov edi, dword [esp + 0x20]
test ebx, ebx
je 0x420529
test edi, edi
je 0x420529
mov cl, byte [ebx + esi]
mov ebp, dword [esp + 0x18]
xor cl, byte [ebp]
mov eax, dword [esp + 0x1c]
mov byte [eax], cl
inc eax
inc ebp
inc ebx
dec edi
and ebx, 0xf
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], ebp
mov dword [esp + 0x20], ebx
jne 0x420500
cmp edi, 0x10
jb 0x4205a4
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
mov eax, edi
shr eax, 4
mov ebx, ecx
mov ebp, edx
mov dword [esp + 0x10], eax
shl eax, 4
add ecx, eax
sub ebx, esi
sub ebp, esi
add edx, eax
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], edx
mov edi, edi
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x28]
push edx
push esi
push eax
call dword [esp + 0x40]
mov edx, dword [esp + 0x34]
add esp, 0xc
call fcn.004204b0
mov eax, esi
mov ecx, 4
mov edx, dword [eax + ebp]
xor edx, dword [eax]
add eax, 4
dec ecx
mov dword [ebx + eax - 4], edx
jne 0x420582
sub edi, 0x10
add ebx, 0x10
add ebp, 0x10
dec dword [esp + 0x10]
jne 0x420560
mov ebx, dword [esp + 0x20]
test edi, edi
je 0x4205eb
mov eax, dword [esp + 0x24]
mov ebp, dword [esp + 0x28]
push eax
push esi
push ebp
call dword [esp + 0x40]
add esp, 0xc
mov edx, ebp
call fcn.004204b0
mov ebp, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
lea eax, [ebx + esi]
sub ebp, esi
sub ecx, esi
add ebx, edi
mov dl, byte [eax + ebp]
xor dl, byte [eax]
inc eax
dec edi
mov byte [eax + ecx - 1], dl
jne 0x4205d2
mov eax, dword [esp + 0x30]
pop edi
pop esi
pop ebp
mov dword [eax], ebx
pop ebx
pop ecx
ret
mov ecx, dword [esp + 0x30]
pop edi
pop esi
pop ebp
mov dword [ecx], ebx
pop ebx
pop ecx
ret
Function at 0x420630
Capabilities:
Encode data using xor

Disassembly:
mov eax, 4
call fcn.00551a90
mov eax, dword [esp + 0x20]
mov eax, dword [eax]
push ebx
push ebp
mov ebp, dword [esp + 0x18]
push esi
push edi
mov dword [esp + 0x10], eax
test eax, eax
je 0x42067c
test ebp, ebp
je 0x42067c
mov ecx, dword [esp + 0x2c]
mov dl, byte [eax + ecx]
mov esi, dword [esp + 0x18]
xor dl, byte [esi]
mov ecx, dword [esp + 0x1c]
mov byte [ecx], dl
inc ecx
inc esi
inc eax
dec ebp
and eax, 0xf
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], esi
mov dword [esp + 0x10], eax
jne 0x420650
mov edi, dword [esp + 0x28]
mov esi, dword [edi + 0xc]
bswap esi
cmp ebp, 0x10
jb 0x4206f8
lea ebx, [ebx]
mov ebx, ebp
shr ebx, 4
add esi, ebx
cmp esi, ebx
jae 0x42069f
sub ebx, esi
xor esi, esi
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
push edi
push eax
push ebx
push ecx
push edx
call dword [esp + 0x48]
mov eax, esi
add esp, 0x14
bswap eax
mov dword [edi + 0xc], eax
test esi, esi
jne 0x4206e2
mov eax, 0xc
mov ecx, 1
lea esp, [esp]
movzx edx, byte [eax + edi - 1]
dec eax
add ecx, edx
mov byte [eax + edi], cl
shr ecx, 8
test eax, eax
jne 0x4206d0
shl ebx, 4
add dword [esp + 0x1c], ebx
add dword [esp + 0x18], ebx
sub ebp, ebx
cmp ebp, 0x10
jae 0x420690
mov eax, dword [esp + 0x10]
test ebp, ebp
je 0x42075b
mov ebx, dword [esp + 0x2c]
xor eax, eax
mov dword [ebx], eax
mov dword [ebx + 4], eax
mov dword [ebx + 8], eax
push edi
mov dword [ebx + 0xc], eax
mov eax, dword [esp + 0x28]
push eax
push 1
push ebx
push ebx
call dword [esp + 0x48]
add esp, 0x14
inc esi
bswap esi
mov dword [edi + 0xc], esi
jne 0x42072d
mov edx, edi
call fcn.00420600
mov edi, dword [esp + 0x10]
mov ecx, dword [esp + 0x18]
mov esi, dword [esp + 0x1c]
lea eax, [edi + ebx]
sub ecx, ebx
sub esi, ebx
add edi, ebp
mov dl, byte [ecx + eax]
xor dl, byte [eax]
inc eax
dec ebp
mov byte [esi + eax - 1], dl
jne 0x420742
mov eax, dword [esp + 0x30]
mov dword [eax], edi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
mov ecx, dword [esp + 0x30]
pop edi
pop esi
pop ebp
mov dword [ecx], eax
pop ebx
pop ecx
ret
Function at 0x4216e0
Capabilities:
Encode data using base64

Disassembly:
mov ecx, dword [esp + 4]
push ebp
push edi
mov edi, dword [esp + 0x14]
xor ebp, ebp
test edi, edi
jle 0x4217c3
push esi
mov esi, dword [esp + 0x14]
inc esi
lea ebx, [ebx]
movzx edx, byte [esi - 1]
cmp edi, 3
jl 0x42175d
movzx eax, byte [esi]
shl edx, 8
or edx, eax
movzx eax, byte [esi + 1]
shl edx, 8
or edx, eax
mov eax, edx
shr eax, 0x12
and eax, 0x3f
movzx eax, byte [eax + 0x58c8e0]
mov byte [ecx], al
mov eax, edx
shr eax, 0xc
and eax, 0x3f
movzx eax, byte [eax + 0x58c8e0]
mov byte [ecx + 1], al
mov eax, edx
shr eax, 6
and eax, 0x3f
movzx eax, byte [eax + 0x58c8e0]
mov byte [ecx + 2], al
and edx, 0x3f
mov dl, byte [edx + 0x58c8e0]
mov byte [ecx + 3], dl
jmp 0x4217ae
shl edx, 0x10
cmp edi, 2
jne 0x42176d
movzx eax, byte [esi]
shl eax, 8
or edx, eax
mov eax, edx
shr eax, 0x12
and eax, 0x3f
movzx eax, byte [eax + 0x58c8e0]
mov byte [ecx], al
mov eax, edx
shr eax, 0xc
and eax, 0x3f
movzx eax, byte [eax + 0x58c8e0]
mov byte [ecx + 1], al
cmp edi, 1
jne 0x42179a
lea edx, [edi + 0x3c]
jmp 0x4217a7
shr edx, 6
and edx, 0x3f
movzx edx, byte [edx + 0x58c8e0]
mov byte [ecx + 2], dl
mov byte [ecx + 3], 0x3d
sub edi, 3
add ecx, 4
add ebp, 4
add esi, 3
test edi, edi
jg 0x421700
pop esi
pop edi
mov eax, ebp
mov byte [ecx], 0
pop ebp
ret

Function at 0x422550
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 4]
push esi
xor esi, esi
test edx, edx
je 0x422594
mov al, byte [edx]
test al, al
je 0x422594
push edi
mov edi, 0x100
movsx eax, al
or eax, edi
mov ecx, eax
shr ecx, 2
xor ecx, eax
imul eax, eax
and ecx, 0xf
add edi, 0x100
rol esi, cl
inc edx
xor esi, eax
mov al, byte [edx]
test al, al
jne 0x422567
mov eax, esi
shr eax, 0x10
pop edi
xor eax, esi
pop esi
ret
xor eax, eax
pop esi
ret
Function at 0x4270e0
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 0x14]
mov edx, dword [ebp + 0x10]
push ebx
xor ebx, ebx
lea ecx, [ebp - 0x10]
push ecx
mov ecx, dword [ebp + 8]
mov dword [eax], ebx
mov eax, dword [ebp + 0xc]
push edx
push eax
push ecx
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
call dword [sym.imp.WS2_32.dll_getaddrinfo]
mov dword [ebp - 8], eax
cmp eax, ebx
jne 0x427276
push edi
mov edi, dword [ebp - 0x10]
cmp edi, ebx
je 0x427258
push esi
cmp dword [edi + 4], 2
jne 0x4271dc
cmp dword [edi + 0x18], ebx
je 0x4271dc
mov eax, dword [edi + 0x10]
cmp eax, ebx
jbe 0x4271dc
cmp eax, 0x10
jb 0x4271dc
push 0x20
call dword [0x5e205c]
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x4271e9
mov edx, dword [edi]
mov dword [esi], edx
mov eax, dword [edi + 4]
mov dword [esi + 4], eax
mov ecx, dword [edi + 8]
mov dword [esi + 8], ecx
mov edx, dword [edi + 0xc]
push 0x10
mov dword [esi + 0xc], edx
mov dword [esi + 0x10], 0x10
mov dword [esi + 0x18], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x1c], ebx
call dword [0x5e205c]
add esp, 4
mov dword [esi + 0x18], eax
cmp eax, ebx
je 0x4271f2
mov ecx, dword [edi + 0x18]
mov edx, dword [ecx]
mov dword [eax], edx
mov edx, dword [ecx + 4]
mov dword [eax + 4], edx
mov edx, dword [ecx + 8]
mov dword [eax + 8], edx
mov ecx, dword [ecx + 0xc]
mov dword [eax + 0xc], ecx
mov eax, dword [edi + 0x14]
cmp eax, ebx
je 0x4271c7
push eax
call dword [0x5e2068]
add esp, 4
mov dword [esi + 0x14], eax
cmp eax, ebx
je 0x427205
cmp dword [ebp - 4], ebx
jne 0x4271cf
mov dword [ebp - 4], esi
mov eax, dword [ebp - 0xc]
cmp eax, ebx
je 0x4271d9
mov dword [eax + 0x1c], esi
mov dword [ebp - 0xc], esi
mov edi, dword [edi + 0x1c]
cmp edi, ebx
jne 0x427122
jmp 0x427220
mov dword [ebp - 8], 8
jmp 0x427220
push esi
mov dword [ebp - 8], 8
call dword [0x5e2060]
add esp, 4
jmp 0x427220
mov edx, dword [esi + 0x18]
push edx
mov dword [ebp - 8], 8
call dword [0x5e2060]
push esi
call dword [0x5e2060]
add esp, 8
mov eax, dword [ebp - 0x10]
pop esi
cmp eax, ebx
je 0x42722f
push eax
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
cmp dword [ebp - 8], ebx
je 0x427253
mov eax, dword [ebp - 4]
push eax
call fcn.004270a0
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp - 8]
add esp, 4
mov ecx, ebx
pop edi
mov dword [ebp - 4], ebx
mov dword [edx], ecx
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 4], ebx
jne 0x42726a
push 0x2af9
mov dword [ebp - 8], 0x2af9
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp - 8]
mov dword [edx], ecx
pop edi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x428980
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push 0
push 0
push eax
push ecx
push 0
push 0
call fcn.00557458
add esp, 0x18
test eax, eax
je 0x4289a4
cmp eax, 0xffffffff
jne 0x4289a6
xor eax, eax
pop ebp
ret
Function at 0x42e6c0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
push eax
call fcn.004ee860
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
push eax
push ecx
push edx
call fcn.00562993
add esp, 0x10
pop ebp
ret
Function at 0x436030
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [esi + 0x10]
mov ecx, dword [eax]
push str.Connected_for_receive
push 0x58c414
push ecx
call fcn.0041a590
add esp, 0xc
mov eax, esi
mov dword [esi], 1
call fcn.00435140
test eax, eax
jne 0x436064
mov eax, esi
pop ebp
jmp fcn.004355d0
pop ebp
ret
Function at 0x436460
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8c
mov eax, dword [0x5ea6f0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [eax]
push esi
mov esi, dword [eax + 0x518]
push edi
mov dword [ebp - 0x8c], eax
lea eax, [ebp - 0x88]
push eax
mov dword [ebp - 0x88], 0x80
mov edx, dword [esi + 0x154]
mov eax, dword [esi + 0x15c]
lea ecx, [ebp - 0x84]
push ecx
mov ecx, dword [esi + 0x14]
push 0
add edx, 4
push edx
push eax
push ecx
call dword [sym.imp.WS2_32.dll_recvfrom]
cmp dword [esi + 0x148], 0
mov dword [esi + 0x14c], eax
jne 0x4364f4
mov edx, dword [ebp - 0x88]
push edx
lea eax, [ebp - 0x84]
push eax
lea ecx, [esi + 0xc8]
push ecx
call fcn.0054fa80
mov edx, dword [ebp - 0x88]
add esp, 0xc
mov dword [esi + 0x148], edx
mov edx, dword [esi + 0x14c]
cmp edx, 4
jge 0x436527
push str.Received_too_short_packet
push ebx
call fcn.0041a610
add esp, 8
mov dword [esi + 0xc], 7
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005507d9
mov esp, ebp
pop ebp
ret
lea eax, [esi + 0x15c]
call fcn.004352f0
movzx eax, ax
mov dword [esi + 0xc], eax
add eax, 0xfffffffd
cmp eax, 3
ja case.default.0x436544
jmp dword [eax*4 + 0x436680]
cmp edx, 4
jle case.0x436544.4
lea eax, [esi + 0x15c]
call fcn.00435300
movzx ecx, word [esi + 0x40]
inc ecx
cmp cx, ax
jne case.0x436544.4
mov eax, dword [ebp - 0x8c]
add edx, 0xfffffffc
push edx
mov edx, dword [esi + 0x15c]
add edx, 4
push edx
push 1
push eax
call fcn.0041a9c0
mov edi, eax
add esp, 0x10
test edi, edi
je 0x4365b1
mov ecx, 5
mov eax, esi
call fcn.004363e0
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005507d9
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0x14c]
sub eax, 4
cdq
add dword [ebx + 0x90], eax
adc dword [ebx + 0x94], edx
mov ecx, dword [ebx + 0x94]
mov edx, dword [ebx + 0x90]
push ecx
push edx
push ebx
call fcn.0042d870
jmp 0x436641
lea eax, [esi + 0x15c]
call fcn.00435300
mov ecx, dword [esi + 0x15c]
add ecx, 4
push ecx
movzx eax, ax
push 0x58c414
push ebx
mov dword [esi + 8], eax
call fcn.0041a590
jmp 0x436641
add edx, 0xfffffffe
push edx
mov edx, dword [esi + 0x15c]
add edx, 2
push edx
push esi
call fcn.00435390
add esp, 0xc
test eax, eax
je case.0x436544.4
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005507d9
mov esp, ebp
pop ebp
ret
push str.Internal_error:_Unexpected_packet
push 0x5d2308
push ebx
call fcn.0041a610
add esp, 0xc
mov eax, dword [ebp - 0x8c]
push eax
call fcn.0042da50
add esp, 4
test eax, eax
je 0x436514
mov ecx, 5
mov eax, esi
call fcn.004363e0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
mov eax, 0x2a
pop ebx
call fcn.005507d9
mov esp, ebp
pop ebp
ret
Function at 0x4380a0
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
mov eax, dword [0x5ea6f0]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x194]
push eax
push 2
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x4380e8
push eax
push str.WSAStartup_failed___d_
push esi
call fcn.0041a610
add esp, 0xc
mov eax, 2
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005507d9
mov esp, ebp
pop ebp
ret
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, dword [ebp - 0x194]
cmp al, 2
jne 0x43810f
shr eax, 8
test al, al
jne 0x43810f
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005507d9
mov esp, ebp
pop ebp
ret
push str.insufficient_winsock_version_to_support_telnet
push esi
call fcn.0041a610
mov ecx, dword [ebp - 4]
xor ecx, ebp
add esp, 8
mov eax, 2
call fcn.005507d9
mov esp, ebp
pop ebp
ret

Function at 0x4382a0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push ecx
mov edx, dword [edi + 0x198]
push ebx
push esi
mov esi, dword [edi]
push 0
push 3
lea ecx, [ebp - 4]
mov ebx, eax
mov al, byte [ebp + 8]
push ecx
push edx
mov byte [ebp - 4], 0xff
mov byte [ebp - 3], al
mov byte [ebp - 2], bl
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x4382e5
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Sending_data_failed___d_
push esi
call fcn.0041a610
add esp, 0xc
mov esi, dword [ebp + 8]
mov ecx, dword [edi]
mov eax, ebx
mov ebx, str.SENT
call fcn.004381a0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4390c0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [ebp + 0xc], 0x1f
mov eax, dword [ebp + 8]
mov eax, dword [eax]
push edi
mov edi, dword [eax + 0x144]
mov dword [ebp - 4], eax
jne 0x439211
push ebx
push esi
lea ebx, [edi + 0x1cb0]
lea esi, [edi + 0x1eb0]
mov dword [esi], ebx
cmp ebx, esi
jae 0x4390f6
mov byte [ebx], 0xff
inc dword [esi]
mov eax, dword [esi]
cmp eax, esi
jae 0x439101
mov byte [eax], 0xfa
inc dword [esi]
mov eax, dword [esi]
cmp eax, esi
jae 0x43910c
mov byte [eax], 0x1f
inc dword [esi]
movzx ecx, word [edi + 0x1ca8]
push ecx
call dword [sym.imp.WS2_32.dll_htons]
movzx edx, ax
movzx eax, word [edi + 0x1caa]
push eax
mov dword [ebp + 0xc], edx
call dword [sym.imp.WS2_32.dll_htons]
movzx ecx, ax
mov eax, dword [esi]
cmp eax, esi
jae 0x43913e
mov dl, byte [ebp + 0xc]
mov byte [eax], dl
inc dword [esi]
mov eax, dword [esi]
cmp eax, esi
jae 0x43914b
mov dl, byte [ebp + 0xd]
mov byte [eax], dl
inc dword [esi]
mov eax, dword [esi]
cmp eax, esi
jae 0x439155
mov byte [eax], cl
inc dword [esi]
mov eax, dword [esi]
cmp eax, esi
jae 0x43915f
mov byte [eax], ch
inc dword [esi]
mov eax, dword [esi]
cmp eax, esi
jae 0x43916a
mov byte [eax], 0xff
inc dword [esi]
mov eax, dword [esi]
cmp eax, esi
jae 0x439175
mov byte [eax], 0xf0
inc dword [esi]
mov eax, dword [esi]
mov dword [edi + 0x1eb4], eax
sub eax, ebx
sub eax, 2
push eax
mov dword [esi], ebx
mov esi, dword [ebp - 4]
lea eax, [edi + 0x1cb2]
push 0x3e
call fcn.00438610
mov esi, dword [sym.imp.WS2_32.dll_send]
add esp, 8
push 0
push 3
push ebx
mov ebx, dword [ebp + 8]
mov edx, dword [ebx + 0x198]
push edx
call esi
test eax, eax
jns 0x4391cb
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
mov eax, dword [ebp - 4]
push str.Sending_data_failed___d_
push eax
call fcn.0041a610
add esp, 0xc
lea ecx, [edi + 0x1cb3]
push ecx
mov eax, 4
call fcn.00438f20
mov edx, dword [ebx + 0x198]
add esp, 4
push 0
push 2
add edi, 0x1cb7
push edi
push edx
call esi
pop esi
pop ebx
test eax, eax
jns 0x439211
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
mov eax, dword [ebp - 4]
push str.Sending_data_failed___d_
push eax
call fcn.0041a610
add esp, 0xc
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x439c30
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x5ea6f0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, ecx
mov ebx, dword [esi + 0x19c]
mov eax, dword [esi]
lea ecx, [ebp - 0x18]
push ecx
lea edx, [ebp - 0x14]
push edx
push ebx
mov dword [ebp - 0x1c], eax
or edi, 0xffffffff
mov dword [ebp - 0x18], 0x10
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x439c85
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x14]
push ecx
push ebx
mov dword [ebp - 0x18], 0x10
call dword [sym.imp.WS2_32.dll_accept]
mov edi, eax
push ebx
push esi
call fcn.0041d560
add esp, 8
cmp edi, 0xffffffff
jne 0x439cbb
mov edx, dword [ebp - 0x1c]
push str.Error_accept__ing_server_connect
push edx
call fcn.0041a610
add esp, 8
pop edi
pop esi
mov eax, 0x1e
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005507d9
mov esp, ebp
pop ebp
ret
mov ebx, dword [ebp - 0x1c]
push str.Connection_accepted_from_server_n
push ebx
call fcn.0041a590
push 1
push edi
mov dword [esi + 0x2d0], 0
mov dword [esi + 0x19c], edi
call fcn.00448530
mov dword [esi + 0x1ac], 1
mov eax, dword [ebx + 0x1c8]
add esp, 0x10
test eax, eax
je 0x439d26
mov ecx, dword [ebx + 0x1cc]
push 1
push edi
push ecx
call eax
add esp, 0xc
test eax, eax
je 0x439d26
call fcn.00439b60
pop edi
pop esi
mov eax, 0x2a
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005507d9
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.005507d9
mov esp, ebp
pop ebp
ret
Function at 0x43d4a0
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x51eb851f
imul ecx
sar edx, 5
mov eax, edx
push ebx
mov ebx, dword [edi]
shr eax, 0x1f
push esi
add eax, edx
xor esi, esi
cmp eax, 2
je 0x43d4d4
push str.Couldnt_set_desired_mode
push ebx
call fcn.0041a610
add esp, 8
lea eax, [esi + 0x11]
pop esi
pop ebx
pop ebp
ret
cmp ecx, 0xc8
je 0x43d4eb
push ecx
push str.Got_a__03d_response_code_instead_of_the_assumed_200_n
push ebx
call fcn.0041a590
add esp, 0xc
mov eax, dword [ebp + 8]
cmp eax, 0x13
jne 0x43d502
push edi
call fcn.0043d430
add esp, 4
mov esi, eax
pop esi
pop ebx
pop ebp
ret
cmp eax, 0x14
jne 0x43d516
push edi
call fcn.0043a7e0
add esp, 4
mov esi, eax
pop esi
pop ebx
pop ebp
ret
cmp eax, 0x15
jne 0x43d528
mov eax, edi
call fcn.0043d480
mov esi, eax
pop esi
pop ebx
pop ebp
ret
cmp eax, 0x16
jne 0x43d536
mov eax, edi
call fcn.0043d490
mov esi, eax
mov eax, esi
pop esi
pop ebx
pop ebp
ret