joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4522f0
Capabilities:
Receive data
Receive data on socket

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

Function at 0x452470
Capabilities:
Write file on windows

Disassembly:
sub esp, 0xa4
mov eax, dword [0x526a28]
xor eax, esp
mov dword [esp + 0xa0], eax
mov eax, dword [esp + 0xb8]
push ebx
mov ebx, dword [esp + 0xb0]
push ebp
mov ebp, dword [esp + 0xb8]
push esi
mov esi, dword [esp + 0xb4]
cmp dword [esi + 0x2c8], 0
push edi
je case.default.0x4524d0
test eax, eax
je case.default.0x4524d0
mov eax, dword [eax + 0x80]
test eax, eax
je case.default.0x4524d0
lea edx, [ebx - 1]
mov ecx, str.Data
cmp edx, 3
ja case.default.0x4524d0
jmp dword [edx*4 + 0x4525ec]
mov ecx, str.Header
mov edx, str.from
jmp 0x4524ed
mov ecx, str.Header
mov edx, 0x4ec29c
push eax
push edx
push ecx
push str.__s__s__s_
lea eax, [esp + 0x20]
push 0xa0
push eax
call fcn.00457a90
lea eax, [esp + 0x28]
add esp, 0x18
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x452510
sub eax, edx
mov edi, eax
mov eax, dword [esi + 0x1a4]
test eax, eax
je 0x452565
mov ecx, dword [esi + 0x134]
push ecx
push edi
lea edx, [esp + 0x18]
push edx
push 0
push esi
call eax
add esp, 0x14
test eax, eax
jne 0x4525d0
mov eax, dword [esi + 0x1a4]
test eax, eax
je 0x452593
mov ecx, dword [esi + 0x134]
mov edx, dword [esp + 0xc4]
push ecx
push edx
push ebp
push ebx
push esi
call eax
add esp, 0x14
jmp 0x4525d0
mov eax, dword [esi + 0x130]
push eax
push 1
push 2
push 0x4ec278
call fcn.00437107
mov ecx, dword [esi + 0x130]
push ecx
push 1
lea edx, [esp + 0x28]
push edi
push edx
call fcn.00437107
add esp, 0x20
jmp case.default.0x4524d0
test ebx, ebx
jl 0x4525ce
cmp ebx, 2
jg 0x4525ce
mov eax, dword [esi + 0x130]
push eax
push 1
lea ecx, [ebx + ebx*2 + 0x4ec278]
push 2
push ecx
call fcn.00437107
mov edx, dword [esi + 0x130]
mov eax, dword [esp + 0xd4]
push edx
push 1
push eax
push ebp
call fcn.00437107
add esp, 0x20
xor eax, eax
mov ecx, dword [esp + 0xb0]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00431c7a
add esp, 0xa4
ret
Function at 0x4524d7
Capabilities:
Write file on windows

Disassembly:
sub esp, 0xa4
mov eax, dword [0x526a28]
xor eax, esp
mov dword [esp + 0xa0], eax
mov eax, dword [esp + 0xb8]
push ebx
mov ebx, dword [esp + 0xb0]
push ebp
mov ebp, dword [esp + 0xb8]
push esi
mov esi, dword [esp + 0xb4]
cmp dword [esi + 0x2c8], 0
push edi
je case.default.0x4524d0
test eax, eax
je case.default.0x4524d0
mov eax, dword [eax + 0x80]
test eax, eax
je case.default.0x4524d0
lea edx, [ebx - 1]
mov ecx, str.Data
cmp edx, 3
ja case.default.0x4524d0
jmp dword [edx*4 + 0x4525ec]
mov ecx, str.Header
mov edx, str.from
jmp 0x4524ed
mov ecx, str.Header
mov edx, 0x4ec29c
push eax
push edx
push ecx
push str.__s__s__s_
lea eax, [esp + 0x20]
push 0xa0
push eax
call fcn.00457a90
lea eax, [esp + 0x28]
add esp, 0x18
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x452510
sub eax, edx
mov edi, eax
mov eax, dword [esi + 0x1a4]
test eax, eax
je 0x452565
mov ecx, dword [esi + 0x134]
push ecx
push edi
lea edx, [esp + 0x18]
push edx
push 0
push esi
call eax
add esp, 0x14
test eax, eax
jne 0x4525d0
mov eax, dword [esi + 0x1a4]
test eax, eax
je 0x452593
mov ecx, dword [esi + 0x134]
mov edx, dword [esp + 0xc4]
push ecx
push edx
push ebp
push ebx
push esi
call eax
add esp, 0x14
jmp 0x4525d0
mov eax, dword [esi + 0x130]
push eax
push 1
push 2
push 0x4ec278
call fcn.00437107
mov ecx, dword [esi + 0x130]
push ecx
push 1
lea edx, [esp + 0x28]
push edi
push edx
call fcn.00437107
add esp, 0x20
jmp case.default.0x4524d0
test ebx, ebx
jl 0x4525ce
cmp ebx, 2
jg 0x4525ce
mov eax, dword [esi + 0x130]
push eax
push 1
lea ecx, [ebx + ebx*2 + 0x4ec278]
push 2
push ecx
call fcn.00437107
mov edx, dword [esi + 0x130]
mov eax, dword [esp + 0xd4]
push edx
push 1
push eax
push ebp
call fcn.00437107
add esp, 0x20
xor eax, eax
mov ecx, dword [esp + 0xb0]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00431c7a
add esp, 0xa4
ret
Function at 0x4524e3
Capabilities:
Write file on windows

