Function at 0x14001cb70
Capabilities:
Connect to http server
Create http request
Read data from internet
Receive data
Reference http user-agent string
Send data
Send http request
Send http request with host header

Disassembly:
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x1a0
mov rax, qword [0x1400f0028]
xor rax, rsp
mov qword [rsp + 0x198], rax
mov r12, r9
mov r14, r8
mov r15, rdx
mov r13, rcx
mov qword [rsp + 0x58], rcx
mov qword [rsp + 0x68], rcx
mov qword [rsp + 0x128], rdx
mov qword [rsp + 0x130], r8
mov qword [rsp + 0x138], r9
mov rdi, qword [rsp + 0x200]
mov qword [rsp + 0x140], rdi
mov rsi, qword [rsp + 0x208]
mov qword [rsp + 0x118], rsi
mov rax, qword [rsp + 0x210]
mov qword [rsp + 0x170], rax
mov rcx, rdi
cmp qword [rdi + 0x18], 0x10
jb 0x14001cc00
mov rcx, qword [rdi]
mov qword [rsp + 0x20], 0xb
lea r9, str.User_Agent:
xor r8d, r8d
mov rdx, qword [rdi + 0x10]
call fcn.140046d60
cmp rax, 0xffffffffffffffff
jne 0x14001cc37
mov r8d, 0x8f
lea rdx, str.User_Agent:_Mozilla_5.0__Windows_NT_10.0__Win64__x64__AppleWebKit_537.36__KHTML__like_Gecko__Chrome_58.0.3029.110_Safari_537.36_Edge_16.16299_r_n
mov rcx, rdi
call fcn.140006b60
mov rcx, rdi
cmp qword [rdi + 0x18], 0x10
jb 0x14001cc44
mov rcx, qword [rdi]
mov qword [rsp + 0x20], 7
lea r9, str.Accept:
xor r8d, r8d
mov rdx, qword [rdi + 0x10]
call fcn.140046d60
cmp rax, 0xffffffffffffffff
jne 0x14001cc79
lea r8d, [rax + 0xe]
lea rdx, str.Accept:___r_n
mov rcx, rdi
call fcn.140006b60
mov rcx, rdi
cmp qword [rdi + 0x18], 0x10
jb 0x14001cc86
mov rcx, qword [rdi]
mov qword [rsp + 0x20], 0x10
lea r9, str.Accept_Language:
xor r8d, r8d
mov rdx, qword [rdi + 0x10]
call fcn.140046d60
cmp rax, 0xffffffffffffffff
jne 0x14001ccbb
lea r8d, [rax + 0x19]
lea rdx, str.Accept_Language:_en_US_r_n
mov rcx, rdi
call fcn.140006b60
mov rcx, rdi
cmp qword [rdi + 0x18], 0x10
jb 0x14001ccc8
mov rcx, qword [rdi]
mov qword [rsp + 0x20], 0xd
lea r9, str.Content_Type:
xor r8d, r8d
mov rdx, qword [rdi + 0x10]
call fcn.140046d60
cmp rax, 0xffffffffffffffff
jne 0x14001ccfd
lea r8d, [rax + 0x32]
lea rdx, str.Content_Type:_application_x_www_form_urlencoded_r_n
mov rcx, rdi
call fcn.140006b60
mov rcx, rdi
cmp qword [rdi + 0x18], 0x10
jb 0x14001cd0a
mov rcx, qword [rdi]
mov qword [rsp + 0x20], 5
lea r9, [0x1400d05c4]
xor r8d, r8d
mov rdx, qword [rdi + 0x10]
call fcn.140046d60
cmp rax, 0xffffffffffffffff
jne 0x14001cdd3
lea r8d, [rax + 7]
lea rdx, str.Host:
mov rcx, rdi
call fcn.140006b60
mov rdx, r14
lea rcx, [rsp + 0x98]
call fcn.140027980
mov rdx, rax
lea rcx, [rsp + 0x70]
call fcn.14001c100
nop
mov r8, qword [rax + 0x10]
cmp qword [rax + 0x18], 0x10
jb 0x14001cd6f
mov rax, qword [rax]
mov rdx, rax
mov rcx, rdi
call fcn.140006b60
nop
mov rdx, qword [rsp + 0x88]
cmp rdx, 0x10
jb 0x14001cdbe
inc rdx
mov rcx, qword [rsp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001cdb9
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14001cdb9
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400a4c6c
mov r8d, 2
lea rdx, [0x1400af0d0]
mov rcx, rdi
call fcn.140006b60
mov rcx, rdi
cmp qword [rdi + 0x18], 0x10
jb 0x14001cde0
mov rcx, qword [rdi]
mov qword [rsp + 0x20], 8
lea r9, [0x1400d05d8]
xor r8d, r8d
mov rdx, qword [rdi + 0x10]
call fcn.140046d60
cmp rax, 0xffffffffffffffff
jne 0x14001ce43
lea r8d, [rax + 0xa]
lea rdx, str.Referer:
mov rcx, rdi
call fcn.140006b60
mov rdx, r14
cmp qword [r14 + 0x18], 0x10
jb 0x14001ce22
mov rdx, qword [r14]
mov r8, qword [r14 + 0x10]
mov rcx, rdi
call fcn.140006b60
mov r8d, 2
lea rdx, [0x1400af0d0]
mov rcx, rdi
call fcn.140006b60
mov rbx, qword [rsi + 0x10]
test rbx, rbx
je 0x14001ced2
mov rcx, rdi
cmp qword [rdi + 0x18], 0x10
jb 0x14001ce5d
mov rcx, qword [rdi]
mov qword [rsp + 0x20], 8
lea r9, [0x1400d05f8]
xor r8d, r8d
mov rdx, qword [rdi + 0x10]
call fcn.140046d60
cmp rax, 0xffffffffffffffff
jne 0x14001cea5
lea r8d, [rax + 0xa]
lea rdx, str.Cookies:
mov rcx, rdi
call fcn.140006b60
mov rdx, rsi
cmp qword [rsi + 0x18], 0x10
jb 0x14001ce9f
mov rdx, qword [rsi]
mov r8, qword [rsi + 0x10]
jmp 0x14001ceb5
mov rdx, rsi
cmp qword [rsi + 0x18], 0x10
jb 0x14001ceb2
mov rdx, qword [rsi]
mov r8, rbx
mov rcx, rdi
call fcn.140006b60
mov r8d, 2
lea rdx, [0x1400af0d0]
mov rcx, rdi
call fcn.140006b60
mov rcx, rdi
cmp qword [rdi + 0x18], 0x10
jb 0x14001cedf
mov rcx, qword [rdi]
xor ebx, ebx
mov dword [rsp + 0x20], ebx
xor r9d, r9d
xor r8d, r8d
lea edx, [rbx + 1]
call qword [sym.imp.WININET.dll_InternetOpenA]
mov qword [rsp + 0x40], rax
test rax, rax
jne 0x14001d1a7
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9d, eax
lea r10, [rsp + 0x185]
nop dword [rax]
nop word [rax + rax]
dec r10
mov eax, 0xcccccccd
mul r9d
shr edx, 3
movzx ecx, dl
shl cl, 2
lea r8d, [rcx + rdx]
add r8b, r8b
sub r9b, r8b
add r9b, 0x30
mov byte [r10], r9b
mov r9d, edx
test edx, edx
jne 0x14001cf20
lea r8, [rsp + 0x185]
mov rdx, r10
lea rcx, [rsp + 0x150]
call fcn.140009860
nop
mov r9d, 0x22
lea r8, str.InternetOpenA_failed._Last_error:
xor edx, edx
lea rcx, [rsp + 0x150]
call fcn.1400096a0
mov qword [r13], rbx
mov qword [r13 + 0x10], rbx
mov qword [r13 + 0x18], rbx
movups xmm0, xmmword [rax]
movups xmmword [r13], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [r13 + 0x10], xmm1
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], 0xf
mov byte [rax], 0
mov rdx, qword [rsp + 0x168]
cmp rdx, 0x10
jb 0x14001cff3
inc rdx
mov rcx, qword [rsp + 0x150]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001cfee
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14001cfee
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400a4c6c
mov qword [rsp + 0x160], rbx
mov qword [rsp + 0x168], 0xf
mov byte [rsp + 0x150], 0
mov rdx, qword [r15 + 0x18]
cmp rdx, 0x10
jb 0x14001d049
mov rcx, qword [r15]
inc rdx
cmp rdx, 0x1000
jb 0x14001d044
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14001d184
mov rcx, r8
call fcn.1400a4c6c
mov qword [r15 + 0x10], rbx
mov qword [r15 + 0x18], 0xf
mov byte [r15], 0
mov rdx, qword [r14 + 0x18]
cmp rdx, 0x10
jb 0x14001d093
mov rcx, qword [r14]
inc rdx
cmp rdx, 0x1000
jb 0x14001d08e
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14001d18b
mov rcx, r8
call fcn.1400a4c6c
mov qword [r14 + 0x10], rbx
mov qword [r14 + 0x18], 0xf
mov byte [r14], 0
mov rdx, qword [r12 + 0x18]
cmp rdx, 0x10
jb 0x14001d0df
mov rcx, qword [r12]
inc rdx
cmp rdx, 0x1000
jb 0x14001d0da
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14001d192
mov rcx, r8
call fcn.1400a4c6c
mov qword [r12 + 0x10], rbx
mov qword [r12 + 0x18], 0xf
mov byte [r12], 0
mov rdx, qword [rdi + 0x18]
cmp rdx, 0x10
jb 0x14001d128
mov rcx, qword [rdi]
inc rdx
cmp rdx, 0x1000
jb 0x14001d123
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14001d199
mov rcx, r8
call fcn.1400a4c6c
mov qword [rdi + 0x10], rbx
mov qword [rdi + 0x18], 0xf
mov byte [rdi], 0
mov rdx, qword [rsi + 0x18]
cmp rdx, 0x10
jb 0x14001d16d
mov rcx, qword [rsi]
inc rdx
cmp rdx, 0x1000
jb 0x14001d168
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14001d1a0
mov rcx, r8
call fcn.1400a4c6c
mov qword [rsi + 0x10], rbx
mov qword [rsi + 0x18], 0xf
mov byte [rsi], 0
mov rax, r13
jmp 0x14001dbef
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
mov rcx, r14
cmp qword [r14 + 0x18], 0x10
jb 0x14001d1b4
mov rcx, qword [r14]
mov qword [rsp + 0x20], 5
lea r9, str.https
xor r8d, r8d
mov rdx, qword [r14 + 0x10]
call fcn.140046d60
mov r13, rax
mov ebx, dword [rsp + 0x218]
cmp ebx, 0xffffffff
jne 0x14001d1ef
cmp rax, 0xffffffffffffffff
mov ebx, 0x1bb
jne 0x14001d1ef
mov ebx, 0x50
mov rdx, r14
lea rcx, [rsp + 0xd8]
call fcn.140027980
mov rdx, rax
lea rcx, [rsp + 0x98]
call fcn.14001c100
cmp qword [rax + 0x18], 0x10
jb 0x14001d219
mov rax, qword [rax]
xor ecx, ecx
mov qword [rsp + 0x38], rcx
mov dword [rsp + 0x30], ecx
mov dword [rsp + 0x28], 3
mov qword [rsp + 0x20], rcx
xor r9d, r9d
movzx r8d, bx
mov rdx, rax
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.WININET.dll_InternetConnectA]
mov rbx, rax
mov qword [rsp + 0x60], rax
mov rdx, qword [rsp + 0xb0]
cmp rdx, 0x10
jb 0x14001d294
inc rdx
mov rcx, qword [rsp + 0x98]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001d28f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14001d28f
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400a4c6c
mov qword [rsp + 0xa8], 0
mov qword [rsp + 0xb0], 0xf
mov byte [rsp + 0x98], 0
test rbx, rbx
jne 0x14001d53b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9d, eax
lea r10, [rsp + 0x185]
nop
dec r10
mov eax, 0xcccccccd
mul r9d
shr edx, 3
movzx ecx, dl
shl cl, 2
lea r8d, [rcx + rdx]
add r8b, r8b
sub r9b, r8b
add r9b, 0x30
mov byte [r10], r9b
mov r9d, edx
test edx, edx
jne 0x14001d2d0
lea r8, [rsp + 0x185]
mov rdx, r10
lea rcx, [rsp + 0x70]
call fcn.140009860
nop
mov r9d, 0x25
lea r8, str.InternetConnectA_failed._Last_error:
xor edx, edx
lea rcx, [rsp + 0x70]
call fcn.1400096a0
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x170], xmm0
movups xmm0, xmmword [rax + 0x10]
movups xmmword [rsp + 0x118], xmm0
xor r13d, r13d
mov qword [rax + 0x10], r13
mov qword [rax + 0x18], 0xf
mov byte [rax], r13b
mov rdx, qword [rsp + 0x88]
cmp rdx, 0x10
jb 0x14001d397
inc rdx
mov rcx, qword [rsp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001d392
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14001d392
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400a4c6c
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rbx, qword [rsp + 0x58]
movups xmm0, xmmword [rsp + 0x170]
movups xmmword [rbx], xmm0
movups xmm1, xmmword [rsp + 0x118]
movups xmmword [rbx + 0x10], xmm1
mov rdx, qword [r15 + 0x18]
cmp rdx, 0x10
jb 0x14001d3f8
inc rdx
cmp rdx, 0x1000
mov rcx, qword [r15]
jb 0x14001d3f3
mov r8, qword [rcx - 8]
sub rcx, r8
add rdx, 0x27
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14001db1f
mov rcx, r8
call fcn.1400a4c6c
mov qword [r15 + 0x10], r13
mov byte [r15], 0
mov qword [r15 + 0x18], 0xf
mov rdx, qword [r14 + 0x18]
cmp rdx, 0x10
jb 0x14001d442
inc rdx
cmp rdx, 0x1000
mov rcx, qword [r14]
jb 0x14001d43d
mov r8, qword [rcx - 8]
sub rcx, r8
add rdx, 0x27
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14001db26
mov rcx, r8
call fcn.1400a4c6c
mov qword [r14 + 0x10], r13
mov byte [r14], 0
mov qword [r14 + 0x18], 0xf
mov rdx, qword [r12 + 0x18]
cmp rdx, 0x10
jb 0x14001d48e
inc rdx
cmp rdx, 0x1000
mov rcx, qword [r12]
jb 0x14001d489
mov r8, qword [rcx - 8]
sub rcx, r8
add rdx, 0x27
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14001db2d
mov rcx, r8
call fcn.1400a4c6c
mov qword [r12 + 0x10], r13
mov byte [r12], 0
mov qword [r12 + 0x18], 0xf
mov rdx, qword [rdi + 0x18]
cmp rdx, 0x10
jb 0x14001d4db
inc rdx
cmp rdx, 0x1000
mov rcx, qword [rdi]
jb 0x14001d4d6
mov r8, qword [rcx - 8]
sub rcx, r8
add rdx, 0x27
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14001db34
mov rcx, r8
call fcn.1400a4c6c
mov qword [rdi + 0x10], r13
mov qword [rdi + 0x18], 0xf
mov byte [rdi], 0
mov rdx, qword [rsi + 0x18]
cmp rdx, 0x10
jb 0x14001d524
inc rdx
mov rcx, qword [rsi]
cmp rdx, 0x1000
jb 0x14001d51f
mov r8, qword [rcx - 8]
sub rcx, r8
add rdx, 0x27
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14001db3b
mov rcx, r8
call fcn.1400a4c6c
mov qword [rsi + 0x10], r13
mov qword [rsi + 0x18], 0xf
mov byte [rsi], 0
mov rax, rbx
jmp 0x14001dbef
mov rax, qword [rsi + 0x10]
cmp r13, 0xffffffffffffffff
je 0x14001d551
mov ebx, 0x80880010
mov ecx, 0x80800010
jmp 0x14001d55b
mov ebx, 0x80084010
mov ecx, 0x80004010
test rax, rax
cmovne ebx, ecx
mov rdx, r14
lea rcx, [rsp + 0xf8]
call fcn.140027980
mov rdx, rax
lea rcx, [rsp + 0x70]
call fcn.14001c570
cmp qword [rax + 0x18], 0x10
jb 0x14001d588
mov rax, qword [rax]
mov rdx, r15
cmp qword [r15 + 0x18], 0x10
jb 0x14001d595
mov rdx, qword [r15]
xor ecx, ecx
mov qword [rsp + 0x38], rcx
mov dword [rsp + 0x30], ebx
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], rcx
lea r9, str.HTTP_1.1
mov r8, rax
mov r13, qword [rsp + 0x60]
mov rcx, r13
call qword [sym.imp.WININET.dll_HttpOpenRequestA]
mov rbx, rax
mov qword [rsp + 0x48], rax
mov rdx, qword [rsp + 0x88]
cmp rdx, 0x10
jb 0x14001d60d
inc rdx
mov rcx, qword [rsp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001d608
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14001d608
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400a4c6c
mov qword [rsp + 0x80], 0
mov qword [rsp + 0x88], 0xf
mov byte [rsp + 0x70], 0
test rbx, rbx
jne 0x14001d750
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9d, eax
lea r10, [rsp + 0x185]
nop dword [rax]
nop dword [rax + rax]
dec r10
mov eax, 0xcccccccd
mul r9d
shr edx, 3
movzx ecx, dl
shl cl, 2
lea r8d, [rcx + rdx]
add r8b, r8b
sub r9b, r8b
add r9b, 0x30
mov byte [r10], r9b
mov r9d, edx
test edx, edx
jne 0x14001d650
lea r8, [rsp + 0x185]
mov rdx, r10
lea rcx, [rsp + 0x70]
call fcn.140009860
nop
mov r9d, 0x25
lea r8, str.HttpOpenRequestA_failed._Last_error:
xor edx, edx
lea rcx, [rsp + 0x70]
call fcn.1400096a0
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x170], xmm0
movups xmm0, xmmword [rax + 0x10]
movups xmmword [rsp + 0x118], xmm0
mov qword [rax + 0x10], 0
mov qword [rax + 0x18], 0xf
mov byte [rax], 0
mov rdx, qword [rsp + 0x88]
cmp rdx, 0x10
jb 0x14001d718
inc rdx
mov rcx, qword [rsp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001d713
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14001d713
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400a4c6c
mov rcx, r13
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rbx, qword [rsp + 0x58]
xor r13d, r13d
movups xmm0, xmmword [rsp + 0x170]
movups xmmword [rbx], xmm0
movups xmm1, xmmword [rsp + 0x118]
movups xmmword [rbx + 0x10], xmm1
jmp 0x14001d3be
mov dword [rsp + 0x190], 4
lea r9, [rsp + 0x190]
lea r8, [rsp + 0x148]
mov edx, 0x1f
mov rcx, rbx
call qword [sym.imp.WININET.dll_InternetQueryOptionA]
test eax, eax
je 0x14001d7a3
or dword [rsp + 0x148], 0x1180
mov r9d, 4
lea r8, [rsp + 0x148]
lea edx, [r9 + 0x1b]
mov rcx, rbx
call qword [sym.imp.WININET.dll_InternetSetOptionA]
mov r8, qword [r15 + 0x10]
mov rcx, r15
cmp qword [r15 + 0x18], 0x10
jb 0x14001d7b4
mov rcx, qword [r15]
cmp r8, 3
jne 0x14001d7e4
lea rdx, [0x1400d06a8]
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x14001d7e4
mov rdx, rdi
cmp qword [rdi + 0x18], 0x10
jb 0x14001d7d7
mov rdx, qword [rdi]
mov dword [rsp + 0x20], 0
xor r9d, r9d
jmp 0x14001d809
mov eax, dword [r12 + 0x10]
mov r9, r12
cmp qword [r12 + 0x18], 0x10
jb 0x14001d7f8
mov r9, qword [r12]
mov rdx, rdi
cmp qword [rdi + 0x18], 0x10
jb 0x14001d805
mov rdx, qword [rdi]
mov dword [rsp + 0x20], eax
mov r8d, dword [rdi + 0x10]
mov rcx, rbx
call qword [sym.imp.WININET.dll_HttpSendRequestA]
test eax, eax
setne al
test al, al
jne 0x14001d952
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9d, eax
lea r10, [rsp + 0x185]
nop dword [rax]
nop dword [rax + rax]
dec r10
mov eax, 0xcccccccd
mul r9d
shr edx, 3
movzx ecx, dl
shl cl, 2
lea r8d, [rcx + rdx]
add r8b, r8b
sub r9b, r8b
add r9b, 0x30
mov byte [r10], r9b
mov r9d, edx
test edx, edx
jne 0x14001d840
lea r8, [rsp + 0x185]
mov rdx, r10
lea rcx, [rsp + 0x150]
call fcn.140009860
nop
mov r9d, 0x25
lea r8, str.HttpSendRequestA_failed._Last_error:
xor edx, edx
lea rcx, [rsp + 0x150]
call fcn.1400096a0
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x170], xmm0
movups xmm0, xmmword [rax + 0x10]
movups xmmword [rsp + 0x118], xmm0
mov qword [rax + 0x10], 0
mov qword [rax + 0x18], 0xf
mov byte [rax], 0
mov rdx, qword [rsp + 0x168]
cmp rdx, 0x10
jb 0x14001d911
inc rdx
mov rcx, qword [rsp + 0x150]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001d90c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14001d90c
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400a4c6c
mov rcx, r13
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, rbx
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rbx, qword [rsp + 0x58]
xor r13d, r13d
movups xmm0, xmmword [rsp + 0x170]
movups xmmword [rbx], xmm0
movups xmm1, xmmword [rsp + 0x118]
movups xmmword [rbx + 0x10], xmm1
jmp 0x14001d3be
mov qword [rsp + 0x150], 0
xor ebx, ebx
mov qword [rsp + 0x160], rbx
mov qword [rsp + 0x168], 0xf
mov byte [rsp + 0x150], bl
mov ecx, 0x401
call fcn.1400a5008
mov r13, rax
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x14c], 0
nop dword [rax + rax]
xor edx, edx
mov r8d, 0x401
mov rcx, r13
call sub.VCRUNTIME140.dll_memset
lea r9, [rsp + 0x14c]
mov r8d, 0x400
mov rdx, r13
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.WININET.dll_InternetReadFile]
mov r13d, dword [rsp + 0x14c]
mov rcx, qword [rsp + 0x168]
mov rax, rcx
sub rax, rbx
cmp r13, rax
ja 0x14001da22
lea rax, [rbx + r13]
mov qword [rsp + 0x160], rax
lea rax, [rsp + 0x150]
cmp rcx, 0x10
cmovae rax, qword [rsp + 0x150]
add rbx, rax
mov r8d, r13d
mov rdx, qword [rsp + 0x50]
mov rcx, rbx
call sub.VCRUNTIME140.dll_memmove
mov byte [rbx + r13], 0
jmp 0x14001da3c
mov qword [rsp + 0x20], r13
mov r9, qword [rsp + 0x50]
mov rdx, r13
lea rcx, [rsp + 0x150]
call fcn.140008f00
cmp dword [rsp + 0x14c], 0
je 0x14001da58
mov rbx, qword [rsp + 0x160]
mov r13, qword [rsp + 0x50]
jmp 0x14001d9a0
mov ecx, 0x1000
call fcn.1400a5008
mov rbx, rax
xor edx, edx
mov r8d, 0x1000
mov rcx, rbx
call sub.VCRUNTIME140.dll_memset
mov dword [rsp + 0x194], 0xfff
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x194]
mov r8, rbx
mov edx, 0x2b
mov r13, qword [rsp + 0x48]
mov rcx, r13
call qword [sym.imp.WININET.dll_HttpQueryInfoA]
mov r8, 0xffffffffffffffff
nop
inc r8
cmp byte [rbx + r8], 0
jne 0x14001dab0
mov rdx, rbx
mov rcx, qword [rsp + 0x170]
call fcn.140006b60
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, r13
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, qword [rsp + 0x50]
call fcn.1400a4c6c
mov rcx, rbx
call fcn.1400a4c6c
mov rbx, qword [rsp + 0x58]
xor r13d, r13d
movups xmm0, xmmword [rsp + 0x150]
movups xmmword [rbx], xmm0
movups xmm1, xmmword [rsp + 0x160]
movups xmmword [rbx + 0x10], xmm1
jmp 0x14001d3be
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
lea rcx, [rsp + 0x150]
call fcn.1400067b0
nop
mov rcx, qword [rsp + 0x128]
call fcn.1400067b0
nop
mov rcx, qword [rsp + 0x130]
call fcn.1400067b0
nop
mov rcx, qword [rsp + 0x138]
call fcn.1400067b0
nop
mov rcx, qword [rsp + 0x140]
call fcn.1400067b0
nop
mov rcx, qword [rsp + 0x118]
call fcn.1400067b0
jmp 0x14001dbea
mov rax, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x198]
xor rcx, rsp
call fcn.1400a4570
add rsp, 0x1a0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret