Function at 0x1400dc340
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rbp
push rdi
mov eax, 0x4a78
call fcn.1400da221
sub rsp, rax
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0x1112
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov byte [rbp + 0x4a24], 0
lea rcx, reloc.WS2_32.dll_accept
call fcn.1400dabe5
mov rax, qword [0x1402b15d8]
mov qword [rbp + 8], rax
movzx eax, word [0x1402b10ac]
mov word [rbp + 0x24], ax
mov byte [rbp + 0x41c4], 0
cmp dword [0x1402b10ac], 0
jne 0x1400dc3c0
movzx eax, byte [0x1402b14f4]
test eax, eax
je 0x1400dc3c0
lea rdx, str.API_disabled
mov ecx, 4
call fcn.1400da4f1
jmp 0x1400dcc71
cmp qword [0x1402b15d8], 0
je 0x1400dc3f0
call fcn.1400dd800
cmp dword [reloc.WS2_32.dll_accept], 0
jne 0x1400dc3f0
mov r8, qword [str.___API_will_not_be_available]
lea rdx, str.API_not_running__no_valid_IPs_specified__s
mov ecx, 1
call fcn.1400da4f1
mov edx, 8
mov ecx, 1
call qword [sym.imp.ucrtbased.dll_calloc]
mov qword [rbp + 0x4268], rax
mov rax, qword [rbp + 0x4268]
mov qword [rax], 0xffffffffffffffff
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
xor r8d, r8d
mov edx, 1
mov ecx, 2
call qword [sym.imp.WS2_32.dll_socket]
mov rcx, qword [rbp + 0x4268]
mov qword [rcx], rax
mov rax, qword [rbp + 0x4268]
cmp qword [rax], 0xffffffffffffffff
jne 0x1400dc475
call qword [sym.imp.ucrtbased.dll__errno]
mov ecx, dword [rax]
call qword [sym.imp.ucrtbased.dll_strerror]
mov r9, qword [str.___API_will_not_be_available]
mov r8, rax
lea rdx, str.API_initialisation_failed___s__s
xor ecx, ecx
call fcn.1400da4f1
jmp 0x1400dcc71
mov r8d, reloc.WS2_32.dll_recv
xor edx, edx
lea rcx, [rbp + 0x4148]
call fcn.1400da8ed
mov eax, 2
mov word [rbp + 0x4148], ax
mov rcx, qword [rbp + 8]
call qword [sym.imp.WS2_32.dll_inet_addr]
mov dword [rbp + 0x414c], eax
cmp dword [rbp + 0x414c], 0xffffffff
jne 0x1400dc4d9
call qword [sym.imp.ucrtbased.dll__errno]
mov ecx, dword [rax]
call qword [sym.imp.ucrtbased.dll_strerror]
mov r9, qword [str.___API_will_not_be_available]
mov r8, rax
lea rdx, str.API_initialisation_2_failed___s__s
xor ecx, ecx
call fcn.1400da4f1
jmp 0x1400dcc71
movzx ecx, word [rbp + 0x24]
call qword [sym.imp.WS2_32.dll_htons]
mov word [rbp + 0x414a], ax
mov dword [rbp + 0x40a4], 0
xor ecx, ecx
call fcn.1400de070
mov qword [rbp + 0x4128], rax
cmp dword [rbp + 0x40a4], 0
jne 0x1400dc5ae
mov r8d, reloc.WS2_32.dll_recv
lea rdx, [rbp + 0x4148]
mov rax, qword [rbp + 0x4268]
mov rcx, qword [rax]
call qword [sym.imp.WS2_32.dll_bind]
test eax, eax
jge 0x1400dc59f
call qword [sym.imp.ucrtbased.dll__errno]
mov ecx, dword [rax]
call qword [sym.imp.ucrtbased.dll_strerror]
mov byte [rbp + 0x4a24], 1
mov qword [rbp + 0x40e8], rax
xor ecx, ecx
call fcn.1400de070
sub rax, qword [rbp + 0x4128]
cmp rax, 0x3d
jle 0x1400dc564
jmp 0x1400dc5ae
movzx eax, byte [0x1402b14f7]
test eax, eax
je 0x1400dc57a
movzx eax, byte [0x1402b14f4]
test eax, eax
je 0x1400dc592
movzx eax, word [rbp + 0x24]
mov r8d, eax
lea rdx, str.API_bind_to_port__d_failed___trying_again_in_20sec
mov ecx, 1
call fcn.1400da4f1
mov ecx, 0x4e20
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1400dc5a9
mov dword [rbp + 0x40a4], 1
jmp 0x1400dc502
cmp dword [rbp + 0x40a4], 0
jne 0x1400dc609
cmp byte [rbp + 0x4a24], 0
jne 0x1400dc5cc
lea rcx, str.binderror
call fcn.1400da1e0
movzx eax, word [rbp + 0x24]
mov rcx, qword [str.___API_will_not_be_available]
mov qword [rsp + 0x20], rcx
mov r9, qword [rbp + 0x40e8]
mov r8d, eax
lea rdx, str.API_bind_to_port__d_failed___s__s
mov ecx, 1
call fcn.1400da4f1
mov rcx, qword [rbp + 0x4268]
call qword [sym.imp.ucrtbased.dll_free]
jmp 0x1400dcc71
mov edx, 0xa
mov rax, qword [rbp + 0x4268]
mov rcx, qword [rax]
call qword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
jne 0x1400dc66b
call qword [sym.imp.ucrtbased.dll__errno]
mov ecx, dword [rax]
call qword [sym.imp.ucrtbased.dll_strerror]
mov r9, qword [str.___API_will_not_be_available]
mov r8, rax
lea rdx, str.API_initialisation_3_failed___s__s
xor ecx, ecx
call fcn.1400da4f1
mov rax, qword [rbp + 0x4268]
mov rcx, qword [rax]
call qword [sym.imp.WS2_32.dll_closesocket]
mov rcx, qword [rbp + 0x4268]
call qword [sym.imp.ucrtbased.dll_free]
jmp 0x1400dcc71
mov edx, 0x4001
mov ecx, 1
call qword [sym.imp.ucrtbased.dll_calloc]
mov qword [0x1402b14a8], rax
mov qword [rbp + 0x41e8], 0
cmp dword [0x1402b14b8], 0
jne 0x1400dcc47
mov rax, qword [rbp + 0x41e8]
inc rax
mov qword [rbp + 0x41e8], rax
mov dword [rbp + 0x41a4], reloc.WS2_32.dll_recv
lea r8, [rbp + 0x41a4]
lea rdx, [rbp + 0x4178]
mov rax, qword [rbp + 0x4268]
mov rcx, qword [rax]
call qword [sym.imp.WS2_32.dll_accept]
mov dword [rbp + 0x4064], eax
cmp dword [rbp + 0x4064], 0xffffffff
jne 0x1400dc737
call qword [sym.imp.ucrtbased.dll__errno]
mov ecx, dword [rax]
call qword [sym.imp.ucrtbased.dll_strerror]
mov r9, qword [str.___API_will_not_be_available]
mov r8, rax
lea rdx, str.API_failed___s__s
xor ecx, ecx
call fcn.1400da4f1
mov rax, qword [rbp + 0x4268]
mov rcx, qword [rax]
call qword [sym.imp.WS2_32.dll_closesocket]
mov rcx, qword [rbp + 0x4268]
call qword [sym.imp.ucrtbased.dll_free]
mov rcx, qword [0x1402b14a8]
call qword [sym.imp.ucrtbased.dll_free]
jmp 0x1400dcc71
lea r8, [rbp + 0x4104]
lea rdx, [rbp + 0x40c8]
lea rcx, [rbp + 0x4178]
call fcn.1400dd4b0
mov byte [rbp + 0x41c4], al
movzx eax, byte [0x1402b14f4]
test eax, eax
je 0x1400dc7b5
movzx eax, byte [0x1402b14f6]
test eax, eax
je 0x1400dc7b5
movzx eax, byte [rbp + 0x41c4]
test eax, eax
je 0x1400dc788
lea rax, str.Accepted
mov qword [rbp + 0x4a38], rax
jmp 0x1400dc796
lea rax, str.Ignored
mov qword [rbp + 0x4a38], rax
mov r9, qword [rbp + 0x4a38]
mov r8, qword [rbp + 0x40c8]
lea rdx, str.API:_connection_from__s____s
mov ecx, 4
call fcn.1400da4f1
movzx eax, byte [rbp + 0x41c4]
test eax, eax
je 0x1400dcc42
mov qword [rbp + 0x42a8], 0
mov eax, 1
imul rax, rax, 0
lea rax, [rbp + rax + 0x50]
movsxd rcx, dword [rbp + 0x4064]
xor r9d, r9d
mov r8d, 0x400
mov rdx, rax
call qword [sym.imp.WS2_32.dll_recv]
mov dword [rbp + 0x4084], eax
cmp dword [rbp + 0x4084], 0xffffffff
jne 0x1400dc811
mov dword [rbp + 0x4a34], 1
jmp 0x1400dc81b
mov dword [rbp + 0x4a34], 0
cmp dword [rbp + 0x4a34], 0
jne 0x1400dc830
mov dword [rbp + 0x4a38], 0
jmp 0x1400dc83a
mov dword [rbp + 0x4a38], 1
movzx eax, byte [rbp + 0x4a38]
mov byte [rbp + 0x4284], al
movzx eax, byte [rbp + 0x4284]
test eax, eax
je 0x1400dc862
mov eax, 1
imul rax, rax, 0
mov byte [rbp + rax + 0x50], 0
jmp 0x1400dc8c8
cmp dword [rbp + 0x4084], 0
jle 0x1400dc8c8
mov eax, dword [rbp + 0x4084]
dec eax
cdqe
movsx eax, byte [rbp + rax + 0x50]
cmp eax, 0xa
jne 0x1400dc8c8
mov eax, dword [rbp + 0x4084]
dec eax
cdqe
mov byte [rbp + rax + 0x50], 0
mov eax, dword [rbp + 0x4084]
dec eax
mov dword [rbp + 0x4084], eax
cmp dword [rbp + 0x4084], 0
jle 0x1400dc8c8
mov eax, dword [rbp + 0x4084]
dec eax
cdqe
movsx eax, byte [rbp + rax + 0x50]
cmp eax, 0xd
jne 0x1400dc8c8
mov eax, dword [rbp + 0x4084]
dec eax
cdqe
mov byte [rbp + rax + 0x50], 0
cmp dword [rbp + 0x4084], 0
jl 0x1400dc8dd
movsxd rax, dword [rbp + 0x4084]
mov byte [rbp + rax + 0x50], 0
movzx eax, byte [rbp + 0x4284]
test eax, eax
jne 0x1400dcc42
mov qword [rbp + 0x42c8], 0
lea rdx, str.GET__
lea rcx, [rbp + 0x50]
call fcn.1400dabfe
mov qword [rbp + 0x42c8], rax
cmp qword [rbp + 0x42c8], 0
je 0x1400dcaa3
mov rcx, qword [rbp + 0x42c8]
call fcn.1400da537
cmp rax, 5
jbe 0x1400dcaa3
lea rax, [rbp + 0x42f0]
mov rdi, rax
xor eax, eax
mov ecx, 0x100
rep stosb byte [rdi], al
mov eax, 1
imul rax, rax, 5
mov rcx, qword [rbp + 0x42c8]
add rcx, rax
mov rax, rcx
lea r8, [rbp + 0x42f0]
lea rdx, [0x140291498]
mov rcx, rax
call fcn.1400da80c
mov edx, 0x2f
lea rcx, [rbp + 0x42f0]
call fcn.1400da0a0
mov qword [rbp + 0x4228], rax
cmp qword [rbp + 0x4228], 0
je 0x1400dc9ae
mov rax, qword [rbp + 0x4228]
mov byte [rax], 0x7c
mov rax, qword [rbp + 0x4228]
inc rax
mov qword [rbp + 0x4228], rax
mov edx, 0x2f
lea rcx, [rbp + 0x42f0]
call fcn.1400da0a0
mov qword [rbp + 0x4228], rax
cmp qword [rbp + 0x4228], 0
je 0x1400dc9eb
mov rax, qword [rbp + 0x4228]
mov byte [rax], 0
mov rax, qword [rbp + 0x4228]
inc rax
mov qword [rbp + 0x4228], rax
lea rdx, str.Sec_WebSocket_Key
mov rcx, qword [rbp + 0x42c8]
call fcn.1400dabfe
mov qword [rbp + 0x42a8], rax
cmp qword [rbp + 0x42a8], 0
je 0x1400dca86
mov edx, reloc.WS2_32.dll_listen
mov rcx, qword [rbp + 0x42a8]
call fcn.1400da0a0
mov qword [rbp + 0x4408], rax
cmp qword [rbp + 0x4408], 0
je 0x1400dca3b
mov rax, qword [rbp + 0x4408]
mov byte [rax], 0
mov edx, 0x3a
mov rcx, qword [rbp + 0x42a8]
call fcn.1400da0a0
mov qword [rbp + 0x42a8], rax
mov rax, qword [rbp + 0x42a8]
inc rax
mov qword [rbp + 0x42a8], rax
mov rax, qword [rbp + 0x42a8]
movsx eax, byte [rax]
cmp eax, 0x20
jne 0x1400dca86
mov rax, qword [rbp + 0x42a8]
inc rax
mov qword [rbp + 0x42a8], rax
jmp 0x1400dca64
lea r8, [rbp + 0x42f0]
lea rdx, [0x14029148c]
lea rcx, [rbp + 0x50]
call fcn.1400daafa
mov dword [rbp + 0x4084], eax
mov edx, 0x7c
lea rcx, [rbp + 0x50]
call fcn.1400da0a0
mov qword [rbp + 0x4228], rax
cmp qword [rbp + 0x4228], 0
je 0x1400dcadd
mov rax, qword [rbp + 0x4228]
mov byte [rax], 0
mov rax, qword [rbp + 0x4228]
inc rax
mov qword [rbp + 0x4228], rax
movzx eax, byte [0x1402b14f4]
test eax, eax
je 0x1400dcb18
movzx eax, byte [0x1402b14f6]
test eax, eax
je 0x1400dcb18
cmp dword [rbp + 0x4084], 0
jle 0x1400dcb18
mov r9, qword [rbp + 0x4228]
lea r8, [rbp + 0x50]
lea rdx, str.API:_exec_command__s__s_
mov ecx, 4
call fcn.1400da4f1
mov dword [rbp + 0x4244], 0
jmp 0x1400dcb32
mov eax, dword [rbp + 0x4244]
inc eax
mov dword [rbp + 0x4244], eax
movsxd rax, dword [rbp + 0x4244]
cmp rax, 5
jae 0x1400dcc32
movsxd rax, dword [rbp + 0x4244]
imul rax, rax, 0x10
lea rcx, section..data
mov rdx, qword [rcx + rax]
lea rcx, [rbp + 0x50]
call fcn.1400dad20
test eax, eax
jne 0x1400dcc2d
cmp qword [rbp + 0x4228], 0
je 0x1400dcbba
mov rcx, qword [rbp + 0x4228]
call fcn.1400da537
test rax, rax
je 0x1400dcbba
mov rcx, qword [rbp + 0x4228]
call fcn.1400da537
mov rcx, qword [rbp + 0x4228]
movsx eax, byte [rcx + rax - 1]
cmp eax, 0x7c
jne 0x1400dcbba
mov rcx, qword [rbp + 0x4228]
call fcn.1400da537
mov rcx, qword [rbp + 0x4228]
mov byte [rcx + rax - 1], 0
movsxd rax, dword [rbp + 0x4244]
imul rax, rax, 0x10
lea rcx, section..data
mov qword [rbp + 0x4a38], rcx
mov rcx, qword [rbp + 0x4228]
mov rdx, qword [rbp + 0x4a38]
call qword [rdx + rax + reloc.WS2_32.dll_htonl]
mov qword [rbp + 0x4208], rax
cmp qword [rbp + 0x42a8], 0
je 0x1400dcc15
movsxd rax, dword [rbp + 0x4064]
mov r8, qword [rbp + 0x42a8]
mov rdx, qword [rbp + 0x4208]
mov rcx, rax
call fcn.1400de0c0
jmp 0x1400dcc32
movsxd rax, dword [rbp + 0x4064]
mov rdx, qword [rbp + 0x4208]
mov rcx, rax
call fcn.1400dd750
jmp 0x1400dcc32
jmp 0x1400dcb24
movsxd rax, dword [rbp + 0x4064]
mov rcx, rax
call qword [sym.imp.WS2_32.dll_closesocket]
jmp 0x1400dc68d
mov rax, qword [rbp + 0x4268]
mov rcx, qword [rax]
call qword [sym.imp.WS2_32.dll_closesocket]
mov rcx, qword [rbp + 0x4268]
call qword [sym.imp.ucrtbased.dll_free]
mov rcx, qword [0x1402b14a8]
call qword [sym.imp.ucrtbased.dll_free]
lea rcx, [rbp - 0x30]
lea rdx, [0x140291350]
call fcn.1400daa05
lea rsp, [rbp + 0x4a48]
pop rdi
pop rbp
ret