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

Disassembly:
push ecx
cmp dword [esp + 0xc], 0x1f
push ebx
mov ebx, dword [esp + 0xc]
push ebp
mov eax, dword [ebx + 0x18]
mov ebp, dword [ebx + 0x124]
mov dword [esp + 8], eax
jne 0x44f48e
push esi
push edi
lea eax, [ebp + 0x1cc4]
lea edi, [ebp + 0x1ec4]
mov dword [edi], eax
cmp eax, edi
jae 0x44f378
mov byte [eax], 0xff
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x44f383
mov byte [eax], 0xfa
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x44f38e
mov byte [eax], 0x1f
inc dword [edi]
movzx eax, word [ebp + 0x1ca8]
mov esi, dword [sym.imp.WS2_32.dll_htons]
push eax
call esi
movzx eax, ax
mov dword [esp + 0x18], eax
movzx eax, word [ebp + 0x1caa]
push eax
call esi
mov ecx, dword [esp + 0x18]
movzx edx, ax
mov eax, dword [edi]
cmp eax, edi
jae 0x44f3c0
mov byte [eax], cl
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x44f3ca
mov byte [eax], ch
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x44f3d4
mov byte [eax], dl
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x44f3de
mov byte [eax], dh
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x44f3e9
mov byte [eax], 0xff
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x44f3f4
mov byte [eax], 0xf0
inc dword [edi]
mov eax, dword [edi]
lea esi, [ebp + 0x1cc4]
mov dword [ebp + 0x1ec8], eax
sub eax, esi
sub eax, 2
mov dword [edi], esi
push eax
lea eax, [ebp + 0x1cc6]
push eax
push 0x3e
push ebx
call fcn.0044eba0
mov eax, dword [esp + 0x20]
add esp, 0x10
mov edi, dword [sym.imp.WS2_32.dll_send]
push 0
push 3
push esi
push dword [eax + 0x1a0]
call edi
mov esi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
jns 0x44f44e
call esi
push eax
push 0x55a090
push ebx
call fcn.00433540
add esp, 0xc
push 4
lea eax, [ebp + 0x1cc7]
push eax
push ebx
call fcn.0044f200
add esp, 0xc
lea eax, [ebp + 0x1ccb]
push 0
push 2
push eax
mov eax, dword [esp + 0x1c]
push dword [eax + 0x1a0]
call edi
test eax, eax
jns 0x44f48c
call esi
push eax
push 0x55a090
push ebx
call fcn.00433540
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x44f4a0
Capabilities:
Send data
Send data on socket

