joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10018c40
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, eax
mov eax, dword [ebp + 8]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x10018c58
pop edi
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x10018c8a
mov ecx, dword [ebp + 8]
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, esi
and edi, 0xf
jbe 0x10018c86
cmp esi, eax
jae 0x10018c8a
dec edi
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x10018c78
cmp esi, eax
jb 0x10018c90
pop esi
xor eax, eax
pop edi
pop ebp
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebp
ret

Function at 0x1001bf30
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x10085510]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x10088694], 0
je 0x1001bf59
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10052dab
mov esp, ebp
pop ebp
ret
push esi
xor esi, esi
push str.skpc.dll
mov dword [ebp - 0x1c], esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp eax, esi
jne 0x1001bf80
lea eax, [esi + 1]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10052dab
mov esp, ebp
pop ebp
ret
push str.OperateDiskF
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, esi
jne 0x1001bfa4
mov eax, 2
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10052dab
mov esp, ebp
pop ebp
ret
push ebx
mov cl, pe_nt_image_headers32
mov dword [ebp - 0x18], 0x8bfc5d88
mov dword [ebp - 0x14], 0x8589e845
mov bl, 0xcc
mov dword [ebp - 0x10], 0xcccccccc
mov dword [ebp - 0xc], 0xcccccc68
mov word [ebp - 8], 0x50cc
mov byte [ebp - 6], cl
push edi
nop
xor ecx, ecx
mov dl, byte [ebp + ecx - 0x18]
cmp dl, bl
je 0x1001bfe2
lea edi, [ecx + esi]
cmp byte [edi + eax], dl
jne 0x1001c002
inc ecx
cmp ecx, 0x13
jl 0x1001bfd2
add eax, esi
jne 0x1001c00d
pop edi
pop ebx
mov eax, 3
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10052dab
mov esp, ebp
pop ebp
ret
inc esi
cmp esi, 0xc8
jl 0x1001bfd0
jmp 0x1001bfec
mov ecx, dword [eax + 0x13]
lea esi, [ecx + eax + 0x17]
call fcn.1001c090
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x1c]
pop edi
pop ebx
xor ecx, ebp
mov byte [0x10088694], 1
pop esi
call fcn.10052dab
mov esp, ebp
pop ebp
ret
Function at 0x1001c090
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [esi]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov dword [0x1008718c], eax
mov cx, word [esi + 4]
lea eax, [ebp - 8]
push eax
push 0x40
push 6
lea edx, [esi + 6]
push esi
mov word [0x10087190], cx
mov byte [0x10087196], 0x68
mov dword [0x10087197], edx
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], 6
call edi
lea edx, [ebp - 4]
push edx
mov ecx, 0x1001c040
push 0x40
sub ecx, esi
sub ecx, 5
push 0x18
mov byte [esi], 0xe9
mov dword [esi + 1], ecx
push 0x1008718c
mov dword [0x1008719c], esi
mov dword [0x100871a0], 6
call edi
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0xc]
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 0x10]
push ecx
push edx
push eax
call edi
pop edi
mov esp, ebp
pop ebp
ret

Function at 0x1001c130
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
mov eax, dword [0x10085510]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x194]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x1001c180
mov eax, dword [ebp - 0x194]
cmp al, 2
jne 0x1001c17a
shr eax, 8
cmp al, 2
jne 0x1001c17a
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10052dab
mov esp, ebp
pop ebp
ret
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, 2
call fcn.10052dab
mov esp, ebp
pop ebp
ret
Function at 0x10028f90
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
push 0
push eax
push ecx
push edx
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
jne 0x10028fc3
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
sub eax, 0x2733
neg eax
sbb eax, eax
and eax, 0xffffffe7
add eax, 0x51
pop ebp
ret
mov ecx, dword [ebp + 0x14]
mov dword [ecx], eax
xor eax, eax
pop ebp
ret

