Function at 0x140002cd0
Capabilities:
Encode data using xor
Prepare http request
Receive http response
Set http header

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0xf]
sub rsp, 0xf8
mov rax, qword [0x14009b080]
xor rax, rsp
mov qword [rbp - 9], rax
mov qword [rsp + 0x58], r9
mov r13, r8
mov rdi, rdx
mov r14, rcx
mov qword [rsp + 0x60], rcx
mov qword [rbp - 0x71], rdx
mov rsi, qword [rbp + 0x77]
xor r12b, r12b
cmp qword [rcx], 0
jne 0x140002d63
mov rdx, qword [rdx + 0x18]
cmp rdx, 7
jbe 0x140002d5a
lea rdx, [rdx*2 + 2]
mov rcx, qword [rdi]
cmp rdx, 0x1000
jb 0x140002d55
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1400032b3
mov rcx, r8
call fcn.140079b3c
xor ebx, ebx
xor al, al
jmp 0x140003284
xor ebx, ebx
mov word [rbp - 0x79], bx
xorps xmm0, xmm0
movups xmmword [rbp - 0x41], xmm0
movdqa xmm1, xmmword [0x14008e8b0]
movdqu xmmword [rbp - 0x31], xmm1
mov word [rbp - 0x41], bx
movups xmmword [rbp - 0x61], xmm0
movdqu xmmword [rbp - 0x51], xmm1
mov word [rbp - 0x61], bx
lea r9, [rbp - 0x79]
lea r8, [rbp - 0x61]
lea rdx, [rbp - 0x41]
mov rcx, rdi
call fcn.140002920
lea rdx, [rbp - 0x41]
cmp qword [rbp - 0x29], 7
cmova rdx, qword [rbp - 0x41]
xor r9d, r9d
movzx r15d, word [rbp - 0x79]
movzx r8d, r15w
mov rcx, qword [r14]
call qword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov r10, rax
mov qword [rsp + 0x68], rax
test rax, rax
jne 0x140002ebe
mov rdx, qword [rbp - 0x49]
cmp rdx, 7
jbe 0x140002e16
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x61]
cmp rdx, 0x1000
mov rax, rcx
jb 0x140002e11
mov rcx, qword [rcx - 8]
sub rax, rcx
add rdx, 0x27
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400031d4
call fcn.140079b3c
movdqa xmm0, xmmword [0x14008e8b0]
mov word [rbp - 0x61], bx
movdqu xmmword [rbp - 0x51], xmm0
mov rdx, qword [rbp - 0x29]
cmp rdx, 7
jbe 0x140002e67
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x41]
cmp rdx, 0x1000
mov rax, rcx
jb 0x140002e62
mov rcx, qword [rcx - 8]
sub rax, rcx
add rdx, 0x27
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140003228
call fcn.140079b3c
movdqa xmm0, xmmword [0x14008e8b0]
mov word [rbp - 0x41], bx
movdqu xmmword [rbp - 0x31], xmm0
mov rdx, qword [rdi + 0x18]
cmp rdx, 7
jbe 0x140002eb7
lea rdx, [rdx*2 + 2]
cmp rdx, 0x1000
mov rcx, qword [rdi]
jb 0x140002eb2
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1400032b3
mov rcx, r8
call fcn.140079b3c
xor al, al
jmp 0x140003284
mov rax, qword [0x14008bd78]
mov qword [rbp - 0x69], rax
cmp word [0x14008bd7e], 0
je 0x140002f94
cmp dword [reloc.WS2_32.dll_accept], 2
jl 0x140002f53
movdqa xmm3, xmmword [0x14008e8d0]
movdqa xmm2, xmm3
punpckldq xmm2, xmm3
pmuldq xmm2, xmmword [0x14008e970]
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmmword [0x14008e970]
shufps xmm2, xmm0, 0xdd
psrad xmm2, 3
movdqa xmm0, xmm2
psrld xmm0, 0x1f
paddd xmm0, xmm2
pmulld xmm0, xmmword [0x14008e8f0]
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
paddw xmm2, xmmword [str.::::::::]
movq xmm0, qword [rbp - 0x69]
xorps xmm2, xmm0
movq qword [rbp - 0x69], xmm2
jmp 0x140002f94
lea r9, [rbp - 0x69]
mov r8d, ebx
nop word [rax + rax]
mov eax, 0x22b63cbf
imul r8d
sar edx, 3
mov eax, edx
shr eax, 0x1f
add edx, eax
movzx eax, dx
imul ecx, eax, 0x3b
movzx eax, r8w
sub ax, cx
add ax, 0x3a
xor word [r9], ax
inc r8d
lea r9, [r9 + 2]
cmp r8d, 4
jl 0x140002f60
lea rax, [rbp - 0x69]
mov qword [rbp - 0x19], rax
mov qword [rbp - 0x11], rbx
mov ecx, 0x1bb
mov r9d, ebx
mov eax, 0x800000
cmp r15w, cx
cmove r9d, eax
mov rcx, qword [r14 + 8]
movups xmm0, xmmword [0x14008bd88]
movups xmmword [rsp + 0x40], xmm0
movzx eax, word [0x14008bd98]
mov edx, 0x48
mov word [rsp + 0x40], dx
xor word [rsp + 0x42], 0x3b
xor word [rsp + 0x44], 0x3c
xor word [rsp + 0x46], 0x3d
xor word [rsp + 0x48], 0x3e
xor word [rsp + 0x4a], 0x3f
xor word [rsp + 0x4c], 0x40
xor word [rsp + 0x4e], 0x41
xor ax, 0x42
mov word [rsp + 0x50], ax
lea r8, [rbp - 0x61]
cmp qword [rbp - 0x49], 7
cmova r8, qword [rbp - 0x61]
mov dword [rsp + 0x30], r9d
lea rax, [rbp - 0x19]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rcx
lea r9, [rsp + 0x40]
mov rdx, qword [rsp + 0x58]
mov rcx, r10
call qword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov r14, rax
test rax, rax
je 0x140002dd6
mov dword [rbp - 0x21], 2
mov r9d, 4
lea r8, [rbp - 0x21]
lea edx, [r9 + 0x3b]
mov rcx, rax
call qword [sym.imp.WINHTTP.dll_WinHttpSetOption]
mov r9d, 0x20000000
mov r8d, 0xffffffff
lea rdx, str.Content_Type:_application_x_www_form_urlencoded
mov rcx, r14
call qword [sym.imp.WINHTTP.dll_WinHttpAddRequestHeaders]
test eax, eax
je 0x140003188
mov qword [rsp + 0x30], rbx
mov eax, dword [rbp + 0x7f]
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], eax
mov r9, rsi
xor r8d, r8d
xor edx, edx
mov rcx, r14
call qword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
je 0x140003188
xor edx, edx
mov rcx, r14
call qword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
je 0x140003188
mov r15d, ebx
mov rsi, 0xffffffffffffffff
mov dword [rbp - 0x69], ebx
mov dword [rbp - 0x79], ebx
lea rdx, [rbp - 0x79]
mov rcx, r14
call qword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
je 0x14000316f
mov eax, dword [rbp - 0x79]
test eax, eax
je 0x14000316f
add eax, 1
mov ecx, eax
cmovb rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rsi, rax
mov r8d, dword [rbp - 0x79]
inc r8d
xor edx, edx
mov rcx, rax
call sub.VCRUNTIME140.dll_memset
lea r9, [rbp - 0x69]
mov r8d, dword [rbp - 0x79]
mov rdx, rsi
mov rcx, r14
call qword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
je 0x140003161
mov r9d, dword [rbp - 0x79]
mov rdx, qword [r13 + 8]
mov r8, rsi
mov rcx, r13
call fcn.140004160
add r15d, dword [rbp - 0x69]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
cmp dword [rbp - 0x79], 0
mov rsi, 0xffffffffffffffff
ja 0x1400030d1
jmp 0x14000316f
test rsi, rsi
je 0x14000316f
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rax, qword [rsp + 0x60]
mov dword [rax + 0x18], r15d
movzx r12d, r12b
mov eax, 1
test r15d, r15d
cmovne r12d, eax
mov rcx, r14
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
nop
mov rdx, qword [rbp - 0x49]
cmp rdx, 7
jbe 0x1400031e0
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x61]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400031db
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400031db
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140079b3c
movdqa xmm0, xmmword [0x14008e8b0]
movdqu xmmword [rbp - 0x51], xmm0
mov word [rbp - 0x61], bx
mov rdx, qword [rbp - 0x29]
cmp rdx, 7
jbe 0x140003234
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x41]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000322f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000322f
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140079b3c
movdqa xmm0, xmmword [0x14008e8b0]
movdqu xmmword [rbp - 0x31], xmm0
mov word [rbp - 0x41], bx
mov rdx, qword [rdi + 0x18]
cmp rdx, 7
jbe 0x140003280
lea rdx, [rdx*2 + 2]
mov rcx, qword [rdi]
cmp rdx, 0x1000
jb 0x14000327b
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1400032b3
mov rcx, r8
call fcn.140079b3c
movzx eax, r12b
mov word [rdi], bx
mov qword [rdi + 0x18], 7
mov qword [rdi + 0x10], rbx
mov rcx, qword [rbp - 9]
xor rcx, rsp
call fcn.140079ae0
add rsp, 0xf8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3