Function at 0x140004f80
Capabilities:
Authenticate hmac
Contain obfuscated stackstrings
Create http request
Download and write a file
Read data from internet
Receive and write data from server to client
Receive data
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rsp - 0x410]
sub rsp, 0x510
mov rax, qword [0x140153040]
xor rax, rsp
mov qword [rbp + 0x400], rax
mov rbx, rcx
xor r15d, r15d
mov dword [rsp + 0x30], r15d
mov qword [rbp - 0x70], r15
lea rax, [0x1401530b8]
mov qword [rbp - 0x68], rax
lea rdx, [rbp - 0x70]
lea rcx, [rsp + 0x48]
call fcn.140003110
mov dword [rsp + 0x30], 1
cmp dword [rbp - 0x70], r15d
jne 0x140005800
lea rax, [rsp + 0x48]
cmp qword [rsp + 0x60], 7
cmova rax, qword [rsp + 0x48]
mov qword [rbp - 0x70], rax
mov rax, qword [rsp + 0x58]
mov qword [rbp - 0x68], rax
call fcn.140058a8c
movaps xmm0, xmmword [rbp - 0x70]
movdqa xmmword [rbp - 0x70], xmm0
lea r8, [rbp - 0x70]
mov edx, eax
lea rcx, [rbp - 0x28]
call fcn.140007dd0
nop
mov rdx, qword [rsp + 0x60]
cmp rdx, 7
jbe 0x14000506f
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000506a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000506a
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140059518
movdqa xmm0, xmmword [0x140147560]
movdqu xmmword [rsp + 0x58], xmm0
mov word [rsp + 0x48], r15w
mov dword [rsp + 0x30], 0x2e734d5b
mov dword [rsp + 0x34], 0x6e6962
lea rax, [rsp + 0x31]
mov r8, 0xffffffffffffffff
nop
inc r8
cmp byte [rax + r8], 0
jne 0x1400050a0
lea rdx, [rsp + 0x31]
lea rcx, [rbp - 0x28]
call fcn.140007470
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x48]
call fcn.140005d40
nop
cmp qword [rbp - 0x38], 0
jne 0x14000513d
mov dword [rsp + 0x30], 0x72724538
mov word [rsp + 0x34], 0x726f
mov byte [rsp + 0x36], 0
movdqa xmm0, xmmword [0x140147940]
movdqu xmmword [rsp + 0x48], xmm0
movdqa xmm1, xmmword [0x140147990]
movdqu xmmword [rsp + 0x58], xmm1
movdqa xmm0, xmmword [0x140147960]
movdqu xmmword [rsp + 0x68], xmm0
mov word [rsp + 0x78], 0x2e59
mov byte [rsp + 0x7a], 0
mov r9d, 0x10
lea r8, [rsp + 0x31]
lea rdx, [rsp + 0x49]
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
mov dword [0x14016c3b0], r15d
xor bl, bl
jmp 0x140005745
mov dword [rbp - 0x70], 0x41794d6c
mov dword [rbp - 0x6c], 0x746e6567
mov byte [rbp - 0x68], 0
mov dword [rsp + 0x20], r15d
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 1]
lea rcx, [rbp - 0x6f]
call qword [sym.imp.WININET.dll_InternetOpenA]
mov rsi, rax
test rax, rax
jne 0x140005329
mov cl, 0x73
mov word [rbp - 0x70], 0x73
movsx ecx, cl
movzx eax, cx
xor ax, 0x36
mov word [rbp - 0x6e], ax
movzx eax, cx
xor ax, 1
mov word [rbp - 0x6c], ax
mov word [rbp - 0x6a], ax
xor cx, 0x1c
mov word [rbp - 0x68], cx
mov word [rbp - 0x66], ax
mov word [rbp - 0x64], r15w
mov cl, 0x4f
mov word [rsp + 0x48], 0x4f
movsx edi, cl
movzx eax, di
xor ax, 9
mov word [rsp + 0x4a], ax
movzx r10d, di
xor r10w, 0x2e
mov word [rsp + 0x4c], r10w
movzx ebx, di
xor bx, 0x26
mov word [rsp + 0x4e], bx
movzx r8d, di
xor r8w, 0x23
mov word [rsp + 0x50], r8w
movzx r11d, di
xor r11w, 0x2a
mov word [rsp + 0x52], r11w
movzx eax, di
xor ax, 0x2b
mov word [rsp + 0x54], ax
movzx edx, di
xor dx, 0x6f
mov word [rsp + 0x56], dx
movzx r9d, di
xor r9w, 0x3b
mov word [rsp + 0x58], r9w
movzx eax, di
xor ax, 0x20
mov word [rsp + 0x5a], ax
mov word [rsp + 0x5c], dx
mov word [rsp + 0x5e], bx
movzx ecx, di
xor cx, 0x21
mov word [rsp + 0x60], cx
mov word [rsp + 0x62], bx
mov word [rsp + 0x64], r9w
mov word [rsp + 0x66], bx
mov word [rsp + 0x68], r10w
mov word [rsp + 0x6a], r8w
mov word [rsp + 0x6c], bx
movzx eax, di
xor ax, 0x35
mov word [rsp + 0x6e], ax
mov word [rsp + 0x70], r11w
mov word [rsp + 0x72], dx
movzx eax, di
xor ax, 0x18
mov word [rsp + 0x74], ax
mov word [rsp + 0x76], bx
mov word [rsp + 0x78], cx
movzx eax, di
xor ax, 6
mov word [rsp + 0x7a], ax
movzx eax, di
xor ax, 1
mov word [rsp + 0x7c], ax
mov word [rsp + 0x7e], r11w
mov word [rbp - 0x80], r9w
xor di, 0x6e
mov word [rbp - 0x7e], di
mov word [rbp - 0x7c], r15w
xor r9d, r9d
lea r8, [rbp - 0x6e]
lea rdx, [rsp + 0x4a]
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
movdqa xmm0, xmmword [0x140147c00]
movdqu xmmword [rbp - 0x70], xmm0
mov dword [rbp - 0x60], 0x7a696c61
mov dword [rbp - 0x5c], 0x69572065
mov dword [rbp - 0x58], 0x654e496e
mov word [rbp - 0x54], 0x2174
mov byte [rbp - 0x52], sil
lea rdx, [rbp - 0x6f]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.1400082a0
lea rdx, [0x140008470]
mov rcx, rax
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]
xor bl, bl
jmp 0x140005745
cmp qword [rbx + 0x18], 0xf
jbe 0x140005333
mov rbx, qword [rbx]
mov qword [rsp + 0x28], r15
mov dword [rsp + 0x20], 0x100
xor r9d, r9d
xor r8d, r8d
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.WININET.dll_InternetOpenUrlA]
mov rdi, rax
test rax, rax
jne 0x1400054e4
mov cl, 0x3b
mov word [rsp + 0x30], 0x3b
movsx ecx, cl
movzx eax, cx
xor ax, 0x7e
mov word [rsp + 0x32], ax
movzx eax, cx
xor ax, 0x49
mov word [rsp + 0x34], ax
mov word [rsp + 0x36], ax
xor cx, 0x54
mov word [rsp + 0x38], cx
mov word [rsp + 0x3a], ax
mov word [rsp + 0x3c], r15w
mov cl, 6
mov word [rsp + 0x48], 6
movsx r8d, cl
movzx eax, r8w
xor ax, 0x40
mov word [rsp + 0x4a], ax
movzx eax, r8w
xor ax, 0x67
mov word [rsp + 0x4c], ax
movzx eax, r8w
xor ax, 0x6f
mov word [rsp + 0x4e], ax
movzx eax, r8w
xor ax, 0x6a
mov word [rsp + 0x50], ax
movzx edx, r8w
xor dx, 0x63
mov word [rsp + 0x52], dx
movzx eax, r8w
xor ax, 0x62
mov word [rsp + 0x54], ax
movzx ecx, r8w
xor cx, 0x26
mov word [rsp + 0x56], cx
movzx eax, r8w
xor ax, 0x72
mov word [rsp + 0x58], ax
movzx eax, r8w
xor ax, 0x69
mov word [rsp + 0x5a], ax
mov word [rsp + 0x5c], cx
mov word [rsp + 0x5e], ax
movzx eax, r8w
xor ax, 0x76
mov word [rsp + 0x60], ax
mov word [rsp + 0x62], dx
movzx eax, r8w
xor ax, 0x68
mov word [rsp + 0x64], ax
mov word [rsp + 0x66], cx
movzx eax, r8w
xor ax, 0x53
mov word [rsp + 0x68], ax
movzx eax, r8w
xor ax, 0x54
mov word [rsp + 0x6a], ax
movzx eax, r8w
xor ax, 0x4a
mov word [rsp + 0x6c], ax
xor r8w, 0x27
mov word [rsp + 0x6e], r8w
mov word [rsp + 0x70], r15w
xor r9d, r9d
lea r8, [rsp + 0x32]
lea rdx, [rsp + 0x4a]
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
movdqa xmm0, xmmword [0x1401477b0]
movdqu xmmword [rsp + 0x30], xmm0
mov dword [rsp + 0x40], 0x214c5255
mov byte [rsp + 0x44], dil
lea rdx, [rsp + 0x31]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.1400082a0
lea rdx, [0x140008470]
mov rcx, rax
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]
xor bl, bl
jmp 0x140005745
mov dword [rsp + 0x30], 0x62770d
lea r14, [0x14016b7b8]
mov rcx, r14
cmp qword [0x14016b7d0], 0xf
cmova rcx, qword [0x14016b7b8]
lea rdx, [rsp + 0x31]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
mov rbx, rax
test rax, rax
jne 0x1400056d2
movdqa xmm0, xmmword [0x140147ed0]
movdqu xmmword [rsp + 0x48], xmm0
movdqa xmm1, xmmword [0x140147780]
movdqu xmmword [rsp + 0x58], xmm1
mov byte [rsp + 0x68], al
lea rdx, [rsp + 0x49]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.1400082a0
cmp qword [0x14016b7d0], 0xf
cmova r14, qword [0x14016b7b8]
mov r8, qword [0x14016b7c8]
mov rdx, r14
mov rcx, rax
call fcn.1400096f0
lea rdx, [0x140008470]
mov rcx, rax
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 cl, 0x19
mov word [rsp + 0x30], 0x19
movsx ecx, cl
movzx eax, cx
xor ax, 0x5c
mov word [rsp + 0x32], ax
movzx eax, cx
xor ax, 0x6b
mov word [rsp + 0x34], ax
mov word [rsp + 0x36], ax
xor cx, 0x76
mov word [rsp + 0x38], cx
mov word [rsp + 0x3a], ax
mov word [rsp + 0x3c], r15w
mov cl, 0x36
mov word [rsp + 0x48], 0x36
movsx ebx, cl
movzx eax, bx
xor ax, 0x70
mov word [rsp + 0x4a], ax
movzx r9d, bx
xor r9w, 0x57
mov word [rsp + 0x4c], r9w
movzx r11d, bx
xor r11w, 0x5f
mov word [rsp + 0x4e], r11w
movzx r10d, bx
xor r10w, 0x5a
mov word [rsp + 0x50], r10w
movzx r8d, bx
xor r8w, 0x53
mov word [rsp + 0x52], r8w
movzx eax, bx
xor ax, 0x52
mov word [rsp + 0x54], ax
movzx edx, bx
xor dx, 0x16
mov word [rsp + 0x56], dx
movzx ecx, bx
xor cx, 0x42
mov word [rsp + 0x58], cx
movzx eax, bx
xor ax, 0x59
mov word [rsp + 0x5a], ax
mov word [rsp + 0x5c], dx
movzx eax, bx
xor ax, 0x55
mov word [rsp + 0x5e], ax
movzx eax, bx
xor ax, 0x44
mov word [rsp + 0x60], ax
mov word [rsp + 0x62], r8w
mov word [rsp + 0x64], r9w
mov word [rsp + 0x66], cx
mov word [rsp + 0x68], r8w
mov word [rsp + 0x6a], dx
movzx eax, bx
xor ax, 0x50
mov word [rsp + 0x6c], ax
mov word [rsp + 0x6e], r11w
mov word [rsp + 0x70], r10w
mov word [rsp + 0x72], r8w
xor bx, 0x17
mov word [rsp + 0x74], bx
mov word [rsp + 0x76], r15w
xor r9d, r9d
lea r8, [rsp + 0x32]
lea rdx, [rsp + 0x4a]
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
mov rcx, rdi
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, rsi
call qword [sym.imp.WININET.dll_InternetCloseHandle]
xor bl, bl
jmp 0x140005745
mov dword [rbp - 0x50], r15d
lea r9, [rbp - 0x50]
mov r8d, 0x400
lea rdx, [rbp]
mov rcx, rdi
call qword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x140005728
mov eax, dword [rbp - 0x50]
test eax, eax
je 0x140005728
mov r8d, eax
mov r9, rbx
mov edx, 1
lea rcx, [rbp]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
lea r9, [rbp - 0x50]
mov r8d, 0x400
lea rdx, [rbp]
mov rcx, rdi
call qword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x1400056f1
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rcx, rdi
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, rsi
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov bl, 1
mov rdx, qword [rbp - 0x30]
cmp rdx, 0xf
jbe 0x140005783
inc rdx
mov rcx, qword [rbp - 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000577e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000577e
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140059518
mov qword [rbp - 0x38], r15
mov qword [rbp - 0x30], 0xf
mov byte [rbp - 0x48], 0
mov rdx, qword [rbp - 0x10]
cmp rdx, 0xf
jbe 0x1400057d1
inc rdx
mov rcx, qword [rbp - 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400057cc
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400057cc
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140059518
movzx eax, bl
mov rcx, qword [rbp + 0x400]
xor rcx, rsp
call fcn.140059220
lea r11, [rsp + 0x510]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
lea r8, [rsp + 0x48]
lea rdx, [rbp - 0x70]
call fcn.140002ce0
int3