Function at 0x140046550
Capabilities:
Connect to http server
Create http request
Execute command
Send file using ftp
Terminate process

Disassembly:
mov rax, rsp
mov qword [rax + 0x20], rbx
mov qword [rax + 8], rcx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rax - 0x188]
sub rsp, 0x260
movaps xmmword [rax - 0x38], xmm6
mov rsi, rcx
xor r15d, r15d
mov dword [rbp + 0x198], r15d
lea rcx, [rbp + 0xd0]
call qword [sym.imp.ADVAPI32.dll_GetCurrentHwProfileA]
test eax, eax
je 0x140046bb6
xorps xmm0, xmm0
movups xmmword [rsp + 0x60], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x70], xmm1
lea rax, [rbp + 0xd4]
mov rbx, 0xffffffffffffffff
inc rbx
cmp byte [rax + rbx], 0
jne 0x1400465b5
movabs rdi, 0x7fffffffffffffff
cmp rbx, rdi
ja 0x140046bc2
cmp rbx, 0xf
ja 0x140046603
mov qword [rsp + 0x70], rbx
mov qword [rsp + 0x78], 0xf
mov r8, rbx
lea rdx, [rbp + 0xd4]
lea rcx, [rsp + 0x60]
call sub.VCRUNTIME140.dll_memcpy
mov byte [rsp + rbx + 0x60], 0
jmp 0x1400466a2
mov rax, rbx
or rax, 0xf
cmp rax, rdi
jbe 0x140046638
movabs rax, 0x8000000000000000
add rax, 0x27
mov rcx, rax
call fcn.140049ae4
test rax, rax
je 0x14004666d
lea r14, [rax + 0x27]
and r14, 0xffffffffffffffe0
mov qword [r14 - 8], rax
jmp 0x14004667c
mov rdi, rax
mov ecx, 0x16
cmp rax, rcx
cmovb rdi, rcx
lea rcx, [rdi + 1]
test rcx, rcx
jne 0x140046655
mov r14, r15
jmp 0x14004667c
cmp rcx, 0x1000
jb 0x140046674
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x140046bc8
jmp 0x14004661d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140049ae4
mov r14, rax
mov qword [rsp + 0x60], r14
mov qword [rsp + 0x70], rbx
mov qword [rsp + 0x78], rdi
mov r8, rbx
lea rdx, [rbp + 0xd4]
mov rcx, r14
call sub.VCRUNTIME140.dll_memcpy
mov byte [r14 + rbx], 0
mov rbx, rsi
cmp qword [rsi + 0x18], 0xf
jbe 0x1400466af
mov rbx, qword [rsi]
lea rax, [0x1400593d8]
mov qword [rbp - 0x60], rax
lea rcx, [rbp + 0x48]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::constructor_void____ptr64]
nop
mov dword [rbp + 0x198], 3
xor r9d, r9d
xor r8d, r8d
lea rdx, [rbp - 0x58]
lea rcx, [rbp - 0x60]
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::constructor_class_std::basic_streambuf_char__struct_std::char_traits_char______ptr64__bool____ptr64]
nop
mov rax, qword [rbp - 0x60]
movsxd rcx, dword [rax + 4]
lea r14, vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx - 0x60], r14
mov rax, qword [rbp - 0x60]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rbp + rcx - 0x64], edx
lea rcx, [rbp - 0x58]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::constructor_void____ptr64]
lea rax, vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov qword [rbp - 0x58], rax
mov byte [rbp + 0x24], 0
mov byte [rbp + 0x19], 0
lea rcx, [rbp - 0x58]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Init_void____ptr64]
mov qword [rbp + 0x28], r15
mov rax, qword [0x140062608]
mov qword [rbp + 0x1c], rax
mov qword [rbp + 0x10], r15
mov r8d, 2
mov rdx, rbx
lea rcx, [rbp - 0x58]
call fcn.1400489f0
test rax, rax
jne 0x140046779
mov rax, qword [rbp - 0x60]
movsxd rcx, dword [rax + 4]
lea rax, [rbp - 0x60]
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]
nop
lea rdx, [rsp + 0x60]
cmp qword [rsp + 0x78], 0xf
cmova rdx, qword [rsp + 0x60]
lea rcx, [rbp - 0x60]
call fcn.140048ca0
cmp qword [rbp + 0x28], 0
je 0x140046813
lea rcx, [rbp + 0x18]
mov rax, qword [rbp - 0x40]
cmp qword [rax], rcx
jne 0x1400467c1
mov rdx, qword [rbp + 0x38]
mov rcx, qword [rbp + 0x30]
mov qword [rax], rcx
mov rax, qword [rbp - 0x20]
mov qword [rax], rcx
sub edx, ecx
mov rax, qword [rbp - 8]
mov dword [rax], edx
lea rcx, [rbp - 0x58]
call fcn.140048850
lea rbx, [rbp - 0x58]
test al, al
cmove rbx, r15
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rdi, r15
test eax, eax
cmove rdi, rbx
mov byte [rbp + 0x24], 0
mov byte [rbp + 0x19], 0
lea rcx, [rbp - 0x58]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Init_void____ptr64]
mov qword [rbp + 0x28], r15
mov rax, qword [0x140062608]
mov qword [rbp + 0x1c], rax
mov qword [rbp + 0x10], r15
test rdi, rdi
jne 0x140046855
jmp 0x140046838
mov byte [rbp + 0x24], 0
mov byte [rbp + 0x19], 0
lea rcx, [rbp - 0x58]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Init_void____ptr64]
mov qword [rbp + 0x28], r15
mov rax, qword [0x140062608]
mov qword [rbp + 0x1c], rax
mov qword [rbp + 0x10], r15
mov rax, qword [rbp - 0x60]
movsxd rcx, dword [rax + 4]
lea rax, [rbp - 0x60]
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 dword [rsp + 0x20], r15d
xor r9d, r9d
xor r8d, r8d
mov edx, 1
xor ecx, ecx
call qword [sym.imp.WININET.dll_InternetOpenW]
mov r8d, 0x15
mov qword [rsp + 0x38], r15
mov dword [rsp + 0x30], 0x8000000
mov dword [rsp + 0x28], 1
lea rcx, str.1JYguO9aQGXh5
mov qword [rsp + 0x20], rcx
lea r9, str.if0_35849343
lea rdx, str.ftp.infinityfree.com
mov rcx, rax
call qword [sym.imp.WININET.dll_InternetConnectA]
mov rdi, rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
movdqa xmm6, xmmword [0x1400595e0]
movdqu xmmword [rsp + 0x50], xmm6
mov byte [rsp + 0x40], 0
movups xmmword [rbp - 0x80], xmm0
movdqu xmmword [rbp - 0x70], xmm6
mov byte [rbp - 0x80], 0
mov r8, rsi
lea rcx, [rbp + 0xb0]
call fcn.140048e80
mov rbx, rax
lea rax, [rsp + 0x40]
cmp rax, rbx
je 0x140046956
mov rdx, qword [rsp + 0x58]
cmp rdx, 0xf
jbe 0x14004692b
inc rdx
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140046926
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14004698e
call fcn.14004977c
movdqu xmmword [rsp + 0x50], xmm6
mov byte [rsp + 0x40], 0
movups xmm0, xmmword [rbx]
movups xmmword [rsp + 0x40], xmm0
movups xmm1, xmmword [rbx + 0x10]
movups xmmword [rsp + 0x50], xmm1
mov qword [rbx + 0x10], r15
mov qword [rbx + 0x18], 0xf
mov byte [rbx], 0
mov rdx, qword [rbp + 0xc8]
cmp rdx, 0xf
jbe 0x14004699a
inc rdx
mov rcx, qword [rbp + 0xb0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140046995
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140046995
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14004977c
lea rax, [rbp - 0x80]
cmp rax, rsi
je 0x1400469bd
mov rdx, rsi
cmp qword [rsi + 0x18], 0xf
jbe 0x1400469b0
mov rdx, qword [rsi]
mov r8, qword [rsi + 0x10]
lea rcx, [rbp - 0x80]
call fcn.140048b30
lea r8, [rsp + 0x40]
cmp qword [rsp + 0x58], 0xf
cmova r8, qword [rsp + 0x40]
lea rdx, [rbp - 0x80]
cmp qword [rbp - 0x68], 0xf
cmova rdx, qword [rbp - 0x80]
mov qword [rsp + 0x20], r15
mov r9d, 2
mov rcx, rdi
call qword [sym.imp.WININET.dll_FtpPutFileA]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
test eax, eax
je 0x140046b91
lea rdx, str.PC_registered_n
call fcn.140048ca0
nop
mov rdx, qword [rbp - 0x68]
cmp rdx, 0xf
jbe 0x140046a4a
inc rdx
mov rcx, qword [rbp - 0x80]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140046a45
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140046a45
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14004977c
movdqu xmmword [rbp - 0x70], xmm6
mov byte [rbp - 0x80], 0
mov rdx, qword [rsp + 0x58]
cmp rdx, 0xf
jbe 0x140046a93
inc rdx
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140046a8e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140046a8e
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14004977c
movdqu xmmword [rsp + 0x50], xmm6
mov byte [rsp + 0x40], 0
mov rax, qword [rbp - 0x60]
movsxd rcx, dword [rax + 4]
mov qword [rbp + rcx - 0x60], r14
mov rax, qword [rbp - 0x60]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rbp + rcx - 0x64], edx
lea rcx, [rbp - 0x58]
call fcn.1400484e0
lea rcx, [rbp - 0x50]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::destructor_void____ptr64]
lea rcx, [rbp + 0x48]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::destructor_void____ptr64]
nop
mov rdx, qword [rsp + 0x78]
cmp rdx, 0xf
jbe 0x140046b1b
inc rdx
mov rcx, qword [rsp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140046b16
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140046b16
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14004977c
movdqu xmmword [rsp + 0x70], xmm6
mov byte [rsp + 0x60], 0
mov rdx, qword [rsi + 0x18]
cmp rdx, 0xf
jbe 0x140046b5c
inc rdx
mov rcx, qword [rsi]
cmp rdx, 0x1000
jb 0x140046b57
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140046b8a
mov rcx, r8
call fcn.14004977c
mov qword [rsi + 0x10], r15
mov qword [rsi + 0x18], 0xf
mov byte [rsi], 0
mov rbx, qword [rsp + 0x2a8]
movaps xmm6, xmmword [rsp + 0x250]
add rsp, 0x260
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
lea rdx, str.Failed_to_register_PC_n
call fcn.140048ca0
lea rcx, str.pause
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
nop
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
call fcn.140042e70
int3
call fcn.140042dd0
int3