Disassembly:
sub esp, 0xa4
mov eax, dword [0x526a28]
xor eax, esp
mov dword [esp + 0xa0], eax
mov eax, dword [esp + 0xb8]
push ebx
mov ebx, dword [esp + 0xb0]
push ebp
mov ebp, dword [esp + 0xb8]
push esi
mov esi, dword [esp + 0xb4]
cmp dword [esi + 0x2c8], 0
push edi
je case.default.0x4524d0
test eax, eax
je case.default.0x4524d0
mov eax, dword [eax + 0x80]
test eax, eax
je case.default.0x4524d0
lea edx, [ebx - 1]
mov ecx, str.Data
cmp edx, 3
ja case.default.0x4524d0
jmp dword [edx*4 + 0x4525ec]
mov ecx, str.Header
mov edx, str.from
jmp 0x4524ed
mov ecx, str.Header
mov edx, 0x4ec29c
push eax
push edx
push ecx
push str.__s__s__s_
lea eax, [esp + 0x20]
push 0xa0
push eax
call fcn.00457a90
lea eax, [esp + 0x28]
add esp, 0x18
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x452510
sub eax, edx
mov edi, eax
mov eax, dword [esi + 0x1a4]
test eax, eax
je 0x452565
mov ecx, dword [esi + 0x134]
push ecx
push edi
lea edx, [esp + 0x18]
push edx
push 0
push esi
call eax
add esp, 0x14
test eax, eax
jne 0x4525d0
mov eax, dword [esi + 0x1a4]
test eax, eax
je 0x452593
mov ecx, dword [esi + 0x134]
mov edx, dword [esp + 0xc4]
push ecx
push edx
push ebp
push ebx
push esi
call eax
add esp, 0x14
jmp 0x4525d0
mov eax, dword [esi + 0x130]
push eax
push 1
push 2
push 0x4ec278
call fcn.00437107
mov ecx, dword [esi + 0x130]
push ecx
push 1
lea edx, [esp + 0x28]
push edi
push edx
call fcn.00437107
add esp, 0x20
jmp case.default.0x4524d0
test ebx, ebx
jl 0x4525ce
cmp ebx, 2
jg 0x4525ce
mov eax, dword [esi + 0x130]
push eax
push 1
lea ecx, [ebx + ebx*2 + 0x4ec278]
push 2
push ecx
call fcn.00437107
mov edx, dword [esi + 0x130]
mov eax, dword [esp + 0xd4]
push edx
push 1
push eax
push ebp
call fcn.00437107
add esp, 0x20
xor eax, eax
mov ecx, dword [esp + 0xb0]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00431c7a
add esp, 0xa4
ret

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