Disassembly:
sub esp, 0x80c
mov eax, dword [0x13413f8]
xor eax, esp
mov dword [esp + 0x808], eax
push ebx
push ebp
mov ebp, dword [esp + 0x818]
push esi
push edi
mov edi, dword [ebp + 0x124]
mov ebx, dword [ebp + 0x18]
mov dword [esp + 0x14], ebx
mov eax, dword [edi + 0x1ec8]
sub eax, dword [edi + 0x1ec4]
add eax, 2
push eax
lea eax, [edi + 0x1cc4]
push eax
push 0x3c
push ebp
call fcn.0044eba0
mov eax, dword [edi + 0x1ec4]
add esp, 0x10
movzx ecx, byte [eax]
inc eax
mov dword [edi + 0x1ec4], eax
cmp ecx, 0x18
je 0x44f638
cmp ecx, 0x23
je 0x44f613
cmp ecx, 0x27
jne 0x44f6c0
push 0
push ecx
push 0xfa
push 0xff
push 0x55a1e0
lea eax, [esp + 0x2c]
push 0x800
push eax
call fcn.00438840
mov edi, dword [edi + 0x1cb0]
add esp, 0x1c
mov esi, 4
mov ebx, 0x800
test edi, edi
je 0x44f5d8
mov edx, dword [edi]
mov ecx, edx
lea eax, [ecx + 1]
mov dword [esp + 0x10], eax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x44f560
sub ecx, dword [esp + 0x10]
lea eax, [esi + 1]
add eax, ecx
cmp eax, 0x7fa
jae 0x44f5cd
push 0x2c
push edx
call fcn.004f33e0
add esp, 8
test eax, eax
jne 0x44f5a4
push dword [edi]
push eax
mov eax, ebx
sub eax, esi
push 0x55a1ec
push eax
lea eax, [esp + 0x28]
add eax, esi
push eax
call fcn.00438840
add esp, 0x14
jmp 0x44f5cb
mov ecx, dword [edi]
mov edx, eax
inc eax
sub edx, ecx
push eax
push 1
push ecx
push edx
push 0
mov eax, ebx
sub eax, esi
push 0x55a1f4
push eax
lea eax, [esp + 0x34]
add eax, esi
push eax
call fcn.00438840
add esp, 0x20
add esi, eax
mov edi, dword [edi + 4]
test edi, edi
jne 0x44f555
push 0xf0
push 0xff
push 0x55a200
sub ebx, esi
lea eax, [esp + 0x24]
add eax, esi
push ebx
push eax
call fcn.00438840
add esp, 0x14
lea eax, [esp + 0x18]
add esi, 2
push 0
push esi
push eax
mov eax, dword [esp + 0x20]
push dword [eax + 0x1a0]
jmp 0x44f68d
add edi, 0x1c28
mov ecx, edi
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x44f620
push 0xf0
push 0xff
push edi
push 0
push 0x23
jmp 0x44f659
add edi, 0x1c08
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x44f643
push 0xf0
push 0xff
push edi
push 0
push 0x18
push 0xfa
push 0xff
push 0x55a1d0
sub ecx, edx
lea eax, [esp + 0x38]
push 0x800
push eax
lea esi, [ecx + 6]
call fcn.00438840
add esp, 0x28
lea eax, [esp + 0x18]
push 0
push esi
push eax
push dword [ebx + 0x1a0]
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x44f6ac
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 0x55a090
push ebp
call fcn.00433540
add esp, 0xc
lea eax, [esi - 2]
push eax
lea eax, [esp + 0x1e]
push eax
push 0x3e
push ebp
call fcn.0044eba0
add esp, 0x10
mov ecx, dword [esp + 0x818]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00472272
add esp, 0x80c
ret
Function at 0x4503b0
Capabilities:
Receive data
Receive data on socket

