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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59d4b8
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x5fae30]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
lea ecx, [ebp - 0x24]
call fcn.004ffd10
mov dword [ebp - 4], 0
mov esi, 1
mov edi, edi
movzx ecx, word [edi + 0xa8]
test cx, cx
jne 0x502bb8
cmp dword [edi + 0xac], esi
je 0x502d4b
mov eax, dword [edi + 0xac]
test eax, eax
jne 0x502c2c
movzx eax, word [edi + 0xb8]
cmp eax, 0x7b
jne 0x502bda
cmp dword [edi + 0xbc], esi
je 0x502d26
cmp eax, 0x3f
jne 0x502beb
cmp dword [edi + 0xbc], esi
je 0x502d26
cmp eax, 0x2a
jne 0x502bfc
cmp dword [edi + 0xbc], esi
je 0x502d26
cmp eax, 0x2b
jne 0x502c0d
cmp dword [edi + 0xbc], esi
je 0x502d26
mov eax, ecx
push esi
push esi
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x10], eax
call fcn.005000c0
mov ecx, edi
call fcn.00501ac0
jmp 0x502ba0
cmp eax, esi
jne 0x502ba0
mov eax, ecx
cmp eax, 0x29
je 0x502d4b
cmp eax, 0x7c
je 0x502d4b
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
jg 0x502d52
cmp eax, 0x28
je 0x502d8f
cmp eax, 0x5b
je 0x502db6
cmp eax, 0x2e
je 0x502db6
cmp eax, 0x77
je 0x502db6
cmp eax, 0x57
je 0x502db6
cmp eax, 0x73
je 0x502db6
cmp eax, 0x53
je 0x502db6
cmp eax, 0x64
je 0x502db6
cmp eax, 0x44
je 0x502db6
cmp eax, 0x5e
je 0x502da9
cmp eax, 0x24
je 0x502da9
cmp eax, 0x41
je 0x502da9
cmp eax, 0x5a
je 0x502da9
cmp eax, 0x7a
je 0x502da9
cmp eax, 0x62
je 0x502da9
cmp eax, 0x42
je 0x502da9
cmp eax, 0x47
je 0x502da9
cmp eax, 0x5c
je 0x502d9c
cmp eax, 0x6b
je 0x502d9c
cmp eax, 0x67
je 0x502d9c
push esi
mov edx, ecx
push esi
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x10], edx
call fcn.005000c0
mov ecx, edi
call fcn.00501ac0
jmp 0x502ba0
cmp dword [ebp - 0x1c], 0
jne 0x502d4b
movzx ecx, word [edi + 0xa8]
push esi
push esi
lea edx, [ebp - 0x10]
mov dword [ebp - 0x10], ecx
push edx
lea ecx, [ebp - 0x24]
call fcn.005000c0
mov ecx, edi
call fcn.00501ac0
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
jle 0x502dd0
push 0x20
call fcn.0053f7d7
mov esi, eax
add esp, 4
test esi, esi
je 0x502dc3
mov ecx, dword [ebp + 8]
mov eax, dword [ecx]
mov edx, eax
and edx, 8
push edx
and eax, 0x10
push eax
push ebx
lea ecx, [ebp - 0x24]
call fcn.004ffd50
push eax
mov ecx, esi
call fcn.005014d0
mov esi, eax
push esi
lea ecx, [edi + 0x14]
call fcn.00401203
jmp 0x502ddb
mov eax, dword [ebp + 8]
push eax
mov ecx, edi
call fcn.00503460
jmp 0x502dd9
mov ecx, dword [ebp + 8]
push ecx
mov ecx, edi
call fcn.005027d0
jmp 0x502dd9
mov edx, dword [ebp + 8]
push edx
mov ecx, edi
call fcn.00502560
jmp 0x502dd9
mov eax, dword [ebp + 8]
push eax
mov ecx, edi
call fcn.00501f70
jmp 0x502dd9
xor esi, esi
push esi
lea ecx, [edi + 0x14]
call fcn.00401203
jmp 0x502ddb
push 0
mov ecx, edi
call fcn.00501b60
mov esi, eax
lea ecx, [ebp - 0x24]
call fcn.004ff850
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 4
Function at 0x506d20
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59db40
mov eax, dword fs:[0]
push eax
sub esp, 0x64
mov eax, dword [0x5fae30]
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 esi, dword [ebp + 0xc]
xor eax, eax
mov ebx, eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], eax
mov eax, dword [0x5fe0bc]
push 1
push eax
lea ecx, [ebp - 0x60]
mov dword [ebp - 0x24], ebx
call fcn.00530b60
push esi
mov ecx, 0x5fe0c0
mov byte [ebp - 4], 1
call fcn.00505820
mov dword [ebp - 0x54], eax
cmp eax, dword [0x5fe0c4]
je 0x506db4
mov ecx, dword [eax + 0x1c]
add eax, 0xc
cmp dword [eax + 0x14], 0x10
jb 0x506d9c
mov eax, dword [eax]
push ecx
mov ecx, dword [esi + 0x10]
push eax
push ecx
push 0
mov ecx, esi
call fcn.00407a90
test eax, eax
js 0x506db4
lea eax, [ebp - 0x54]
jmp 0x506dc0
mov edx, dword [0x5fe0c4]
mov dword [ebp - 0x64], edx
lea eax, [ebp - 0x64]
mov eax, dword [eax]
lea ecx, [ebp - 0x60]
cmp eax, dword [0x5fe0c4]
je 0x506df8
mov esi, dword [eax + 0x28]
mov edi, dword [eax + 0x2c]
mov ebx, dword [eax + 0x30]
mov eax, dword [eax + 0x34]
mov dword [ebp - 0x64], eax
mov byte [ebp - 4], 0
call fcn.00530af0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x64]
mov dword [eax], esi
mov dword [eax + 4], edi
mov dword [eax + 8], ebx
jmp 0x506ee2
call fcn.00530b40
cmp dword [esi + 0x14], 0x10
jb 0x506e07
mov eax, dword [esi]
jmp 0x506e09
mov eax, esi
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x506eb2
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.0053f0e0
add esp, 0xc
lea ecx, [ebp - 0x60]
call fcn.00530b20
push 0xffffffffffffffff
push 0
mov edi, 0xf
push esi
lea ecx, [ebp - 0x50]
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x40], 0
mov byte [ebp - 0x50], 0
call fcn.004077b1
mov ebx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x28], edx
lea eax, [ebp - 0x50]
push eax
mov ecx, 0x5fe0c0
mov byte [ebp - 4], 2
call fcn.005065c0
push 0
push eax
lea ecx, [ebp - 0x68]
push ecx
mov ecx, 0x5fe0c0
call fcn.00506930
cmp dword [ebp - 0x3c], 0x10
jb 0x506ea4
mov edx, dword [ebp - 0x50]
push edx
call fcn.0053ed60
add esp, 4
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x40], 0
mov byte [ebp - 0x50], 0
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 0
call fcn.00530af0
mov eax, dword [ebp + 8]
mov dword [eax], ebx
jmp 0x506ed3
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x1c]
mov dword [eax + 4], ecx
mov ecx, dword [ebp - 0x18]
mov dword [eax + 8], edx
mov dword [eax + 0xc], ecx
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.0053fd20
mov esp, ebp
pop ebp
ret
Function at 0x5093a0
Capabilities:
Create raw socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59e2d0
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x5fae30]
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 esi, ecx
call fcn.00508f00
test eax, eax
je 0x5093e0
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 + 0x2c], ebx
jne 0x50942f
cmp dword [esi + 8], ebx
jne 0x509422
cmp eax, 1
je 0x509422
cmp eax, 6
jne 0x509418
push eax
push 1
cmp byte [esi + 0x4c], bl
jne 0x50940e
push 2
call dword [sym.imp.WS2_32.dll_socket]
jmp 0x509464
push 0x17
call dword [sym.imp.WS2_32.dll_socket]
jmp 0x509464
cmp eax, 0x11
jne 0x509467
push eax
push 2
jmp 0x5093ff
push eax
push 3
push 2
call dword [sym.imp.WS2_32.dll_socket]
jmp 0x509464
cmp dword [esi + 8], ebx
jne 0x509455
cmp eax, 1
je 0x509455
cmp eax, 6
jne 0x509447
push 1
push ebx
push ebx
push eax
push 1
jmp 0x50945c
cmp eax, 0x11
jne 0x509467
push 1
push ebx
push ebx
push eax
push 2
jmp 0x50945c
push 1
push ebx
push ebx
push eax
push 3
push 2
call dword [sym.imp.WS2_32.dll_WSASocketA]
mov dword [esi + 0x28], eax
cmp dword [esi + 0x28], 0xffffffff
jne 0x5094b6
push 6
push str.Create
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x1c], 0xf
mov dword [ebp - 0x20], ebx
mov byte [ebp - 0x30], bl
call fcn.00402a36
mov ecx, dword [esi + 4]
mov edx, dword [ecx + 4]
lea eax, [ebp - 0x30]
push eax
lea ecx, [edx + esi + 4]
mov byte [ebp - 4], 1
call fcn.00505df0
cmp dword [ebp - 0x1c], 0x10
jb 0x5094b2
mov eax, dword [ebp - 0x30]
push eax
call fcn.0053ed60
add esp, 4
xor eax, eax
jmp 0x509534
cmp dword [esi + 8], ebx
je 0x50952f
mov dword [ebp - 0x50], 1
call fcn.00505060
mov edx, dword [esi + 0x28]
push 4
lea ecx, [ebp - 0x50]
push ecx
push 2
push ebx
push edx
mov edi, eax
call dword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, edi
jne 0x50952f
push 6
push str.Create
lea ecx, [ebp - 0x4c]
mov dword [ebp - 0x38], 0xf
mov dword [ebp - 0x3c], ebx
mov byte [ebp - 0x4c], bl
call fcn.00402a36
mov ecx, dword [esi + 4]
mov edx, dword [ecx + 4]
lea eax, [ebp - 0x4c]
push eax
lea ecx, [edx + esi + 4]
mov byte [ebp - 4], 2
call fcn.00505df0
cmp dword [ebp - 0x38], 0x10
jb 0x5094b2
mov eax, dword [ebp - 0x4c]
push eax
call fcn.0053ed60
add esp, 4
xor eax, eax
jmp 0x509534
mov eax, 1
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.0053fd20
mov esp, ebp
pop ebp
ret 4
Function at 0x509800
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59e3b8
mov eax, dword fs:[0]
push eax
sub esp, 0x74
mov eax, dword [0x5fae30]
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 - 0x80], eax
mov dword [ebp - 4], 0
call fcn.00508f00
test eax, eax
je 0x509944
test edx, edx
je 0x509944
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x509944
cmp byte [esi + 0xc], 6
je 0x5098f3
lea ecx, [ebp - 0x7c]
push ecx
lea ecx, [ebp - 0x24]
push ecx
push 0
push eax
push edx
mov ecx, esi
mov dword [ebp - 0x7c], 0x10
call fcn.00508f10
push eax
call dword [sym.imp.WS2_32.dll_recvfrom]
mov edi, eax
call fcn.00505060
cmp edi, eax
je 0x5098b5
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 - 0x80]
mov word [ecx], ax
mov eax, edi
jmp 0x50995c
push str.Receive
lea ecx, [ebp - 0x40]
call fcn.00403dfa
mov eax, dword [esi + 4]
mov ecx, dword [eax + 4]
lea edx, [ebp - 0x40]
push edx
lea ecx, [ecx + esi + 4]
mov byte [ebp - 4], 1
call fcn.00505df0
lea ecx, [ebp - 0x40]
call fcn.0040583f
mov eax, dword [ebp - 0x80]
xor edx, edx
mov dword [ebx], 0
mov word [eax], dx
mov eax, edi
jmp 0x50995c
push str.Cant_run_on_TCP_socket_
lea ecx, [ebp - 0x5c]
call fcn.00403dfa
push str.Receive
lea ecx, [ebp - 0x78]
mov byte [ebp - 4], 2
call fcn.00403dfa
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 - 0x5c]
push edx
lea edx, [ebp - 0x78]
push edx
mov byte [ebp - 4], 3
call eax
lea ecx, [ebp - 0x78]
call fcn.0040583f
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 0
call fcn.0040583f
call fcn.00505060
jmp 0x50995c
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.0053fd20
mov esp, ebp
pop ebp
ret 0x10
Function at 0x509980
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59e3f0
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x5fae30]
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.00508f00
test eax, eax
je 0x509abd
test edx, edx
je 0x509abd
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x509abd
mov ebx, dword [ebp + 0x10]
mov eax, ebx
neg eax
sbb eax, eax
and eax, 2
cmp byte [esi + 0xc], 6
je 0x509a31
lea edi, [ebp - 0x50]
push edi
lea edi, [ebp - 0x24]
push edi
push eax
push ecx
push edx
mov ecx, esi
mov dword [ebp - 0x50], 0x10
call fcn.00508f10
push eax
call dword [sym.imp.WS2_32.dll_recvfrom]
mov edi, eax
call fcn.00505060
cmp edi, eax
je 0x509a44
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x1c]
mov dword [esi + 0x30], eax
mov eax, dword [ebp - 0x18]
mov dword [esi + 0x34], ecx
mov dword [esi + 0x38], edx
mov dword [esi + 0x3c], eax
jmp 0x509a44
push eax
push ecx
push edx
mov ecx, esi
call fcn.00508f10
push eax
call dword [sym.imp.WS2_32.dll_recv]
mov edi, eax
call fcn.00505060
cmp edi, eax
jne 0x509ab9
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x2733
je 0x509ab9
test ebx, ebx
jne 0x509a8d
push str.Receive
lea ecx, [ebp - 0x30]
call fcn.00403dfa
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.00505df0
lea ecx, [ebp - 0x30]
call fcn.0040583f
mov eax, edi
jmp 0x509ad5
push str.Peek
lea ecx, [ebp - 0x4c]
call fcn.00403dfa
mov edx, dword [esi + 4]
mov eax, dword [edx + 4]
lea ecx, [ebp - 0x4c]
push ecx
lea ecx, [eax + esi + 4]
mov byte [ebp - 4], 2
call fcn.00505df0
lea ecx, [ebp - 0x4c]
call fcn.0040583f
mov eax, edi
jmp 0x509ad5
call fcn.00505060
jmp 0x509ad5
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.0053fd20
mov esp, ebp
pop ebp
ret 0xc
Function at 0x50a1b0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59e558
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x5fae30]
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 edi, edi
mov esi, ecx
mov dword [ebp - 4], edi
call fcn.00509560
cmp eax, edi
je 0x50a25a
push 4
lea eax, [ebp - 0x34]
push eax
push 4
mov ebx, 1
push 0xffff
mov ecx, esi
mov dword [ebp - 0x34], ebx
call fcn.00508f10
push eax
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
je 0x50a278
push 0xc
push str.ReuseAddress
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x1c], 0xf
mov dword [ebp - 0x20], edi
mov byte [ebp - 0x30], 0
call fcn.00402a36
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.00505df0
cmp dword [ebp - 0x1c], 0x10
jb 0x50a25a
mov ecx, dword [ebp - 0x30]
push ecx
call fcn.0053ed60
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.0053fd20
mov esp, ebp
pop ebp
ret
mov eax, ebx
jmp 0x50a25c

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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59e5a8
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x5fae30]
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.00509560
test eax, eax
jne 0x50a34d
call fcn.00505060
jmp 0x50a416
cmp dword [ebp + 0x10], 0
je 0x50a357
test ebx, ebx
je 0x50a343
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.00505060
xor ecx, ecx
test eax, eax
sete cl
mov esi, ecx
call fcn.00505060
cmp esi, eax
je 0x50a3b6
mov eax, dword [ebp + 0x10]
push 0x10
lea edx, [ebp - 0x24]
push edx
push 0
push eax
push ebx
mov ecx, edi
call fcn.00508f10
push eax
call dword [sym.imp.WS2_32.dll_sendto]
mov esi, eax
call fcn.00505060
cmp esi, eax
jne 0x50a401
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x2733
je 0x50a401
push str.Send
lea ecx, [ebp - 0x40]
call fcn.00403dfa
mov edx, dword [edi + 4]
mov eax, dword [edx + 4]
lea ecx, [ebp - 0x40]
push ecx
lea ecx, [eax + edi + 4]
mov byte [ebp - 4], 1
call fcn.00505df0
cmp dword [ebp - 0x2c], 0x10
jb 0x50a401
mov ecx, dword [ebp - 0x40]
push ecx
call fcn.0053ed60
add esp, 4
mov eax, esi
jmp 0x50a416
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.0053fd20
mov esp, ebp
pop ebp
ret 0x10
Function at 0x50a6e0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59e648
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x5fae30]
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.00509560
cmp eax, ebx
je 0x50a784
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp - 0x40]
push ecx
mov edi, 0x10
mov ecx, esi
mov dword [ebp - 0x44], edi
call fcn.00508f10
push eax
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x50a7a2
push 4
push str.Bind
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x1c], 0xf
mov dword [ebp - 0x20], ebx
mov byte [ebp - 0x30], bl
call fcn.00402a36
mov eax, dword [esi + 4]
mov ecx, dword [eax + 4]
lea edx, [ebp - 0x30]
push edx
lea ecx, [ecx + esi + 4]
mov byte [ebp - 4], 1
call fcn.00505df0
cmp dword [ebp - 0x1c], edi
jb 0x50a784
mov edx, dword [ebp - 0x30]
push edx
call fcn.0053ed60
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.0053fd20
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x3e]
push eax
call dword [sym.imp.WS2_32.dll_htons]
jmp 0x50a786
Function at 0x50ae00
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59e7e0
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x5fae30]
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.00509560
cmp eax, ebx
je 0x50af97
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.00508f10
push 0x10
lea ecx, [ebp - 0x24]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_connect]
mov edi, eax
mov dword [ebp - 0x60], ebx
call fcn.00505060
cmp edi, eax
jne 0x50aefd
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x50aee6
push 7
push str.Connect
lea ecx, [ebp - 0x5c]
mov dword [ebp - 0x48], 0xf
mov dword [ebp - 0x4c], ebx
mov byte [ebp - 0x5c], bl
call fcn.00402a36
mov eax, dword [esi + 4]
mov ecx, dword [eax + 4]
lea edx, [ebp - 0x5c]
push edx
lea ecx, [ecx + esi + 4]
mov byte [ebp - 4], 1
call fcn.00505df0
cmp dword [ebp - 0x48], 0x10
mov byte [ebp - 4], bl
jb 0x50af52
mov edx, dword [ebp - 0x5c]
push edx
call fcn.0053ed60
add esp, 4
jmp 0x50af52
mov dword [ebp - 0x60], 1
call fcn.00505060
xor ecx, ecx
cmp eax, ebx
sete cl
mov edi, ecx
jmp 0x50af52
push 7
push str.Connect
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x2c], 0xf
mov dword [ebp - 0x30], ebx
mov byte [ebp - 0x40], bl
call fcn.00402a36
mov eax, dword [esi + 4]
mov ecx, dword [eax + 4]
lea edx, [ebp - 0x40]
push edx
lea ecx, [ecx + esi + 4]
mov byte [ebp - 4], 2
call fcn.00505df0
cmp dword [ebp - 0x2c], 0x10
mov byte [ebp - 4], bl
jb 0x50af45
mov edx, dword [ebp - 0x40]
push edx
call fcn.0053ed60
add esp, 4
mov dword [ebp - 0x2c], 0xf
mov dword [ebp - 0x30], ebx
mov byte [ebp - 0x40], bl
call fcn.00505060
cmp edi, eax
je 0x50af7c
mov eax, dword [esi]
mov edx, dword [eax + 0x3c]
mov ecx, esi
call edx
cmp eax, ebx
jne 0x50af71
push 1
mov ecx, esi
call fcn.0050a9e0
lea eax, [ebp - 0x24]
push eax
mov ecx, esi
call fcn.00509040
cmp dword [ebp - 0x60], ebx
jne 0x50af97
call fcn.00505060
xor ecx, ecx
cmp edi, eax
setne cl
mov eax, ecx
jmp 0x50af99
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.0053fd20
mov esp, ebp
pop ebp
ret 0xc
Function at 0x50b2c0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59e8b8
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x5fae30]
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 esi, dword [ebp + 8]
xor ebx, ebx
mov edi, ecx
mov dword [ebp - 4], ebx
call fcn.00509560
cmp eax, ebx
je 0x50b36f
mov ecx, edi
call fcn.00508f10
mov ecx, dword [ebp + 0xc]
push ebx
push ecx
push esi
push eax
call dword [sym.imp.WS2_32.dll_send]
mov esi, eax
call fcn.00505060
cmp esi, eax
jne 0x50b365
push 4
push str.Send
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x1c], 0xf
mov dword [ebp - 0x20], ebx
mov byte [ebp - 0x30], bl
call fcn.00402a36
mov eax, dword [edi + 4]
mov ecx, dword [eax + 4]
lea edx, [ebp - 0x30]
push edx
lea ecx, [ecx + edi + 4]
mov byte [ebp - 4], 1
call fcn.00505df0
cmp dword [ebp - 0x1c], 0x10
jb 0x50b365
mov edx, dword [ebp - 0x30]
push edx
call fcn.0053ed60
add esp, 4
mov eax, esi
jmp 0x50b371
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.0053fd20
mov esp, ebp
pop ebp
ret 8
Function at 0x50b390
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59e8f8
mov eax, dword fs:[0]
push eax
sub esp, 0x60
mov eax, dword [0x5fae30]
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 edi, ecx
mov dword [ebp - 4], ebx
call fcn.00509560
cmp eax, ebx
je 0x50b4cc
mov ecx, edi
call fcn.00508f10
mov esi, eax
call fcn.00505060
push 4
mov dword [ebp - 0x6c], eax
lea eax, [ebp + 8]
push eax
push 0x1001
push 0xffff
push esi
call dword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, dword [ebp - 0x6c]
jne 0x50b4ec
push 0x22
mov esi, 0xf
push str.Failed_to_set_outgoing_buffer_size
lea ecx, [ebp - 0x4c]
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x3c], ebx
mov byte [ebp - 0x4c], bl
call fcn.00402a36
push 0x13
push str.SetSocketSendBuffer
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 1
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], ebx
mov byte [ebp - 0x30], bl
call fcn.00402a36
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 - 0x1c], 0x10
jb 0x50b46d
mov ecx, dword [ebp - 0x30]
push ecx
call fcn.0053ed60
add esp, 4
cmp dword [ebp - 0x38], 0x10
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], ebx
mov byte [ebp - 0x30], bl
mov byte [ebp - 4], bl
jb 0x50b48b
mov edx, dword [ebp - 0x4c]
push edx
call fcn.0053ed60
add esp, 4
push 0x13
push str.SetSocketSendBuffer
lea ecx, [ebp - 0x68]
mov dword [ebp - 0x54], esi
mov dword [ebp - 0x58], ebx
mov byte [ebp - 0x68], bl
call fcn.00402a36
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.00505df0
cmp dword [ebp - 0x54], 0x10
jb 0x50b4cc
mov eax, dword [ebp - 0x68]
push eax
call fcn.0053ed60
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.0053fd20
mov esp, ebp
pop ebp
ret 4
mov eax, 1
jmp 0x50b4ce