Function at 0x140028a40
Capabilities:
Create thread
Resolve dns

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
mov qword [rsp + 0x20], r12
push rbp
push r14
push r15
lea rbp, [rsp - 0x180]
sub rsp, 0x280
mov rax, qword [0x140067010]
xor rax, rsp
mov qword [rbp + 0x170], rax
xor r15d, r15d
mov r14, qword [0x140070600]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x60], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x40], r15
mov qword [rsp + 0x48], r15
lea r8d, [r15 + 0x39]
lea rdx, str.127.0.0.1_www.growtopia1.com_n127.0.0.1_www.growtopia2.com
lea rcx, [rsp + 0x30]
call fcn.140012c90
lea rax, [rsp + 0x30]
mov qword [rsp + 0x50], rax
xorps xmm0, xmm0
movups xmmword [rbp + 0xe0], xmm0
mov qword [rbp + 0xf0], r15
mov qword [rbp + 0xf8], r15
lea r8d, [r15 + 0x25]
lea rdx, str.C:WindowsSystem32driversetchosts
lea rcx, [rbp + 0xe0]
call fcn.140012c90
lea rax, [rbp + 0xe0]
mov qword [rbp + 0x100], rax
xor edx, edx
mov r8d, 0x108
lea rcx, [rbp - 0x30]
call sub.VCRUNTIME140.dll_memset
lea rdx, [rbp + 0xe0]
lea rcx, [rbp - 0x30]
call fcn.140033ac0
nop
mov rax, qword [rbp - 0x30]
movsxd rcx, dword [rax + 4]
lea rax, [rbp - 0x30]
add rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_bool___cdecl_std::ios_base::operator__void_const___ptr64]
test al, al
je 0x140028df7
lea rdx, str.Error:_file_could_not_be_opened
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.140036a00
lea rdx, [0x140036bd0]
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 rax, qword [rbp - 0x30]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx - 0x30], rax
mov rax, qword [rbp - 0x30]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rbp + rcx - 0x34], edx
lea rcx, [rbp - 0x28]
call fcn.140033a50
lea rcx, [rbp - 0x20]
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 + 0x78]
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 [rbp + 0xf8]
cmp rdx, 0x10
jb 0x140028be3
inc rdx
mov rcx, qword [rbp + 0xe0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140028bde
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140028ebd
call fcn.14004c154
mov qword [rbp + 0xf0], r15
mov qword [rbp + reloc.WS2_32.dll_ntohs8], 0xf
mov byte [rbp + 0xe0], 0
mov rdx, qword [rsp + 0x48]
cmp rdx, 0x10
jb 0x140028c39
inc rdx
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140028c34
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140028f22
call fcn.14004c154
mov ecx, reloc.WS2_32.dll_recv
call fcn.14004bdf0
mov rbx, rax
mov qword [rbp + 0x100], rax
xorps xmm0, xmm0
movups xmmword [rax], xmm0
mov edi, dword [r14 + 0x20]
mov rdx, qword [r14 + 0x18]
movups xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x40], r15
mov qword [rsp + 0x48], r15
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rdx + r8], 0
jne 0x140028c71
lea rcx, [rsp + 0x30]
call fcn.140012c90
mov r8d, edi
lea rdx, [rsp + 0x30]
mov rcx, rbx
call fcn.140025600
mov rbx, rax
mov ecx, reloc.WS2_32.dll_recv
call fcn.14004bdf0
mov qword [rax], rbx
lea rcx, [0x140027a60]
mov qword [rax + 8], rcx
mov qword [rbp + 0x100], rax
lea rcx, [rsp + 0x58]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], r15d
mov r9, rax
lea r8, [0x1400445f0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rsp + 0x50], rax
test rax, rax
je 0x1400295d2
cmp dword [rsp + 0x58], 0
je 0x1400295c6
movaps xmm0, xmmword [rsp + 0x50]
movdqa xmmword [rbp + 0x100], xmm0
lea rcx, [rbp + 0x100]
call qword [sym.imp.MSVCP140.dll__Thrd_detach]
test eax, eax
jne 0x1400295c6
xorps xmm0, xmm0
movdqa xmmword [rsp + 0x50], xmm0
movups xmmword [rbp + 0x120], xmm0
xorps xmm1, xmm1
movups xmmword [rbp + 0x100], xmm1
mov qword [rbp + 0x110], r15
mov qword [rbp + 0x118], r15
lea r8d, [rax + 0x1c]
lea rdx, str.https:__api.surferwallet.net
lea rcx, [rbp + 0x100]
call fcn.140012c90
nop
xorps xmm0, xmm0
movups xmmword [rbp + 0xe0], xmm0
mov qword [rbp + 0xf0], r15
mov qword [rbp + reloc.WS2_32.dll_ntohs8], 0xf
mov byte [rbp + 0xe0], 0
movups xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x40], r15
mov qword [rsp + 0x48], reloc.WS2_32.dll_ntohs
mov byte [rsp + 0x30], 0
lea r9, [rbp + 0xe0]
lea r8, [rsp + 0x30]
lea rdx, [rbp + 0x100]
lea rcx, [rbp + 0x120]
call fcn.140024410
nop
mov rdx, qword [rsp + 0x48]
cmp rdx, 0x10
jb 0x140028f2e
inc rdx
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140028f29
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140028f29
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
lea rdx, [rsp + 0x30]
cmp qword [rsp + 0x48], 0x10
cmovae rdx, qword [rsp + 0x30]
mov r8, qword [rsp + 0x40]
lea rcx, [rbp - 0x30]
call fcn.14003e680
lea rcx, [rbp - 0x28]
call fcn.140035880
test rax, rax
jne 0x140028e41
mov rax, qword [rbp - 0x30]
movsxd rcx, dword [rax + 4]
lea rax, [rbp - 0x30]
add rcx, rax
xor r8d, r8d
lea edx, [r8 + 2]
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool____ptr64]
nop
mov rax, qword [rbp - 0x30]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx - 0x30], rax
mov rax, qword [rbp - 0x30]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rbp + rcx - 0x34], edx
lea rcx, [rbp - 0x28]
call fcn.140033a50
lea rcx, [rbp - 0x20]
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 + 0x78]
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 [rbp + 0xf8]
cmp rdx, 0x10
jb 0x140028ec9
inc rdx
mov rcx, qword [rbp + 0xe0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140028ec4
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140028ec4
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14004c154
mov qword [rbp + 0xf0], r15
mov qword [rbp + reloc.WS2_32.dll_ntohs8], 0xf
mov byte [rbp + 0xe0], 0
mov rdx, qword [rsp + 0x48]
cmp rdx, 0x10
jb 0x140028c39
inc rdx
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140028c34
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140028c34
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call fcn.14004c154
mov qword [rsp + 0x40], r15
mov qword [rsp + 0x48], reloc.WS2_32.dll_ntohs
mov byte [rsp + 0x30], 0
mov rdx, qword [rbp + 0xf8]
cmp rdx, 0x10
jb 0x140028f86
inc rdx
mov rcx, qword [rbp + 0xe0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140028f80
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140028f80
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14004c154
nop
mov rdx, qword [rbp + 0x118]
cmp rdx, 0x10
jb 0x140028fca
inc rdx
mov rcx, qword [rbp + 0x100]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140028fc5
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140028fc5
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14004c154
mov rax, qword [rbp + 0x120]
mov byte [rax + 0x3c8], 0
mov rax, qword [rbp + 0x120]
mov qword [rax + 0x170], 3
mov qword [rax + 0x178], r15
xorps xmm0, xmm0
movups xmmword [rbp + 0x130], xmm0
movups xmmword [rbp + 0x140], xmm0
mov rbx, qword [rbp + 0x120]
lea rax, [rbp - 0x78]
mov qword [rbp + 0x100], rax
mov qword [rbp - 0x40], r15
mov qword [rsp + 0x50], r15
mov qword [rsp + 0x58], r15
mov ecx, 0x60
call fcn.14004bdf0
mov qword [rax], rax
mov qword [rax + 8], rax
mov qword [rax + 0x10], rax
mov word [rax + 0x18], 0x101
mov qword [rsp + 0x50], rax
lea rax, [rbp - 0x78]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x50]
lea r8, str._Growtopia
lea rdx, [rbp + 0x130]
mov rcx, rbx
call fcn.140022b70
nop
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x50]
call fcn.14003b5f0
nop
mov edx, dword [rbp + 0x138]
test edx, edx
jne 0x14002932d
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp + 0xe0], xmm0
mov qword [rbp + 0xf0], rax
mov rdx, qword [rbp + 0x130]
add rdx, 0x58
lea rcx, [rsp + 0x68]
call fcn.140034ae0
mov rdx, rax
lea rcx, [rbp + 0xe0]
call fcn.140009790
nop
xorps xmm0, xmm0
movups xmmword [rbp + 0x100], xmm0
mov qword [rbp + 0x110], r15
mov qword [rbp + 0x118], r15
mov r8d, 6
lea rdx, str.server
lea rcx, [rbp + 0x100]
call fcn.140012c90
nop
lea rdx, [rbp + 0x100]
lea rcx, [rbp + 0xe0]
call fcn.140009be0
test rax, rax
je 0x140029131
lea rdx, [rax + 0x38]
lea rcx, [rbp + 0x150]
call fcn.140034ae0
movups xmm0, xmmword [rbp + 0x150]
movups xmmword [rsp + 0x30], xmm0
movups xmm1, xmmword [rbp + 0x160]
movups xmmword [rsp + 0x40], xmm1
jmp 0x140029157
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x40], r15
mov qword [rsp + 0x48], r15
xor r8d, r8d
lea rdx, [0x140052e29]
lea rcx, [rsp + 0x30]
call fcn.140012c90
lea rcx, [r14 + 0x28]
lea rdx, [rsp + 0x30]
call fcn.140034940
mov rdx, qword [rsp + 0x48]
cmp rdx, 0x10
jb 0x1400291a6
inc rdx
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400291a0
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400291a0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14004c154
nop
mov rdx, qword [rbp + 0x118]
cmp rdx, 0x10
jb 0x1400291e7
inc rdx
mov rcx, qword [rbp + 0x100]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400291e2
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140029312
call fcn.14004c154
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x40], r15
mov qword [rsp + 0x48], r15
mov r8d, 4
lea rdx, str.port
lea rcx, [rsp + 0x30]
call fcn.140012c90
nop
lea rdx, [rsp + 0x30]
lea rcx, [rbp + 0xe0]
call fcn.140009be0
test rax, rax
je 0x14002923d
lea rcx, [rax + 0x38]
cmp qword [rcx + 0x18], 0x10
jb 0x140029235
mov rcx, qword [rcx]
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
jmp 0x140029240
mov eax, r15d
mov dword [r14 + 0x68], eax
mov rdx, qword [rsp + 0x48]
cmp rdx, 0x10
jb 0x140029281
inc rdx
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14002927c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140029312
call fcn.14004c154
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x40], r15
mov qword [rsp + 0x48], r15
mov r8d, 5
lea rdx, str.type2
lea rcx, [rsp + 0x30]
call fcn.140012c90
nop
lea rdx, [rsp + 0x30]
lea rcx, [rbp + 0xe0]
call fcn.140009be0
test rax, rax
je 0x1400292d7
lea rcx, [rax + 0x38]
cmp qword [rcx + 0x18], 0x10
jb 0x1400292cf
mov rcx, qword [rcx]
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
jmp 0x1400292da
mov eax, r15d
mov dword [r14 + 0x6c], eax
mov rdx, qword [rsp + 0x48]
cmp rdx, 0x10
jb 0x14002931f
inc rdx
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140029319
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140029319
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14004c154
nop
lea rcx, [rbp + 0xe0]
call fcn.140032de0
jmp 0x140029398
lea rcx, [rbp + 0x150]
call fcn.14000cc10
nop
cmp qword [rax + 0x18], 0x10
jb 0x140029344
mov rax, qword [rax]
mov rdx, rax
lea rcx, str.Requested_Failed_Error_:__s
call fcn.140024e50
nop
mov rdx, qword [rbp + 0x168]
cmp rdx, 0x10
jb 0x140029398
inc rdx
mov rcx, qword [rbp + 0x150]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140029393
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140029393
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14004c154
mov rsi, qword [r14 + 0x10]
mov rdi, qword [rsi + 0x10]
test rdi, rdi
je 0x140029419
mov rcx, qword [rdi]
cmp rcx, 0xffffffffffffffff
je 0x1400293b4
call qword [sym.imp.WS2_32.dll_closesocket]
mov rbx, qword [rdi + 0x28]
imul rax, qword [rdi + 0x30], 0x1d8
add rax, rbx
cmp rbx, rax
jae 0x1400293e8
mov rcx, rbx
call fcn.140003760
add rbx, 0x1d8
imul rax, qword [rdi + 0x30], 0x1d8
add rax, qword [rdi + 0x28]
cmp rbx, rax
jb 0x1400293c8
mov rcx, qword [rdi + 0xa98]
test rcx, rcx
je 0x140029402
mov rax, qword [rdi + 0xab0]
test rax, rax
je 0x140029402
call rax
mov rcx, qword [rdi + 0x28]
call qword [0x140067110]
mov rcx, rdi
call qword [0x140067110]
mov qword [rsi + 0x10], r15
mov edx, 2
xor ecx, ecx
mov r8d, edx
call fcn.1400024f0
mov qword [rsi + 0x10], rax
mov qword [rax + 0x2b10], 1
mov rax, qword [rsi + 0x10]
lea r12, [0x140003110]
mov qword [rax + 0xa90], r12
mov rcx, qword [rsi + 0x10]
call fcn.140002450
mov rsi, qword [r14 + 0x10]
mov rdi, qword [rsi + 8]
test rdi, rdi
je 0x1400294d3
mov rcx, qword [rdi]
cmp rcx, 0xffffffffffffffff
je 0x14002946e
call qword [sym.imp.WS2_32.dll_closesocket]
mov rbx, qword [rdi + 0x28]
imul rax, qword [rdi + 0x30], 0x1d8
add rax, rbx
cmp rbx, rax
jae 0x1400294a2
mov rcx, rbx
call fcn.140003760
add rbx, 0x1d8
imul rax, qword [rdi + 0x30], 0x1d8
add rax, qword [rdi + 0x28]
cmp rbx, rax
jb 0x140029482
mov rcx, qword [rdi + 0xa98]
test rcx, rcx
je 0x1400294bc
mov rax, qword [rdi + 0xab0]
test rax, rax
je 0x1400294bc
call rax
mov rcx, qword [rdi + 0x28]
call qword [0x140067110]
mov rcx, rdi
call qword [0x140067110]
mov qword [rsi + 8], r15
lea rcx, str.0.0.0.0
call qword [sym.imp.WS2_32.dll_gethostbyname]
test rax, rax
je 0x1400294fb
cmp word [rax + 0x10], 2
jne 0x1400294fb
mov rax, qword [rax + 0x18]
mov rcx, qword [rax]
mov eax, dword [rcx]
mov dword [rsp + 0x60], eax
jmp 0x14002950c
lea rdx, str.0.0.0.0
lea rcx, [rsp + 0x60]
call fcn.1400072a0
mov eax, 0x4328
mov word [rsp + 0x64], ax
mov edx, 0xfff
mov r8d, 0xa
lea rcx, [rsp + 0x60]
call fcn.1400024f0
mov qword [rsi + 8], rax
mov qword [rax + 0x2b10], r15
mov rax, qword [rsi + 8]
mov qword [rax + 0xa90], r12
mov rcx, qword [rsi + 8]
call fcn.140002450
nop
lea rdx, [rbp + 0x140]
lea rcx, [rbp + 0x140]
call fcn.14003b5f0
mov rbx, qword [rbp + 0x130]
test rbx, rbx
je 0x140029580
mov rcx, rbx
call fcn.14000c1b0
mov edx, 0x128
mov rcx, rbx
call fcn.14004c154
nop
mov rcx, qword [rbp + 0x120]
test rcx, rcx
je 0x140029596
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
mov rcx, qword [rbp + 0x170]
xor rcx, rsp
call fcn.14004bcb0
lea r11, [rsp + 0x280]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov r12, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
mov ecx, 1
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
nop
mov dword [rsp + 0x58], r15d
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3