joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44f5b0
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.0044ecb0
mov eax, dword [edi + 0x1ec4]
add esp, 0x10
movzx ecx, byte [eax]
inc eax
mov dword [edi + 0x1ec4], eax
cmp ecx, 0x18
je 0x44f748
cmp ecx, 0x23
je 0x44f723
cmp ecx, 0x27
jne 0x44f7d0
push 0
push ecx
push 0xfa
push 0xff
push 0x55a1e0
lea eax, [esp + 0x2c]
push 0x800
push eax
call fcn.00438940
mov edi, dword [edi + 0x1cb0]
add esp, 0x1c
mov esi, 4
mov ebx, 0x800
test edi, edi
je 0x44f6e8
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 0x44f670
sub ecx, dword [esp + 0x10]
lea eax, [esi + 1]
add eax, ecx
cmp eax, 0x7fa
jae 0x44f6dd
push 0x2c
push edx
call fcn.004f3560
add esp, 8
test eax, eax
jne 0x44f6b4
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.00438940
add esp, 0x14
jmp 0x44f6db
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.00438940
add esp, 0x20
add esi, eax
mov edi, dword [edi + 4]
test edi, edi
jne 0x44f665
push 0xf0
push 0xff
push 0x55a200
sub ebx, esi
lea eax, [esp + 0x24]
add eax, esi
push ebx
push eax
call fcn.00438940
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 0x44f79d
add edi, 0x1c28
mov ecx, edi
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x44f730
push 0xf0
push 0xff
push edi
push 0
push 0x23
jmp 0x44f769
add edi, 0x1c08
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x44f753
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.00438940
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 0x44f7bc
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 0x55a090
push ebp
call fcn.004335f0
add esp, 0xc
lea eax, [esi - 2]
push eax
lea eax, [esp + 0x1e]
push eax
push 0x3e
push ebp
call fcn.0044ecb0
add esp, 0x10
mov ecx, dword [esp + 0x818]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00472312
add esp, 0x80c
ret
Function at 0x4504a0
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 0x450526
push dword [esp + 0x10]
lea eax, [esp + 0x1c]
push eax
lea eax, [edi + 0xb0]
push eax
call fcn.004f37d0
mov eax, dword [esp + 0x1c]
add esp, 0xc
mov dword [edi + 0x130], eax
mov esi, dword [edi + 0x134]
cmp esi, 4
jge 0x450561
push 0x55a6e4
push ebp
call fcn.004335f0
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.00472312
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.0x450586
jmp dword [edx*4 + 0x450680]
cmp esi, 4
jle case.0x450586.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.0x450586.4
lea eax, [esi - 4]
push eax
lea eax, [ecx + 4]
push eax
push 1
push ebp
call fcn.00434780
mov ebx, eax
add esp, 0x10
test ebx, ebx
je case.0x450586.4
push 5
push edi
call fcn.00450ea0
add esp, 8
jmp 0x450546
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.00450fd0
add esp, 8
cmp eax, esi
jae case.0x450586.4
push dword [esp + 0x14]
push 0x55a700
push ebp
call fcn.004336c0
jmp 0x450655
lea eax, [esi - 2]
push eax
lea eax, [ecx + 2]
push eax
push edi
call fcn.00450260
mov ebx, eax
add esp, 0xc
test ebx, ebx
je case.0x450586.4
jmp 0x450546
push 0x55a710
push 0x552df0
push ebp
call fcn.004335f0
add esp, 0xc
push ebp
call fcn.004446e0
add esp, 4
test eax, eax
je 0x450546
push 5
push edi
call fcn.00450ea0
add esp, 8
mov eax, 0x2a
jmp 0x450548
Function at 0x4570e0
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 0x45714b
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 0x45714f
mov eax, dword [esp + 0xc]
cmp eax, 0xffffffff
jne 0x45717f
push 0x55b484
push edi
call fcn.004335f0
add esp, 8
mov eax, 0x1e
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x88]
xor ecx, esp
call fcn.00472312
add esp, 0x8c
ret
push 0x55b4a8
push edi
call fcn.004336c0
mov byte [ebx + 0x24d], 0
push 1
push dword [esp + 0x18]
call fcn.004700d0
lea eax, [esp + 0x1c]
push eax
push 1
push ebx
push edi
call fcn.00465740
mov esi, eax
add esp, 0x20
test esi, esi
je 0x4571d7
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.00472312
add esp, 0x8c
ret
cmp dword [edi + 0x19c], 0
je 0x457234
push 1
push edi
call fcn.00421b70
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.00421b70
add esp, 0x1c
test esi, esi
je 0x457234
push ebx
push edi
call fcn.00457830
add esp, 8
mov eax, 0x2a
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x88]
xor ecx, esp
call fcn.00472312
add esp, 0x8c
ret
mov ecx, dword [esp + 0x94]
xor eax, eax
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00472312
add esp, 0x8c
ret
Function at 0x458a80
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 0x458b55
cmp eax, 0x226
je 0x458b4b
push 0x55bb30
push esi
call fcn.004336c0
add esp, 8
mov al, byte [esi + 0x3b0]
push ebp
test al, al
je 0x458cf1
mov ebx, dword [esi + 0xd2c]
mov ecx, dword [esi + 0xd28]
test ebx, ebx
jl 0x458ce3
jg 0x458b05
test ecx, ecx
je 0x458ce3
mov ebp, dword [esi + 0x3ac]
mov edx, dword [esi + 0x3a8]
test ebp, ebp
jl 0x458ce3
jg 0x458b23
test edx, edx
je 0x458ce3
movzx eax, al
sub eax, 2
je 0x458cad
cmp ebx, ebp
jg 0x458cf1
jl 0x458b41
cmp ecx, edx
ja 0x458cf1
push 0x556330
jmp 0x458cbc
push 0x55bb50
jmp 0x458acf
lea eax, [ebx + 0x430]
push eax
call fcn.00421040
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.00457930
add esp, 0x20
test al, al
je 0x458bd1
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.00438940
lea eax, [esp + 0x4c]
push eax
call fcn.00445e80
add esp, 0x28
mov dword [esi + 0xd28], eax
mov dword [esi + 0xd2c], edx
cmp byte [esi + 0x13c], 0
je 0x458ad8
cmp dword [ebx + 0x45c], edi
je 0x458ad8
cmp byte [esi + 0x685], 0
je 0x458ad8
mov ecx, dword [esi + 0xd2c]
mov eax, dword [esi + 0xd28]
test ecx, ecx
jl 0x458ad8
jg 0x458c15
test eax, eax
jb 0x458ad8
lea edx, [esp + 0x28]
push edx
push ecx
push eax
call fcn.00445ef0
add esp, 0xc
test eax, eax
jne 0x458d03
mov eax, dword [esp + 0x40]
lea ecx, [eax - 1]
test eax, eax
jne 0x458c3c
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.00438940
push eax
lea eax, [esp + 0x78]
push eax
push esi
call fcn.004577f0
mov edi, eax
add esp, 0x34
test edi, edi
je 0x458ad8
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xc0]
xor ecx, esp
call fcn.00472312
add esp, 0xc4
ret
cmp ebx, ebp
jl 0x458cf1
jg 0x458cb7
cmp ecx, edx
jbe 0x458cf1
push 0x55635c
push esi
call fcn.004336c0
mov eax, dword [esp + 0x18]
push 0
push esi
mov dword [eax + 8], 2
mov byte [esi + 0xdd8], 1
call fcn.004577a0
add esp, 0x10
xor eax, eax
jmp 0x458d02
push 0x55bb94
push esi
call fcn.004336c0
add esp, 8
test edi, edi
jne 0x458d00
push esi
call fcn.00459ce0
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.00472312
add esp, 0xc4
ret
Function at 0x459d50
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 0x459d8b
push 0x55bbb0
push esi
call fcn.004335f0
add esp, 8
lea eax, [edi + 0x11]
pop edi
pop esi
pop ebx
ret
cmp ecx, 0xc8
je 0x459da2
push ecx
push 0x55bbcc
push esi
call fcn.004336c0
add esp, 0xc
mov al, byte [esp + 0x18]
cmp al, 0x13
jne 0x459dba
push ebx
push esi
call fcn.004599b0
add esp, 8
mov edi, eax
pop edi
pop esi
pop ebx
ret
cmp al, 0x14
jne 0x459dcd
push esi
call fcn.004588d0
add esp, 4
mov edi, eax
pop edi
pop esi
pop ebx
ret
cmp al, 0x15
jne 0x459de4
push 0xd
push 1
push esi
call fcn.00459480
add esp, 0xc
mov edi, eax
pop edi
pop esi
pop ebx
ret
cmp al, 0x16
jne 0x459df7
push 0xe
push 1
push esi
call fcn.00459480
add esp, 0xc
mov edi, eax
mov eax, edi
pop edi
pop esi
pop ebx
ret
Function at 0x45dc30
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 0x45dc6b
pop ebp
mov eax, 0x16
pop ebx
mov ecx, dword [esp + 0x48]
xor ecx, esp
call fcn.00472312
add esp, 0x4c
ret
push esi
push edi
inc ebx
sub ebp, 2
push 0x555cc4
push ebx
call fcn.005025a0
add esp, 8
cmp ebp, eax
je 0x45dd37
mov ebp, eax
add eax, ebx
mov dword [esp + 0x14], eax
cmp byte [eax], 0x25
jne 0x45dd51
push 2
lea esi, [eax + 1]
xor edi, edi
push 0x55c4d4
push esi
call fcn.005017e0
add esp, 0xc
test eax, eax
jne 0x45dcc1
mov cl, byte [esi + 2]
lea eax, [esi + 2]
test cl, cl
je 0x45dcc1
cmp cl, 0x5d
cmovne esi, eax
mov al, byte [esi]
test al, al
je 0x45dd51
lea ecx, [esp + 0x18]
sub ecx, esi
cmp al, 0x5d
je 0x45dce6
cmp edi, 0xf
jge 0x45dce6
mov byte [ecx + esi], al
inc edi
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x45dcd1
test edi, edi
je 0x45dd51
cmp byte [esi], 0x5d
jne 0x45dd51
cmp edi, 0x10
jae 0x45ddcb
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 0x45dd2e
pop edi
pop esi
pop ebp
mov eax, 7
pop ebx
mov ecx, dword [esp + 0x48]
xor ecx, esp
call fcn.00472312
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 0x45dd69
pop edi
pop esi
pop ebp
mov eax, 0x16
pop ebx
mov ecx, dword [esp + 0x48]
xor ecx, esp
call fcn.00472312
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 0x45ddb3
lea edx, [esp + 0x28]
lea ecx, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x45dd87
sub edx, ecx
cmp edx, ebp
jae 0x45ddb3
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 0x45dda0
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.00472312
add esp, 0x4c
ret
call fcn.0047248d
int3
Function at 0x45f4c0
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 0x45f4e4
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 0x45f50f
lea eax, [esp + 0xc]
push eax
push dword [esp + 0x1c]
push 2
call esi
cmp eax, 1
je 0x45f517
pop esi
xor al, al
pop ebx
add esp, 8
ret
test ebx, ebx
je 0x45f54f
cmp ebx, 0x20
je 0x45f54f
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 0x45f570
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 0x45f5cf
lea eax, [esp + 0x10]
push eax
push ebp
push 0x17
call esi
cmp eax, 1
jne 0x45f5cf
cmp edi, 0x10
jg 0x45f5cf
jne 0x45f5e4
test ebx, ebx
je 0x45f5e8
pop edi
pop esi
pop ebp
xor al, al
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.00472312
add esp, 0x24
ret
test edi, edi
je 0x45f63a
mov esi, edi
lea ecx, [esp + 0x20]
lea edx, [esp + 0x10]
sub esi, 4
jb 0x45f608
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x45f60d
add ecx, 4
add edx, 4
sub esi, 4
jae 0x45f5f7
cmp esi, 0xfffffffc
je 0x45f63a
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x45f5cf
cmp esi, 0xfffffffd
je 0x45f63a
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x45f5cf
cmp esi, 0xfffffffe
je 0x45f63a
mov al, byte [ecx + 2]
cmp al, byte [edx + 2]
jne 0x45f5cf
cmp esi, 0xffffffff
je 0x45f63a
mov al, byte [ecx + 3]
cmp al, byte [edx + 3]
jne 0x45f5cf
test ebx, ebx
je 0x45f660
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 0x45f5cf
mov ecx, dword [esp + 0x30]
mov al, 1
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00472312
add esp, 0x24
ret
Function at 0x461fa0
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.0043a030
add esp, 0xc
test eax, eax
je 0x461fcc
mov eax, dword [edi + 0xd4]
cmp eax, 0x191
je 0x461fed
push 0x13
push 0x557278
push esi
call fcn.0043a030
add esp, 0xc
test eax, eax
je 0x462042
mov eax, dword [edi + 0xd4]
cmp eax, 0x197
jne 0x462042
cmp eax, 0x197
push esi
sete byte [esp + 0x18]
call fcn.0043f4e0
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x46200d
pop edi
pop esi
lea eax, [ebx + 0x1b]
pop ebx
ret
push esi
push 0x55cb78
push dword [esp + 0x18]
push edi
call fcn.00433700
push ebx
push dword [esp + 0x28]
push edi
call fcn.00440b50
push ebx
mov esi, eax
call dword [0x1341004]
add esp, 0x20
test esi, esi
je 0x4621f6
pop edi
mov eax, esi
pop esi
pop ebx
ret
push 0xf
push 0x556c20
push esi
call fcn.0043a030
add esp, 0xc
test eax, eax
je 0x4620a5
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 0x462087
push ecx
push 0x55cb98
push edi
call fcn.004336c0
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.00445cb0
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.0043f430
add esp, 0x14
test al, al
jne 0x46216b
push 0x12
push 0x556c3c
push esi
call fcn.0043a030
add esp, 0xc
test eax, eax
je 0x462150
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 0x462109
push ecx
push 0x55cbcc
push edi
call fcn.004336c0
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.0043f430
add esp, 0x14
test al, al
je 0x4621f6
push 0x55cc00
push edi
call fcn.004336c0
mov eax, dword [esp + 0x20]
push 1
mov byte [eax + 0x7c], 1
add eax, 0x30
push eax
push edi
call fcn.00468720
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.0043f430
add esp, 0x14
test al, al
je 0x462179
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.005017e0
add esp, 0xc
test eax, eax
jne 0x4621f6
mov al, byte [esi + 7]
cmp al, 0x30
je 0x462198
cmp al, 0x31
jne 0x4621f6
cmp byte [esi + 8], 0x20
jne 0x4621f6
mov al, byte [esi + 9]
cmp al, 0x30
jl 0x4621f6
cmp al, 0x39
jg 0x4621f6
mov dl, byte [esi + 0xa]
cmp dl, 0x30
jl 0x4621f6
cmp dl, 0x39
jg 0x4621f6
mov bl, byte [esi + 0xb]
cmp bl, 0x30
jl 0x4621f6
cmp bl, 0x39
jg 0x4621f6
mov cl, byte [esi + 0xc]
cmp cl, 0x30
jl 0x4621d0
cmp cl, 0x39
jle 0x4621f6
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 0x465950
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 0x4659a1
push 3
push 2
push eax
push eax
push 6
call fcn.00467f20
add esp, 0x14
test al, al
je 0x465995
mov dword [0x1342de8], 2
add esp, 0xc
ret
mov dword [0x1342de8], 1
jmp 0x4659a6
cmp eax, 2
je 0x4659ec
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 0x4659d1
mov eax, dword [esp]
cmp eax, dword [esp + 4]
jg 0x4659ec
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 0x4662b0
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 0x4662ee
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
lea eax, [edi + 0xbc]
push eax
push dword [esp + 0x18]
call fcn.004667d0
add esp, 0xc
pop edi
pop ebx
ret
push dword [esp + 0x10]
mov byte [edi + 0x156], 1
push ebx
call fcn.00466540
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.00433700
push 1
push dword [edi + 0x98]
call fcn.004700d0
add esp, 0x34
xor eax, eax
pop edi
pop ebx
ret

Function at 0x466360
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 0x466400
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
cmp esi, 0x2733
jne 0x4663cd
mov dword [edi], 0x51
jmp 0x4663fd
push 0x100
lea eax, [esp + 0x14]
push eax
push esi
call fcn.0041d7a0
push eax
push 0x55da48
push dword [ebx + 4]
call fcn.004335f0
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.00433700
mov ecx, dword [esp + 0x12c]
add esp, 0x1c
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00472312
add esp, 0x104
ret