Disassembly:
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 8]
push ebx
push esi
push edi
mov edi, dword [esp + 0x10]
mov eax, dword [edi + eax*4 + 0xc8]
push 0
push ecx
push edx
push eax
call dword [sym.imp.WS2_32.dll_send]
mov ebx, dword [esp + 0x20]
mov esi, eax
mov dword [ebx], 0
cmp esi, 0xffffffff
jne 0x45287f
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x45285f
pop edi
pop esi
mov dword [ebx], 0x51
xor eax, eax
pop ebx
ret
push eax
push edi
call fcn.0046b8d0
push eax
mov eax, dword [edi]
push str.Send_failure:__s
push eax
call fcn.00452690
add esp, 0x14
mov dword [ebx], 0x37
mov eax, esi
pop edi
pop esi
pop ebx
ret
Function at 0x452f20
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
sub esp, 0x108
mov eax, dword [0x526a28]
xor eax, esp
mov dword [esp + 0x104], eax
push ebx
push ebp
mov ebp, dword [esp + 0x114]
cmp dword [ebp + 0x154], 0
mov ebx, dword [ebp]
jne 0x453031
push esi
mov esi, dword [esp + 0x11c]
push edi
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x18]
push ecx
mov edi, 0x80
push esi
mov dword [esp + 0x1c], edi
call dword [sym.imp.WS2_32.dll_getpeername]
test eax, eax
je 0x452f8f
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
push ebp
call fcn.0046b8d0
push eax
push esi
push str.getpeername___failed_with_errno__d:__s
jmp 0x453026
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x98]
push eax
push esi
mov dword [esp + 0x1c], edi
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x452fc3
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
push ebp
call fcn.0046b8d0
push eax
push esi
push str.getsockname___failed_with_errno__d:__s
jmp 0x453026
lea edi, [ebx + 0x8704]
lea ecx, [ebx + 0x86d4]
lea esi, [esp + 0x14]
call fcn.00452ed0
test eax, eax
jne 0x452ff4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push ebp
call fcn.0046b8d0
push eax
push esi
push str.ssrem_inet_ntop___failed_with_errno__d:__s
jmp 0x453026
lea edi, [ebx + 0x8738]
lea ecx, [ebx + 0x8708]
lea esi, [esp + 0x94]
call fcn.00452ed0
test eax, eax
jne 0x45302f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push ebp
call fcn.0046b8d0
push eax
push esi
push str.ssloc_inet_ntop___failed_with_errno__d:__s
push ebx
call fcn.00452690
add esp, 0x18
pop edi
pop esi
mov ecx, dword [esp + 0x10c]
pop ebp
pop ebx
xor ecx, esp
call fcn.00431c7a
add esp, 0x108
ret

Function at 0x453050
Capabilities:
Set socket configuration

Disassembly:
push ecx
push esi
mov esi, dword [edi]
mov eax, dword [esi + 0x340]
push 4
lea ecx, [esp + 8]
push ecx
push 1
push 6
push edx
mov dword [esp + 0x18], eax
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jge 0x453093
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
call fcn.0046b8d0
push eax
push str.Could_not_set_TCP_NODELAY:__s_n
push esi
call fcn.00452600
add esp, 0x14
pop esi
pop ecx
ret
push str.TCP_NODELAY_set_n
push esi
call fcn.00452600
add esp, 8
pop esi
pop ecx
ret

Function at 0x4530b0
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0xc
push esi
mov esi, dword [esp + 0x14]
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 8]
push ecx
push 0x1001
push 0xffff
push esi
mov dword [esp + 0x1c], 0x4020
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], 4
call dword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x4530f9
mov edx, dword [esp + 4]
cmp edx, dword [esp + 8]
jg 0x453111
push 4
lea eax, [esp + 0xc]
push eax
push 0x1001
push 0xffff
push esi
call dword [sym.imp.WS2_32.dll_setsockopt]
pop esi
add esp, 0xc
ret
Function at 0x453600
Capabilities:
Parse pe header

Disassembly:
mov al, byte [esp + 4]
movsx ecx, al
add ecx, 0xffffff9f
cmp ecx, 0x19
ja case.default.0x45360f
jmp dword [ecx*4 + 0x453664]
mov al, 0x41
ret
mov al, 0x42
ret
mov al, 0x43
ret
mov al, 0x44
ret
mov al, 0x45
ret
mov al, 0x46
ret
mov al, 0x47
ret
mov al, 0x48
ret
mov al, 0x49
ret
mov al, 0x4a
ret
mov al, 0x4b
ret
mov al, 0x4c
ret
mov al, 0x4d
ret
mov al, 0x4e
ret
mov al, 0x4f
ret
mov al, 0x50
ret
mov al, 0x51
ret
mov al, 0x52
ret
mov al, 0x53
ret
mov al, 0x54
ret
mov al, 0x55
ret
mov al, 0x56
ret
mov al, 0x57
ret
mov al, 0x58
ret
mov al, 0x59
ret
mov al, 0x5a
ret

