Function at 0x140011311
Capabilities:
Create raw socket
Create tcp socket
Create udp socket
Get hostname
Initialize winsock library
Receive data
Receive data on socket
Resolve dns
Set socket configuration

Disassembly:
jmp 0x140012290
push rbp
push rdi
mov eax, 0x10cf8
call fcn.1400110e1
sub rsp, rax
lea rbp, [rsp + 0x50]
lea rdi, [rsp + 0x50]
mov ecx, 0x41aa
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rax, qword [0x14001f008]
xor rax, rbp
mov qword [rbp + 0x10c98], rax
lea rcx, [0x1400250aa]
call fcn.14001146f
lea rdx, [rbp + 0x10]
mov cx, 0x202
call qword [sym.imp.WS2_32.dll_WSAStartup]
mov dword [rsp + 0x28], 1
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov edx, 3
mov ecx, 2
call qword [sym.imp.WS2_32.dll_WSASocketW]
mov qword [rbp + 0x1c8], rax
mov edx, 0x100
lea rcx, [rbp + 0x1f0]
call qword [sym.imp.WS2_32.dll_gethostname]
lea rcx, [rbp + 0x1f0]
call qword [sym.imp.WS2_32.dll_gethostbyname]
mov qword [rbp + 0x308], rax
mov eax, 2
mov word [rbp + 0x328], ax
mov cx, 0x1f40
call qword [sym.imp.WS2_32.dll_htons]
mov word [rbp + 0x32a], ax
mov eax, 8
imul rax, rax, 0
mov rcx, qword [rbp + 0x308]
mov rcx, qword [rcx + 0x18]
mov rax, qword [rax + rcx]
mov eax, dword [rax]
mov dword [rbp + 0x32c], eax
mov r8d, reloc.WS2_32.dll_recv
lea rdx, [rbp + 0x328]
mov rcx, qword [rbp + 0x1c8]
call qword [sym.imp.WS2_32.dll_bind]
mov dword [rbp + 0x394], 1
mov dword [rbp + 0x3b4], 0
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x38], 0
lea rax, [rbp + 0x3b4]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 0x28
lea rax, [rbp + 0x358]
mov qword [rsp + 0x20], rax
mov r9d, 4
lea r8, [rbp + 0x394]
mov edx, 0x98000001
mov rcx, qword [rbp + 0x1c8]
call qword [sym.imp.WS2_32.dll_WSAIoctl]
mov dword [rbp + 0x3d4], 1
lea r8, [rbp + 0x3d4]
mov edx, 0x8004667e
mov rcx, qword [rbp + 0x1c8]
call qword [sym.imp.WS2_32.dll_ioctlsocket]
mov edx, 0x100
lea rcx, [rbp + 0x400]
call qword [sym.imp.WS2_32.dll_gethostname]
cmp eax, 0xffffffff
jne 0x140012436
lea rcx, str.Gethostname_failed__n
call fcn.14001120d
lea rcx, [rbp + 0x400]
call qword [sym.imp.WS2_32.dll_gethostbyname]
mov qword [rbp + 0x518], rax
cmp qword [rbp + 0x518], 0
jne 0x140012460
lea rcx, str.Gethostbyname_failed__n
call fcn.14001120d
mov dword [rbp + 0x534], 0
mov dword [rbp + 0x534], 0
jmp 0x140012484
mov eax, dword [rbp + 0x534]
inc eax
mov dword [rbp + 0x534], eax
cmp dword [rbp + 0x534], 3
jge 0x140012503
movsxd rax, dword [rbp + 0x534]
mov rcx, qword [rbp + 0x518]
mov rcx, qword [rcx + 0x18]
cmp qword [rcx + rax*8], 0
je 0x1400124fe
movsxd rax, dword [rbp + 0x534]
mov rcx, qword [rbp + 0x518]
mov rcx, qword [rcx + 0x18]
mov rax, qword [rcx + rax*8]
mov eax, dword [rax]
mov dword [rbp + 0x554], eax
movzx eax, byte [rbp + 0x557]
movzx ecx, byte [rbp + 0x556]
movzx edx, byte [rbp + 0x555]
movzx r8d, byte [rbp + 0x554]
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], ecx
mov r9d, edx
mov edx, dword [rbp + 0x534]
lea rcx, str._cardSn:_d___d._d._d._d___n
call fcn.14001120d
jmp 0x140012476
lea rcx, [0x14001c338]
call fcn.14001120d
lea rdx, [rbp + 0x574]
lea rcx, [0x14001c354]
call fcn.1400110be
cmp dword [rbp + 0x574], 0
jb 0x140012534
cmp dword [rbp + 0x574], 2
jbe 0x140012540
lea rcx, [0x14001c358]
call fcn.14001120d
mov eax, dword [rbp + 0x574]
mov rcx, qword [rbp + 0x518]
mov rcx, qword [rcx + 0x18]
cmp qword [rcx + rax*8], 0
je 0x1400125b1
mov eax, dword [rbp + 0x574]
mov rcx, qword [rbp + 0x518]
mov rcx, qword [rcx + 0x18]
mov rax, qword [rcx + rax*8]
mov eax, dword [rax]
mov dword [rbp + 0x594], eax
movzx eax, byte [rbp + 0x597]
movzx ecx, byte [rbp + 0x596]
movzx edx, byte [rbp + 0x595]
movzx r8d, byte [rbp + 0x594]
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], ecx
mov r9d, edx
mov edx, dword [rbp + 0x574]
lea rcx, [0x14001c380]
call fcn.14001120d
jmp 0x1400125bd
lea rcx, [0x14001c3b0]
call fcn.14001120d
xor ecx, ecx
call fcn.1400129b0
mov qword [rbp + 0x5b8], rax
mov qword [rbp + 0x5d8], 0xa
lea rcx, [rbp + 0x10618]
call fcn.1400111d1
nop
xor eax, eax
cmp eax, 1
je 0x140012697
xor r9d, r9d
mov r8d, 0xffff
lea rdx, [rbp + 0x600]
mov rcx, qword [rbp + 0x1c8]
call qword [sym.imp.WS2_32.dll_recv]
mov dword [rbp + 0x10644], eax
cmp dword [rbp + 0x10644], 0
jle 0x140012679
lea rax, [rbp + 0x600]
mov qword [rbp + 0x10668], rax
mov rax, qword [rbp + 0x10668]
mov ecx, dword [rbp + 0x32c]
cmp dword [rax + 0xc], ecx
je 0x14001264c
mov rax, qword [rbp + 0x10668]
mov ecx, dword [rbp + 0x32c]
cmp dword [rax + 0x10], ecx
jne 0x140012679
mov rax, qword [rbp + 0x10668]
movzx r9d, byte [rax + 9]
mov rax, qword [rbp + 0x10668]
mov r8d, dword [rax + 0x10]
mov rax, qword [rbp + 0x10668]
mov edx, dword [rax + 0xc]
lea rcx, [rbp + 0x10618]
call fcn.1400113b6
xor ecx, ecx
call fcn.1400129b0
sub rax, qword [rbp + 0x5b8]
cmp rax, qword [rbp + 0x5d8]
jle 0x140012692
jmp 0x140012697
jmp 0x1400125e3
lea rcx, [rbp + 0x10618]
call fcn.14001145b
mov dword [rbp + 0x10c84], 0
lea rcx, [rbp + 0x10618]
call fcn.140011014
mov eax, dword [rbp + 0x10c84]
mov edi, eax
lea rcx, [rbp - 0x50]
lea rdx, [0x14001be48]
call fcn.1400113ca
mov eax, edi
mov rcx, qword [rbp + 0x10c98]
xor rcx, rbp
call fcn.140011226
lea rsp, [rbp + 0x10ca8]
pop rdi
pop rbp
ret