Function at 0x140004640
Capabilities:
Contain obfuscated stackstrings
Create http request
Download and write a file
Encode data using xor
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 r12
push r13
push r14
push r15
lea rbp, [rsp - 0x510]
sub rsp, 0x610
mov rax, qword [0x140156010]
xor rax, rsp
mov qword [rbp + 0x500], rax
mov rbx, rcx
xor r12d, r12d
xorps xmm0, xmm0
movups xmmword [rbp + 0xc0], xmm0
lea r13, [rbp + 0x538]
movabs rax, 0xff00ff00ff00ff00
mov qword [rbp + 0xc8], rax
mov qword [rbp + 0xd0], r13
mov r14, qword [r13]
xor r14, rax
mov qword [rbp + 0xc0], r14
mov qword [r13], r12
lea rcx, [rbp + 0x70]
call fcn.140003150
nop
mov rcx, rax
cmp qword [rax + 0x18], 8
jb 0x1400046d0
mov rcx, qword [rax]
mov rax, qword [rax + 0x10]
mov qword [rsp + 0x50], rcx
mov qword [rsp + 0x58], rax
call fcn.14005a7d4
movaps xmm0, xmmword [rsp + 0x50]
movdqa xmmword [rsp + 0x50], xmm0
lea r8, [rsp + 0x50]
mov edx, eax
lea rcx, [rbp + 0xd8]
call fcn.140008ae0
nop
mov rdx, qword [rbp + 0x88]
cmp rdx, 8
jb 0x140004748
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140004743
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140004743
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14005b338
movdqa xmm0, xmmword [0x1401496b0]
movdqu xmmword [rbp + 0x80], xmm0
mov word [rbp + 0x70], r12w
mov dword [rsp + 0x30], 0x2e734d6a
mov dword [rsp + 0x34], 0x6e6962
lea rax, [rsp + 0x31]
mov r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp byte [rax + r8], 0
jne 0x140004780
lea rdx, [rsp + 0x31]
lea rcx, [rbp + 0xd8]
call fcn.140008780
lea rdx, [rbp + 0xd8]
lea rcx, [rbp + 0xa0]
call fcn.1400066b0
nop
cmp qword [rbp + 0xb0], 0
jne 0x140004947
mov dword [rsp + 0x30], 0x72724505
mov word [rsp + 0x34], 0x726f
mov byte [rsp + 0x36], 0
movdqa xmm0, xmmword [0x14014a270]
movdqa xmmword [rsp + 0x70], xmm0
movdqa xmm1, xmmword [0x14014a2e0]
movdqa xmmword [rbp - 0x80], xmm1
movdqa xmm0, xmmword [0x14014a1d0]
movdqa xmmword [rbp - 0x70], xmm0
movdqa xmm1, xmmword [0x140149dc0]
movdqa xmmword [rbp - 0x60], xmm1
movdqa xmm0, xmmword [0x140149d70]
movdqa xmmword [rbp - 0x50], xmm0
movdqa xmm1, xmmword [0x140149810]
movdqa xmmword [rbp - 0x40], xmm1
movdqa xmm0, xmmword [0x140149820]
movdqa xmmword [rbp - 0x30], xmm0
mov dword [rbp - 0x20], 0x43547217
mov byte [rbp - 0x1c], 0
mov rcx, r12
nop dword [rax + rax]
movzx eax, byte [rsp + 0x70]
xor byte [rsp + rcx + 0x71], al
movzx eax, byte [rsp + 0x70]
xor byte [rsp + rcx + 0x72], al
movzx eax, byte [rsp + 0x70]
xor byte [rsp + rcx + 0x73], al
movzx eax, byte [rsp + 0x70]
xor byte [rsp + rcx + 0x74], al
movzx eax, byte [rsp + 0x70]
xor byte [rsp + rcx + 0x75], al
movzx eax, byte [rsp + 0x70]
xor byte [rsp + rcx + 0x76], al
movzx eax, byte [rsp + 0x70]
xor byte [rsp + rcx + 0x77], al
movzx eax, byte [rsp + 0x70]
xor byte [rsp + rcx + 0x78], al
movzx eax, byte [rsp + 0x70]
xor byte [rsp + rcx + 0x79], al
movzx eax, byte [rsp + 0x70]
xor byte [rsp + rcx + 0x7a], al
movzx eax, byte [rsp + 0x70]
xor byte [rsp + rcx + 0x7b], al
movzx eax, byte [rsp + 0x70]
xor byte [rsp + rcx + 0x7c], al
movzx eax, byte [rsp + 0x70]
xor byte [rsp + rcx + 0x7d], al
movzx eax, byte [rsp + 0x70]
xor byte [rsp + rcx + 0x7e], al
movzx eax, byte [rsp + 0x70]
xor byte [rsp + rcx + 0x7f], al
movzx eax, byte [rsp + 0x70]
xor byte [rbp + rcx - 0x80], al
movzx eax, byte [rsp + 0x70]
xor byte [rbp + rcx - 0x7f], al
movzx eax, byte [rsp + 0x70]
xor byte [rbp + rcx - 0x7e], al
movzx eax, byte [rsp + 0x70]
xor byte [rbp + rcx - 0x7d], al
movzx eax, byte [rsp + 0x70]
xor byte [rbp + rcx - 0x7c], al
movzx eax, byte [rsp + 0x70]
xor byte [rbp + rcx - 0x7b], al
movzx eax, byte [rsp + 0x70]
xor byte [rbp + rcx - 0x7a], al
movzx eax, byte [rsp + 0x70]
xor byte [rbp + rcx - 0x79], al
add rcx, 0x17
cmp rcx, 0x73
jb 0x140004840
mov byte [rbp - 0x1c], 0
mov r9d, 0x10
lea r8, [rsp + 0x31]
lea rdx, [rsp + 0x71]
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
mov dword [0x14016f364], r12d
xor bl, bl
jmp 0x140004ec0
mov dword [rsp + 0x50], 0x41794d3e
mov dword [rsp + 0x54], 0x746e6567
mov byte [rsp + 0x58], 0
mov dword [rsp + 0x20], r12d
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 1]
lea rcx, [rsp + 0x51]
call qword [sym.imp.WININET.dll_InternetOpenA]
mov rsi, rax
test rax, rax
jne 0x140004b0a
mov cl, 0x6d
mov word [rsp + 0x50], 0x6d
movsx ecx, cl
movzx eax, cx
xor ax, 0x28
mov word [rsp + 0x52], ax
movzx eax, cx
xor ax, 0x1f
mov word [rsp + 0x54], ax
mov word [rsp + 0x56], ax
xor cx, 2
mov word [rsp + 0x58], cx
mov word [rsp + 0x5a], ax
mov word [rsp + 0x5c], r12w
lea rdx, [rsp + 0x70]
call fcn.140004fb0
mov r9, rax
lea rdx, [rax + 2]
lea r8, [rax + 4]
lea r10d, [rsi + 5]
nop dword [rax + rax]
movsx ecx, byte [r9]
xor word [r8 - 2], cx
movsx ecx, byte [r9]
xor word [r8], cx
movsx eax, byte [r9]
xor word [r8 + 2], ax
movsx eax, byte [r9]
xor word [r8 + 4], ax
movsx eax, byte [r9]
xor word [r8 + 6], ax
movsx eax, byte [r9]
xor word [r8 + 8], ax
movsx eax, byte [r9]
xor word [r8 + 0xa], ax
movsx eax, byte [r9]
xor word [r8 + 0xc], ax
movsx eax, byte [r9]
xor word [r8 + 0xe], ax
movsx eax, byte [r9]
xor word [r8 + 0x10], ax
movsx eax, byte [r9]
xor word [r8 + 0x12], ax
movsx eax, byte [r9]
xor word [r8 + 0x14], ax
movsx eax, byte [r9]
xor word [r8 + 0x16], ax
movsx eax, byte [r9]
xor word [r8 + 0x18], ax
movsx eax, byte [r9]
xor word [r8 + 0x1a], ax
movsx eax, byte [r9]
xor word [r8 + 0x1c], ax
movsx eax, byte [r9]
xor word [r8 + 0x1e], ax
movsx eax, byte [r9]
xor word [r8 + 0x20], ax
movsx eax, byte [r9]
xor word [r8 + 0x22], ax
lea r8, [r8 + 0x26]
sub r10, 1
jne 0x1400049e0
mov word [rdx + 0xbe], r12w
xor r9d, r9d
lea r8, [rsp + 0x52]
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
movdqa xmm0, xmmword [0x140149fe0]
movdqu xmmword [rsp + 0x50], xmm0
mov dword [rsp + 0x60], 0x7a696c61
mov dword [rsp + 0x64], 0x69572065
mov dword [rsp + 0x68], 0x654e496e
mov word [rsp + 0x6c], 0x2174
mov byte [rsp + 0x6e], 0
lea rdx, [rsp + 0x51]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.140008f90
lea rdx, [0x140009160]
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 0x140004ec0
cmp qword [rbx + 0x18], 0x10
jb 0x140004b14
mov rbx, qword [rbx]
mov qword [rsp + 0x28], r12
mov dword [rsp + 0x20], pe_nt_image_headers64
xor r9d, r9d
xor r8d, r8d
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.WININET.dll_InternetOpenUrlA]
mov rbx, rax
test rax, rax
jne 0x140004caa
mov cl, 0x21
mov word [rsp + 0x30], 0x21
movsx ecx, cl
movzx eax, cx
xor ax, 0x64
mov word [rsp + 0x32], ax
movzx eax, cx
xor ax, 0x53
mov word [rsp + 0x34], ax
mov word [rsp + 0x36], ax
xor cx, 0x4e
mov word [rsp + 0x38], cx
mov word [rsp + 0x3a], ax
mov word [rsp + 0x3c], r12w
lea rdx, [rsp + 0x70]
call fcn.140005170
mov r9, rax
lea rdx, [rax + 2]
lea r8, [rax + 4]
lea r10d, [rbx + 5]
nop word [rax + rax]
movsx ecx, byte [r9]
xor word [r8 - 2], cx
movsx ecx, byte [r9]
xor word [r8], cx
movsx eax, byte [r9]
xor word [r8 + 2], ax
movsx eax, byte [r9]
xor word [r8 + 4], ax
movsx eax, byte [r9]
xor word [r8 + 6], ax
movsx eax, byte [r9]
xor word [r8 + 8], ax
movsx eax, byte [r9]
xor word [r8 + 0xa], ax
movsx eax, byte [r9]
xor word [r8 + 0xc], ax
movsx eax, byte [r9]
xor word [r8 + 0xe], ax
movsx eax, byte [r9]
xor word [r8 + 0x10], ax
movsx eax, byte [r9]
xor word [r8 + 0x12], ax
movsx eax, byte [r9]
xor word [r8 + 0x14], ax
movsx eax, byte [r9]
xor word [r8 + 0x16], ax
movsx eax, byte [r9]
xor word [r8 + 0x18], ax
movsx eax, byte [r9]
xor word [r8 + 0x1a], ax
movsx eax, byte [r9]
xor word [r8 + 0x1c], ax
movsx eax, byte [r9]
xor word [r8 + 0x1e], ax
lea r8, [r8 + 0x22]
sub r10, 1
jne 0x140004ba0
mov word [rdx + 0xaa], r12w
xor r9d, r9d
lea r8, [rsp + 0x32]
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
movdqa xmm0, xmmword [0x140149880]
movdqu xmmword [rsp + 0x30], xmm0
mov dword [rsp + 0x40], 0x214c5255
mov byte [rsp + 0x44], 0
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.140008f90
lea rdx, [0x140009160]
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 0x140004ec0
mov dword [rsp + 0x30], 0x62771c
lea r15, [0x14016e740]
mov rcx, r15
cmp qword [0x14016e758], 0x10
cmovae rcx, qword [0x14016e740]
lea rdx, [rsp + 0x31]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
mov rdi, rax
test rax, rax
jne 0x140004e33
movdqa xmm0, xmmword [0x14014a230]
movdqu xmmword [rbp + 0x70], xmm0
movdqa xmm1, xmmword [0x140149850]
movdqu xmmword [rbp + 0x80], xmm1
mov word [rbp + 0x90], 0x20
lea rdx, [rbp + 0x71]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.140008f90
cmp qword [0x14016e758], 0x10
cmovae r15, qword [0x14016e740]
mov r8, qword [0x14016e750]
mov rdx, r15
mov rcx, rax
call fcn.14000a3a0
lea rdx, [0x140009160]
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, 0x64
mov word [rsp + 0x30], 0x64
movsx ecx, cl
movzx eax, cx
xor ax, 0x21
mov word [rsp + 0x32], ax
movzx eax, cx
xor ax, 0x16
mov word [rsp + 0x34], ax
mov word [rsp + 0x36], ax
xor cx, 0xb
mov word [rsp + 0x38], cx
mov word [rsp + 0x3a], ax
mov word [rsp + 0x3c], r12w
lea rdx, [rsp + 0x70]
call fcn.140005300
mov r8, rax
lea r10, [rax + 2]
lea rcx, [rax + 4]
lea r9d, [rdi + 0xb]
movsx edx, byte [r8]
xor word [rcx - 2], dx
movsx edx, byte [r8]
xor word [rcx], dx
movsx edx, byte [r8]
xor word [rcx + 2], dx
movsx eax, byte [r8]
xor word [rcx + 4], ax
movsx eax, byte [r8]
xor word [rcx + 6], ax
movsx eax, byte [r8]
xor word [rcx + 8], ax
movsx eax, byte [r8]
xor word [rcx + 0xa], ax
movsx eax, byte [r8]
xor word [rcx + 0xc], ax
movsx eax, byte [r8]
xor word [rcx + 0xe], ax
movsx eax, byte [r8]
xor word [rcx + 0x10], ax
movsx eax, byte [r8]
xor word [rcx + 0x12], ax
lea rcx, [rcx + 0x16]
sub r9, 1
jne 0x140004da1
mov word [r10 + 0xf2], r12w
lea r8, [rsp + 0x32]
mov rdx, r10
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
mov rcx, rbx
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, rsi
call qword [sym.imp.WININET.dll_InternetCloseHandle]
xor bl, bl
jmp 0x140004ec0
mov dword [rbp + 0x98], r12d
lea r9, [rbp + 0x98]
mov r8d, 0x400
lea rdx, [rbp + 0x100]
mov rcx, rbx
call qword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x140004ea3
nop dword [rax + rax]
mov eax, dword [rbp + 0x98]
test eax, eax
je 0x140004ea3
mov r8d, eax
mov r9, rdi
mov edx, 1
lea rcx, [rbp + 0x100]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
lea r9, [rbp + 0x98]
mov r8d, 0x400
lea rdx, [rbp + 0x100]
mov rcx, rbx
call qword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x140004e60
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rcx, rbx
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, rsi
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov bl, 1
mov rdx, qword [rbp + 0xb8]
cmp rdx, 0x10
jb 0x140004f04
inc rdx
mov rcx, qword [rbp + 0xa0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140004eff
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140004eff
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14005b338
mov qword [rbp + 0xb0], r12
mov qword [rbp + 0xb8], 0xf
mov byte [rbp + 0xa0], 0
mov rdx, qword [rbp + 0xf0]
cmp rdx, 0x10
jb 0x140004f62
inc rdx
mov rcx, qword [rbp + 0xd8]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140004f5c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140004f5c
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14005b338
nop
movabs rax, 0xff00ff00ff00ff00
xor r14, rax
mov qword [r13], r14
movzx eax, bl
mov rcx, qword [rbp + 0x500]
xor rcx, rsp
call fcn.14005b040
lea r11, [rsp + 0x610]
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