Function at 0x4586f0
Capabilities:
Resolve dns

Disassembly:
sub esp, 0xc
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
push ebx
push ebp
lea ecx, [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x1c]
xor ebx, ebx
mov dword [eax], ebx
mov eax, dword [esp + 0x20]
push edx
push eax
push ecx
mov dword [esp + 0x1c], ebx
xor ebp, ebp
call dword [sym.imp.WS2_32.dll_getaddrinfo]
mov dword [esp + 8], eax
cmp eax, ebx
jne 0x458844
push edi
mov edi, dword [esp + 0x14]
cmp edi, ebx
je 0x458839
push esi
push 0x20
call dword [0x527c1c]
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x4587d7
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]
mov dword [esi + 0xc], edx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x1c], ebx
mov eax, dword [edi + 0x10]
cmp eax, ebx
jbe 0x45879f
cmp dword [edi + 0x18], ebx
je 0x45879f
push eax
mov dword [esi + 0x10], eax
call dword [0x527c1c]
add esp, 4
mov dword [esi + 0x18], eax
cmp eax, ebx
je 0x4587e1
mov ecx, dword [esi + 0x10]
mov edx, dword [edi + 0x18]
push ecx
push edx
push eax
call fcn.0043ab90
add esp, 0xc
mov eax, dword [edi + 0x14]
cmp eax, ebx
je 0x4587b7
push eax
call dword [0x527c28]
add esp, 4
mov dword [esi + 0x14], eax
cmp eax, ebx
je 0x4587eb
cmp dword [esp + 0x14], ebx
jne 0x4587c1
mov dword [esp + 0x14], esi
cmp ebp, ebx
je 0x4587c8
mov dword [ebp + 0x1c], esi
mov edi, dword [edi + 0x1c]
mov ebp, esi
cmp edi, ebx
jne 0x458737
jmp 0x45880e
mov dword [esp + 0x10], 8
jmp 0x45880e
mov dword [esp + 0x10], 8
jmp 0x458804
mov eax, dword [esi + 0x18]
mov dword [esp + 0x10], 8
cmp eax, ebx
je 0x458804
push eax
call dword [0x527c20]
add esp, 4
push esi
call dword [0x527c20]
add esp, 4
mov eax, dword [esp + 0x18]
pop esi
cmp eax, ebx
je 0x45881e
push eax
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
cmp dword [esp + 0xc], ebx
je 0x458835
mov eax, dword [esp + 0x10]
push eax
call fcn.004586a0
add esp, 4
mov dword [esp + 0x10], ebx
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x28]
mov dword [edx], ecx
pop edi
pop ebp
pop ebx
add esp, 0xc
ret
Function at 0x458a30
Capabilities:
Create udp socket

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
push 0x48
push 1
mov esi, eax
mov ebx, ecx
call dword [0x527c2c]
mov edi, eax
xor eax, eax
add esp, 8
mov dword [esp + 0x10], 0xc
mov dword [ebx + 0x354], edi
cmp edi, eax
je 0x458aef
mov dword [ebx + 0x344], esi
mov dword [ebx + 0x34c], eax
mov dword [ebx + 0x350], eax
mov dword [ebx + 0x348], eax
mov dword [edi], eax
mov eax, dword [esp + 0x18]
push esi
lea ebp, [edi + 0x10]
push eax
mov esi, ebp
mov dword [edi + 4], 0xffffffff
call fcn.004588a0
add esp, 8
test eax, eax
je 0x458aef
mov ecx, dword [ebx + 0x340]
push ecx
call fcn.00451770
mov edx, dword [esp + 0x1c]
push edx
call dword [0x527c28]
add esp, 8
mov dword [ebx + 0x340], eax
test eax, eax
je 0x458aef
push 0
push 2
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [edi + 4], eax
cmp eax, 0xffffffff
je 0x458aef
push ebp
push 0x458940
call fcn.0046c200
add esp, 8
mov dword [edi], eax
test eax, eax
jne 0x458b11
call fcn.00434449
mov eax, dword [eax]
mov dword [esp + 0x10], eax
add ebx, 0x340
push ebx
call fcn.004589d0
mov ecx, dword [esp + 0x14]
add esp, 4
push ecx
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
pop ecx
ret
Function at 0x45cd50
Capabilities:
Send data
Send data on socket