Function at 0x10029100
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [esi + 0x1e0]
push edi
xor edi, edi
test ecx, ecx
je 0x10029126
mov edx, dword [esi + 0x16c]
push edx
mov edx, dword [ebp + 8]
push ebx
push edx
push eax
push esi
call ecx
add esp, 0x14
pop edi
pop ebp
ret
test eax, eax
js 0x1002915d
cmp eax, 2
jg 0x1002915d
mov ecx, dword [esi + 0x168]
push ecx
push 1
lea edx, [eax + eax*2 + 0x10074370]
push 2
push edx
call fcn.10053e02
mov eax, dword [esi + 0x168]
mov ecx, dword [ebp + 8]
push eax
push 1
push ebx
push ecx
call fcn.10053e02
add esp, 0x20
mov eax, edi
pop edi
pop ebp
ret

Function at 0x100296c0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
push ecx
mov edx, dword [ebx + 0x330]
mov ecx, dword [ebx + eax*4 + 0x1a8]
push esi
lea esi, [eax + 0x1d]
shl esi, 4
add esi, ebx
push edi
mov edi, dword [esi + 4]
sub edi, dword [esi + 8]
test byte [edx + 0x40], 3
mov dword [ebp - 4], ecx
je 0x1002976e
cmp dword [ebx + eax*4 + 0x1c0], 0x10029460
jne 0x1002976e
cmp dword [esi], 0
je 0x10029704
test edi, edi
je 0x1002976e
push 0
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
push ecx
call fcn.1001cf70
add esp, 0x14
cmp eax, 0xffffffff
je 0x1002976e
test al, 1
je 0x1002976e
cmp dword [esi], 0
jne 0x1002974b
mov eax, dword [ebx]
mov eax, dword [eax + 0x4f8]
add eax, eax
push eax
mov dword [esi + 4], eax
call dword [section..data]
mov edi, dword [esi + 4]
xor ecx, ecx
add esp, 4
mov dword [esi], eax
mov dword [esi + 8], ecx
mov dword [esi + 0xc], ecx
cmp eax, ecx
je 0x1002976b
mov ecx, dword [esi]
add ecx, dword [esi + 8]
mov edx, dword [ebp - 4]
push 0
push edi
push ecx
push edx
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x1002976e
add dword [esi + 8], eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov dword [esi + 4], ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10029780
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebx + eax*4 + 0x1a8]
push edi
call fcn.100296c0
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
push 0
push eax
push ecx
push esi
call dword [sym.imp.WS2_32.dll_send]
mov edi, dword [ebp + 0x18]
mov esi, eax
mov dword [edi], 0
cmp esi, 0xffffffff
jne 0x10029801
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp + 8], eax
cmp eax, 0x2733
jne 0x100297d6
mov dword [edi], 0x51
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret
push eax
push ebx
call fcn.1001ccc0
mov edx, dword [ebx]
push eax
push str.Send_failure:__s
push edx
call fcn.100292d0
mov eax, dword [ebx]
mov ecx, dword [ebp + 8]
mov dword [eax + 0x4954], ecx
add esp, 0x14
mov dword [edi], 0x37
mov eax, esi
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x1002b860
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x10085510]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
cmp dword [esi + 0x6e0], eax
push 4
lea ecx, [ebp - 0x14]
push ecx
setne al
push 8
push 0xffff
push edi
mov dword [ebp - 0x14], eax
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x1002b8b3
push edi
push str.Failed_to_set_SO_KEEPALIVE_on_fd__d_n
push esi
call fcn.10029250
add esp, 0xc
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10052dab
mov esp, ebp
pop ebp
ret
mov edx, dword [esi + 0x6e4]
push edx
mov dword [ebp - 0x10], 1
call fcn.10042b60
imul eax, eax, 0x3e8
mov dword [ebp - 0x14], eax
mov dword [ebp - 0xc], eax
mov eax, dword [esi + 0x6e8]
push eax
call fcn.10042b60
imul eax, eax, 0x3e8
add esp, 8
push 0
push 0
lea ecx, [ebp - 0x18]
push ecx
push 0
push 0
push 0xc
lea edx, [ebp - 0x10]
push edx
push 0x98000004
push edi
mov dword [ebp - 0x14], eax
mov dword [ebp - 8], eax
call dword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
je 0x1002b925
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
push str.Failed_to_set_SIO_KEEPALIVE_VALS_on_fd__d:__d_n
push esi
call fcn.10029250
add esp, 0x10
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10052dab
mov esp, ebp
pop ebp
ret
Function at 0x1002c040
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x10085510]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
cmp dword [esi + 0x94], 2
mov ebx, dword [esi]
mov dword [ebp - 0x108], esi
mov dword [ebp - 0x110], ebx
je 0x1002c23d
cmp dword [esi + 0x288], 0
push edi
jne 0x1002c233
cmp dword [esi + 0x2f8], 0
jne 0x1002c233
mov edi, dword [ebp + 0xc]
lea eax, [ebp - 0x10c]
push eax
lea ecx, [ebp - 0x104]
push ecx
push edi
mov dword [ebp - 0x10c], 0x80
call dword [sym.imp.WS2_32.dll_getpeername]
test eax, eax
je 0x1002c0e4
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
push edi
push esi
call fcn.1001ccc0
push eax
push edi
push str.getpeername___failed_with_errno__d:__s
push ebx
call fcn.100292d0
add esp, 0x18
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10052dab
mov esp, ebp
pop ebp
ret
push 0x80
lea edx, [ebp - 0x84]
push 0
push edx
mov dword [ebp - 0x10c], 0x80
call fcn.100568e0
add esp, 0xc
lea eax, [ebp - 0x10c]
push eax
lea ecx, [ebp - 0x84]
push ecx
push edi
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x1002c14d
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
push edi
push esi
call fcn.1001ccc0
push eax
push edi
push str.getsockname___failed_with_errno__d:__s
push ebx
call fcn.100292d0
add esp, 0x18
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10052dab
mov esp, ebp
pop ebp
ret
lea edi, [esi + 0x10a]
lea ebx, [esi + 0x138]
lea esi, [ebp - 0x104]
mov dword [ebp - 0x114], edi
call fcn.1002bff0
test eax, eax
jne 0x1002c1b4
call fcn.10056ac6
mov esi, eax
call fcn.10056ac6
mov edx, dword [esi]
mov edi, eax
mov eax, dword [ebp - 0x108]
push edx
push eax
call fcn.1001ccc0
mov ecx, dword [edi]
mov edx, dword [ebp - 0x110]
push eax
push ecx
push str.ssrem_inet_ntop___failed_with_errno__d:__s
push edx
call fcn.100292d0
add esp, 0x18
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10052dab
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x108]
mov esi, dword [ebp - 0x114]
lea edi, [eax + 0x60]
mov ecx, 0xb
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
lea ebx, [eax + 0x16c]
lea edi, [eax + 0x13c]
lea esi, [ebp - 0x84]
call fcn.1002bff0
test eax, eax
jne 0x1002c22d
call fcn.10056ac6
mov esi, eax
call fcn.10056ac6
mov ecx, dword [ebp - 0x108]
mov edi, eax
mov eax, dword [esi]
push eax
push ecx
call fcn.1001ccc0
mov edx, dword [edi]
push eax
mov eax, dword [ebp - 0x110]
push edx
push str.ssloc_inet_ntop___failed_with_errno__d:__s
push eax
call fcn.100292d0
add esp, 0x18
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10052dab
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp - 0x108]
push esi
call fcn.1002bf70
add esp, 4
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.10052dab
mov esp, ebp
pop ebp
ret
Function at 0x1002c250
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, dword [edi]
push 4
lea eax, [ebp + 8]
push eax
push 1
push 6
push ecx
mov dword [ebp + 8], 1
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x1002c299
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
call fcn.1001ccc0
push eax
push str.Could_not_set_TCP_NODELAY:__s_n
push esi
call fcn.10029250
add esp, 0x14
pop edi
pop esi
pop ebp
ret
push str.TCP_NODELAY_set_n
push esi
call fcn.10029250
add esp, 8
pop edi
pop esi
pop ebp
ret