Disassembly:
sub esp, 0x8c
mov eax, dword [0x13413f8]
xor eax, esp
mov dword [esp + 0x88], eax
push ebx
push ebp
mov ebp, dword [esp + 0x98]
xor ebx, ebx
push esi
push edi
mov eax, dword [ebp + 0x18]
mov edi, dword [eax + 0x3f0]
lea eax, [esp + 0x10]
push eax
mov dword [esp + 0x14], 0x80
lea eax, [esp + 0x1c]
push eax
mov eax, dword [edi + 0x13c]
push ebx
add eax, 4
push eax
push dword [edi + 0x148]
push dword [edi + 0x14]
call dword [sym.imp.WS2_32.dll_recvfrom]
mov dword [edi + 0x134], eax
cmp dword [edi + 0x130], ebx
jne 0x450436
push dword [esp + 0x10]
lea eax, [esp + 0x1c]
push eax
lea eax, [edi + 0xb0]
push eax
call fcn.004f3650
mov eax, dword [esp + 0x1c]
add esp, 0xc
mov dword [edi + 0x130], eax
mov esi, dword [edi + 0x134]
cmp esi, 4
jge 0x450471
push 0x55a6e4
push ebp
call fcn.00433540
add esp, 8
mov dword [edi + 0xc], 7
mov eax, ebx
mov ecx, dword [esp + 0x98]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00472272
add esp, 0x8c
ret
mov ecx, dword [edi + 0x148]
movzx eax, byte [ecx]
shl ax, 8
movzx edx, ax
movzx eax, byte [ecx + 1]
or edx, eax
mov dword [edi + 0xc], edx
add edx, 0xfffffffd
cmp edx, 3
ja case.default.0x450496
jmp dword [edx*4 + 0x450590]
cmp esi, 4
jle case.0x450496.4
movzx eax, byte [ecx + 2]
shl ax, 8
movzx edx, ax
movzx eax, byte [ecx + 3]
or edx, eax
movzx eax, word [edi + 0x144]
inc eax
movzx eax, ax
cmp eax, edx
jne case.0x450496.4
lea eax, [esi - 4]
push eax
lea eax, [ecx + 4]
push eax
push 1
push ebp
call fcn.004346b0
mov ebx, eax
add esp, 0x10
test ebx, ebx
je case.0x450496.4
push 5
push edi
call fcn.00450db0
add esp, 8
jmp 0x450456
mov edx, ecx
lea eax, [ecx + 4]
mov dword [esp + 0x14], eax
add esi, 0xfffffffc
push esi
push dword [esp + 0x18]
movzx eax, byte [edx + 2]
shl ax, 8
movzx ecx, ax
movzx eax, byte [edx + 3]
or ecx, eax
mov dword [edi + 8], ecx
call fcn.00450ee0
add esp, 8
cmp eax, esi
jae case.0x450496.4
push dword [esp + 0x14]
push 0x55a700
push ebp
call fcn.00433610
jmp 0x450565
lea eax, [esi - 2]
push eax
lea eax, [ecx + 2]
push eax
push edi
call fcn.00450170
mov ebx, eax
add esp, 0xc
test ebx, ebx
je case.0x450496.4
jmp 0x450456
push 0x55a710
push 0x552df0
push ebp
call fcn.00433540
add esp, 0xc
push ebp
call fcn.004445f0
add esp, 4
test eax, eax
je 0x450456
push 5
push edi
call fcn.00450db0
add esp, 8
mov eax, 0x2a
jmp 0x450458
Function at 0x456ff0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
sub esp, 0x8c
mov eax, dword [0x13413f8]
xor eax, esp
mov dword [esp + 0x88], eax
push ebx
push esi
push edi
mov edi, dword [esp + 0x9c]
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x18]
push eax
mov ebx, dword [edi + 0x18]
mov esi, dword [ebx + 0x1a4]
push esi
mov dword [esp + 0x18], 0xffffffff
mov dword [esp + 0x1c], 0x80
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x45705b
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0x80
push eax
lea eax, [esp + 0x18]
push eax
push esi
call dword [sym.imp.WS2_32.dll_accept]
mov dword [esp + 0xc], eax
jmp 0x45705f
mov eax, dword [esp + 0xc]
cmp eax, 0xffffffff
jne 0x45708f
push 0x55b484
push edi
call fcn.00433540
add esp, 8
mov eax, 0x1e
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x88]
xor ecx, esp
call fcn.00472272
add esp, 0x8c
ret
push 0x55b4a8
push edi
call fcn.00433610
mov byte [ebx + 0x24d], 0
push 1
push dword [esp + 0x18]
call fcn.0046ffd0
lea eax, [esp + 0x1c]
push eax
push 1
push ebx
push edi
call fcn.00465670
mov esi, eax
add esp, 0x20
test esi, esi
je 0x4570e7
push dword [esp + 0xc]
call dword [sym.imp.WS2_32.dll_closesocket]
pop edi
mov eax, esi
pop esi
pop ebx
mov ecx, dword [esp + 0x88]
xor ecx, esp
call fcn.00472272
add esp, 0x8c
ret
cmp dword [edi + 0x19c], 0
je 0x457144
push 1
push edi
call fcn.00421ab0
mov eax, dword [edi + 0x19c]
push 1
push dword [esp + 0x18]
push dword [edi + 0x1a0]
call eax
push 0
push edi
mov esi, eax
call fcn.00421ab0
add esp, 0x1c
test esi, esi
je 0x457144
push ebx
push edi
call fcn.00457740
add esp, 8
mov eax, 0x2a
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x88]
xor ecx, esp
call fcn.00472272
add esp, 0x8c
ret
mov ecx, dword [esp + 0x94]
xor eax, eax
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00472272
add esp, 0x8c
ret
Function at 0x458990
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0xc4
mov eax, dword [0x13413f8]
xor eax, esp
mov dword [esp + 0xc0], eax
push ebx
push esi
mov esi, dword [esp + 0xd0]
push edi
xor edi, edi
mov eax, dword [esi + 0x124]
mov ebx, dword [esi + 0x18]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0xd8]
cmp eax, 0xd5
je 0x458a65
cmp eax, 0x226
je 0x458a5b
push 0x55bb30
push esi
call fcn.00433610
add esp, 8
mov al, byte [esi + 0x3b0]
push ebp
test al, al
je 0x458c01
mov ebx, dword [esi + 0xd2c]
mov ecx, dword [esi + 0xd28]
test ebx, ebx
jl 0x458bf3
jg 0x458a15
test ecx, ecx
je 0x458bf3
mov ebp, dword [esi + 0x3ac]
mov edx, dword [esi + 0x3a8]
test ebp, ebp
jl 0x458bf3
jg 0x458a33
test edx, edx
je 0x458bf3
movzx eax, al
sub eax, 2
je 0x458bbd
cmp ebx, ebp
jg 0x458c01
jl 0x458a51
cmp ecx, edx
ja 0x458c01
push 0x556330
jmp 0x458bcc
push 0x55bb50
jmp 0x4589df
lea eax, [ebx + 0x430]
push eax
call fcn.00420f70
lea ecx, [esp + 0x14]
add eax, 4
push ecx
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x24]
push ecx
lea ecx, [esp + 0x2c]
push ecx
lea ecx, [esp + 0x34]
push ecx
lea ecx, [esp + 0x3c]
push ecx
push eax
call fcn.00457840
add esp, 0x20
test al, al
je 0x458ae1
push dword [esp + 0x10]
lea eax, [esp + 0x2c]
push dword [esp + 0x18]
push dword [esp + 0x20]
push dword [esp + 0x28]
push dword [esp + 0x30]
push dword [esp + 0x38]
push 0x55badc
push 0x18
push eax
call fcn.00438840
lea eax, [esp + 0x4c]
push eax
call fcn.00445d90
add esp, 0x28
mov dword [esi + 0xd28], eax
mov dword [esi + 0xd2c], edx
cmp byte [esi + 0x13c], 0
je 0x4589e8
cmp dword [ebx + 0x45c], edi
je 0x4589e8
cmp byte [esi + 0x685], 0
je 0x4589e8
mov ecx, dword [esi + 0xd2c]
mov eax, dword [esi + 0xd28]
test ecx, ecx
jl 0x4589e8
jg 0x458b25
test eax, eax
jb 0x4589e8
lea edx, [esp + 0x28]
push edx
push ecx
push eax
call fcn.00445e00
add esp, 0xc
test eax, eax
jne 0x458c13
mov eax, dword [esp + 0x40]
lea ecx, [eax - 1]
test eax, eax
jne 0x458b4c
mov ecx, 6
push dword [esp + 0x28]
mov eax, dword [esp + 0x40]
push dword [esp + 0x30]
add eax, 0x76c
push dword [esp + 0x38]
push eax
mov eax, dword [esp + 0x48]
push dword [eax*4 + 0x5578fc]
lea eax, [esp + 0x60]
push dword [esp + 0x48]
push dword [ecx*4 + 0x5578e0]
push 0x55bafc
push 0x80
push eax
call fcn.00438840
push eax
lea eax, [esp + 0x78]
push eax
push esi
call fcn.00457700
mov edi, eax
add esp, 0x34
test edi, edi
je 0x4589e8
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xc0]
xor ecx, esp
call fcn.00472272
add esp, 0xc4
ret
cmp ebx, ebp
jl 0x458c01
jg 0x458bc7
cmp ecx, edx
jbe 0x458c01
push 0x55635c
push esi
call fcn.00433610
mov eax, dword [esp + 0x18]
push 0
push esi
mov dword [eax + 8], 2
mov byte [esi + 0xdd8], 1
call fcn.004576b0
add esp, 0x10
xor eax, eax
jmp 0x458c12
push 0x55bb94
push esi
call fcn.00433610
add esp, 8
test edi, edi
jne 0x458c10
push esi
call fcn.00459bf0
add esp, 4
mov edi, eax
mov eax, edi
pop ebp
mov ecx, dword [esp + 0xcc]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00472272
add esp, 0xc4
ret
Function at 0x459c60
Capabilities:
Check http status code