Disassembly:
mov eax, dword [esi + 0x10]
mov ecx, dword [eax]
push str.Connected_for_receive
push 0x4ec270
push ecx
call fcn.00452600
add esp, 0xc
mov eax, esi
mov dword [esi], 1
call fcn.0045bf30
test eax, eax
jne 0x45cd80
mov eax, esi
jmp fcn.0045c360
ret
Function at 0x45d1a0
Capabilities:
Receive data
Receive data on socket

Disassembly:
sub esp, 0x88
mov eax, dword [0x526a28]
xor eax, esp
mov dword [esp + 0x84], eax
push ebx
push ebp
mov ebp, dword [esp + 0x94]
push esi
mov esi, dword [ebp + 0x368]
push edi
mov edi, dword [ebp]
lea eax, [esp + 0x10]
push eax
mov dword [esp + 0x14], 0x80
mov edx, dword [esi + 0x154]
mov eax, dword [esi + 0x15c]
lea ecx, [esp + 0x18]
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 0x45d229
mov edx, dword [esp + 0x10]
push edx
lea eax, [esp + 0x18]
push eax
lea ecx, [esi + 0xc8]
push ecx
call fcn.0043ab90
mov edx, dword [esp + 0x1c]
add esp, 0xc
mov dword [esi + 0x148], edx
mov ecx, dword [esi + 0x14c]
cmp ecx, 4
jge 0x45d264
push str.Received_too_short_packet
push edi
call fcn.00452690
add esp, 8
mov dword [esi + 0xc], 7
xor eax, eax
mov ecx, dword [esp + 0x94]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00431c7a
add esp, 0x88
ret
mov edx, dword [esi + 0x15c]
movzx ax, byte [edx]
movzx edx, byte [edx + 1]
shl ax, 8
movzx eax, ax
or eax, edx
mov dword [esi + 0xc], eax
add eax, 0xfffffffd
cmp eax, 3
ja case.default.0x45d28a
jmp dword [eax*4 + 0x45d3a4]
cmp ecx, 4
jle case.0x45d28a.4
mov eax, dword [esi + 0x15c]
movzx dx, byte [eax + 2]
movzx eax, byte [eax + 3]
shl dx, 8
movzx edx, dx
or edx, eax
movzx eax, word [esi + 0x40]
inc eax
and eax, 0xffff
cmp eax, edx
jne case.0x45d28a.4
add ecx, 0xfffffffc
push ecx
mov ecx, dword [esi + 0x15c]
add ecx, 4
push ecx
push 1
push ebp
call fcn.004528d0
mov ebx, eax
add esp, 0x10
test ebx, ebx
je 0x45d2f6
mov ecx, 5
mov eax, esi
call fcn.0045d120
mov eax, ebx
jmp 0x45d24b
mov eax, dword [esi + 0x14c]
sub eax, 4
cdq
add dword [edi + 0x38], eax
mov eax, dword [edi + 0x38]
adc dword [edi + 0x3c], edx
mov edx, dword [edi + 0x3c]
push edx
push eax
push edi
call fcn.00456ab0
jmp 0x45d378
mov eax, dword [esi + 0x15c]
movzx cx, byte [eax + 2]
movzx eax, byte [eax + 3]
shl cx, 8
movzx edx, cx
mov ecx, dword [esi + 0x15c]
add ecx, 4
push ecx
or edx, eax
push 0x4ec270
push edi
mov dword [esi + 8], edx
call fcn.00452600
jmp 0x45d378
mov edx, dword [esi + 0x15c]
add ecx, 0xfffffffe
push ecx
add edx, 2
push edx
push esi
call fcn.0045c110
add esp, 0xc
test eax, eax
je case.0x45d28a.4
jmp 0x45d24b
push str.Internal_error:_Unexpected_packet
push 0x4ec234
push edi
call fcn.00452690
add esp, 0xc
push ebp
call fcn.00456b70
add esp, 4
test eax, eax
je 0x45d249
mov ecx, 5
mov eax, esi
call fcn.0045d120
mov eax, 0x2a
jmp 0x45d24b
Function at 0x45ee70
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x194
mov eax, dword [0x526a28]
xor eax, esp
mov dword [esp + 0x190], eax
lea eax, [esp]
push eax
push 2
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x45eea5
push eax
push str.WSAStartup_failed___d_
push esi
call fcn.00452690
add esp, 0xc
jmp 0x45eede
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, dword [esp]
cmp al, 2
jne 0x45eed0
shr eax, 8
test al, al
jne 0x45eed0
xor eax, eax
mov ecx, dword [esp + 0x190]
xor ecx, esp
call fcn.00431c7a
add esp, 0x194
ret
push str.insufficient_winsock_version_to_support_telnet
push esi
call fcn.00452690
add esp, 8
mov ecx, dword [esp + 0x190]
xor ecx, esp
mov eax, 2
call fcn.00431c7a
add esp, 0x194
ret

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

