Function at 0x4119d0
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, 0x4278
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
call fcn.00665440
sub rsp, rax
mov rax, qword [0x006d0370]
mov r12, qword [rax]
mov rax, qword [0x006d0380]
mov eax, dword [rax]
mov dword [rsp + 0x50], eax
test eax, eax
jne 0x411a14
mov rax, qword [0x006d03d0]
cmp byte [rax], 0
jne 0x4123e8
test r12, r12
je 0x411b9d
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 0x412cca
mov rdi, qword [rsp + 0x48]
mov rcx, rdi
call sub.msvcrt.dll_strcpy
movzx esi, byte [rdi]
test sil, sil
je 0x412c10
mov edx, esi
mov ecx, 1
nop dword [rax]
inc rax
cmp dl, 0x2c
sete dl
movzx edx, dl
add ecx, edx
movzx edx, byte [rax]
test dl, dl
jne 0x411a68
movsxd rcx, ecx
mov edx, 0xc
call sub.msvcrt.dll_calloc
mov qword [0x006e3718], rax
test rax, rax
je 0x412cb3
mov r15, qword [rsp + 0x48]
mov r13, qword [sym.imp.msvcrt.dll_toupper]
xor ebx, ebx
mov dword [0x0066e0d0], 0
test sil, sil
je 0x411b8b
nop dword [rax + rax]
cmp sil, 0x20
jne 0x411ade
nop word cs:[rax + rax]
movzx esi, byte [r15 + 1]
inc r15
cmp sil, 0x20
je 0x411ad0
cmp sil, 9
je 0x411ad0
lea rbp, [r15 + 1]
cmp sil, 0x2c
je 0x411b7b
mov edx, 0x2c
mov rcx, r15
xor ebp, ebp
call sub.msvcrt.dll_strchr
test rax, rax
je 0x411b0d
mov byte [rax], 0
lea rbp, [rax + 1]
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 0x411b33
cmp byte [r15 + 1], 0x3a
je 0x412008
movsxd rax, ebx
mov ecx, 8
lea rdi, str.0.0.0.0
lea rdx, [rax + rax*2]
mov rax, qword [0x006e3718]
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 0x411f40
mov qword [r14], 0
inc ebx
mov dword [0x0066e0d0], ebx
test rbp, rbp
je 0x411b8b
movzx esi, byte [rbp]
mov r15, rbp
test sil, sil
jne 0x411ac0
mov rcx, qword [rsp + 0x48]
call sub.msvcrt.dll_free
test ebx, ebx
je 0x4123c8
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 qword [rdi], rax
mov r13, rax
cmp rax, 0xffffffffffffffff
je 0x412640
mov r9d, 2
mov rcx, r12
mov qword [rsp + 0x70], 0
mov qword [rsp + 0x78], 0
mov word [rsp + 0x70], r9w
call qword [sym.imp.WS2_32.dll_inet_addr]
mov dword [rsp + 0x74], eax
cmp eax, 0xffffffff
je 0x412670
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 0x411ca5
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 0x412600
mov rax, qword [0x006d0470]
cmp byte [rax], 0
je 0x411c8a
mov rax, qword [0x006d03d0]
cmp byte [rax], 0
je 0x411c9e
mov r8d, esi
lea rdx, str.API_bind_to_port__d_failed___trying_again_in_20sec
mov ecx, 2
call fcn.0040ab00
mov ecx, 0x4e20
call rbp
mov r8d, 0x10
mov rdx, r14
mov rcx, r13
call r15
test eax, eax
js 0x411c50
mov edx, 0xa
mov rcx, r13
call qword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
je 0x412710
mov edx, 0x4001
mov ecx, 1
call sub.msvcrt.dll_calloc
mov qword [0x006e3710], rax
mov edx, dword [0x006e3700]
test edx, edx
jne 0x411fc1
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 0x4126a0
mov ecx, dword [rsp + 0x84]
call qword [sym.imp.WS2_32.dll_inet_ntoa]
mov r14, rax
mov rax, qword [0x006d0370]
cmp qword [rax], 0
je 0x411ee0
mov ecx, dword [rsp + 0x84]
call qword [sym.imp.WS2_32.dll_htonl]
mov ecx, dword [0x0066e0d0]
test ecx, ecx
jle 0x411f80
mov rdx, qword [0x006e3718]
dec ecx
lea rcx, [rcx + rcx*2]
lea r8, [rdx + rcx*4 + 0xc]
jmp 0x411d8d
add rdx, 0xc
cmp rdx, r8
je 0x411f80
mov ecx, dword [rdx + 4]
and ecx, eax
cmp ecx, dword [rdx]
jne 0x411d80
mov rsi, qword [0x006d03d0]
cmp byte [rsi], 0
je 0x411db2
mov rax, qword [0x006d0440]
cmp byte [rax], 0
jne 0x411f19
lea r14, [rsp + 0x270]
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 0x412370
test eax, eax
jle 0x412380
lea eax, [rax - 1]
movsxd rdx, eax
cmp byte [rsp + rdx + 0x270], 0xa
je 0x4126d0
movsxd rax, ebx
mov byte [rsp + rax + 0x270], 0
lea rdx, str.GET__
mov rcx, r14
call sub.msvcrt.dll_strstr
mov r15, rax
test rax, rax
je 0x411e2d
mov rcx, r15
call sub.msvcrt.dll_strlen
cmp rax, 5
ja 0x412400
xor r15d, r15d
mov edx, 0x7c
mov rcx, r14
xor edi, edi
call sub.msvcrt.dll_strchr
test rax, rax
je 0x411e48
mov byte [rax], 0
lea rdi, [rax + 1]
cmp byte [rsi], 0
jne 0x412390
mov rdx, qword [str.summary]
mov rcx, r14
call sub.msvcrt.dll_strcmp
mov ebx, eax
test eax, eax
je 0x412750
mov rdx, qword [str.threads]
mov rcx, r14
call sub.msvcrt.dll_strcmp
test eax, eax
je 0x412d41
mov rdx, qword [str.seturl]
mov rcx, r14
call sub.msvcrt.dll_strcmp
test eax, eax
je 0x412d4b
mov rdx, qword [str.quit]
mov rcx, r14
call sub.msvcrt.dll_strcmp
test eax, eax
je 0x412746
mov rdx, qword [str.help]
mov rcx, r14
mov ebx, 4
call sub.msvcrt.dll_strcmp
test eax, eax
je 0x412750
mov rcx, r12
call qword [sym.imp.WS2_32.dll_closesocket]
jmp 0x411ce5
mov rsi, r14
mov ecx, 0xa
mov rdi, r15
repe cmpsb byte [rsi], byte [rdi]
mov rsi, qword [0x006d03d0]
seta al
sbb al, 0
cmp byte [rsi], 0
movsx eax, al
je 0x411ff8
mov rdx, qword [0x006d0440]
cmp byte [rdx], 0
je 0x411ff8
test eax, eax
jne 0x411f98
lea r9, str.Accepted
mov r8, r14
mov ecx, 5
lea rdx, str.API:_connection_from__s____s
call fcn.0040ab00
jmp 0x411db2
mov edx, 0x2f
mov rcx, r15
call sub.msvcrt.dll_strchr
test rax, rax
je 0x412360
mov byte [rax], 0
lea rcx, [rax + 1]
call sub.msvcrt.dll_atoi
lea ecx, [rax - 1]
cmp ecx, 0x1f
jbe 0x412048
mov ebx, dword [0x0066e0d0]
jmp 0x411b76
mov rax, qword [0x006d03d0]
cmp byte [rax], 0
je 0x411fb3
mov rax, qword [0x006d0440]
cmp byte [rax], 0
je 0x411fb3
lea r9, str.Ignored
mov r8, r14
mov ecx, 5
lea rdx, str.API:_connection_from__s____s
call fcn.0040ab00
mov eax, dword [0x006e3700]
test eax, eax
je 0x411d07
mov rcx, r13
call qword [sym.imp.WS2_32.dll_closesocket]
mov rcx, qword [rsp + 0x48]
call sub.msvcrt.dll_free
mov rcx, qword [0x006e3710]
call sub.msvcrt.dll_free
nop
add rsp, 0x4278
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
test eax, eax
jne 0x411fb3
jmp 0x411db2
mov ecx, r14d
call r13
mov ecx, 0x57
mov edi, eax
call r13
cmp edi, eax
je 0x412039
mov ecx, 0x41
call r13
mov edx, edi
sub edx, eax
movsxd rax, edx
lea rdx, [0x006fa260]
cmp qword [rdx + rax*8], 0
je 0x41203b
mov esi, edi
add r15, 2
jmp 0x411b33
movsxd rdx, dword [0x0066e0d0]
lea r8, [rdx + rdx*2]
mov rdx, qword [0x006e3718]
lea r14, [rdx + r8*4]
lea r8d, [rax + 1]
cmp eax, 6
jbe 0x412c1a
vmovd xmm3, eax
mov edx, r8d
vpxor xmm4, xmm4, xmm4
xor eax, eax
vpbroadcastd ymm3, xmm3
vpaddd ymm3, ymm3, ymmword [0x006764e0]
shr edx, 3
nop dword [rax + rax]
vmovdqu ymm1, ymm3
vmovdqu ymm5, ymmword [0x00676540]
inc eax
vpaddd ymm3, ymm3, ymmword [0x00676500]
vpsrad ymm0, ymm1, 0x1f
vpsrld ymm2, ymm0, 0x1d
vpaddd ymm0, ymm2, ymm1
vpand ymm0, ymm0, ymmword [0x00676520]
vpsrad ymm1, ymm1, 3
vpsubd ymm0, ymm0, ymm2
vpsllvd ymm0, ymm5, ymm0
vmovdqu ymm5, ymmword [0x00676560]
vpsubd ymm1, ymm5, ymm1
vpslld ymm1, ymm1, 3
vpsllvd ymm0, ymm0, ymm1
vpor ymm4, ymm4, ymm0
cmp eax, edx
jne 0x412090
vextracti128 xmm0, ymm4, 1
mov eax, r8d
vpor xmm4, xmm0, xmm4
and eax, 0xfffffff8
vpsrldq xmm0, xmm4, 8
sub ecx, eax
vpor xmm4, xmm4, xmm0
vpsrldq xmm0, xmm4, 4
vpor xmm4, xmm4, xmm0
vmovd edx, xmm4
cmp eax, r8d
je 0x412708
mov r8d, ecx
mov r9d, ecx
sar r8d, 0x1f
sar r9d, 3
shr r8d, 0x1d
lea eax, [rcx + r8]
and eax, 7
sub eax, r8d
mov r8d, eax
mov eax, 1
shlx eax, eax, r8d
mov r8d, 3
sub r8d, r9d
shl r8d, 3
shlx eax, eax, r8d
or edx, eax
lea eax, [rcx - 1]
test ecx, ecx
js 0x412708
vzeroupper
mov r8d, eax
mov r10d, eax
mov r9d, 3
sar r8d, 0x1f
sar r10d, 3
mov edi, r9d
shr r8d, 0x1d
sub edi, r10d
lea ecx, [rax + r8]
mov r10d, edi
and ecx, 7
shl r10d, 3
sub ecx, r8d
mov r8d, 1
shlx ecx, r8d, ecx
shlx ecx, ecx, r10d
lea r10d, [rax - 1]
or edx, ecx
test eax, eax
js 0x4122dc
mov r11d, r10d
mov edi, r9d
sar r11d, 0x1f
shr r11d, 0x1d
lea ecx, [r10 + r11]
and ecx, 7
sub ecx, r11d
mov r11d, r10d
sar r11d, 3
shlx ecx, r8d, ecx
sub edi, r11d
mov r11d, edi
shl r11d, 3
shlx ecx, ecx, r11d
lea r11d, [rax - 2]
or edx, ecx
test r10d, r10d
js 0x4122dc
mov r10d, r11d
mov ebx, r9d
sar r10d, 0x1f
shr r10d, 0x1d
lea ecx, [r11 + r10]
and ecx, 7
sub ecx, r10d
mov r10d, r11d
sar r10d, 3
shlx ecx, r8d, ecx
sub ebx, r10d
mov r10d, ebx
shl r10d, 3
shlx ecx, ecx, r10d
lea r10d, [rax - 3]
or edx, ecx
test r11d, r11d
js 0x4122dc
mov r11d, r10d
mov edi, r9d
sar r11d, 0x1f
shr r11d, 0x1d
lea ecx, [r10 + r11]
and ecx, 7
sub ecx, r11d
mov r11d, r10d
sar r11d, 3
shlx ecx, r8d, ecx
sub edi, r11d
mov r11d, edi
shl r11d, 3
shlx ecx, ecx, r11d
lea r11d, [rax - 4]
or edx, ecx
test r10d, r10d
js 0x4122dc
mov r10d, r11d
mov ebx, r9d
sub eax, 5
sar r10d, 0x1f
shr r10d, 0x1d
lea ecx, [r11 + r10]
and ecx, 7
sub ecx, r10d
mov r10d, r11d
sar r10d, 3
shlx ecx, r8d, ecx
sub ebx, r10d
mov r10d, ebx
shl r10d, 3
shlx ecx, ecx, r10d
or edx, ecx
test r11d, r11d
js 0x4122dc
mov r10d, eax
sar r10d, 0x1f
shr r10d, 0x1d
lea ecx, [rax + r10]
sar eax, 3
and ecx, 7
sub r9d, eax
sub ecx, r10d
shl r9d, 3
shlx r8d, r8d, ecx
shlx r8d, r8d, r9d
or edx, r8d
mov dword [r14 + 4], edx
mov dword [r14], 0
mov edi, 0x18
xor esi, esi
jmp 0x4122f8
cmp esi, 3
jg 0x412353
mov r15, r14
mov edx, 0x2e
mov rcx, r15
xor r14d, r14d
call sub.msvcrt.dll_strchr
test rax, rax
je 0x412314
mov byte [rax], 0
lea r14, [rax + 1]
mov rcx, r15
call sub.msvcrt.dll_atoi
cmp eax, 0xff
ja 0x411f6e
movsxd rdx, dword [0x0066e0d0]
shlx eax, eax, edi
inc esi
sub edi, 8
lea rcx, [rdx + rdx*2]
mov rbx, rdx
mov rdx, qword [0x006e3718]
lea rdx, [rdx + rcx*4]
or eax, dword [rdx]
mov dword [rdx], eax
test r14, r14
jne 0x4122f0
and eax, dword [rdx + 4]
mov dword [rdx], eax
jmp 0x411b6e
mov dword [r14 + 4], 0xffffffff
jmp 0x4122e0
mov byte [rsp + 0x270], 0
jmp 0x411ce5
je 0x411df6
jmp 0x411e01
mov rax, qword [0x006d0440]
cmp byte [rax], 0
je 0x411e51
test ebx, ebx
jle 0x411e51
mov r9, rdi
mov r8, r14
mov ecx, 5
lea rdx, str.API:_exec_command__s__s_
call fcn.0040ab00
jmp 0x411e51
lea r8, str.___API_will_not_be_available
lea rdx, str.API_not_running__no_valid_IPs_specified__s
mov ecx, 2
call fcn.0040ab00
jmp 0x411b9d
lea rdx, str.API_disabled
mov ecx, 5
call fcn.0040ab00
jmp 0x411fe1
lea rbx, [rsp + 0x170]
lea rcx, [r15 + 5]
mov qword [rsp + 0x170], 0
lea rdx, [0x00676100]
mov r8, rbx
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
mov qword [rsp + 0x1d0], 0
mov qword [rsp + 0x1d8], 0
mov qword [rsp + 0x1e0], 0
mov qword [rsp + 0x1e8], 0
mov qword [rsp + 0x1f0], 0
mov qword [rsp + 0x1f8], 0
mov qword [rsp + 0x200], 0
mov qword [rsp + 0x208], 0
mov qword [rsp + 0x210], 0
mov qword [rsp + 0x218], 0
mov qword [rsp + 0x220], 0
mov qword [rsp + 0x228], 0
mov qword [rsp + 0x230], 0
mov qword [rsp + 0x238], 0
mov qword [rsp + 0x240], 0
mov qword [rsp + 0x248], 0
mov qword [rsp + 0x250], 0
mov qword [rsp + 0x258], 0
mov qword [rsp + 0x260], 0
mov qword [rsp + 0x268], 0
call sub.msvcrt.dll_sscanf
mov edx, 0x2f
mov rcx, rbx
call sub.msvcrt.dll_strchr
test rax, rax
je 0x4125c5
mov byte [rax], 0x7c
mov edx, 0x2f
mov rcx, rbx
call sub.msvcrt.dll_strchr
test rax, rax
je 0x4125c5
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 0x412c45
mov r8, rbx
lea rdx, [0x00676337]
mov rcx, r14
call sub.msvcrt.dll_sprintf
mov ebx, eax
jmp 0x411e2d
lea rax, str.___API_will_not_be_available
mov r9, rbx
mov r8d, esi
mov ecx, 2
mov qword [rsp + 0x20], rax
lea rdx, str.API_bind_to_port__d_failed___s__s
call fcn.0040ab00
mov rcx, qword [rsp + 0x48]
add rsp, 0x4278
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
mov ecx, 1
lea rdx, str.API_initialisation_failed___s__s
mov r8, rax
call fcn.0040ab00
jmp 0x411fe1
call qword [sym.imp.msvcrt.dll__errno]
mov ecx, dword [rax]
call sub.msvcrt.dll_strerror
lea r9, str.___API_will_not_be_available
mov ecx, 1
lea rdx, str.API_initialisation_2_failed___s__s
mov r8, rax
call fcn.0040ab00
jmp 0x411fe1
call qword [sym.imp.msvcrt.dll__errno]
mov ecx, dword [rax]
call sub.msvcrt.dll_strerror
lea r9, str.___API_will_not_be_available
mov ecx, 1
lea rdx, str.API_failed___s__s
mov r8, rax
call fcn.0040ab00
jmp 0x411fc1
mov byte [rsp + rdx + 0x270], 0
test eax, eax
je 0x412c00
lea edx, [rbx - 2]
mov ebx, eax
movsxd rdx, edx
cmp byte [rsp + rdx + 0x270], 0xd
jne 0x411df6
mov byte [rsp + rdx + 0x270], 0
jmp 0x411df6
vzeroupper
jmp 0x4122dc
call qword [sym.imp.msvcrt.dll__errno]
mov ecx, dword [rax]
call sub.msvcrt.dll_strerror
lea r9, str.___API_will_not_be_available
mov ecx, 1
lea rdx, str.API_initialisation_3_failed___s__s
mov r8, rax
call fcn.0040ab00
mov rcx, r13
call qword [sym.imp.WS2_32.dll_closesocket]
jmp 0x412623
mov ebx, 3
nop dword [rax + rax]
test rdi, rdi
je 0x412770
cmp byte [rdi], 0
je 0x412770
mov rcx, rdi
call sub.msvcrt.dll_strlen
lea rax, [rdi + rax - 1]
cmp byte [rax], 0x7c
jne 0x412770
mov byte [rax], 0
nop
movsxd rax, ebx
lea rdx, str.summary
mov rcx, rdi
shl rax, 4
call qword [rdx + rax + 8]
mov qword [rsp + 0x58], rax
test r15, r15
je 0x412d16
mov rax, qword [0x006d0440]
mov qword [rsp + 0xf0], 0
mov qword [rsp + 0xf8], 0
mov qword [rsp + 0x100], 0
cmp byte [rax], 0
mov qword [rsp + 0x108], 0
mov qword [rsp + 0x110], 0
mov qword [rsp + 0x118], 0
mov qword [rsp + 0x120], 0
mov qword [rsp + 0x128], 0
mov qword [rsp + 0x130], 0
mov qword [rsp + 0x138], 0
mov qword [rsp + 0x140], 0
mov qword [rsp + 0x148], 0
mov qword [rsp + 0x150], 0
mov qword [rsp + 0x158], 0
mov qword [rsp + 0x160], 0
mov qword [rsp + 0x168], 0
jne 0x412c9a
lea r14, [rsp + 0xf0]
lea rdx, str._s258EAFA5_E914_47DA_95CA_C5AB0DC85B11
mov r8, r15
mov rcx, r14
call sub.msvcrt.dll_sprintf
mov rdx, r14
mov ecx, dword [rdx]
add rdx, 4
lea eax, [rcx - 0x1010101]
andn eax, ecx, eax
and eax, 0x80808080
je 0x412880
mov ecx, eax
lea rbx, [rsp + 0x90]
shr ecx, 0x10
test eax, 0x8080
mov r8, rbx
cmove eax, ecx
lea rcx, [rdx + 2]
cmove rdx, rcx
mov rcx, r14
mov edi, eax
add dil, al
sbb rdx, 3
sub rdx, r14
call sub.libcrypto_1_1_x64.dll_SHA1
mov edx, 0x1e
mov ecx, 1
lea rax, [rsp + 0xb0]
mov qword [rsp + 0x50], 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 0x412a69
mov ebp, 0x14
xor r15d, r15d
lea rsi, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
lea rdi, str._c_c_c_c
nop word [rax + rax]
movzx eax, byte [rbx + 1]
movzx r8d, byte [rbx]
lea rcx, [r14 + r15]
mov r10d, eax
shl eax, 2
shr r10b, 4
and eax, 0x3c
cmp ebp, 2
je 0x412ba3
movzx edx, byte [rbx + 2]
mov r9d, r8d
shl r8d, 4
sub ebp, 3
and r8d, 0x30
shr r9b, 2
add rbx, 3
add r15, 4
mov r11, rdx
shr dl, 6
or r10d, r8d
and r9d, 0x3f
or edx, eax
movsx r10, r10b
and r11d, 0x3f
movsx r9d, byte [rsi + r9]
movsx rax, dl
movsx r11d, byte [rsi + r11]
mov r8, rdi
mov edx, 5
movsx eax, byte [rsi + rax]
mov dword [rsp + 0x30], r11d
mov dword [rsp + 0x28], eax
movsx eax, byte [rsi + r10]
mov dword [rsp + 0x20], eax
call fcn.004119a0
test ebp, ebp
jne 0x412970
mov rdi, qword [rsp + 0x50]
mov rdx, r15
mov r9, r14
lea r8, [0x00676337]
mov rcx, rdi
call fcn.00411620
mov rdx, rdi
mov ecx, dword [rdx]
add rdx, 4
lea eax, [rcx - 0x1010101]
andn eax, ecx, eax
and eax, 0x80808080
je 0x412a1d
mov ecx, eax
shr ecx, 0x10
test eax, 0x8080
cmove eax, ecx
lea rcx, [rdx + 2]
cmove rdx, rcx
mov ebx, eax
add bl, al
sbb rdx, 3
sub rdx, qword [rsp + 0x50]
cmp rdx, 0x1b
je 0x412d71
mov rcx, r14
call sub.msvcrt.dll_free
mov r8, qword [rsp + 0x50]
lea rbx, [rsp + 0x170]
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 sub.msvcrt.dll_sprintf
xor ecx, ecx
mov qword [rsp + 0x66], 0
mov word [rsp + 0x6e], cx
mov rcx, qword [rsp + 0x58]
mov byte [rsp + 0x66], 0x81
call sub.msvcrt.dll_strlen
mov rdi, rax
cmp rax, 0x7d
jbe 0x412c86
cmp rax, 0xffff
ja 0x412d55
mov byte [rsp + 0x67], 0x7e
mov ebp, 4
mov r15d, 4
movbe word [rsp + 0x68], ax
mov rsi, rbx
mov edx, dword [rsi]
add rsi, 4
lea eax, [rdx - 0x1010101]
andn eax, edx, eax
and eax, 0x80808080
je 0x412ad7
mov edx, eax
mov ecx, 1
shr edx, 0x10
test eax, 0x8080
cmove eax, edx
lea rdx, [rsi + 2]
cmove rsi, rdx
mov edx, eax
add dl, al
lea rdx, [r15 + rdi + 1]
sbb rsi, 3
sub rsi, rbx
add rdx, rsi
call sub.msvcrt.dll_calloc
mov r14, rax
test rax, rax
je 0x411ecb
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call sub.msvcrt.dll_memcpy
lea rax, [r14 + rsi]
lea r8, [rsp + 0x66]
mov edx, r15d
cmp r15d, 8
jae 0x412ce3
test r15b, 4
jne 0x412da3
test edx, edx
je 0x412b6e
movzx ecx, byte [r8]
mov byte [rax], cl
test dl, 2
jne 0x412db6
mov rdx, qword [rsp + 0x58]
lea rcx, [rax + r15]
mov r8, rdi
call sub.msvcrt.dll_memcpy
lea eax, [rbp + rdi + 1]
mov rcx, r12
xor r9d, r9d
lea r8d, [rax + rsi]
mov rdx, r14
call qword [sym.imp.WS2_32.dll_send]
mov rcx, r14
call sub.msvcrt.dll_free
jmp 0x411ecb
mov edi, r10d
mov edx, r8d
shl r8d, 4
mov r10, rcx
and r8d, 0x30
mov ecx, edi
movsx rax, al
shr dl, 2
movsx eax, byte [rsi + rax]
or ecx, r8d
and edx, 0x3f
add r15, 4
movsx rcx, cl
movsx r9d, byte [rsi + rdx]
lea r8, str._c_c_c
mov edx, 5
mov dword [rsp + 0x28], eax
movsx eax, byte [rsi + rcx]
mov rcx, r10
mov dword [rsp + 0x20], eax
call fcn.004119a0
jmp 0x412a00
xor ebx, ebx
jmp 0x411df6
mov ecx, 1
jmp 0x411a80
mov r8d, ecx
mov edx, 1
sar ecx, 3
sub eax, 2
and r8d, 7
shlx r8d, edx, r8d
mov edx, 3
sub edx, ecx
shl edx, 3
shlx edx, r8d, edx
jmp 0x412164
mov edx, 0xd
mov rcx, rax
call sub.msvcrt.dll_strchr
test rax, rax
je 0x412c5a
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 0x4125e0
nop dword [rax]
inc r15
cmp byte [r15], 0x20
je 0x412c78
jmp 0x4125e0
mov byte [rsp + 0x67], al
mov ebp, 2
mov r15d, 2
jmp 0x412ad4
mov r8, r15
lea rdx, str.clientkey:__s
mov ecx, 5
call fcn.0040ab00
jmp 0x412863
mov ecx, 1
call fcn.004041c0
mov rax, qword [rsp + 0x48]
movzx esi, byte [rax]
jmp 0x411a9a
mov ecx, 1
call fcn.004041c0
mov rax, qword [0x006d0370]
mov rdx, qword [rax]
jmp 0x411a44
mov rdx, qword [r8 + r15 - 8]
mov qword [rax + r15 - 8], rdx
lea edx, [r15 - 1]
cmp edx, 8
jb 0x412b6e
and edx, 0xfffffff8
xor ecx, ecx
mov r9d, ecx
add ecx, 8
mov r10, qword [r8 + r9]
mov qword [rax + r9], r10
cmp ecx, edx
jb 0x412cff
jmp 0x412b6e
cmp qword [rsp + 0x58], 0
je 0x412d85
mov rcx, rax
mov rbx, rax
call sub.msvcrt.dll_strlen
xor r9d, r9d
mov rdx, rbx
mov rcx, r12
lea r8d, [rax + 1]
call qword [sym.imp.WS2_32.dll_send]
jmp 0x411ecb
mov ebx, 1
jmp 0x412750
mov ebx, 2
jmp 0x412750
mov byte [rsp + 0x67], 0x7f
mov ebp, 0xa
mov r15d, 0xa
movbe qword [rsp + 0x68], rax
jmp 0x412ad4
mov r8d, 0x3d
mov word [rsp + 0xcb], r8w
jmp 0x412a61
xor r9d, r9d
mov r8d, 1
lea rdx, [0x00676425]
mov rcx, r12
call qword [sym.imp.WS2_32.dll_send]
jmp 0x411ecb
mov ecx, dword [r8]
mov dword [rax], ecx
mov ecx, dword [r8 + rdx - 4]
mov dword [rax + rdx - 4], ecx
jmp 0x412b6e
movzx ecx, word [r8 + rdx - 2]
mov word [rax + rdx - 2], cx
jmp 0x412b6e