Disassembly:
mov ecx, dword [esp + 8]
mov eax, 0x51eb851f
imul ecx
push ebx
sar edx, 5
push esi
mov esi, dword [esp + 0xc]
mov eax, edx
shr eax, 0x1f
push edi
add eax, edx
xor edi, edi
mov ebx, dword [esi + 0x18]
cmp eax, 2
je 0x459c9b
push 0x55bbb0
push esi
call fcn.00433540
add esp, 8
lea eax, [edi + 0x11]
pop edi
pop esi
pop ebx
ret
cmp ecx, 0xc8
je 0x459cb2
push ecx
push 0x55bbcc
push esi
call fcn.00433610
add esp, 0xc
mov al, byte [esp + 0x18]
cmp al, 0x13
jne 0x459cca
push ebx
push esi
call fcn.004598c0
add esp, 8
mov edi, eax
pop edi
pop esi
pop ebx
ret
cmp al, 0x14
jne 0x459cdd
push esi
call fcn.004587e0
add esp, 4
mov edi, eax
pop edi
pop esi
pop ebx
ret
cmp al, 0x15
jne 0x459cf4
push 0xd
push 1
push esi
call fcn.00459390
add esp, 0xc
mov edi, eax
pop edi
pop esi
pop ebx
ret
cmp al, 0x16
jne 0x459d07
push 0xe
push 1
push esi
call fcn.00459390
add esp, 0xc
mov edi, eax
mov eax, edi
pop edi
pop esi
pop ebx
ret
Function at 0x45db40
Capabilities:
Convert ip address from string

