Function at 0x140001290
Capabilities:
Initialize winhttp library
Prepare http request
Read http header
Receive http response
Reference http user-agent string
Set http header

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x10b90]
mov eax, 0x10c90
call fcn.140004f90
sub rsp, rax
mov rax, qword [0x14000a040]
xor rax, rsp
mov qword [rbp + 0x10b80], rax
mov rsi, rdx
mov rbx, rcx
xor r12d, r12d
mov dword [rsp + 0x20], r12d
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, str.Downloader_1.0
call qword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov r14, rax
test rax, rax
je 0x1400014fb
mov dword [rbp - 0x1c], 0xea60
mov r9d, 4
lea r8, [rbp - 0x1c]
mov edx, 6
mov rcx, rax
call qword [sym.imp.WINHTTP.dll_WinHttpSetOption]
mov r9d, 4
lea r8, [rbp - 0x1c]
mov edx, 5
mov rcx, r14
call qword [sym.imp.WINHTTP.dll_WinHttpSetOption]
mov r9d, 4
lea r8, [rbp - 0x1c]
mov edx, 3
mov rcx, r14
call qword [sym.imp.WINHTTP.dll_WinHttpSetOption]
mov r9d, 4
lea r8, [rbp - 0x1c]
mov edx, 7
mov rcx, r14
call qword [sym.imp.WINHTTP.dll_WinHttpSetOption]
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsp + 0x70], xmm0
movups xmmword [rbp - 0x80], xmm0
movups xmmword [rbp - 0x70], xmm0
movups xmmword [rbp - 0x60], xmm0
movups xmmword [rbp - 0x50], xmm0
movups xmmword [rbp - 0x40], xmm0
mov qword [rbp - 0x30], rax
mov dword [rsp + 0x70], 0x68
lea rax, [rbp + 0x180]
mov qword [rbp - 0x78], rax
mov dword [rbp - 0x70], 0x100
lea rax, [rbp + 0x380]
mov qword [rbp - 0x48], rax
mov dword [rbp - 0x40], 0x400
cmp qword [rbx + 0x18], 7
jbe 0x1400013b6
mov rbx, qword [rbx]
lea r9, [rsp + 0x70]
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call qword [sym.imp.WINHTTP.dll_WinHttpCrackUrl]
test eax, eax
je 0x1400014f2
xor r9d, r9d
movzx r8d, word [rbp - 0x6c]
lea rdx, [rbp + 0x180]
mov rcx, r14
call qword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov r15, rax
test rax, rax
je 0x1400014f2
mov dword [rsp + 0x30], 0x800000
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], r12
xor r9d, r9d
lea r8, [rbp + 0x380]
lea rdx, [0x140006648]
mov rcx, rax
call qword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov rdi, rax
test rax, rax
je 0x1400014e9
mov r9d, 0x20000000
mov r8d, 0xffffffff
lea rdx, str.Mozilla_5.0__Windows_NT_10.0__Win64__x64__AppleWebKit_537.36__KHTML__like_Gecko__Chrome_91.0.4472.124_Safari_537.36
mov rcx, rax
call qword [sym.imp.WINHTTP.dll_WinHttpAddRequestHeaders]
mov r9d, 0x20000000
mov r8d, 0xffffffff
lea rdx, str.Accept:_application_octet_stream
mov rcx, rdi
call qword [sym.imp.WINHTTP.dll_WinHttpAddRequestHeaders]
mov r9d, 0x20000000
mov r8d, 0xffffffff
lea rdx, str.Referer:_https:__www.dropbox.com
mov rcx, rdi
call qword [sym.imp.WINHTTP.dll_WinHttpAddRequestHeaders]
mov dword [rbp - 0x10], 2
mov r9d, 4
lea r8, [rbp - 0x10]
mov edx, 0x58
mov rcx, r14
call qword [sym.imp.WINHTTP.dll_WinHttpSetOption]
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], r12d
mov dword [rsp + 0x20], r12d
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call qword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
jne 0x140001528
lea rdx, str.WinHttpSendRequest_fehlgeschlagen.
lea r8, str.Fehler
mov r9d, 0x10
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
mov rcx, rdi
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, r15
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, r14
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
xor al, al
mov rcx, qword [rbp + 0x10b80]
xor rcx, rsp
call fcn.140003ff0
lea r11, [rsp + 0x10c90]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
xor edx, edx
mov rcx, rdi
call qword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
jne 0x140001540
lea rdx, str.WinHttpReceiveResponse_fehlgeschlagen.
jmp 0x1400014cb
mov dword [rbp - 0x20], r12d
mov qword [rsp + 0x28], r12
lea rax, [rbp - 0x20]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, 0x16
mov rcx, rdi
call qword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
mov eax, dword [rbp - 0x20]
test eax, eax
je 0x1400015fd
mov ecx, eax
shr rcx, 1
mov eax, 2
mul rcx
mov rcx, 0xffffffffffffffff
cmovb rax, rcx
mov rcx, rax
call fcn.140004054
mov rbx, rax
mov qword [rsp + 0x28], r12
lea rax, [rbp - 0x20]
mov qword [rsp + 0x20], rax
mov r9, rbx
xor r8d, r8d
mov edx, 0x16
mov rcx, rdi
call qword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
xor ecx, ecx
test eax, eax
je 0x1400015d9
xor r9d, r9d
lea r8, str.HTTP_Response_Headers
mov rdx, rbx
call qword [sym.imp.USER32.dll_MessageBoxW]
mov rcx, rbx
call fcn.140004010
jmp 0x140001619
mov r9d, 0x10
lea r8, str.Fehler
lea rdx, str.HTTP_Header_konnten_nicht_gelesen_werden.
call qword [sym.imp.USER32.dll_MessageBoxW]
mov rcx, rbx
call fcn.140004010
jmp 0x140001619
mov r9d, 0x10
lea r8, str.Fehler
lea rdx, str.Keine_HTTP_Header_verf
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
mov dword [rsp + 0x60], r12d
mov dword [rbp - 0x20], 4
mov qword [rsp + 0x28], r12
lea rax, [rbp - 0x20]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x60]
xor r8d, r8d
mov edx, 0x20000005
mov rcx, rdi
call qword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
je 0x1400017c6
lea r9, [rbp + 0x17a]
mov r8d, dword [rsp + 0x60]
nop dword [rax]
sub r9, 2
mov eax, 0xcccccccd
mul r8d
shr edx, 3
movzx eax, dx
shl ax, 2
lea ecx, [rax + rdx]
add cx, cx
sub r8w, cx
add r8w, 0x30
mov word [r9], r8w
mov r8d, edx
test edx, edx
jne 0x140001660
lea r8, [rbp + 0x17a]
mov rdx, r9
lea rcx, [rsp + 0x40]
call fcn.140003c90
nop
lea r8, [rsp + 0x40]
lea rdx, [0x140006890]
lea rcx, [rbp - 8]
call fcn.140003620
nop
mov rdx, rax
lea rcx, [rbp + 0x18]
call fcn.140003760
nop
mov rdx, qword [rbp + 0x10]
cmp rdx, 7
jbe 0x14000170b
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 8]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001706
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001706
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140004010
mov qword [rbp + 8], r12
mov qword [rbp + 0x10], 7
mov word [rbp - 8], r12w
mov rdx, qword [rsp + 0x58]
cmp rdx, 7
jbe 0x140001761
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000175c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000175c
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140004010
lea rdx, [rbp + 0x18]
cmp qword [rbp + 0x30], 7
cmova rdx, qword [rbp + 0x18]
xor r9d, r9d
lea r8, str.Debug
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
mov rdx, qword [rbp + 0x30]
cmp rdx, 7
jbe 0x1400017e2
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x18]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400017bf
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400017bf
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140004010
jmp 0x1400017e2
mov r9d, 0x10
lea r8, str.Fehler
lea rdx, str.Dateigr
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
mov dword [rbp - 0x18], r12d
mov dword [rbp - 0x14], r12d
mov ebx, r12d
xor edx, edx
mov r8d, 0x108
lea rcx, [rbp + 0x40]
call sub.VCRUNTIME140.dll_memset
cmp qword [rsi + 0x18], 7
jbe 0x140001808
mov rsi, qword [rsi]
mov rdx, rsi
lea rcx, [rbp + 0x40]
call fcn.140003420
mov rax, qword [rbp + 0x40]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx + 0x40], rax
mov rax, qword [rbp + 0x40]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rbp + rcx + 0x3c], edx
cmp qword [rbp + 0xc8], 0
jne 0x140001882
mov r9d, 0x10
lea r8, str.Fehler
lea rdx, str.Zieldatei_konnte_nicht_erstellt_werden.
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
mov rcx, rdi
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, r15
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, r14
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
xor bl, bl
jmp 0x140001b01
lea rdx, [rbp - 0x18]
mov rcx, rdi
call qword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
je 0x14000192c
nop word [rax + rax]
mov eax, dword [rbp - 0x18]
test eax, eax
je 0x14000192c
nop dword [rax + rax]
cmp eax, 0x10000
mov r8d, eax
jb 0x1400018c0
mov r8d, 0x10000
lea r9, [rbp - 0x14]
lea rdx, [rbp + 0xb80]
mov rcx, rdi
call qword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
je 0x1400018fb
mov r8d, dword [rbp - 0x14]
lea rdx, [rbp + 0xb80]
lea rcx, [rbp + 0x40]
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__::write_char_const____ptr64__long_long___int64_____ptr64]
mov eax, dword [rbp - 0x14]
add ebx, eax
test eax, eax
je 0x140001917
mov eax, dword [rbp - 0x18]
jmp 0x1400018b0
mov r9d, 0x10
lea r8, str.Error
lea rdx, str.Fehler_beim_Lesen_der_Daten.
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
lea rdx, [rbp - 0x18]
mov rcx, rdi
call qword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
jne 0x1400018a0
lea rcx, [rbp + 0x48]
call fcn.140003360
test rax, rax
jne 0x140001957
mov rax, qword [rbp + 0x40]
movsxd rcx, dword [rax + 4]
lea rax, [rbp + 0x40]
add rcx, rax
xor r8d, r8d
mov edx, 2
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool____ptr64]
mov rcx, rdi
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, r15
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, r14
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
test ebx, ebx
je 0x140001ae3
lea r9, [rbp + 0x17a]
sub r9, 2
mov eax, 0xcccccccd
mul ebx
shr edx, 3
movzx eax, dx
shl ax, 2
lea ecx, [rax + rdx]
add cx, cx
sub bx, cx
add bx, 0x30
mov word [r9], bx
mov ebx, edx
test edx, edx
jne 0x140001981
lea r8, [rbp + 0x17a]
mov rdx, r9
lea rcx, [rsp + 0x40]
call fcn.140003c90
nop
lea r8, [rsp + 0x40]
lea rdx, str.Heruntergeladene_Dateigr
lea rcx, [rbp + 0x18]
call fcn.140003620
nop
mov rdx, rax
lea rcx, [rbp - 8]
call fcn.140003760
nop
mov rdx, qword [rbp + 0x30]
cmp rdx, 7
jbe 0x140001a28
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x18]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001a23
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001a23
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140004010
mov qword [rbp + 0x28], r12
mov qword [rbp + 0x30], 7
mov word [rbp + 0x18], r12w
mov rdx, qword [rsp + 0x58]
cmp rdx, 7
jbe 0x140001a7e
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001a79
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001a79
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140004010
lea rdx, [rbp - 8]
cmp qword [rbp + 0x10], 7
cmova rdx, qword [rbp - 8]
xor r9d, r9d
lea r8, str.Download_abgeschlossen
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
mov rdx, qword [rbp + 0x10]
cmp rdx, 7
jbe 0x140001aff
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 8]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001adc
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001adc
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140004010
jmp 0x140001aff
mov r9d, 0x10
lea r8, str.Error
lea rdx, str.Die_Datei_konnte_nicht_heruntergeladen_werden.
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
mov bl, 1
lea rcx, [rbp + 0x40]
call fcn.140001b20
movzx eax, bl
jmp 0x1400014fd