Function at 0x140024204
Capabilities:
Receive http response

Disassembly:
mov rax, rsp
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x90
mov qword [rax - 0x58], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x20], rsi
mov rax, qword [0x140051ad0]
xor rax, rsp
mov qword [rsp + 0x88], rax
mov rdi, r8
mov r12, rdx
mov qword [rsp + 0x40], rdx
mov qword [rsp + 0x28], r8
xor ebx, ebx
mov r14d, ebx
lea r15d, [rbx + 5]
mov dword [rsp + 0x24], ebx
mov qword [r8 + 0x10], rbx
mov rax, r8
cmp qword [r8 + 0x18], 8
jb 0x140024267
mov rax, qword [r8]
mov word [rax], bx
mov qword [rsp + 0x78], rbx
mov qword [rsp + 0x80], 0xf
mov byte [rsp + 0x68], bl
mov eax, r15d
dec r15d
mov dword [rsp + 0x30], r15d
test eax, eax
jle 0x1400242c1
lea rdx, [rsp + 0x24]
mov rcx, qword [r12]
call qword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
jne 0x1400242df
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
mov r14d, 0x80004005
test ecx, ecx
cmovs r14d, ecx
cmp qword [rsp + 0x78], rbx
jne 0x140024369
lea rdx, str.Payload_is_empty
xor ecx, ecx
call fcn.14000a164
jmp 0x140024587
mov eax, dword [rsp + 0x24]
test eax, eax
je 0x1400242c1
lea ecx, [rax + 1]
lea rdx, [0x140053040]
call fcn.14002e968
mov rsi, rax
mov qword [rsp + 0x38], rax
test rax, rax
jne 0x14002430b
mov r14d, 0x8007000e
jmp 0x1400242c1
lea r9, [rsp + 0x24]
mov r8d, dword [rsp + 0x24]
mov rdx, rsi
mov rcx, qword [r12]
call qword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
je 0x1400242a1
mov eax, dword [rsp + 0x24]
mov byte [rax + rsi], bl
mov rdx, rsi
lea rcx, [rsp + 0x68]
call fcn.14000ad10
nop
jmp 0x14002435c
mov rcx, rsi
call fcn.14002d738
jmp 0x14002427f
lea rdx, [rsp + 0x68]
cmp qword [rsp + 0x80], 0x10
cmovae rdx, qword [rsp + 0x68]
xor r8d, r8d
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o_mbstowcs]
mov rsi, rax
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x48], xmm0
mov qword [rsp + 0x58], rbx
mov rdx, rax
lea rcx, [rsp + 0x48]
call fcn.140024760
lea rdx, [rsp + 0x68]
cmp qword [rsp + 0x80], 0x10
cmovae rdx, qword [rsp + 0x68]
mov rax, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x48]
sub rax, rcx
sar rax, 1
je 0x1400245fa
mov r8, rsi
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o_mbstowcs]
mov rsi, qword [rsp + 0x48]
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x38], rax
cmp rsi, rax
je 0x140024542
movabs rdx, 0x7ffffffffffffffe
movzx ecx, word [rsi]
mov word [rsp + 0x20], cx
mov r12, qword [rdi + 0x10]
mov r13, qword [rdi + 0x18]
cmp r12, r13
jae 0x140024435
lea rax, [r12 + 1]
mov qword [rdi + 0x10], rax
mov rax, rdi
cmp r13, 8
jb 0x140024425
mov rax, qword [rdi]
mov word [rax + r12*2], cx
mov word [rax + r12*2 + 2], bx
jmp 0x14002452e
mov rax, rdx
sub rax, r12
cmp rax, 1
jb 0x140024600
lea r15, [r12 + 1]
or r15, 7
cmp r15, rdx
jbe 0x140024458
mov r15, rdx
jmp 0x140024474
mov rcx, r13
shr rcx, 1
mov rax, rdx
sub rax, rcx
cmp r13, rax
ja 0x140024453
lea rax, [rcx + r13]
cmp r15, rax
cmovb r15, rax
lea rdx, [r15 + 1]
call fcn.14000cbdc
mov qword [rsp + 0x28], rax
lea rcx, [r12 + 1]
mov qword [rdi + 0x10], rcx
mov qword [rdi + 0x18], r15
lea r15, [r12 + r12]
mov qword [rsp + 0x40], r15
mov rcx, rax
cmp r13, 8
jb 0x140024501
mov r15, qword [rdi]
lea r8, [r12 + r12]
mov rdx, r15
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
mov r12, qword [rsp + 0x28]
mov rax, qword [rsp + 0x40]
movzx ecx, word [rsp + 0x20]
mov word [rax + r12], cx
mov word [rax + r12 + 2], bx
lea rdx, [r13*2 + 2]
cmp rdx, 0x1000
jb 0x1400244f7
add rdx, 0x27
mov rcx, qword [r15 - 8]
sub r15, rcx
lea rax, [r15 - 8]
cmp rax, 0x1f
ja 0x140024577
mov r15, rcx
mov rcx, r15
call fcn.14002d738
jmp 0x140024521
mov r8, r15
mov rdx, rdi
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
mov r12, qword [rsp + 0x28]
movzx ecx, word [rsp + 0x20]
mov word [r15 + r12], cx
mov word [r15 + r12 + 2], bx
movabs rdx, 0x7ffffffffffffffe
mov qword [rdi], r12
add rsi, 2
cmp rsi, qword [rsp + 0x38]
jne 0x1400243fb
mov rsi, qword [rsp + 0x48]
test rsi, rsi
je 0x140024587
mov rax, qword [rsp + 0x58]
sub rax, rsi
sar rax, 1
lea rdx, [rax + rax]
mov rax, rsi
cmp rdx, 0x1000
jb 0x14002457e
add rdx, 0x27
mov rsi, qword [rsi - 8]
sub rax, rsi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14002457e
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o__invalid_parameter_noinfo_noreturn]
nop
mov rcx, rsi
call fcn.14002d738
nop
mov rdx, qword [rsp + 0x80]
cmp rdx, 0x10
jb 0x1400245ca
inc rdx
mov rcx, qword [rsp + 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400245c5
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400245c5
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o__invalid_parameter_noinfo_noreturn]
int3
call fcn.14002d738
mov eax, r14d
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.14002d710
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
call fcn.1400246bc
nop
call fcn.14000e430
int3