Disassembly:
sub esp, 0x4c
mov eax, dword [0x13413f8]
xor eax, esp
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x50]
push ebx
mov ebx, dword [esp + 0x58]
push ebp
mov ebp, dword [esp + 0x60]
mov dword [esp + 8], eax
cmp ebp, 4
jae 0x45db7b
pop ebp
mov eax, 0x16
pop ebx
mov ecx, dword [esp + 0x48]
xor ecx, esp
call fcn.00472272
add esp, 0x4c
ret
push esi
push edi
inc ebx
sub ebp, 2
push 0x555cc4
push ebx
call fcn.00502380
add esp, 8
cmp ebp, eax
je 0x45dc47
mov ebp, eax
add eax, ebx
mov dword [esp + 0x14], eax
cmp byte [eax], 0x25
jne 0x45dc61
push 2
lea esi, [eax + 1]
xor edi, edi
push 0x55c4d4
push esi
call fcn.005015e0
add esp, 0xc
test eax, eax
jne 0x45dbd1
mov cl, byte [esi + 2]
lea eax, [esi + 2]
test cl, cl
je 0x45dbd1
cmp cl, 0x5d
cmovne esi, eax
mov al, byte [esi]
test al, al
je 0x45dc61
lea ecx, [esp + 0x18]
sub ecx, esi
cmp al, 0x5d
je 0x45dbf6
cmp edi, 0xf
jge 0x45dbf6
mov byte [ecx + esi], al
inc edi
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x45dbe1
test edi, edi
je 0x45dc61
cmp byte [esi], 0x5d
jne 0x45dc61
cmp edi, 0x10
jae 0x45dcdb
lea eax, [esp + 0x18]
mov byte [esp + edi + 0x18], 0
push eax
call dword [0x134100c]
mov ecx, dword [esp + 0x14]
add esp, 4
mov dword [ecx + 0x14], eax
test eax, eax
jne 0x45dc3e
pop edi
pop esi
pop ebp
mov eax, 7
pop ebx
mov ecx, dword [esp + 0x48]
xor ecx, esp
call fcn.00472272
add esp, 0x4c
ret
mov eax, dword [esp + 0x14]
mov word [eax], 0x5d
lea eax, [esp + 0x18]
mov byte [ebx + ebp], 0
push eax
push ebx
lea esi, [ebx + ebp]
push 0x17
call dword [sym.imp.WS2_32.dll_inet_pton]
cmp eax, 1
je 0x45dc79
pop edi
pop esi
pop ebp
mov eax, 0x16
pop ebx
mov ecx, dword [esp + 0x48]
xor ecx, esp
call fcn.00472272
add esp, 0x4c
ret
push 0x2e
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x20]
push eax
push 0x17
call sub.WS2_32.dll_inet_ntop
test eax, eax
je 0x45dcc3
lea edx, [esp + 0x28]
lea ecx, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x45dc97
sub edx, ecx
cmp edx, ebp
jae 0x45dcc3
lea ecx, [esp + 0x28]
mov esi, ebx
mov eax, ecx
sub esi, eax
nop
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [esi + ecx - 1], al
test al, al
jne 0x45dcb0
lea esi, [edx + ebx]
mov byte [esi + 1], al
mov ecx, dword [esp + 0x58]
xor eax, eax
pop edi
mov byte [esi], 0x5d
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00472272
add esp, 0x4c
ret
call fcn.004723de
int3
Function at 0x45f3d0
Capabilities:
Convert ip address from string

