Function at 0x140003330
Capabilities:
Create http request
Read data from internet
Receive data

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0xfc0]
mov eax, 0x10c0
call fcn.140013290
sub rsp, rax
mov rax, qword [0x14001c040]
xor rax, rsp
mov qword [rbp + 0xfb0], rax
mov rsi, rcx
xor r12d, r12d
mov r13, 0xffffffffffffffff
mov r15, qword [rcx + 0x10]
movabs rcx, 0x7fffffffffffffff
mov rax, rcx
sub rax, r15
cmp rax, 0x27
jb 0x1400038a4
cmp qword [rsi + 0x18], 0xf
jbe 0x1400033a3
mov rsi, qword [rsi]
xorps xmm0, xmm0
movups xmmword [rbp - 0x78], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x68], xmm1
lea r14, [r15 + 0x27]
mov ebx, 0xf
lea rdi, [rbp - 0x78]
cmp r14, rbx
jbe 0x14000343e
mov rbx, r14
or rbx, 0xf
cmp rbx, rcx
jbe 0x140003400
mov rbx, rcx
movabs rax, 0x8000000000000000
add rax, 0x27
mov rcx, rax
call fcn.140012260
test rax, rax
je 0x140003859
lea rdi, [rax + 0x27]
and rdi, 0xffffffffffffffe0
mov qword [rdi - 8], rax
jmp 0x14000343a
mov eax, 0x16
cmp rbx, rax
cmovb rbx, rax
lea rcx, [rbx + 1]
test rcx, rcx
jne 0x14000341a
mov rdi, r12
jmp 0x14000343a
cmp rcx, 0x1000
jb 0x140003432
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x14000389e
jmp 0x1400033e1
call fcn.140012260
mov rdi, rax
mov qword [rbp - 0x78], rdi
mov qword [rbp - 0x68], r14
mov qword [rbp - 0x60], rbx
movups xmm0, xmmword [str.http:__94.41.21.10:5000_requestkey_key]
movups xmmword [rdi], xmm0
movups xmm1, xmmword [0x1400148d8]
movups xmmword [rdi + 0x10], xmm1
mov eax, dword [0x1400148e8]
mov dword [rdi + 0x20], eax
movzx eax, word [0x1400148ec]
mov word [rdi + 0x24], ax
movzx eax, byte [0x1400148ee]
mov byte [rdi + 0x26], al
lea rcx, [rdi + 0x27]
mov r8, r15
mov rdx, rsi
call sub.VCRUNTIME140.dll_memcpy
mov byte [rdi + r14], r12b
mov dword [rsp + 0x20], r12d
xor r9d, r9d
xor r8d, r8d
mov edx, 1
lea rcx, str.HTTP
call qword [sym.imp.WININET.dll_InternetOpenW]
mov rsi, rax
mov qword [rsp + 0x30], rax
test rax, rax
je 0x140003803
lea rdx, [rbp - 0x78]
cmp qword [rbp - 0x60], 0xf
cmova rdx, qword [rbp - 0x78]
mov qword [rsp + 0x28], r12
mov dword [rsp + 0x20], 0x80000000
xor r9d, r9d
xor r8d, r8d
mov rcx, rax
call qword [sym.imp.WININET.dll_InternetOpenUrlA]
mov r14, rax
test rax, rax
je 0x1400037d5
xorps xmm0, xmm0
movups xmmword [rsp + 0x68], xmm0
mov qword [rsp + 0x78], r12
mov qword [rbp - 0x80], 0xf
mov byte [rsp + 0x68], 0
lea r9, [rsp + 0x60]
mov r8d, 0x1000
lea rdx, [rbp - 0x50]
mov rcx, rax
call qword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x1400035b0
nop word [rax + rax]
mov eax, dword [rsp + 0x60]
test eax, eax
je 0x1400035b0
mov edi, eax
mov rcx, qword [rsp + 0x78]
mov rdx, qword [rbp - 0x80]
mov rax, rdx
sub rax, rcx
cmp rdi, rax
ja 0x14000357e
lea rax, [rcx + rdi]
mov qword [rsp + 0x78], rax
lea rbx, [rsp + 0x68]
cmp rdx, 0xf
cmova rbx, qword [rsp + 0x68]
add rbx, rcx
mov r8d, edi
lea rdx, [rbp - 0x50]
mov rcx, rbx
call sub.VCRUNTIME140.dll_memmove
mov byte [rbx + rdi], 0
jmp 0x140003594
mov qword [rsp + 0x20], rdi
lea r9, [rbp - 0x50]
mov rdx, rdi
lea rcx, [rsp + 0x68]
call fcn.140009890
lea r9, [rsp + 0x60]
mov r8d, 0x1000
lea rdx, [rbp - 0x50]
mov rcx, r14
call qword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x140003530
lea rbx, [rsp + 0x68]
mov r15, qword [rsp + 0x68]
mov r12, qword [rbp - 0x80]
cmp r12, 0xf
cmova rbx, r15
mov rdi, qword [rsp + 0x78]
cmp rdi, 0xc
jb 0x140003781
lea rsi, [rdi + rbx]
lea r8, [rsi - 0xb]
sub r8, rbx
mov rcx, rbx
mov edx, 0x22
call sub.VCRUNTIME140.dll_memchr
test rax, rax
je 0x14000377c
movabs rcx, 0x656c5f7379616422
cmp qword [rax], rcx
jne 0x14000360e
cmp dword [rax + 8], 0x3a227466
je 0x14000361d
inc rax
lea r8, [rsi - 0xb]
sub r8, rax
mov rcx, rax
jmp 0x1400035e3
sub rax, rbx
cmp rax, 0xffffffffffffffff
je 0x14000377c
lea rbx, [rax + 0xc]
lea rsi, [rsp + 0x68]
cmp r12, 0xf
cmova rsi, r15
cmp rbx, rdi
jae 0x140003665
mov r8, rdi
sub r8, rbx
lea rcx, [rsi + rbx]
mov edx, 0x2c
call sub.VCRUNTIME140.dll_memchr
mov r8, rax
test rax, rax
je 0x140003665
sub r8, rsi
cmp r8, 0xffffffffffffffff
jne 0x14000369b
lea rsi, [rsp + 0x68]
cmp r12, 0xf
cmova rsi, r15
cmp rbx, rdi
jae 0x140003698
mov r8, rdi
sub r8, rbx
lea rcx, [rsi + rbx]
mov edx, 0x7d
call sub.VCRUNTIME140.dll_memchr
mov r8, rax
test rax, rax
je 0x140003698
sub r8, rsi
jmp 0x14000369b
mov r8, r13
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x48], xmm1
cmp rdi, rbx
jb 0x140003898
sub r8, rbx
sub rdi, rbx
cmp rdi, r8
cmovb r8, rdi
lea rdx, [rsp + 0x68]
cmp r12, 0xf
cmova rdx, r15
add rdx, rbx
lea rcx, [rsp + 0x38]
call fcn.140009a20
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov rdi, rax
lea rbx, [rsp + 0x38]
cmp qword [rsp + 0x50], 0xf
cmova rbx, qword [rsp + 0x38]
mov dword [rax], 0
mov r8d, 0xa
lea rdx, [rsp + 0x58]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_strtol]
cmp rbx, qword [rsp + 0x58]
jne 0x140003726
lea rcx, str.invalid_stoi_argument
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xinvalid_argument_char_const____ptr64_]
int3
cmp dword [rdi], 0x22
jne 0x140003739
lea rcx, str.stoi_argument_out_of_range
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xout_of_range_char_const____ptr64_]
int3
mov r13d, eax
mov rdx, qword [rsp + 0x50]
cmp rdx, 0xf
jbe 0x14000377c
inc rdx
mov rcx, qword [rsp + 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140003777
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140003777
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400125ac
mov rsi, qword [rsp + 0x30]
mov rcx, r14
call qword [sym.imp.WININET.dll_InternetCloseHandle]
nop
mov rdx, qword [rbp - 0x80]
cmp rdx, 0xf
jbe 0x1400037f8
inc rdx
mov rcx, qword [rsp + 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400037c5
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400037c5
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400125ac
mov rcx, rsi
call qword [sym.imp.WININET.dll_InternetCloseHandle]
jmp 0x140003827
lea rdx, str.Failed_to_open_URL_for_days_left
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.140008eb0
mov rcx, rax
lea rdx, [0x140009090]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov rcx, rsi
call qword [sym.imp.WININET.dll_InternetCloseHandle]
jmp 0x140003827
lea rdx, str.Failed_to_initialize_WinINet_for_days_left
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.140008eb0
mov rcx, rax
lea rdx, [0x140009090]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
nop
mov rdx, qword [rbp - 0x60]
cmp rdx, 0xf
jbe 0x140003865
inc rdx
mov rcx, qword [rbp - 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140003860
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140003860
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400125ac
mov eax, r13d
mov rcx, qword [rbp + 0xfb0]
xor rcx, rsp
call fcn.140012240
lea r11, [rsp + 0x10c0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
call fcn.140008d40
nop
call fcn.1400024e0
int3
call fcn.140002580
int3