Disassembly:
push ecx
mov edx, dword [edi + 0xc8]
mov al, byte [esp + 8]
push esi
mov esi, dword [edi]
push 0
push 3
lea ecx, [esp + 0xc]
push ecx
push edx
mov byte [esp + 0x14], 0xff
mov byte [esp + 0x15], al
mov byte [esp + 0x16], bl
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jge 0x45f0a4
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Sending_data_failed___d_
push esi
call fcn.00452690
add esp, 0xc
mov esi, dword [esp + 0xc]
mov ecx, dword [edi]
push str.SENT
mov eax, ebx
call fcn.0045ef60
add esp, 4
pop esi
pop ecx
ret
Function at 0x460700
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
sub esp, 0x18
mov eax, dword [0x526a28]
xor eax, esp
mov dword [esp + 0x14], eax
push ebx
push ebp
mov ebp, dword [esi]
push edi
mov edi, dword [esi + 0xcc]
push 1
push 0
push esi
or ebx, 0xffffffff
mov dword [esp + 0x18], 0x10
call fcn.00452a30
add esp, 0xc
test eax, eax
jle 0x460769
mov ecx, 0x3e8
cmp eax, ecx
jge 0x460740
mov ecx, eax
push ecx
push 0xffffffffffffffff
push edi
call fcn.00467ca0
add esp, 0xc
cmp eax, 0xffffffff
je 0x460801
test eax, eax
jne 0x46078e
push 1
push eax
push esi
call fcn.00452a30
add esp, 0xc
test eax, eax
jg 0x460735
push str.Timeout_while_waiting_for_server_connect
push ebp
call fcn.00452690
add esp, 8
pop edi
pop ebp
mov eax, 0x1c
pop ebx
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.00431c7a
add esp, 0x18
ret
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x14]
push ecx
push edi
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x4607be
lea edx, [esp + 0xc]
push edx
lea eax, [esp + 0x14]
push eax
push edi
mov dword [esp + 0x18], 0x10
call dword [sym.imp.WS2_32.dll_accept]
mov ebx, eax
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
cmp ebx, 0xffffffff
jne 0x4607d1
push str.Error_accept__ing_server_connect
jmp 0x460806
push str.Connection_accepted_from_server_n
push ebp
call fcn.00452600
push 1
push ebx
mov dword [esi + 0xcc], ebx
call fcn.0046c140
add esp, 0x10
pop edi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.00431c7a
add esp, 0x18
ret
push str.Error_while_waiting_for_server_connect
push ebp
call fcn.00452690
mov ecx, dword [esp + 0x28]
add esp, 8
pop edi
pop ebp
pop ebx
xor ecx, esp
mov eax, 0x1e
call fcn.00431c7a
add esp, 0x18
ret
Function at 0x461750
Capabilities:
Check http status code

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0xc]
push esi
mov esi, eax
mov ebx, dword [esi]
mov eax, 0x51eb851f
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
push edi
add eax, edx
xor edi, edi
cmp eax, 2
je 0x46178a
push str.Couldnt_set_desired_mode
push ebx
call fcn.00452690
add esp, 8
lea eax, [edi + 0x11]
pop edi
pop esi
pop ebp
pop ebx
ret
cmp ecx, 0xc8
je 0x4617a1
push ecx
push str.Got_a__03d_response_code_instead_of_the_assumed_200_n
push ebx
call fcn.00452600
add esp, 0xc
cmp ebp, 0x13
jne 0x4617b2
call fcn.00461300
mov edi, eax
pop edi
pop esi
pop ebp
pop ebx
ret
cmp ebp, 0x14
jne 0x4617c5
mov ebx, esi
call fcn.00461370
mov edi, eax
pop edi
pop esi
pop ebp
pop ebx
ret
cmp ebp, 0x15
jne 0x4617de
push 0xd
push 1
push esi
call fcn.004639c0
add esp, 0xc
mov edi, eax
pop edi
pop esi
pop ebp
pop ebx
ret
cmp ebp, 0x16
jne 0x4617f2
push 0xe
push 1
push esi
call fcn.004639c0
add esp, 0xc
mov edi, eax
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x467ca0
Capabilities:
Check for time delay via gettickcount
Get socket status