Disassembly:
sub esp, 8
push ebx
mov ebx, dword [esp + 0x18]
mov dword [esp + 4], 0
mov dword [esp + 8], 0
cmp ebx, 0x20
jbe 0x45f3f4
xor al, al
pop ebx
add esp, 8
ret
push esi
mov esi, dword [sym.imp.WS2_32.dll_inet_pton]
lea eax, [esp + 8]
push eax
push dword [esp + 0x18]
push 2
call esi
cmp eax, 1
jne 0x45f41f
lea eax, [esp + 0xc]
push eax
push dword [esp + 0x1c]
push 2
call esi
cmp eax, 1
je 0x45f427
pop esi
xor al, al
pop ebx
add esp, 8
ret
test ebx, ebx
je 0x45f45f
cmp ebx, 0x20
je 0x45f45f
mov esi, dword [sym.imp.WS2_32.dll_htonl]
push edi
push dword [esp + 0xc]
call esi
push dword [esp + 0x10]
mov edi, eax
call esi
mov ecx, 0x20
or edx, 0xffffffff
sub ecx, ebx
xor eax, edi
shl edx, cl
pop edi
test edx, eax
pop esi
sete al
pop ebx
add esp, 8
ret
mov ecx, dword [esp + 8]
xor eax, eax
cmp ecx, dword [esp + 0xc]
pop esi
sete al
pop ebx
add esp, 8
ret

Function at 0x45f480
Capabilities:
Convert ip address from string

