Function at 0x140022b24
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 [0x140050900]
xor rax, rsp
mov qword [rsp + 0x88], rax
mov rsi, r8
mov r12, rdx
mov qword [rsp + 0x40], rdx
mov qword [rsp + 0x28], r8
xor edi, edi
mov r15d, edi
lea r14d, [rdi + 5]
mov dword [rsp + 0x24], edi
mov qword [r8 + 0x10], rdi
mov rax, r8
cmp qword [r8 + 0x18], 8
jb 0x140022b87
mov rax, qword [r8]
mov word [rax], di
mov qword [rsp + 0x78], rdi
mov qword [rsp + 0x80], 0xf
mov byte [rsp + 0x68], dil
mov eax, r14d
dec r14d
mov dword [rsp + 0x30], r14d
test eax, eax
jle 0x140022be2
lea rdx, [rsp + 0x24]
mov rcx, qword [r12]
call qword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
jne 0x140022c00
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 r15d, 0x80004005
test ecx, ecx
cmovs r15d, ecx
cmp qword [rsp + 0x78], rdi
jne 0x140022c8b
lea rdx, str.Payload_is_empty
xor ecx, ecx
call fcn.140009844
jmp 0x140022ead
mov eax, dword [rsp + 0x24]
test eax, eax
je 0x140022be2
lea ecx, [rax + 1]
lea rdx, [0x1400514d6]
call fcn.14002d528
mov rbx, rax
mov qword [rsp + 0x38], rax
test rax, rax
jne 0x140022c2c
mov r15d, 0x8007000e
jmp 0x140022be2
lea r9, [rsp + 0x24]
mov r8d, dword [rsp + 0x24]
mov rdx, rbx
mov rcx, qword [r12]
call qword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
je 0x140022bc2
mov eax, dword [rsp + 0x24]
mov byte [rax + rbx], dil
mov rdx, rbx
lea rcx, [rsp + 0x68]
call fcn.14000a2c0
nop
jmp 0x140022c7e
mov rcx, rbx
call fcn.14002c338
jmp 0x140022ba0
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 rbx, rax
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x48], xmm0
mov qword [rsp + 0x58], rdi
mov rdx, rax
lea rcx, [rsp + 0x48]
call fcn.140022ffc
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 0x140022f20
mov r8, rbx
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o_mbstowcs]
mov r14, qword [rsp + 0x48]
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x38], rax
cmp r14, rax
je 0x140022e61
movabs rdx, 0x7ffffffffffffffe
movzx ecx, word [r14]
mov word [rsp + 0x20], cx
mov r12, qword [rsi + 0x10]
mov r13, qword [rsi + 0x18]
mov qword [rsp + 0x40], r13
cmp r12, r13
jae 0x140022d5d
lea rax, [r12 + 1]
mov qword [rsi + 0x10], rax
mov rax, rsi
cmp r13, 8
jb 0x140022d4d
mov rax, qword [rsi]
mov word [rax + r12*2], cx
mov word [rax + r12*2 + 2], di
jmp 0x140022e4d
mov rax, rdx
sub rax, r12
cmp rax, 1
jb 0x140022f26
lea rbx, [r12 + 1]
or rbx, 7
cmp rbx, rdx
jbe 0x140022d80
mov rbx, rdx
jmp 0x140022d9c
mov rcx, r13
shr rcx, 1
mov rax, rdx
sub rax, rcx
cmp r13, rax
ja 0x140022d7b
lea rax, [rcx + r13]
cmp rbx, rax
cmovb rbx, rax
lea rdx, [rbx + 1]
call fcn.14000c0c0
mov qword [rsp + 0x28], rax
lea rcx, [r12 + 1]
mov qword [rsi + 0x10], rcx
mov qword [rsi + 0x18], rbx
lea rbx, [r12 + r12]
mov rcx, rax
mov r8, rbx
cmp r13, 8
jb 0x140022e23
mov r13, qword [rsi]
mov rdx, r13
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
mov r12, qword [rsp + 0x28]
movzx eax, word [rsp + 0x20]
mov word [r12 + rbx], ax
mov word [r12 + rbx + 2], di
mov rax, qword [rsp + 0x40]
lea rdx, [rax*2 + 2]
cmp rdx, 0x1000
jb 0x140022e19
add rdx, 0x27
mov rcx, qword [r13 - 8]
sub r13, rcx
lea rax, [r13 - 8]
cmp rax, 0x1f
ja 0x140022e9d
mov r13, rcx
mov rcx, r13
call fcn.14002c338
jmp 0x140022e40
mov rdx, rsi
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
mov r12, qword [rsp + 0x28]
movzx eax, word [rsp + 0x20]
mov word [r12 + rbx], ax
mov word [r12 + rbx + 2], di
movabs rdx, 0x7ffffffffffffffe
mov qword [rsi], r12
add r14, 2
cmp r14, qword [rsp + 0x38]
jne 0x140022d1d
mov r14, qword [rsp + 0x48]
test r14, r14
je 0x140022ead
mov rax, qword [rsp + 0x58]
sub rax, r14
sar rax, 1
lea rdx, [rax + rax]
mov rax, r14
cmp rdx, 0x1000
jb 0x140022ea4
add rdx, 0x27
mov r14, qword [r14 - 8]
sub rax, r14
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140022ea4
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o__invalid_parameter_noinfo_noreturn]
nop
mov rcx, r14
call fcn.14002c338
nop
mov rdx, qword [rsp + 0x80]
cmp rdx, 0x10
jb 0x140022ef0
inc rdx
mov rcx, qword [rsp + 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140022eeb
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140022eeb
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o__invalid_parameter_noinfo_noreturn]
int3
call fcn.14002c338
mov eax, r15d
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.14002c310
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.140022fe4
nop
call fcn.14000d75c
int3