Function at 0x1002c2b0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x10087548]
mov dword [ebp - 8], 0x4020
mov dword [ebp - 4], 0
mov dword [ebp - 0xc], 4
test eax, eax
jne 0x1002c301
push 3
push 2
push eax
push 6
call fcn.1004bf70
add esp, 0x10
test eax, eax
je 0x1002c2f5
mov dword [0x10087548], 2
mov esp, ebp
pop ebp
ret
mov dword [0x10087548], 1
jmp 0x1002c306
cmp eax, 2
je 0x1002c347
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 4]
push ecx
push 0x1001
push 0xffff
push esi
call dword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x1002c32f
mov edx, dword [ebp - 4]
cmp edx, dword [ebp - 8]
jg 0x1002c346
push 4
lea eax, [ebp - 8]
push eax
push 0x1001
push 0xffff
push esi
call dword [sym.imp.WS2_32.dll_setsockopt]
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x1002c3f0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
cmp dword [eax + 0x1f0], 0
je 0x1002c403
xor eax, eax
pop ebp
ret
mov eax, dword [eax + 0x1a8]
cmp eax, 0xffffffff
je 0x1002c3ff
push 2
push 1
lea ecx, [ebp + 0xb]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_recv]
neg eax
sbb eax, eax
neg eax
pop ebp
ret
Function at 0x1002e420
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 0x1002e5b6
push edi
mov edi, dword [ebp - 0x10]
cmp edi, ebx
je 0x1002e598
push esi
cmp dword [edi + 4], 2
jne 0x1002e51c
cmp dword [edi + 0x18], ebx
je 0x1002e51c
mov eax, dword [edi + 0x10]
cmp eax, ebx
jbe 0x1002e51c
cmp eax, 0x10
jb 0x1002e51c
push 0x20
call dword [section..data]
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x1002e529
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 [section..data]
add esp, 4
mov dword [esi + 0x18], eax
cmp eax, ebx
je 0x1002e532
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 0x1002e507
push eax
call dword [0x1008500c]
add esp, 4
mov dword [esi + 0x14], eax
cmp eax, ebx
je 0x1002e545
cmp dword [ebp - 4], ebx
jne 0x1002e50f
mov dword [ebp - 4], esi
mov eax, dword [ebp - 0xc]
cmp eax, ebx
je 0x1002e519
mov dword [eax + 0x1c], esi
mov dword [ebp - 0xc], esi
mov edi, dword [edi + 0x1c]
cmp edi, ebx
jne 0x1002e462
jmp 0x1002e560
mov dword [ebp - 8], 8
jmp 0x1002e560
push esi
mov dword [ebp - 8], 8
call dword [0x10085004]
add esp, 4
jmp 0x1002e560
mov edx, dword [esi + 0x18]
push edx
mov dword [ebp - 8], 8
call dword [0x10085004]
push esi
call dword [0x10085004]
add esp, 8
mov eax, dword [ebp - 0x10]
pop esi
cmp eax, ebx
je 0x1002e56f
push eax
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
cmp dword [ebp - 8], ebx
je 0x1002e593
mov eax, dword [ebp - 4]
push eax
call fcn.1002e3e0
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 0x1002e5aa
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 0x1002e8e0
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.1005796a
add esp, 0x18
test eax, eax
je 0x1002e904
cmp eax, 0xffffffff
jne 0x1002e906
xor eax, eax
pop ebp
ret
Function at 0x10036420
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 0x1007f5d0
push ecx
call fcn.10029250
add esp, 0xc
mov eax, esi
mov dword [esi], 1
call fcn.10035530
test eax, eax
jne 0x10036454
mov eax, esi
pop ebp
jmp fcn.100359c0
pop ebp
ret
Function at 0x100368b0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8c
mov eax, dword [0x10085510]
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 + 0x500]
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 0x10036944
mov edx, dword [ebp - 0x88]
push edx
lea eax, [ebp - 0x84]
push eax
lea ecx, [esi + 0xc8]
push ecx
call fcn.10056d20
mov edx, dword [ebp - 0x88]
add esp, 0xc
mov dword [esi + 0x148], edx
mov edx, dword [esi + 0x14c]
cmp edx, 4
jge 0x10036977
push str.Received_too_short_packet
push ebx
call fcn.100292d0
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.10052dab
mov esp, ebp
pop ebp
ret
lea eax, [esi + 0x15c]
call fcn.100356e0
movzx eax, ax
mov dword [esi + 0xc], eax
add eax, 0xfffffffd
cmp eax, 3
ja case.default.0x10036994
jmp dword [eax*4 + 0x10036ad0]
cmp edx, 4
jle case.0x10036994.4
lea eax, [esi + 0x15c]
call fcn.100356f0
movzx ecx, word [esi + 0x40]
inc ecx
cmp cx, ax
jne case.0x10036994.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.10029680
mov edi, eax
add esp, 0x10
test edi, edi
je 0x10036a01
mov ecx, 5
mov eax, esi
call fcn.10036830
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10052dab
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.10047a00
jmp 0x10036a91
lea eax, [esi + 0x15c]
call fcn.100356f0
mov ecx, dword [esi + 0x15c]
add ecx, 4
push ecx
movzx eax, ax
push 0x1007f5d0
push ebx
mov dword [esi + 8], eax
call fcn.10029250
jmp 0x10036a91
add edx, 0xfffffffe
push edx
mov edx, dword [esi + 0x15c]
add edx, 2
push edx
push esi
call fcn.10035780
add esp, 0xc
test eax, eax
je case.0x10036994.4
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10052dab
mov esp, ebp
pop ebp
ret
push str.Internal_error:_Unexpected_packet
push 0x1007e888
push ebx
call fcn.100292d0
add esp, 0xc
mov eax, dword [ebp - 0x8c]
push eax
call fcn.10047ca0
add esp, 4
test eax, eax
je 0x10036964
mov ecx, 5
mov eax, esi
call fcn.10036830
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
mov eax, 0x2a
pop ebx
call fcn.10052dab
mov esp, ebp
pop ebp
ret
Function at 0x10038590
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
mov eax, dword [0x10085510]
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 0x100385d8
push eax
push str.WSAStartup_failed___d_
push esi
call fcn.100292d0
add esp, 0xc
mov eax, 2
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10052dab
mov esp, ebp
pop ebp
ret
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, dword [ebp - 0x194]
cmp al, 2
jne 0x100385ff
shr eax, 8
test al, al
jne 0x100385ff
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10052dab
mov esp, ebp
pop ebp
ret
push str.insufficient_winsock_version_to_support_telnet
push esi
call fcn.100292d0
mov ecx, dword [ebp - 4]
xor ecx, ebp
add esp, 8
mov eax, 2
call fcn.10052dab
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
push ecx
mov edx, dword [edi + 0x1a8]
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 0x100387d5
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Sending_data_failed___d_
push esi
call fcn.100292d0
add esp, 0xc
mov esi, dword [ebp + 8]
mov ecx, dword [edi]
mov eax, ebx
mov ebx, str.SENT
call fcn.10038690
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100395a0
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 + 0x164]
mov dword [ebp - 4], eax
jne 0x100396f1
push ebx
push esi
lea ebx, [edi + 0x1cb0]
lea esi, [edi + 0x1eb0]
mov dword [esi], ebx
cmp ebx, esi
jae 0x100395d6
mov byte [ebx], 0xff
inc dword [esi]
mov eax, dword [esi]
cmp eax, esi
jae 0x100395e1
mov byte [eax], 0xfa
inc dword [esi]
mov eax, dword [esi]
cmp eax, esi
jae 0x100395ec
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 0x1003961e
mov dl, byte [ebp + 0xc]
mov byte [eax], dl
inc dword [esi]
mov eax, dword [esi]
cmp eax, esi
jae 0x1003962b
mov dl, byte [ebp + 0xd]
mov byte [eax], dl
inc dword [esi]
mov eax, dword [esi]
cmp eax, esi
jae 0x10039635
mov byte [eax], cl
inc dword [esi]
mov eax, dword [esi]
cmp eax, esi
jae 0x1003963f
mov byte [eax], ch
inc dword [esi]
mov eax, dword [esi]
cmp eax, esi
jae 0x1003964a
mov byte [eax], 0xff
inc dword [esi]
mov eax, dword [esi]
cmp eax, esi
jae 0x10039655
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.10038b00
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 + 0x1a8]
push edx
call esi
test eax, eax
jns 0x100396ab
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.100292d0
add esp, 0xc
lea ecx, [edi + 0x1cb3]
push ecx
mov eax, 4
call fcn.10039400
mov edx, dword [ebx + 0x1a8]
add esp, 4
push 0
push 2
add edi, 0x1cb7
push edi
push edx
call esi
pop esi
pop ebx
test eax, eax
jns 0x100396f1
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.100292d0
add esp, 0xc
pop edi
mov esp, ebp
pop ebp
ret