Disassembly:
sub esp, 0x24
mov eax, dword [0x13413f8]
xor eax, esp
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x28]
mov ecx, 0x80
push ebx
mov ebx, dword [esp + 0x34]
test ebx, ebx
push ebp
mov ebp, dword [esp + 0x34]
cmove ebx, ecx
push esi
mov esi, dword [sym.imp.WS2_32.dll_inet_pton]
lea ecx, [esp + 0x1c]
push edi
push ecx
push eax
mov edi, ebx
and ebx, 7
push 0x17
shr edi, 3
call esi
cmp eax, 1
jne 0x45f4df
lea eax, [esp + 0x10]
push eax
push ebp
push 0x17
call esi
cmp eax, 1
jne 0x45f4df
cmp edi, 0x10
jg 0x45f4df
jne 0x45f4f4
test ebx, ebx
je 0x45f4f8
pop edi
pop esi
pop ebp
xor al, al
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.00472272
add esp, 0x24
ret
test edi, edi
je 0x45f54a
mov esi, edi
lea ecx, [esp + 0x20]
lea edx, [esp + 0x10]
sub esi, 4
jb 0x45f518
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x45f51d
add ecx, 4
add edx, 4
sub esi, 4
jae 0x45f507
cmp esi, 0xfffffffc
je 0x45f54a
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x45f4df
cmp esi, 0xfffffffd
je 0x45f54a
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x45f4df
cmp esi, 0xfffffffe
je 0x45f54a
mov al, byte [ecx + 2]
cmp al, byte [edx + 2]
jne 0x45f4df
cmp esi, 0xffffffff
je 0x45f54a
mov al, byte [ecx + 3]
cmp al, byte [edx + 3]
jne 0x45f4df
test ebx, ebx
je 0x45f570
movzx eax, byte [esp + edi + 0x20]
mov ecx, 8
movzx edx, byte [esp + edi + 0x10]
sub ecx, ebx
xor edx, eax
mov eax, 0xff
shl eax, cl
test eax, edx
je 0x45f4df
mov ecx, dword [esp + 0x30]
mov al, 1
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00472272
add esp, 0x24
ret
Function at 0x461ee0
Capabilities:
Check http status code

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0x18]
push edi
mov edi, dword [esp + 0x14]
push 0x11
push 0x557320
push esi
call fcn.00439f30
add esp, 0xc
test eax, eax
je 0x461f0c
mov eax, dword [edi + 0xd4]
cmp eax, 0x191
je 0x461f2d
push 0x13
push 0x557278
push esi
call fcn.00439f30
add esp, 0xc
test eax, eax
je 0x461f82
mov eax, dword [edi + 0xd4]
cmp eax, 0x197
jne 0x461f82
cmp eax, 0x197
push esi
sete byte [esp + 0x18]
call fcn.0043f3f0
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x461f4d
pop edi
pop esi
lea eax, [ebx + 0x1b]
pop ebx
ret
push esi
push 0x55cb78
push dword [esp + 0x18]
push edi
call fcn.00433650
push ebx
push dword [esp + 0x28]
push edi
call fcn.00440a50
push ebx
mov esi, eax
call dword [0x1341004]
add esp, 0x20
test esi, esi
je 0x462136
pop edi
mov eax, esi
pop esi
pop ebx
ret
push 0xf
push 0x556c20
push esi
call fcn.00439f30
add esp, 0xc
test eax, eax
je 0x461fe5
mov ecx, dword [edi + 0xd4]
mov eax, 0x51eb851f
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 2
jne 0x461fc7
push ecx
push 0x55cb98
push edi
call fcn.00433610
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
ret
mov eax, dword [esp + 0x18]
add eax, 0x70
push eax
push 0xa
lea eax, [esi + 0xf]
push 0
push eax
call fcn.00445bc0
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebx
ret
push 5
push 0x555a30
push 0xb
push 0x556c30
push esi
call fcn.0043f340
add esp, 0x14
test al, al
jne 0x4620ab
push 0x12
push 0x556c3c
push esi
call fcn.00439f30
add esp, 0xc
test eax, eax
je 0x462090
mov ecx, dword [edi + 0xd4]
mov eax, 0x51eb851f
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 2
jne 0x462049
push ecx
push 0x55cbcc
push edi
call fcn.00433610
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
ret
push 7
push 0x5562a8
push 0x12
push 0x556c3c
push esi
call fcn.0043f340
add esp, 0x14
test al, al
je 0x462136
push 0x55cc00
push edi
call fcn.00433610
mov eax, dword [esp + 0x20]
push 1
mov byte [eax + 0x7c], 1
add eax, 0x30
push eax
push edi
call fcn.00468680
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
ret
push 5
push 0x555a30
push 0x11
push 0x557214
push esi
call fcn.0043f340
add esp, 0x14
test al, al
je 0x4620b9
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebx
mov byte [eax + 0x7d], 1
xor eax, eax
ret
push 7
push 0x55cc1c
push esi
call fcn.005015e0
add esp, 0xc
test eax, eax
jne 0x462136
mov al, byte [esi + 7]
cmp al, 0x30
je 0x4620d8
cmp al, 0x31
jne 0x462136
cmp byte [esi + 8], 0x20
jne 0x462136
mov al, byte [esi + 9]
cmp al, 0x30
jl 0x462136
cmp al, 0x39
jg 0x462136
mov dl, byte [esi + 0xa]
cmp dl, 0x30
jl 0x462136
cmp dl, 0x39
jg 0x462136
mov bl, byte [esi + 0xb]
cmp bl, 0x30
jl 0x462136
cmp bl, 0x39
jg 0x462136
mov cl, byte [esi + 0xc]
cmp cl, 0x30
jl 0x462110
cmp cl, 0x39
jle 0x462136
movsx eax, al
lea ecx, [eax + eax*4]
movsx eax, dl
lea eax, [eax + ecx*2]
lea ecx, [eax + eax*4]
movsx eax, bl
lea eax, [eax + ecx*2]
add eax, 0xffffeb30
mov dword [edi + 0xd4], eax
mov dword [edi + 0xd1c], eax
pop edi
pop esi
xor eax, eax
pop ebx
ret
Function at 0x465880
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0xc
mov eax, dword [0x1342de8]
mov dword [esp + 4], 0x4020
mov dword [esp], 0
mov dword [esp + 8], 4
test eax, eax
jne 0x4658d1
push 3
push 2
push eax
push eax
push 6
call fcn.00467e70
add esp, 0x14
test al, al
je 0x4658c5
mov dword [0x1342de8], 2
add esp, 0xc
ret
mov dword [0x1342de8], 1
jmp 0x4658d6
cmp eax, 2
je 0x46591c
lea eax, [esp + 8]
push eax
lea eax, [esp + 4]
push eax
push 0x1001
push 0xffff
push dword [esp + 0x20]
call dword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x465901
mov eax, dword [esp]
cmp eax, dword [esp + 4]
jg 0x46591c
push 4
lea eax, [esp + 8]
push eax
push 0x1001
push 0xffff
push dword [esp + 0x20]
call dword [sym.imp.WS2_32.dll_setsockopt]
add esp, 0xc
ret
Function at 0x4661f0
Capabilities:
Connect socket

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [ebx + 8]
push dword [edi + 0x14]
lea eax, [edi + 0x18]
push eax
push dword [edi + 0x98]
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x46622e
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
lea eax, [edi + 0xbc]
push eax
push dword [esp + 0x18]
call fcn.00466710
add esp, 0xc
pop edi
pop ebx
ret
push dword [esp + 0x10]
mov byte [edi + 0x156], 1
push ebx
call fcn.00466480
push dword [edi + 0x118]
cmp dword [edi], 5
lea eax, [edi + 0xbc]
push eax
push dword [edi + 0x11c]
lea eax, [edi + 0xea]
mov ecx, 0x55d890
push eax
push dword [edi + 0x98]
mov eax, 0x55dd6c
cmovne eax, ecx
push eax
push 0x55dd74
push ebx
push dword [esp + 0x38]
call fcn.00433650
push 1
push dword [edi + 0x98]
call fcn.0046ffd0
add esp, 0x34
xor eax, eax
pop edi
pop ebx
ret

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

