Function at 0x140054580
Capabilities:
Delete file
Download url
Query environment variable
Read file on windows
Receive data

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x27]
sub rsp, 0xc0
mov rax, qword [0x14057b2a8]
xor rax, rsp
mov qword [rbp + 0x1f], rax
mov rdi, rdx
mov r14, rcx
mov qword [rbp - 0x59], rcx
mov qword [rbp - 0x49], rdx
xor esi, esi
lea rcx, str.APPDATA
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
xorps xmm0, xmm0
movups xmmword [rbp - 0x21], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x11], xmm1
mov r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp byte [rax + r8], 0
jne 0x1400545e0
mov rdx, rax
lea rcx, [rbp - 0x21]
call fcn.140048220
nop
mov rcx, qword [rbp - 0x11]
mov rdx, qword [rbp - 9]
mov rax, rdx
sub rax, rcx
cmp rax, 0x15
jb 0x140054642
lea rax, [rcx + 0x15]
mov qword [rbp - 0x11], rax
lea rbx, [rbp - 0x21]
cmp rdx, 0x10
cmovae rbx, qword [rbp - 0x21]
add rbx, rcx
mov r8d, reloc.WS2_32.dll_setsockopt
lea rdx, str.PrivateTarkovClient
mov rcx, rbx
call sub.VCRUNTIME140.dll_memmove
mov byte [rbx + 0x15], 0
lea rax, [rbp - 0x21]
jmp 0x140054665
mov qword [rsp + 0x20], reloc.WS2_32.dll_setsockopt
lea r9, str.PrivateTarkovClient
movzx r8d, byte [rbp - 0x69]
mov edx, reloc.WS2_32.dll_setsockopt
lea rcx, [rbp - 0x21]
call fcn.14004a030
movups xmm0, xmmword [rax]
movups xmmword [rbp - 1], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp + 0xf], xmm1
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rax], 0
mov rdx, qword [rbp - 9]
cmp rdx, 0x10
jb 0x1400546c1
inc rdx
mov rcx, qword [rbp - 0x21]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400546bc
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400546bc
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400b7258
movdqa xmm0, xmmword [0x140132010]
movdqu xmmword [rbp - 0x11], xmm0
mov byte [rbp - 0x21], 0
movabs rcx, 0x7fffffffffffffff
mov rax, rcx
mov r12, qword [rbp + 0xf]
sub rax, r12
cmp rax, 0xe
jb 0x140054ca0
lea rdx, [rbp - 1]
mov rsi, qword [rbp - 1]
mov r13, qword [rbp + 0x17]
cmp r13, 0x10
cmovae rdx, rsi
mov qword [rbp - 0x61], rdx
xorps xmm0, xmm0
movups xmmword [rbp - 0x41], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x31], xmm1
lea rax, [r12 + 0xe]
mov ebx, reloc.WS2_32.dll_ntohs
lea r15, [rbp - 0x41]
cmp rax, rbx
jbe 0x1400547ba
mov rbx, rax
or rbx, 0xf
cmp rbx, rcx
jbe 0x140054773
mov rbx, rcx
movabs rax, 0x8000000000000000
add rax, 0x27
mov rcx, rax
call fcn.1400b721c
test rax, rax
je 0x140054c32
lea r15, [rax + 0x27]
and r15, 0xffffffffffffffe0
mov qword [r15 - 8], rax
lea rax, [r12 + 0xe]
mov rdx, qword [rbp - 0x61]
jmp 0x1400547b6
mov ecx, reloc.WLDAP32.dll_Ordinal_22
cmp rbx, rcx
cmovb rbx, rcx
lea rcx, [rbx + 1]
cmp rcx, 0x1000
jb 0x14005479b
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x140054c9a
jmp 0x14005474b
test rcx, rcx
je 0x1400547b3
call fcn.1400b721c
mov r15, rax
lea rax, [r12 + 0xe]
mov rdx, qword [rbp - 0x61]
jmp 0x1400547b6
xor r15d, r15d
mov qword [rbp - 0x41], r15
mov qword [rbp - 0x31], rax
mov qword [rbp - 0x29], rbx
mov r8, r12
mov rcx, r15
call sub.VCRUNTIME140.dll_memcpy
movsd xmm0, qword [str.eft_cheat.exe]
movsd qword [r12 + r15], xmm0
mov eax, dword [0x140131d30]
mov dword [r12 + r15 + 8], eax
movzx eax, word [0x140131d34]
mov word [r12 + r15 + 0xc], ax
mov byte [r15 + r12 + 0xe], 0
lea rbx, [rbp - 0x41]
cmp qword [rbp - 0x29], 0x10
cmovae rbx, qword [rbp - 0x41]
mov qword [rbp - 0x59], rbx
mov rdx, rdi
cmp qword [rdi + 0x18], 0x10
jb 0x140054818
mov rdx, qword [rdi]
xor r15d, r15d
mov qword [rsp + 0x20], r15
xor r9d, r9d
mov r8, rbx
xor ecx, ecx
call sub.urlmon.dll_URLDownloadToFileA
test eax, eax
js 0x140054be7
mov rdx, rbx
lea rcx, str.File_downloaded_to__ls_n
call fcn.14002d0d0
lea rdx, [0x1400bd5e4]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
mov r12, rax
test rax, rax
je 0x140054bbf
xor edx, edx
lea r8d, [r15 + 2]
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
mov rcx, r12
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
movsxd rbx, eax
xor r8d, r8d
xor edx, edx
mov rcx, r12
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
mov r13, rbx
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x21], xmm0
mov qword [rbp - 0x11], r15
mov qword [rbp - 0x61], r15
test ebx, ebx
je 0x140054916
movabs rax, 0x7fffffffffffffff
cmp rbx, rax
ja 0x140054ca6
cmp rbx, 0x1000
jb 0x1400548e5
lea rcx, [rbx + 0x27]
cmp rcx, rbx
jbe 0x140054c94
call fcn.1400b721c
test rax, rax
je 0x140054aa4
lea rbx, [rax + 0x27]
and rbx, 0xffffffffffffffe0
mov qword [rbx - 8], rax
jmp 0x1400548f0
mov rcx, r13
call fcn.1400b721c
mov rbx, rax
mov qword [rbp - 0x21], rbx
lea r15, [rbx + r13]
mov qword [rbp - 0x11], r15
mov r8, r13
xor edx, edx
mov rcx, rbx
call sub.VCRUNTIME140.dll_memset
mov rax, r15
mov qword [rbp - 0x61], rax
mov qword [rbp - 0x19], rax
jmp 0x14005491a
mov rbx, qword [rbp - 0x21]
mov r9, r12
mov r8, r13
mov edx, 1
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
cmp rax, r13
jne 0x140054a4e
mov rcx, r12
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rcx, qword [rbp - 0x59]
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll_remove]
test eax, eax
je 0x140054971
lea rdx, str.Error_deleting_file.
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.140049890
lea rdx, [0x14004a970]
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 qword [r14], rbx
mov rax, qword [rbp - 0x61]
mov qword [r14 + 8], rax
mov qword [r14 + 0x10], r15
mov rdx, qword [rbp - 0x29]
cmp rdx, 0x10
jb 0x1400549bb
inc rdx
mov rcx, qword [rbp - 0x41]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400549b6
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140054c32
call fcn.1400b7258
movdqa xmm0, xmmword [0x140132010]
movdqu xmmword [rbp - 0x31], xmm0
mov byte [rbp - 0x41], 0
mov rdx, qword [rbp + 0x17]
cmp rdx, 0x10
jb 0x140054a07
inc rdx
mov rax, rsi
cmp rdx, 0x1000
jb 0x1400549fe
add rdx, 0x27
mov rsi, qword [rsi - 8]
sub rax, rsi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140054c86
mov rcx, rsi
call fcn.1400b7258
nop
mov rdx, qword [rdi + 0x18]
cmp rdx, 0x10
jb 0x140054a41
inc rdx
mov rcx, qword [rdi]
cmp rdx, 0x1000
jb 0x140054a3c
add rdx, 0x27
mov rax, qword [rcx - 8]
sub rcx, rax
add rcx, 0xfffffffffffffff8
cmp rcx, 0x1f
ja 0x140054c8d
mov rcx, rax
call fcn.1400b7258
mov qword [rdi + 0x10], 0
jmp 0x140054b8a
lea rdx, str.Error_reading_file.
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.140049890
lea rdx, [0x14004a970]
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, r12
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
nop
test rbx, rbx
je 0x140054ab6
sub r15, rbx
mov rax, rbx
cmp r15, 0x1000
jb 0x140054aab
add r15, 0x27
mov rbx, qword [rbx - 8]
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140054aab
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rdx, r15
mov rcx, rbx
call fcn.1400b7258
xor r15d, r15d
mov r13, qword [rbp + 0x17]
mov qword [r14], r15
mov qword [r14 + 8], r15
mov qword [r14 + 0x10], r15
mov rdx, qword [rbp - 0x29]
cmp rdx, 0x10
jb 0x140054b03
inc rdx
mov rcx, qword [rbp - 0x41]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140054afe
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140054c32
call fcn.1400b7258
movdqa xmm0, xmmword [0x140132010]
movdqu xmmword [rbp - 0x31], xmm0
mov byte [rbp - 0x41], 0
cmp r13, 0x10
jb 0x140054b4c
lea rdx, [r13 + 1]
mov rax, rsi
cmp rdx, 0x1000
jb 0x140054b43
add rdx, 0x27
mov rsi, qword [rsi - 8]
sub rax, rsi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140054c86
mov rcx, rsi
call fcn.1400b7258
nop
mov rdx, qword [rdi + 0x18]
cmp rdx, 0x10
jb 0x140054b86
inc rdx
mov rcx, qword [rdi]
cmp rdx, 0x1000
jb 0x140054b81
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140054c8d
mov rcx, r8
call fcn.1400b7258
mov qword [rdi + 0x10], r15
mov byte [rdi], 0
mov qword [rdi + 0x18], reloc.WS2_32.dll_ntohs
mov rax, r14
mov rcx, qword [rbp + 0x1f]
xor rcx, rsp
call fcn.1400b72f0
mov rbx, qword [rsp + 0x110]
add rsp, 0xc0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea rdx, str.Error_opening_file.
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.140049890
lea rdx, [0x14004a970]
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]
jmp 0x140054abd
mov edx, eax
lea rcx, str.Download_failed._Error_code:_0x_08x_n
call fcn.14002d0d0
mov qword [r14], r15
mov qword [r14 + 8], r15
mov qword [r14 + 0x10], r15
mov rdx, qword [rbp - 0x29]
cmp rdx, 0x10
jb 0x140054c3e
inc rdx
mov rcx, qword [rbp - 0x41]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140054c39
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140054c39
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400b7258
movdqa xmm0, xmmword [0x140132010]
movdqu xmmword [rbp - 0x31], xmm0
mov byte [rbp - 0x41], 0
cmp r13, 0x10
jb 0x140054b4c
lea rdx, [r13 + 1]
mov rax, rsi
cmp rdx, 0x1000
jb 0x140054b43
add rdx, 0x27
mov rsi, qword [rsi - 8]
sub rax, rsi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140054b43
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call fcn.140014900
nop
call fcn.140014900
int3
call fcn.140014920
nop
call fcn.140049780
int3