Function at 0x140151d70
Capabilities:
Create tcp socket
Create udp socket
Extract resource via kernel32 functions
Receive data
Receive data on socket
Resolve dns
Send data
Send data on socket
Set socket configuration

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
mov eax, 0x1188
call fcn.1401e9500
sub rsp, rax
mov qword [rsp + 0x1150], 0xfffffffffffffffe
mov rax, qword [0x1402bd5c0]
xor rax, rsp
mov qword [rsp + 0x1178], rax
mov edx, 0xa
lea rcx, [rsp + 0x58]
call fcn.14001b590
nop
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_gethostbyname]
mov qword [rsp + 0x98], rax
mov dword [rsp + 0x90], 0
cmp qword [rsp + 0x98], 0
je 0x1401521dc
movsxd rcx, dword [rsp + 0x90]
mov rax, qword [rsp + 0x98]
mov rax, qword [rax + 0x18]
cmp qword [rax + rcx*8], 0
je 0x1401521dc
movsxd rcx, dword [rsp + 0x90]
mov rax, qword [rsp + 0x98]
mov rax, qword [rax + 0x18]
mov rax, qword [rax + rcx*8]
mov eax, dword [rax]
mov dword [rsp + 0xf4], eax
mov eax, dword [rsp + 0x90]
add eax, 1
mov dword [rsp + 0x90], eax
xor r8d, r8d
mov edx, 2
mov ecx, 2
call qword [sym.imp.WS2_32.dll_socket]
mov qword [rsp + 0xe0], rax
mov dword [rsp + 0xcc], 1
mov dword [rsp + 0xf0], 0
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0xcc]
mov r8d, 0x20
mov edx, 0xffff
mov rcx, qword [rsp + 0xe0]
call qword [sym.imp.WS2_32.dll_setsockopt]
mov dword [rsp + 0xf0], eax
mov dword [rsp + 0x100], 0
mov dword [rsp + 0xec], 0
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0xec]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9d, 4
lea r8, [rsp + 0x100]
mov edx, 0x9800000c
mov rcx, qword [rsp + 0xe0]
call qword [sym.imp.WS2_32.dll_WSAIoctl]
mov dword [rsp + 0xf0], eax
mov dword [rsp + 0xe8], 1
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0xe8]
mov r8d, 4
mov edx, 0xffff
mov rcx, qword [rsp + 0xe0]
call qword [sym.imp.WS2_32.dll_setsockopt]
mov r8d, reloc.OLEAUT32.dll_SafeArrayGetDim
xor edx, edx
lea rcx, [rsp + 0xa8]
call fcn.1400a9850
mov r11d, 2
mov word [rsp + 0xa8], r11w
mov eax, dword [rsp + 0xf4]
mov dword [rsp + 0xac], eax
mov cx, 0x44
call qword [sym.imp.WS2_32.dll_htons]
mov word [rsp + 0xaa], ax
mov r8d, reloc.OLEAUT32.dll_SafeArrayGetDim
lea rdx, [rsp + 0xa8]
mov rcx, qword [rsp + 0xe0]
call qword [sym.imp.WS2_32.dll_bind]
mov dword [rsp + 0xf0], eax
call fcn.14000dda0
lea r8, str.dhcp
lea rdx, str.dhcp.bin
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov qword [rsp + 0xf8], rax
cmp qword [rsp + 0xf8], 0
jne 0x140151fea
mov dword [rsp + 0x1118], 0
lea rcx, [rsp + 0x58]
call fcn.14001b7f0
mov eax, dword [rsp + 0x1118]
jmp 0x14015234f
call fcn.14000dda0
mov rdx, qword [rsp + 0xf8]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [rsp + 0xc8], eax
call fcn.14000dda0
mov rdx, qword [rsp + 0xf8]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov qword [rsp + 0xd8], rax
mov ecx, dword [rsp + 0xc8]
call fcn.140073290
mov qword [rsp + 0x1120], rax
mov rax, qword [rsp + 0x1120]
mov qword [rsp + 0xc0], rax
mov r8d, dword [rsp + 0xc8]
mov rdx, qword [rsp + 0xd8]
mov rcx, qword [rsp + 0xc0]
call fcn.1400aa500
mov dword [rsp + 0xd0], 6
mov r8, qword [rsp + 0xc0]
add r8, 0x1c
lea r9, [rsp + 0xd0]
mov edx, dword [rsp + 0xf4]
mov ecx, dword [rsp + 0xf4]
call sub.IPHLPAPI.DLL_SendARP
mov dword [rsp + 0xb8], eax
lea rcx, str.255.255.255.255
call qword [sym.imp.WS2_32.dll_inet_addr]
mov dword [rsp + 0xac], eax
mov cx, 0x43
call qword [sym.imp.WS2_32.dll_htons]
mov word [rsp + 0xaa], ax
mov dword [rsp + 0x28], reloc.OLEAUT32.dll_SafeArrayGetDim
lea rax, [rsp + 0xa8]
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov r8d, dword [rsp + 0xc8]
mov rdx, qword [rsp + 0xc0]
mov rcx, qword [rsp + 0xe0]
call qword [sym.imp.WS2_32.dll_sendto]
mov rax, qword [rsp + 0xc0]
mov qword [rsp + 0x1128], rax
mov rcx, qword [rsp + 0x1128]
call fcn.140073288
mov edx, 2
mov rcx, qword [rsp + 0xe0]
call fcn.1400d9910
test eax, eax
je 0x1401521ab
mov dword [rsp + 0x1110], 0x10
lea rax, [rsp + 0x1110]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0xa8]
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov r8d, 0x1000
lea rdx, [rsp + 0x110]
mov rcx, qword [rsp + 0xe0]
call qword [sym.imp.WS2_32.dll_recvfrom]
mov ecx, dword [rsp + 0xac]
call fcn.1400d97b0
test eax, eax
je 0x14015218d
jmp 0x140152121
mov r8d, dword [rsp + 0xac]
mov edx, dword [rsp + 0xac]
lea rcx, [rsp + 0x58]
call fcn.14001b610
jmp 0x140152121
mov edx, 2
mov rcx, qword [rsp + 0xe0]
call qword [sym.imp.WS2_32.dll_shutdown]
mov ecx, 0xa
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rcx, qword [rsp + 0xe0]
call qword [sym.imp.WS2_32.dll_closesocket]
jmp 0x140151dd0
lea rcx, [rsp + 0x58]
call fcn.1400129f0
test rax, rax
jne 0x14015220c
mov dword [rsp + 0x1130], 1
lea rcx, [rsp + 0x58]
call fcn.14001b7f0
mov eax, dword [rsp + 0x1130]
jmp 0x14015234f
lea rcx, [rsp + 0x58]
call fcn.140025930
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x1401522cf
lea r9, [rsp + 0x1114]
lea r8, [rsp + 0x1114]
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x58]
call fcn.14001b640
mov r11d, dword [rsp + 0x1114]
mov dword [rsp + 0xac], r11d
mov ecx, dword [rsp + 0xac]
call qword [sym.imp.WS2_32.dll_inet_ntoa]
mov rdx, rax
lea rcx, [rsp + 0x1138]
call fcn.14000f540
mov qword [rsp + 0x1158], rax
mov rax, qword [rsp + 0x1158]
mov qword [rsp + 0x1160], rax
mov rcx, qword [rsp + 0x1160]
call fcn.14000f5d0
mov rdx, rax
mov rcx, qword [rsp + 0x1198]
call fcn.140006080
nop
lea rcx, [rsp + 0x1138]
call fcn.140002dd0
lea rdx, [0x14024bb88]
mov rcx, qword [rsp + 0x1198]
call fcn.140006080
jmp 0x14015221b
mov rcx, qword [rsp + 0x1198]
call fcn.1400019a0
mov r8d, eax
sub r8d, 2
lea rdx, [rsp + 0x1140]
mov rcx, qword [rsp + 0x1198]
call fcn.140006ba0
mov qword [rsp + 0x1168], rax
mov rax, qword [rsp + 0x1168]
mov qword [rsp + 0x1170], rax
mov rdx, qword [rsp + 0x1170]
mov rcx, qword [rsp + 0x1198]
call fcn.140002ce0
nop
lea rcx, [rsp + 0x1140]
call fcn.140007060
mov dword [rsp + 0x1148], 0
lea rcx, [rsp + 0x58]
call fcn.14001b7f0
mov eax, dword [rsp + 0x1148]
mov rcx, qword [rsp + 0x1178]
xor rcx, rsp
call fcn.1400a9820
add rsp, 0x1188
ret