Function at 0x411c20
Capabilities:
Encode data using base64
Receive data
Receive data on socket
Send data
Send data on socket
Send http request

Disassembly:
push r15
mov eax, 0x4328
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
call fcn.006a3330
sub rsp, rax
vmovups xmmword [rsp + 0x42d0], xmm6
vmovups xmmword [rsp + 0x42e0], xmm7
vmovups xmmword [rsp + 0x42f0], xmm8
vmovups xmmword [rsp + 0x4300], xmm9
vmovups xmmword [rsp + 0x4310], xmm10
mov rax, qword [0x007256b0]
mov r12, qword [rax]
mov rax, qword [0x007256c0]
mov eax, dword [rax]
mov dword [rsp + 0x50], eax
test eax, eax
jne 0x411c91
mov rax, qword [0x00725710]
cmp byte [rax], 0
jne 0x412586
test r12, r12
je 0x411e4f
mov rcx, r12
call sub.msvcrt.dll_strlen
mov ecx, 1
lea rdx, [rax + 1]
call sub.msvcrt.dll_calloc
mov rdx, r12
mov qword [rsp + 0x48], rax
test rax, rax
je 0x412ced
mov rdi, qword [rsp + 0x48]
mov rcx, rdi
call sub.msvcrt.dll_strcpy
movsx si, byte [rdi]
mov rdx, rdi
test si, si
je 0x412c3f
mov ecx, 1
mov eax, esi
nop word cs:[rax + rax]
inc rdx
cmp ax, 0x2c
sete al
movzx eax, al
add ecx, eax
movsx ax, byte [rdx]
test ax, ax
jne 0x411cf0
movsxd rcx, ecx
mov edx, 0xc
call sub.msvcrt.dll_calloc
mov qword [0x0073ae28], rax
test rax, rax
je 0x412d06
vmovdqu xmm10, xmmword [0x006bc480]
mov dword [0x006b30f0], 0
xor ebx, ebx
vmovdqu xmm9, xmmword [0x006bc490]
vmovdqu xmm8, xmmword [str._a_a_a_a]
vmovdqu xmm7, xmmword [0x006bc4b0]
vmovdqu xmm6, xmmword [0x006bc4c0]
mov r15, qword [rsp + 0x48]
mov r13, qword [sym.imp.msvcrt.dll_toupper]
test si, si
je 0x411e3d
nop
cmp si, 0x20
jne 0x411d8f
nop word cs:[rax + rax]
movsx si, byte [r15 + 1]
inc r15
cmp si, 0x20
je 0x411d80
cmp si, 9
je 0x411d80
lea rbp, [r15 + 1]
cmp si, 0x2c
je 0x411e2c
mov edx, 0x2c
mov rcx, r15
xor ebp, ebp
call sub.msvcrt.dll_strchr
test rax, rax
je 0x411dbe
lea rbp, [rax + 1]
mov byte [rax], 0
mov ecx, 0x52
call r13
movsx r14d, byte [r15]
mov esi, eax
mov ecx, r14d
call qword [sym.imp.msvcrt.dll_isalpha]
test eax, eax
je 0x411de4
cmp byte [r15 + 1], 0x3a
je 0x4122f0
movsxd rax, ebx
mov ecx, 8
lea rdi, str.0.0.0.0
lea rdx, [rax + rax*2]
mov rax, qword [0x0073ae28]
lea r14, [rax + rdx*4]
mov byte [r14 + 8], sil
mov rsi, r15
repe cmpsb byte [rsi], byte [rdi]
seta al
sbb al, 0
test al, al
jne 0x4121f0
mov qword [r14], 0
inc ebx
mov dword [0x006b30f0], ebx
test rbp, rbp
je 0x411e3d
movsx si, byte [rbp]
mov r15, rbp
test si, si
jne 0x411d70
mov rcx, qword [rsp + 0x48]
call sub.msvcrt.dll_free
test ebx, ebx
je 0x412569
mov edx, 8
mov ecx, 1
call sub.msvcrt.dll_calloc
mov ecx, 0x3e8
mov rbp, qword [sym.imp.KERNEL32.dll_Sleep]
mov rdi, rax
mov qword [rsp + 0x48], rax
call rbp
xor r8d, r8d
mov edx, 1
mov ecx, 2
call qword [sym.imp.WS2_32.dll_socket]
mov r13, rax
mov qword [rdi], rax
cmp rax, 0xffffffffffffffff
je 0x41267d
mov qword [rsp + 0x70], 0
mov qword [rsp + 0x78], 0
mov rcx, r12
mov word [rsp + 0x70], 2
call qword [sym.imp.WS2_32.dll_inet_addr]
mov dword [rsp + 0x74], eax
cmp eax, 0xffffffff
je 0x412751
movzx esi, word [rsp + 0x50]
lea r14, [rsp + 0x70]
mov ecx, esi
call qword [sym.imp.WS2_32.dll_htons]
mov r12, qword [sym.imp.msvcrt.dll__time64]
xor ecx, ecx
mov word [rsp + 0x72], ax
call r12
mov r15, qword [sym.imp.WS2_32.dll_bind]
mov rdi, rax
jmp 0x411f55
call qword [sym.imp.msvcrt.dll__errno]
mov ecx, dword [rax]
call sub.msvcrt.dll_strerror
xor ecx, ecx
mov rbx, rax
call r12
sub rax, rdi
cmp rax, 0x3d
jg 0x4126e3
mov rax, qword [0x007257c0]
cmp byte [rax], 0
je 0x411f3a
mov rax, qword [0x00725710]
cmp byte [rax], 0
je 0x411f4e
mov r8d, esi
lea rdx, str.API_bind_to_port__d_failed___trying_again_in_20sec
mov ecx, 1
call fcn.0040b2f0
mov ecx, 0x4e20
call rbp
mov r8d, 0x10
mov rdx, r14
mov rcx, r13
call r15
test eax, eax
js 0x411f00
mov edx, 0xa
mov rcx, r13
call qword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
je 0x4127d8
mov edx, 0x4001
mov ecx, 1
call sub.msvcrt.dll_calloc
mov qword [0x0073ae20], rax
mov edx, dword [0x0073ae10]
test edx, edx
jne 0x412271
lea rbp, [rsp + 0x60]
lea rbx, [rsp + 0x80]
lea r15, str.127.0.0.1
mov dword [rsp + 0x60], 0x10
mov r8, rbp
mov rdx, rbx
mov rcx, r13
call qword [sym.imp.WS2_32.dll_accept]
movsxd r12, eax
cmp eax, 0xffffffff
je 0x41277b
mov ecx, dword [rsp + 0x84]
call qword [sym.imp.WS2_32.dll_inet_ntoa]
mov r14, rax
mov rax, qword [0x007256b0]
cmp qword [rax], 0
je 0x412190
mov ecx, dword [rsp + 0x84]
call qword [sym.imp.WS2_32.dll_htonl]
mov edx, dword [0x006b30f0]
mov ecx, eax
test edx, edx
jle 0x412230
mov rax, qword [0x0073ae28]
dec edx
lea rdx, [rdx + rdx*2]
lea r8, [rax + rdx*4 + 0xc]
jmp 0x41203d
add rax, 0xc
cmp r8, rax
je 0x412230
mov edx, dword [rax + 4]
and edx, ecx
cmp edx, dword [rax]
jne 0x412030
mov rsi, qword [0x00725710]
cmp byte [rsi], 0
je 0x412062
mov rax, qword [0x00725790]
cmp byte [rax], 0
jne 0x4121c9
lea r14, [rsp + 0x2d0]
xor r9d, r9d
mov r8d, 0x400
mov rcx, r12
mov rdx, r14
call qword [sym.imp.WS2_32.dll_recv]
mov ebx, eax
cmp eax, 0xffffffff
je 0x41251d
test eax, eax
jle 0x41252a
lea eax, [rax - 1]
movsxd rdx, eax
cmp byte [rsp + rdx + 0x2d0], 0xa
je 0x4127a5
movsxd rax, ebx
mov byte [rsp + rax + 0x2d0], 0
lea rdx, str.GET__
mov rcx, r14
call sub.msvcrt.dll_strstr
mov r15, rax
test rax, rax
je 0x4120dd
mov rcx, r15
call sub.msvcrt.dll_strlen
cmp rax, 5
ja 0x4125d7
xor r15d, r15d
mov edx, 0x7c
mov rcx, r14
xor edi, edi
call sub.msvcrt.dll_strchr
test rax, rax
je 0x4120f8
lea rdi, [rax + 1]
mov byte [rax], 0
cmp byte [rsi], 0
jne 0x412535
mov rdx, qword [str.summary]
mov rcx, r14
call sub.msvcrt.dll_strcmp
movsxd rbx, eax
test ebx, ebx
je 0x412810
mov rdx, qword [str.threads]
mov rcx, r14
call sub.msvcrt.dll_strcmp
test eax, eax
je 0x41280b
mov rdx, qword [str.seturl]
mov rcx, r14
call sub.msvcrt.dll_strcmp
test eax, eax
je 0x412d9a
mov rdx, qword [str.quit]
mov rcx, r14
call sub.msvcrt.dll_strcmp
test eax, eax
je 0x412da4
mov rdx, qword [str.help]
mov rcx, r14
mov ebx, 4
call sub.msvcrt.dll_strcmp
test eax, eax
je 0x412810
mov rcx, r12
call qword [sym.imp.WS2_32.dll_closesocket]
jmp 0x411f95
mov rsi, r14
mov ecx, 0xa
mov rdi, r15
repe cmpsb byte [rsi], byte [rdi]
mov rsi, qword [0x00725710]
seta al
sbb al, 0
cmp byte [rsi], 0
movsx eax, al
je 0x4122e0
mov rdx, qword [0x00725790]
cmp byte [rdx], 0
je 0x4122e0
test eax, eax
jne 0x412248
lea r9, str.Accepted
mov r8, r14
lea rdx, str.API:_connection_from__s____s
mov ecx, 4
call fcn.0040b2f0
jmp 0x412062
mov edx, 0x2f
mov rcx, r15
call sub.msvcrt.dll_strchr
test rax, rax
je 0x412510
lea rcx, [rax + 1]
mov byte [rax], 0
call sub.msvcrt.dll_atoi
lea ecx, [rax - 1]
cmp ecx, 0x1f
jbe 0x412330
mov ebx, dword [0x006b30f0]
jmp 0x411e27
mov rax, qword [0x00725710]
cmp byte [rax], 0
je 0x412263
mov rax, qword [0x00725790]
cmp byte [rax], 0
je 0x412263
lea r9, str.Ignored
mov r8, r14
lea rdx, str.API:_connection_from__s____s
mov ecx, 4
call fcn.0040b2f0
mov eax, dword [0x0073ae10]
test eax, eax
je 0x411fb7
mov rcx, r13
call qword [sym.imp.WS2_32.dll_closesocket]
mov rcx, qword [rsp + 0x48]
call sub.msvcrt.dll_free
mov rcx, qword [0x0073ae20]
call sub.msvcrt.dll_free
nop
vmovups xmm6, xmmword [rsp + 0x42d0]
vmovups xmm7, xmmword [rsp + 0x42e0]
vmovups xmm8, xmmword [rsp + 0x42f0]
vmovups xmm9, xmmword [rsp + 0x4300]
vmovups xmm10, xmmword [rsp + 0x4310]
add rsp, 0x4328
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
test eax, eax
jne 0x412263
jmp 0x412062
mov ecx, r14d
call r13
mov ecx, 0x57
mov edi, eax
call r13
cmp edi, eax
je 0x412324
mov ecx, 0x41
call r13
lea rdx, [0x0073ad40]
mov r8d, eax
mov eax, edi
sub eax, r8d
cdqe
cmp qword [rdx + rax*8], 0
je 0x412326
mov esi, edi
add r15, 2
jmp 0x411de4
movsxd rdx, dword [0x006b30f0]
lea r9d, [rax + 1]
lea r8, [rdx + rdx*2]
mov rdx, qword [0x0073ae28]
lea r14, [rdx + r8*4]
cmp eax, 2
jbe 0x412c49
vmovd xmm5, eax
mov edx, r9d
vpshufd xmm2, xmm5, 0
xor eax, eax
shr edx, 2
vpaddd xmm2, xmm2, xmm10
vpxor xmm3, xmm3, xmm3
nop dword [rax]
vmovdqu xmm1, xmm2
inc eax
vpaddd xmm2, xmm2, xmm9
vpsrad xmm0, xmm1, 0x1f
vpsrld xmm4, xmm0, 0x1d
vpaddd xmm0, xmm4, xmm1
vpsrad xmm1, xmm1, 3
vpand xmm0, xmm0, xmm8
vpsubd xmm1, xmm6, xmm1
vpsubd xmm0, xmm0, xmm4
vpslld xmm1, xmm1, 3
vpsllvd xmm0, xmm7, xmm0
vpsllvd xmm0, xmm0, xmm1
vpor xmm3, xmm3, xmm0
cmp edx, eax
jne 0x412370
vpsrldq xmm0, xmm3, 8
mov eax, r9d
vpor xmm3, xmm3, xmm0
and eax, 0xfffffffc
vpsrldq xmm0, xmm3, 4
vpor xmm3, xmm3, xmm0
sub ecx, eax
vmovd r8d, xmm3
cmp eax, r9d
je 0x41248c
mov r9d, ecx
sar r9d, 0x1f
shr r9d, 0x1d
lea eax, [rcx + r9]
and eax, 7
sub eax, r9d
mov r9d, ecx
mov edx, eax
mov eax, 1
sar r9d, 3
shlx eax, eax, edx
mov edx, 3
sub edx, r9d
shl edx, 3
shlx eax, eax, edx
or r8d, eax
lea eax, [rcx - 1]
test ecx, ecx
js 0x41248c
mov ecx, eax
mov r11d, eax
mov r9d, 3
sar ecx, 0x1f
sar r11d, 3
mov r10d, r9d
shr ecx, 0x1d
sub r10d, r11d
lea edx, [rax + rcx]
shl r10d, 3
and edx, 7
sub edx, ecx
mov ecx, 1
shlx edx, ecx, edx
shlx edx, edx, r10d
or r8d, edx
lea edx, [rax - 1]
test eax, eax
js 0x41248c
mov r10d, edx
sar r10d, 0x1f
shr r10d, 0x1d
lea eax, [rdx + r10]
sar edx, 3
and eax, 7
sub r9d, edx
sub eax, r10d
lea edx, [r9*8]
shlx eax, ecx, eax
shlx eax, eax, edx
or r8d, eax
mov dword [r14 + 4], r8d
mov dword [r14], 0
mov esi, 0x18
xor edi, edi
jmp 0x4124a8
cmp edi, 3
jg 0x412503
mov r15, r14
mov edx, 0x2e
mov rcx, r15
xor r14d, r14d
call sub.msvcrt.dll_strchr
test rax, rax
je 0x4124c4
lea r14, [rax + 1]
mov byte [rax], 0
mov rcx, r15
call sub.msvcrt.dll_atoi
cmp eax, 0xff
ja 0x41221e
movsxd rdx, dword [0x006b30f0]
shlx eax, eax, esi
inc edi
sub esi, 8
lea rcx, [rdx + rdx*2]
mov rbx, rdx
mov rdx, qword [0x0073ae28]
lea rdx, [rdx + rcx*4]
or eax, dword [rdx]
mov dword [rdx], eax
test r14, r14
jne 0x4124a0
and eax, dword [rdx + 4]
mov dword [rdx], eax
jmp 0x411e1f
mov dword [r14 + 4], 0xffffffff
jmp 0x412490
mov byte [rsp + 0x2d0], 0
jmp 0x411f95
je 0x4120a6
jmp 0x4120b1
mov rax, qword [0x00725790]
cmp byte [rax], 0
je 0x412101
test ebx, ebx
jle 0x412101
mov r9, rdi
mov r8, r14
lea rdx, str.API:_exec_command__s__s_
mov ecx, 4
call fcn.0040b2f0
jmp 0x412101
lea r8, str.___API_will_not_be_available
lea rdx, str.API_not_running__no_valid_IPs_specified__s
mov ecx, 1
call fcn.0040b2f0
jmp 0x411e4f
vmovups xmm6, xmmword [rsp + 0x42d0]
vmovups xmm7, xmmword [rsp + 0x42e0]
lea rdx, str.API_disabled
mov ecx, 4
vmovups xmm8, xmmword [rsp + 0x42f0]
vmovups xmm9, xmmword [rsp + 0x4300]
vmovups xmm10, xmmword [rsp + 0x4310]
add rsp, 0x4328
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
jmp fcn.0040b2f0
xor edx, edx
lea rcx, [rsp + 0x1e0]
mov r8d, 0xf0
lea rbx, [rsp + 0x1d0]
mov qword [rsp + 0x1d0], 0
mov qword [rsp + 0x1d8], 0
call sub.msvcrt.dll_memset
lea rcx, [r15 + 5]
lea rdx, [0x006bc080]
mov r8, rbx
call fcn.00411bf0
mov edx, 0x2f
mov rcx, rbx
call sub.msvcrt.dll_strchr
test rax, rax
je 0x412649
mov byte [rax], 0x7c
mov edx, 0x2f
mov rcx, rbx
call sub.msvcrt.dll_strchr
test rax, rax
je 0x412649
mov byte [rax], 0
mov rcx, r15
lea rdx, str.Sec_WebSocket_Key
call sub.msvcrt.dll_strstr
mov r15, rax
test rax, rax
jne 0x412c73
mov r8, rbx
lea rdx, [0x006bc08b]
mov rcx, r14
call fcn.00411740
mov ebx, eax
jmp 0x4120dd
call qword [sym.imp.msvcrt.dll__errno]
mov ecx, dword [rax]
call sub.msvcrt.dll_strerror
nop
vmovups xmm6, xmmword [rsp + 0x42d0]
lea r9, str.___API_will_not_be_available
lea rdx, str.API_initialisation_failed___s__s
vmovups xmm7, xmmword [rsp + 0x42e0]
vmovups xmm8, xmmword [rsp + 0x42f0]
mov r8, rax
xor ecx, ecx
vmovups xmm9, xmmword [rsp + 0x4300]
vmovups xmm10, xmmword [rsp + 0x4310]
add rsp, 0x4328
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
jmp fcn.0040b2f0
lea rax, str.___API_will_not_be_available
mov r9, rbx
mov r8d, esi
lea rdx, str.API_bind_to_port__d_failed___s__s
mov qword [rsp + 0x20], rax
mov ecx, 1
call fcn.0040b2f0
nop
vmovups xmm6, xmmword [rsp + 0x42d0]
vmovups xmm7, xmmword [rsp + 0x42e0]
vmovups xmm8, xmmword [rsp + 0x42f0]
vmovups xmm9, xmmword [rsp + 0x4300]
vmovups xmm10, xmmword [rsp + 0x4310]
mov rcx, qword [rsp + 0x48]
add rsp, 0x4328
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
jmp sub.msvcrt.dll_free
call qword [sym.imp.msvcrt.dll__errno]
mov ecx, dword [rax]
call sub.msvcrt.dll_strerror
lea r9, str.___API_will_not_be_available
lea rdx, str.API_initialisation_2_failed___s__s
xor ecx, ecx
mov r8, rax
call fcn.0040b2f0
jmp 0x412291
call qword [sym.imp.msvcrt.dll__errno]
mov ecx, dword [rax]
call sub.msvcrt.dll_strerror
lea r9, str.___API_will_not_be_available
lea rdx, str.API_failed___s__s
xor ecx, ecx
mov r8, rax
call fcn.0040b2f0
jmp 0x412271
mov byte [rsp + rdx + 0x2d0], 0
test eax, eax
je 0x412c38
lea edx, [rbx - 2]
mov ebx, eax
movsxd rdx, edx
cmp byte [rsp + rdx + 0x2d0], 0xd
jne 0x4120a6
mov byte [rsp + rdx + 0x2d0], 0
jmp 0x4120a6
call qword [sym.imp.msvcrt.dll__errno]
mov ecx, dword [rax]
call sub.msvcrt.dll_strerror
xor ecx, ecx
lea r9, str.___API_will_not_be_available
lea rdx, str.API_initialisation_3_failed___s__s
mov r8, rax
call fcn.0040b2f0
mov rcx, r13
call qword [sym.imp.WS2_32.dll_closesocket]
jmp 0x412707
mov ebx, 1
test rdi, rdi
je 0x41282f
cmp byte [rdi], 0
je 0x41282f
mov rcx, rdi
call sub.msvcrt.dll_strlen
lea rax, [rdi + rax - 1]
cmp byte [rax], 0x7c
jne 0x41282f
mov byte [rax], 0
shl rbx, 4
lea rax, str.summary
mov rcx, rdi
call qword [rax + rbx + 8]
mov qword [rsp + 0x50], rax
test r15, r15
je 0x412d6f
mov rax, qword [0x00725790]
mov qword [rsp + 0x150], 0
mov qword [rsp + 0x158], 0
mov qword [rsp + 0x160], 0
mov qword [rsp + 0x168], 0
mov qword [rsp + 0x170], 0
mov qword [rsp + 0x178], 0
mov qword [rsp + 0x180], 0
mov qword [rsp + 0x188], 0
mov qword [rsp + 0x190], 0
mov qword [rsp + 0x198], 0
mov qword [rsp + 0x1a0], 0
mov qword [rsp + 0x1a8], 0
mov qword [rsp + 0x1b0], 0
mov qword [rsp + 0x1b8], 0
mov qword [rsp + 0x1c0], 0
mov qword [rsp + 0x1c8], 0
cmp byte [rax], 0
jne 0x412cc5
lea rbx, [rsp + 0x150]
mov r8, r15
lea rdx, str._s258EAFA5_E914_47DA_95CA_C5AB0DC85B11
lea r14, [rsp + 0xf0]
mov rcx, rbx
call fcn.00411740
mov rcx, r14
call sub.libcrypto_1_1_x64.dll_SHA1_Init
mov rcx, rbx
call sub.msvcrt.dll_strlen
mov rdx, rbx
mov rcx, r14
lea rbx, [rsp + 0x90]
mov r8, rax
call sub.libcrypto_1_1_x64.dll_SHA1_Update
mov rdx, r14
mov rcx, rbx
call sub.libcrypto_1_1_x64.dll_SHA1_Final
lea rax, [rsp + 0xb0]
mov edx, 0x1e
mov ecx, 1
mov qword [rsp + 0x58], rax
mov qword [rsp + 0xb0], 0
mov qword [rsp + 0xb8], 0
mov qword [rsp + 0xc0], 0
mov qword [rsp + 0xc8], 0
mov qword [rsp + 0xd0], 0
mov qword [rsp + 0xd8], 0
mov qword [rsp + 0xe0], 0
mov qword [rsp + 0xe8], 0
call sub.msvcrt.dll_calloc
mov r14, rax
test rax, rax
je 0x412b2c
mov ebp, 0x14
xor r15d, r15d
lea rsi, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
lea rdi, str._c_c_c_c
movzx r10d, byte [rbx + 1]
movzx edx, byte [rbx]
lea rcx, [r14 + r15]
mov eax, r10d
shr r10w, 4
shl eax, 2
mov r9d, r10d
and eax, 0x3c
movsx r8, al
cmp ebp, 2
je 0x412ab0
movzx r9d, byte [rbx + 2]
mov r8d, edx
sub ebp, 3
add rbx, 3
shr r8d, 2
add r15, 4
and r8d, 0x3f
mov r11, r9
shr r9w, 6
or eax, r9d
and r11d, 0x3f
movsx r9d, byte [rsi + r8]
mov r8, rdi
movsx rax, al
movsx r11d, byte [rsi + r11]
movsx eax, byte [rsi + rax]
mov dword [rsp + 0x30], r11d
mov dword [rsp + 0x28], eax
mov eax, edx
mov edx, 5
shl eax, 4
and eax, 0x30
or r10d, eax
movsx rax, r10b
movsx eax, byte [rsi + rax]
mov dword [rsp + 0x20], eax
call fcn.00411bc0
test ebp, ebp
jne 0x412a10
jmp 0x412af8
movsx eax, byte [rsi + r8]
mov r10, rcx
mov ecx, edx
lea r8, str._c_c_c
shr ecx, 2
add r15, 4
and ecx, 0x3f
mov dword [rsp + 0x28], eax
mov eax, edx
mov edx, 5
shl eax, 4
and eax, 0x30
or r9d, eax
movsx rax, r9b
movsx r9d, byte [rsi + rcx]
mov rcx, r10
movsx eax, byte [rsi + rax]
mov dword [rsp + 0x20], eax
call fcn.00411bc0
mov rdi, qword [rsp + 0x58]
mov r9, r14
lea r8, [0x006bc08b]
mov rdx, r15
mov rcx, rdi
call fcn.00411830
mov rcx, rdi
call sub.msvcrt.dll_strlen
cmp rax, 0x1b
je 0x412cde
mov rcx, r14
call sub.msvcrt.dll_free
mov r8, qword [rsp + 0x58]
lea rbx, [rsp + 0x1d0]
lea rdx, str.HTTP_1.1_101_Switching_Protocol_r_nUpgrade:_WebSocket_r_nConnection:_Upgrade_r_nSec_WebSocket_Accept:__s_r_nSec_WebSocket_Protocol:_text_r_n_r_n
mov rcx, rbx
call fcn.00411740
mov rcx, qword [rsp + 0x50]
mov qword [rsp + 0x66], 0
mov word [rsp + 0x6e], 0
mov byte [rsp + 0x66], 0x81
call sub.msvcrt.dll_strlen
mov rsi, rax
lea r14, [rax + 1]
cmp rax, 0x7d
jbe 0x412cb1
cmp rax, 0xffff
ja 0x412dae
mov byte [rsp + 0x67], 0x7e
movbe word [rsp + 0x68], ax
mov ebp, 4
mov r15d, 4
mov rcx, rbx
call sub.msvcrt.dll_strlen
mov ecx, 1
lea rdx, [rax + r15]
mov rdi, rax
add rdx, r14
call sub.msvcrt.dll_calloc
mov r14, rax
test rax, rax
je 0x41217c
mov rdx, rbx
mov rcx, rax
mov r8, rdi
call sub.msvcrt.dll_memcpy
lea rdx, [r14 + rdi]
lea rcx, [rsp + 0x66]
mov eax, r15d
cmp r15d, 8
jae 0x412d1e
test r15b, 4
jne 0x412de8
test eax, eax
je 0x412c04
movzx r8d, byte [rcx]
mov byte [rdx], r8b
test al, 2
jne 0x412dfb
lea rcx, [rdx + r15]
mov rdx, qword [rsp + 0x50]
mov r8, rsi
add edi, ebp
call sub.msvcrt.dll_memcpy
mov rcx, r12
xor r9d, r9d
lea r8d, [rdi + rsi + 1]
mov rdx, r14
call qword [sym.imp.WS2_32.dll_send]
mov rcx, r14
call sub.msvcrt.dll_free
jmp 0x41217c
xor ebx, ebx
jmp 0x4120a6
mov ecx, 1
jmp 0x411d0b
mov edx, ecx
mov r8d, 1
sar ecx, 3
sub eax, 2
and edx, 7
shlx r8d, r8d, edx
mov edx, 3
sub edx, ecx
shl edx, 3
shlx r8d, r8d, edx
jmp 0x41241c
mov edx, 0xd
mov rcx, rax
call sub.msvcrt.dll_strchr
test rax, rax
je 0x412c88
mov byte [rax], 0
mov rcx, r15
mov edx, 0x3a
call sub.msvcrt.dll_strchr
cmp byte [rax + 1], 0x20
lea r15, [rax + 1]
jne 0x412664
inc r15
cmp byte [r15], 0x20
je 0x412ca3
jmp 0x412664
mov byte [rsp + 0x67], al
mov ebp, 2
mov r15d, 2
jmp 0x412b9b
mov r8, r15
lea rdx, str.clientkey:__s
mov ecx, 4
call fcn.0040b2f0
jmp 0x41291f
mov word [rsp + 0xcb], 0x3d
jmp 0x412b24
mov ecx, 1
call fcn.004043a0
mov rax, qword [0x007256b0]
mov rdx, qword [rax]
jmp 0x411cc1
mov ecx, 1
call fcn.004043a0
mov rax, qword [rsp + 0x48]
movsx si, byte [rax]
jmp 0x411d25
mov rax, qword [rsp + 0x66]
lea r8, [rdx + 8]
and r8, 0xfffffffffffffff8
mov qword [rdx], rax
mov rax, qword [rcx + r15 - 8]
mov qword [rdx + r15 - 8], rax
mov rax, rdx
sub rax, r8
sub rcx, rax
add eax, r15d
and eax, 0xfffffff8
cmp eax, 8
jb 0x412c04
and eax, 0xfffffff8
xor r9d, r9d
mov r10d, r9d
add r9d, 8
mov r11, qword [rcx + r10]
mov qword [r8 + r10], r11
cmp r9d, eax
jb 0x412d56
jmp 0x412c04
cmp qword [rsp + 0x50], 0
je 0x412dca
mov rcx, rax
mov rdi, rax
call sub.msvcrt.dll_strlen
xor r9d, r9d
mov rdx, rdi
mov rcx, r12
lea r8d, [rax + 1]
call qword [sym.imp.WS2_32.dll_send]
jmp 0x41217c
mov ebx, 2
jmp 0x412810
mov ebx, 3
jmp 0x412810
mov byte [rsp + 0x67], 0x7f
movbe qword [rsp + 0x68], rax
mov ebp, 0xa
mov r15d, 0xa
jmp 0x412b9b
xor r9d, r9d
mov r8d, 1
lea rdx, [0x006bc3b5]
mov rcx, r12
call qword [sym.imp.WS2_32.dll_send]
jmp 0x41217c
mov r8d, dword [rcx]
mov dword [rdx], r8d
mov ecx, dword [rcx + rax - 4]
mov dword [rdx + rax - 4], ecx
jmp 0x412c04
movzx ecx, word [rcx + rax - 2]
mov word [rdx + rax - 2], cx
jmp 0x412c04