joyce8/EMBER2024-capa huggingface dataset:
Function at 0x515d40
Capabilities:
Parse credit card information

Disassembly:
push 0xffffffffffffffff
push 0x78c1c8
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push esi
push edi
mov eax, dword [0x856918]
xor eax, esp
push eax
lea eax, [esp + 0x24]
mov dword fs:[0], eax
mov esi, ecx
lea ecx, [esp + 0x10]
call fcn.0050f110
mov dword [esp + 0x2c], 0
mov edi, 1
lea ecx, [ecx]
cmp word [esi + 0xa8], 0
jne 0x515d96
cmp dword [esi + 0xac], edi
je 0x515f64
mov eax, dword [esi + 0xac]
test eax, eax
jne 0x515e1f
cmp word [esi + 0xb8], 0x7b
jne 0x515db6
cmp dword [esi + 0xbc], edi
je 0x515f3b
cmp word [esi + 0xb8], 0x3f
jne 0x515dcc
cmp dword [esi + 0xbc], edi
je 0x515f3b
cmp word [esi + 0xb8], 0x2a
jne 0x515de2
cmp dword [esi + 0xbc], edi
je 0x515f3b
cmp word [esi + 0xb8], 0x2b
jne 0x515df8
cmp dword [esi + 0xbc], edi
je 0x515f3b
movzx eax, word [esi + 0xa8]
push edi
push edi
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0x1c]
mov dword [esp + 0x18], eax
call fcn.0050fec0
mov ecx, esi
call fcn.005139a0
jmp 0x515d80
cmp eax, edi
jne 0x515d80
movzx ecx, word [esi + 0xa8]
movzx eax, cx
cmp ax, 0x29
je 0x515f64
cmp ax, 0x7c
je 0x515f64
cmp dword [esp + 0x18], 0
jg 0x515f6f
cmp ax, 0x28
je 0x515fa9
cmp ax, 0x5b
je 0x515fd3
cmp ax, 0x2e
je 0x515fd3
cmp ax, 0x77
je 0x515fd3
cmp ax, 0x57
je 0x515fd3
cmp ax, 0x73
je 0x515fd3
cmp ax, 0x53
je 0x515fd3
cmp ax, 0x64
je 0x515fd3
cmp ax, 0x44
je 0x515fd3
cmp ax, 0x5e
je 0x515fc5
cmp ax, 0x24
je 0x515fc5
cmp ax, 0x41
je 0x515fc5
cmp ax, 0x5a
je 0x515fc5
cmp ax, 0x7a
je 0x515fc5
cmp ax, 0x62
je 0x515fc5
cmp ax, 0x42
je 0x515fc5
cmp ax, 0x47
je 0x515fc5
cmp ax, 0x5c
je 0x515fb7
cmp ax, 0x6b
je 0x515fb7
cmp ax, 0x67
je 0x515fb7
push edi
movzx edx, cx
push edi
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x1c]
mov dword [esp + 0x18], edx
call fcn.0050fec0
mov ecx, esi
call fcn.005139a0
jmp 0x515d80
cmp dword [esp + 0x18], 0
jne 0x515f69
movzx ecx, word [esi + 0xa8]
push edi
push edi
lea edx, [esp + 0x14]
mov dword [esp + 0x14], ecx
push edx
lea ecx, [esp + 0x1c]
call fcn.0050fec0
mov ecx, esi
call fcn.005139a0
cmp dword [esp + 0x18], 0
jle 0x51600b
push 0x20
call fcn.005645f4
mov edi, eax
add esp, 4
test edi, edi
je 0x515fe1
mov ecx, dword [esp + 0x34]
mov eax, dword [ecx]
mov edx, eax
and edx, 8
push edx
and eax, 0x10
push eax
mov eax, dword [esp + 0x20]
push eax
lea ecx, [esp + 0x1c]
call fcn.0050f300
push eax
mov ecx, edi
call fcn.00512df0
mov edi, eax
jmp 0x515fe3
mov eax, dword [esp + 0x34]
push eax
mov ecx, esi
call fcn.00517800
jmp 0x516014
mov ecx, dword [esp + 0x34]
push ecx
mov ecx, esi
call fcn.00515530
jmp 0x516014
mov edx, dword [esp + 0x34]
push edx
mov ecx, esi
call fcn.005152c0
jmp 0x516014
mov eax, dword [esp + 0x34]
push eax
mov ecx, esi
call fcn.00514cc0
jmp 0x516014
xor edi, edi
push edi
lea ecx, [esi + 0x14]
call fcn.0050eba0
lea ecx, [esp + 0x10]
call fcn.0050e4a0
mov eax, edi
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x24
ret 4
push 0
mov ecx, esi
call fcn.00513e80
lea ecx, [esp + 0x10]
mov esi, eax
call fcn.0050e4a0
mov eax, esi
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x24
ret 4
Function at 0x51b510
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x78c950
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
mov eax, dword [0x856918]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ebx, dword [ebp + 0xc]
xor eax, eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], eax
mov eax, dword [0x869a54]
push 1
push eax
lea ecx, [ebp - 0x30]
call fcn.00549490
push ebx
lea ecx, [ebp - 0x74]
push ecx
mov ecx, 0x869a58
mov byte [ebp - 4], 1
call fcn.0051a210
mov edi, dword [eax]
mov edx, dword [0x869a70]
mov esi, dword [eax + 4]
mov dword [ebp - 0x60], edx
test edi, edi
je 0x51b58f
cmp edi, dword [0x869a58]
je 0x51b594
call fcn.00565471
cmp esi, dword [ebp - 0x60]
je 0x51b5e1
test edi, edi
jne 0x51b5dd
call fcn.00565471
cmp esi, dword [edi + 0x18]
jne 0x51b5ac
call fcn.00565471
mov eax, dword [esi + 0x30]
mov edi, dword [esi + 0x28]
mov ebx, dword [esi + 0x2c]
mov esi, dword [esi + 0x34]
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x64], eax
mov byte [ebp - 4], 0
call fcn.00549420
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x64]
mov dword [eax], edi
mov dword [eax + 4], ebx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], esi
jmp 0x51b6b2
mov edi, dword [edi]
jmp 0x51b5a2
lea ecx, [ebp - 0x30]
call fcn.00549470
cmp dword [ebx + 0x18], 0x10
jb 0x51b5f4
mov eax, dword [ebx + 4]
jmp 0x51b5f7
lea eax, [ebx + 4]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
xor esi, esi
cmp eax, esi
je 0x51b68c
movsx edx, word [eax + 0xa]
mov eax, dword [eax + 0xc]
mov ecx, dword [eax]
push edx
push ecx
lea edx, [ebp - 0x20]
push edx
call fcn.00564f70
add esp, 0xc
lea ecx, [ebp - 0x30]
call fcn.00549450
push 0xffffffffffffffff
push esi
mov edi, 0xf
push ebx
lea ecx, [ebp - 0x5c]
mov dword [ebp - 0x44], edi
mov dword [ebp - 0x48], esi
mov byte [ebp - 0x58], 0
call fcn.00403fb2
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x1c]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x38], edx
mov dword [ebp - 0x34], eax
lea ecx, [ebp - 0x5c]
push ecx
lea edx, [ebp - 0x78]
push edx
mov ecx, 0x869a58
mov byte [ebp - 4], 2
call fcn.0051b180
cmp dword [ebp - 0x44], 0x10
jb 0x51b682
mov eax, dword [ebp - 0x58]
push eax
call fcn.00564155
add esp, 4
mov dword [ebp - 0x44], edi
mov dword [ebp - 0x48], esi
mov byte [ebp - 0x58], 0
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 0
call fcn.00549420
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x20]
mov dword [eax], ecx
mov ecx, dword [ebp - 0x1c]
mov dword [eax + 4], edx
mov edx, dword [ebp - 0x18]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00564b24
mov esp, ebp
pop ebp
ret
Function at 0x51da80
Capabilities:
Create raw socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x78cff0
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
push ebx
push esi
push edi
mov eax, dword [0x856918]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
call fcn.0051d690
test eax, eax
je 0x51dabd
mov eax, dword [esi]
mov edx, dword [eax + 0x14]
call edx
mov eax, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 4], ebx
cmp dword [esi + 0x18], ebx
jne 0x51db05
cmp dword [esi + 8], ebx
jne 0x51daf8
cmp eax, 1
je 0x51daf8
cmp eax, 6
jne 0x51dae6
push eax
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
jmp 0x51db3a
cmp eax, 0x11
jne 0x51db3d
push eax
push 2
push 2
call dword [sym.imp.WS2_32.dll_socket]
jmp 0x51db3a
push eax
push 3
push 2
call dword [sym.imp.WS2_32.dll_socket]
jmp 0x51db3a
cmp dword [esi + 8], ebx
jne 0x51db2b
cmp eax, 1
je 0x51db2b
cmp eax, 6
jne 0x51db1d
push 1
push ebx
push ebx
push eax
push 1
jmp 0x51db32
cmp eax, 0x11
jne 0x51db3d
push 1
push ebx
push ebx
push eax
push 2
jmp 0x51db32
push 1
push ebx
push ebx
push eax
push 3
push 2
call dword [sym.imp.WS2_32.dll_WSASocketA]
mov dword [esi + 0x14], eax
cmp dword [esi + 0x14], 0xffffffff
jne 0x51db9e
push 6
push str.Create
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], ebx
mov byte [ebp - 0x28], bl
call fcn.00405920
mov ecx, dword [esi + 4]
mov edx, dword [ecx + 4]
lea eax, [ebp - 0x2c]
push eax
lea ecx, [edx + esi + 4]
mov byte [ebp - 4], 1
call fcn.0051a5f0
cmp dword [ebp - 0x14], 0x10
jb 0x51db88
mov eax, dword [ebp - 0x28]
push eax
call fcn.00564155
add esp, 4
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 8], ebx
je 0x51dc1a
mov dword [ebp + 8], 1
call fcn.005198c0
mov edx, dword [esi + 0x14]
push 4
lea ecx, [ebp + 8]
push ecx
push 2
push ebx
push edx
mov edi, eax
call dword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, edi
jne 0x51dc1a
push str.Create
lea ecx, [ebp - 0x48]
call fcn.004062df
mov ecx, dword [esi + 4]
mov edx, dword [ecx + 4]
lea eax, [ebp - 0x48]
push eax
lea ecx, [edx + esi + 4]
mov byte [ebp - 4], 2
call fcn.0051a5f0
cmp dword [ebp - 0x30], 0x10
jb 0x51db88
mov eax, dword [ebp - 0x44]
push eax
call fcn.00564155
add esp, 4
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x51dee0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x78d0b8
mov eax, dword fs:[0]
push eax
sub esp, 0x74
mov eax, dword [0x856918]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0x14]
mov edx, dword [ebp + 8]
mov ebx, dword [ebp + 0x10]
mov esi, ecx
mov dword [ebp - 0x2c], eax
mov dword [ebp - 4], 0
call fcn.0051d690
test eax, eax
je 0x51e024
test edx, edx
je 0x51e024
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x51e024
cmp byte [esi + 0xc], 6
je 0x51dfd3
lea ecx, [ebp - 0x28]
push ecx
lea ecx, [ebp - 0x24]
push ecx
push 0
push eax
push edx
mov ecx, esi
mov dword [ebp - 0x28], 0x10
call fcn.0051d6a0
push eax
call dword [sym.imp.WS2_32.dll_recvfrom]
mov edi, eax
call fcn.005198c0
cmp edi, eax
je 0x51df95
mov eax, dword [ebp - 0x22]
mov edx, dword [ebp - 0x20]
push eax
mov dword [ebx], edx
call dword [sym.imp.WS2_32.dll_htons]
mov ecx, dword [ebp - 0x2c]
mov word [ecx], ax
mov eax, edi
jmp 0x51e03c
push str.Receive
lea ecx, [ebp - 0x48]
call fcn.004062df
mov eax, dword [esi + 4]
mov ecx, dword [eax + 4]
lea edx, [ebp - 0x48]
push edx
lea ecx, [ecx + esi + 4]
mov byte [ebp - 4], 1
call fcn.0051a5f0
lea ecx, [ebp - 0x48]
call fcn.00402ed7
mov eax, dword [ebp - 0x2c]
xor edx, edx
mov dword [ebx], 0
mov word [eax], dx
mov eax, edi
jmp 0x51e03c
push str.Cant_run_on_TCP_socket_
lea ecx, [ebp - 0x80]
call fcn.004062df
push str.Receive
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 2
call fcn.004062df
mov ecx, dword [esi + 4]
mov edx, dword [ecx + 4]
mov eax, dword [edx + esi + 4]
mov eax, dword [eax + 0x14]
lea ecx, [edx + esi + 4]
lea edx, [ebp - 0x80]
push edx
lea edx, [ebp - 0x64]
push edx
mov byte [ebp - 4], 3
call eax
lea ecx, [ebp - 0x64]
call fcn.00402ed7
lea ecx, [ebp - 0x80]
mov byte [ebp - 4], 0
call fcn.00402ed7
call fcn.005198c0
jmp 0x51e03c
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00564b24
mov esp, ebp
pop ebp
ret 0x10
Function at 0x51e060
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x78d0f0
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x856918]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edx, dword [ebp + 8]
mov esi, ecx
mov dword [ebp - 4], 0
call fcn.0051d690
test eax, eax
je 0x51e19d
test edx, edx
je 0x51e19d
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x51e19d
mov ebx, dword [ebp + 0x10]
mov eax, ebx
neg eax
sbb eax, eax
and eax, 2
cmp byte [esi + 0xc], 6
je 0x51e111
lea edi, [ebp - 0x34]
push edi
lea edi, [ebp - 0x24]
push edi
push eax
push ecx
push edx
mov ecx, esi
mov dword [ebp - 0x34], 0x10
call fcn.0051d6a0
push eax
call dword [sym.imp.WS2_32.dll_recvfrom]
mov edi, eax
call fcn.005198c0
cmp edi, eax
je 0x51e124
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x1c]
mov dword [esi + 0x1c], eax
mov eax, dword [ebp - 0x18]
mov dword [esi + 0x20], ecx
mov dword [esi + 0x24], edx
mov dword [esi + 0x28], eax
jmp 0x51e124
push eax
push ecx
push edx
mov ecx, esi
call fcn.0051d6a0
push eax
call dword [sym.imp.WS2_32.dll_recv]
mov edi, eax
call fcn.005198c0
cmp edi, eax
jne 0x51e199
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x2733
je 0x51e199
test ebx, ebx
jne 0x51e16d
push str.Receive
lea ecx, [ebp - 0x30]
call fcn.004062df
mov edx, dword [esi + 4]
mov eax, dword [edx + 4]
lea ecx, [ebp - 0x30]
push ecx
lea ecx, [eax + esi + 4]
mov byte [ebp - 4], 1
call fcn.0051a5f0
lea ecx, [ebp - 0x30]
call fcn.00402ed7
mov eax, edi
jmp 0x51e1b5
push str.Peek
lea ecx, [ebp - 0x50]
call fcn.004062df
mov edx, dword [esi + 4]
mov eax, dword [edx + 4]
lea ecx, [ebp - 0x50]
push ecx
lea ecx, [eax + esi + 4]
mov byte [ebp - 4], 2
call fcn.0051a5f0
lea ecx, [ebp - 0x50]
call fcn.00402ed7
mov eax, edi
jmp 0x51e1b5
call fcn.005198c0
jmp 0x51e1b5
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00564b24
mov esp, ebp
pop ebp
ret 0xc
Function at 0x51e870
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x78d258
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x856918]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
xor edi, edi
mov dword [ebp - 4], edi
call fcn.0051dc40
cmp eax, edi
je 0x51e917
push 4
lea eax, [ebp - 0x14]
push eax
push 4
mov ebx, 1
push 0xffff
mov ecx, esi
mov dword [ebp - 0x14], ebx
call fcn.0051d6a0
push eax
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
je 0x51e92b
push 0xc
push str.ReuseAddress
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], edi
mov byte [ebp - 0x2c], 0
call fcn.00405920
mov edx, dword [esi + 4]
mov eax, dword [edx + 4]
lea ecx, [ebp - 0x30]
push ecx
lea ecx, [eax + esi + 4]
mov byte [ebp - 4], bl
call fcn.0051a5f0
cmp dword [ebp - 0x18], 0x10
jb 0x51e917
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.00564155
add esp, 4
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x78d2a8
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x856918]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ebx, dword [ebp + 0xc]
mov edi, ecx
mov dword [ebp - 4], 0
call fcn.0051dc40
test eax, eax
jne 0x51ea0d
call fcn.005198c0
jmp 0x51eacc
cmp dword [ebp + 0x10], 0
je 0x51ea17
test ebx, ebx
je 0x51ea03
mov edx, dword [ebp + 0x14]
mov ecx, dword [ebp + 8]
xor eax, eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov eax, 2
push edx
mov word [ebp - 0x24], ax
mov dword [ebp - 0x20], ecx
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x22], ax
call fcn.005198c0
xor ecx, ecx
test eax, eax
sete cl
mov esi, ecx
call fcn.005198c0
cmp esi, eax
je 0x51ea76
mov eax, dword [ebp + 0x10]
push 0x10
lea edx, [ebp - 0x24]
push edx
push 0
push eax
push ebx
mov ecx, edi
call fcn.0051d6a0
push eax
call dword [sym.imp.WS2_32.dll_sendto]
mov esi, eax
call fcn.005198c0
cmp esi, eax
jne 0x51eab7
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x2733
je 0x51eab7
push str.Send
lea ecx, [ebp - 0x44]
call fcn.004062df
mov edx, dword [edi + 4]
mov eax, dword [edx + 4]
lea ecx, [ebp - 0x44]
push ecx
lea ecx, [eax + edi + 4]
mov byte [ebp - 4], 1
call fcn.0051a5f0
lea ecx, [ebp - 0x44]
call fcn.00402ed7
mov eax, esi
jmp 0x51eacc
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00564b24
mov esp, ebp
pop ebp
ret 0x10
Function at 0x51ed90
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x78d348
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x856918]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
xor ebx, ebx
mov esi, ecx
mov dword [ebp - 4], ebx
call fcn.0051dc40
cmp eax, ebx
je 0x51ee34
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x24]
push ecx
mov edi, 0x10
mov ecx, esi
mov dword [ebp - 0x28], edi
call fcn.0051d6a0
push eax
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x51ee52
push 4
push str.Bind
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x2c], 0xf
mov dword [ebp - 0x30], ebx
mov byte [ebp - 0x40], bl
call fcn.00405920
mov eax, dword [esi + 4]
mov ecx, dword [eax + 4]
lea edx, [ebp - 0x44]
push edx
lea ecx, [ecx + esi + 4]
mov byte [ebp - 4], 1
call fcn.0051a5f0
cmp dword [ebp - 0x2c], edi
jb 0x51ee34
mov edx, dword [ebp - 0x40]
push edx
call fcn.00564155
add esp, 4
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00564b24
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x22]
push eax
call dword [sym.imp.WS2_32.dll_htons]
jmp 0x51ee36
Function at 0x51f4a0
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x78d4c0
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x856918]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
xor ebx, ebx
mov esi, ecx
mov dword [ebp - 4], ebx
call fcn.0051dc40
cmp eax, ebx
je 0x51f635
mov edx, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
xor eax, eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov eax, 2
push edx
mov word [ebp - 0x24], ax
mov dword [ebp - 0x20], ecx
call dword [sym.imp.WS2_32.dll_htons]
mov ecx, esi
mov word [ebp - 0x22], ax
call fcn.0051d6a0
push 0x10
lea ecx, [ebp - 0x24]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_connect]
mov edi, eax
mov dword [ebp - 0x28], ebx
call fcn.005198c0
cmp edi, eax
jne 0x51f592
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x51f57b
push str.Connect
lea ecx, [ebp - 0x60]
call fcn.004062df
mov eax, dword [esi + 4]
mov ecx, dword [eax + 4]
lea edx, [ebp - 0x60]
push edx
lea ecx, [ecx + esi + 4]
mov byte [ebp - 4], 1
call fcn.0051a5f0
cmp dword [ebp - 0x48], 0x10
mov byte [ebp - 4], bl
jb 0x51f5ef
mov edx, dword [ebp - 0x5c]
push edx
call fcn.00564155
add esp, 4
jmp 0x51f5ef
mov dword [ebp - 0x28], 1
call fcn.005198c0
xor ecx, ecx
cmp eax, ebx
sete cl
mov edi, ecx
jmp 0x51f5ef
push 7
mov ebx, 0xf
push str.Connect
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x30], 0
mov byte [ebp - 0x40], 0
call fcn.00405920
mov eax, dword [esi + 4]
mov ecx, dword [eax + 4]
lea edx, [ebp - 0x44]
push edx
lea ecx, [ecx + esi + 4]
mov byte [ebp - 4], 2
call fcn.0051a5f0
cmp dword [ebp - 0x2c], 0x10
mov byte [ebp - 4], 0
jb 0x51f5e1
mov edx, dword [ebp - 0x40]
push edx
call fcn.00564155
add esp, 4
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x30], 0
mov byte [ebp - 0x40], 0
call fcn.005198c0
cmp edi, eax
je 0x51f619
mov eax, dword [esi]
mov edx, dword [eax + 0x3c]
mov ecx, esi
call edx
test eax, eax
jne 0x51f60e
push 1
mov ecx, esi
call fcn.0051f090
lea eax, [ebp - 0x24]
push eax
mov ecx, esi
call fcn.0051d7c0
cmp dword [ebp - 0x28], 0
jne 0x51f635
call fcn.005198c0
xor ecx, ecx
cmp edi, eax
setne cl
mov eax, ecx
jmp 0x51f637
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00564b24
mov esp, ebp
pop ebp
ret 0xc
Function at 0x51f960
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x78d598
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x856918]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
xor ebx, ebx
mov dword [ebp - 4], ebx
call fcn.0051dc40
cmp eax, ebx
je 0x51fa22
mov ecx, edi
call fcn.0051d6a0
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
push ebx
push ecx
push edx
push eax
call dword [sym.imp.WS2_32.dll_send]
mov esi, eax
call fcn.005198c0
cmp esi, eax
jne 0x51fa06
push 4
push str.Send
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], ebx
mov byte [ebp - 0x28], bl
call fcn.00405920
mov ecx, dword [edi + 4]
mov edx, dword [ecx + 4]
lea eax, [ebp - 0x2c]
push eax
lea ecx, [edx + edi + 4]
mov byte [ebp - 4], 1
call fcn.0051a5f0
cmp dword [ebp - 0x14], 0x10
jb 0x51fa06
mov eax, dword [ebp - 0x28]
push eax
call fcn.00564155
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x51fa40
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x78d5d8
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
push ebx
push esi
push edi
mov eax, dword [0x856918]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov dword [ebp - 0x14], esi
xor ebx, ebx
mov dword [ebp - 4], ebx
call fcn.0051dc40
cmp eax, ebx
je 0x51fb7d
mov ecx, esi
call fcn.0051d6a0
mov esi, eax
call fcn.005198c0
push 4
mov edi, eax
lea eax, [ebp + 8]
push eax
push 0x1001
push 0xffff
push esi
call dword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, edi
jne 0x51fb93
push 0x22
mov esi, 0xf
push str.Failed_to_set_outgoing_buffer_size
lea ecx, [ebp - 0x4c]
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x38], ebx
mov byte [ebp - 0x48], bl
call fcn.00405920
push 0x13
push str.SetSocketSendBuffer
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 1
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
call fcn.00405920
mov edi, dword [ebp - 0x14]
mov ecx, dword [edi + 4]
mov edx, dword [ecx + 4]
mov eax, dword [edx + edi + 4]
mov eax, dword [eax + 0x14]
lea ecx, [edx + edi + 4]
lea edx, [ebp - 0x4c]
push edx
lea edx, [ebp - 0x30]
push edx
mov byte [ebp - 4], 2
call eax
cmp dword [ebp - 0x18], 0x10
jb 0x51fb1e
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.00564155
add esp, 4
cmp dword [ebp - 0x34], 0x10
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
mov byte [ebp - 4], bl
jb 0x51fb3c
mov edx, dword [ebp - 0x48]
push edx
call fcn.00564155
add esp, 4
push 0x13
push str.SetSocketSendBuffer
lea ecx, [ebp - 0x68]
mov dword [ebp - 0x50], esi
mov dword [ebp - 0x54], ebx
mov byte [ebp - 0x64], bl
call fcn.00405920
mov ecx, dword [edi + 4]
mov edx, dword [ecx + 4]
lea eax, [ebp - 0x68]
push eax
lea ecx, [edx + edi + 4]
mov byte [ebp - 4], 3
call fcn.0051a5f0
cmp dword [ebp - 0x50], 0x10
jb 0x51fb7d
mov eax, dword [ebp - 0x64]
push eax
call fcn.00564155
add esp, 4
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4