Disassembly:
sub esp, 0x320
push ebp
mov ebp, dword [esp + 0x328]
push esi
xor esi, esi
push edi
mov edi, dword [esp + 0x334]
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], esi
cmp ebp, 0xffffffff
jne 0x467d02
cmp edi, ebp
jne 0x467d02
mov eax, dword [esp + 0x338]
cmp eax, esi
je 0x467cf6
jge 0x467cef
push 0x2726
call dword [sym.imp.WS2_32.dll_WSASetLastError]
pop edi
pop esi
or eax, 0xffffffff
pop ebp
add esp, 0x320
ret
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x320
ret
push ebx
mov ebx, dword [esp + 0x33c]
cmp ebx, esi
jle 0x467d1d
mov esi, ebx
call fcn.00468f10
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], edx
xor ecx, ecx
xor eax, eax
or edx, 0xffffffff
mov dword [esp + 0x24], ecx
mov dword [esp + 0x128], eax
cmp ebp, 0xffffffff
je 0x467d51
mov ecx, 1
mov dword [esp + 0x12c], ebp
mov dword [esp + 0x128], ecx
mov dword [esp + 0x28], ebp
mov dword [esp + 0x24], ecx
mov edx, ebp
mov dword [esp + 0x22c], eax
cmp edi, 0xffffffff
je 0x467d97
mov dword [esp + 0x230], edi
mov dword [esp + 0x22c], 1
test ecx, ecx
jbe 0x467d7e
cmp dword [esp + eax*4 + 0x28], edi
je 0x467d7e
inc eax
cmp eax, ecx
jb 0x467d73
cmp eax, ecx
jne 0x467d8f
cmp ecx, 0x40
jae 0x467d8f
mov dword [esp + eax*4 + 0x28], edi
inc dword [esp + 0x24]
xor eax, eax
cmp edi, edx
jbe 0x467d97
mov edx, edi
xor ecx, ecx
cmp ebx, eax
setl cl
lea edi, [esp + 0x18]
dec ecx
and ecx, edi
inc edx
mov ebp, ecx
mov dword [esp + 0x20], edx
jmp 0x467db2
xor eax, eax
cmp ebx, eax
jle 0x467de1
mov eax, 0x10624dd3
imul esi
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esp + 0x18], eax
imul eax, eax, 0x3e8
mov edx, esi
sub edx, eax
imul edx, edx, 0x3e8
mov dword [esp + 0x1c], edx
jmp 0x467deb
jne 0x467deb
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
push ebp
lea eax, [esp + 0x28]
push eax
mov eax, dword [esp + 0x28]
lea ecx, [esp + 0x234]
push ecx
lea edx, [esp + 0x134]
push edx
push eax
call dword [sym.imp.WS2_32.dll_select]
mov edi, eax
cmp edi, 0xffffffff
jne 0x467e4d
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
je 0x467e24
cmp eax, 0x2714
jne 0x467e4d
test ebx, ebx
jle 0x467db0
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
push ecx
push edx
call fcn.00468f10
push edx
push eax
call fcn.00468f40
mov esi, ebx
sub esi, eax
add esp, 0x10
test esi, esi
jg 0x467db0
pop ebx
test edi, edi
jl 0x467ce2
je 0x467cf6
mov edi, dword [esp + 0x330]
xor esi, esi
cmp edi, 0xffffffff
je 0x467e93
lea eax, [esp + 0x124]
push eax
push edi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x467e81
mov esi, 1
lea ecx, [esp + 0x20]
push ecx
push edi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x467e93
or esi, 4
mov edi, dword [esp + 0x334]
cmp edi, 0xffffffff
je 0x467ec6
lea edx, [esp + 0x228]
push edx
push edi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x467eb4
or esi, 2
lea eax, [esp + 0x20]
push eax
push edi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x467ec6
or esi, 4
pop edi
mov eax, esi
pop esi
pop ebp
add esp, 0x320
ret