Disassembly:
sub esp, 0x104
mov eax, dword [0x13413f8]
xor eax, esp
mov dword [esp + 0x100], eax
mov ecx, dword [esp + 0x10c]
push ebx
mov ebx, dword [esp + 0x10c]
push ebp
push esi
push edi
mov eax, dword [ebx]
mov edi, dword [esp + 0x124]
push 0
push dword [esp + 0x124]
mov ebp, dword [eax + 8]
push ecx
mov dword [edi], 0
push dword [ebp + 0x98]
call dword [sym.imp.WS2_32.dll_recv]
mov esi, eax
cmp esi, 0xffffffff
jne 0x466340
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
cmp esi, 0x2733
jne 0x46630d
mov dword [edi], 0x51
jmp 0x46633d
push 0x100
lea eax, [esp + 0x14]
push eax
push esi
call fcn.0041d6d0
push eax
push 0x55da48
push dword [ebx + 4]
call fcn.00433540
mov eax, dword [ebx + 4]
add esp, 0x18
mov dword [eax + 0x8b8], esi
mov dword [edi], 0x38
or esi, 0xffffffff
push dword [edi]
push esi
push dword [ebp + 0x98]
push dword [esp + 0x12c]
push 0x55da5c
push dword [ebx]
push dword [ebx + 4]
call fcn.00433650
mov ecx, dword [esp + 0x12c]
add esp, 0x1c
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00472272
add esp, 0x104
ret