Function at 0x63fa18
Capabilities:
Encode data using xor
Set socket configuration

Disassembly:
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x19d0
call fcn.006e5e00
sub rsp, rax
mov qword [rsp + 0xa0], 0xfffffffffffffffe
mov qword [rsp + 0x1a10], rbx
mov qword [rsp + 0x1a18], rsi
mov r13, r8
mov r14, rdx
mov r12, rcx
mov rax, qword [rcx + 0x28]
add rcx, 0x28
call qword [rax + 0x20]
mov rax, qword [r12 + 0x28]
lea rcx, [r12 + 0x28]
call qword [rax + 0x28]
lea r8, [rsp + 0x1a00]
lea rdx, str.login.icq.com
lea rcx, [rsp + 0x40]
call fcn.004021a8
nop
mov rax, qword [r12 + 0x28]
mov r8d, 0x1446
lea rdx, [rsp + 0x40]
lea rcx, [r12 + 0x28]
call qword [rax + reloc.WS2_32.dll_htonl]
nop
lea rax, [rsp + 0x40]
mov rcx, qword [rsp + 0x68]
cmp rcx, rax
je 0x63fada
test rcx, rcx
je 0x63fad3
mov rdx, qword [rsp + 0x40]
sub rdx, rcx
mov esi, 0x100
cmp rdx, rsi
jbe 0x63facc
call fcn.006a4944
jmp 0x63fadf
call fcn.006a3610
jmp 0x63fadf
mov esi, 0x100
jmp 0x63fadf
mov esi, 0x100
mov rax, qword [r12 + 0x28]
mov r15d, 1
mov r8d, r15d
mov edx, 0x2710
lea rcx, [r12 + 0x28]
call qword [rax + 0x50]
and dword [rsp + 0x1a00], 0
lea r8, [rsp + 0x1a00]
mov edx, 0x8004667e
mov rcx, qword [r12 + 0x68]
call qword [sym.imp.WS2_32.dll_ioctlsocket]
call fcn.006aad48
mov edi, eax
xor ecx, ecx
mov edx, eax
shr edx, 3
test edx, edx
je 0x63fb35
add ecx, edx
shr edx, 3
test edx, edx
jne 0x63fb2c
neg cx
movzx eax, al
xor cx, ax
and cx, 7
xor cx, di
add cx, 2
mov word [r12 + 0x78], cx
mov rcx, r12
call fcn.0063f890
mov rcx, rax
call fcn.006a5528
mov byte [rsp + 0x30], 0xf3
mov byte [rsp + 0x31], 0x26
mov byte [rsp + 0x32], 0x81
mov byte [rsp + 0x33], 0xc4
mov byte [rsp + 0x34], reloc.WS2_32.dll_gethostname
mov byte [rsp + 0x35], 0x86
mov byte [rsp + 0x36], 0xdb
mov byte [rsp + 0x37], 0x92
mov byte [rsp + 0x38], WSAStartup
mov byte [rsp + 0x39], 0xa3
mov byte [rsp + 0x3a], 0xb9
mov byte [rsp + 0x3b], 0xe6
mov byte [rsp + 0x3c], 0x53
mov byte [rsp + 0x3d], 0x7a
mov byte [rsp + 0x3e], __WSAFDIsSet
mov byte [rsp + 0x3f], 0x7c
xor ecx, ecx
mov rdx, qword [r13 + 0x20]
mov rdi, qword [r13 + 0x28]
cmp rdx, rdi
je 0x63fbdd
sub rdx, rdi
mov rax, rcx
and eax, 0xf
mov al, byte [rsp + rax + 0x30]
xor al, byte [rdi + rcx]
mov byte [rsp + rcx + 0xf0], al
add rcx, r15
cmp rcx, rdx
jb 0x63fbc1
mov ecx, r15d
call qword [sym.imp.WS2_32.dll_htonl]
mov dword [rsp + 0x260], eax
mov dword [rsp + 0x1a00], 4
mov rax, qword [r14 + 0x20]
mov r9, qword [r14 + 0x28]
sub ax, r9w
mov r8d, r15d
mov word [rsp + 0x20], ax
lea rdx, [rsp + 0x1a00]
lea rcx, [rsp + 0x260]
call fcn.0063f9a0
mov rdx, qword [r13 + 0x20]
sub dx, word [r13 + 0x28]
mov r8d, 2
mov word [rsp + 0x20], dx
lea r9, [rsp + 0xf0]
lea rdx, [rsp + 0x1a00]
lea rcx, [rsp + 0x260]
call fcn.0063f9a0
movsxd rdi, dword [rsp + 0x1a00]
lea rcx, [rsp + rdi + 0x260]
mov r8d, 0x3e
lea rdx, [0x007bfb40]
call fcn.006a4bf0
mov r9b, r15b
lea r8d, [rdi + 0x3e]
lea rdx, [rsp + 0x260]
mov rcx, r12
call fcn.0063f91c
mov rcx, r12
call fcn.0063f890
mov r14, rax
mov qword [rsp + 0x1a08], rax
mov r9b, 4
xor r8d, r8d
xor edx, edx
mov rcx, r12
call fcn.0063f91c
movzx r8d, word [r14 + 4]
mov ecx, 6
lea rdx, [r14 + 6]
call fcn.0063f678
mov r15, rax
movzx r8d, word [r14 + 4]
mov ecx, 5
lea rdx, [r14 + 6]
call fcn.0063f678
mov r13, rax
test r15, r15
je 0x63ff37
test rax, rax
je 0x63ff37
mov rdx, qword [r12 + 0x28]
lea rcx, [r12 + 0x28]
call qword [rdx + 0x20]
mov rdx, qword [r12 + 0x28]
lea rcx, [r12 + 0x28]
call qword [rdx + 0x28]
lea rdx, [rsp + 0x40]
mov rcx, r13
call fcn.0063f620
nop
xor r13d, r13d
xor r8d, r8d
mov dl, 0x3a
lea rcx, [rsp + 0x40]
call fcn.00420e80
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x63fde9
lea r8, [rax + 1]
or r9, 0xffffffffffffffff
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x40]
call fcn.00420df8
mov rcx, qword [rax + 0x28]
call fcn.006a5458
mov r13d, eax
lea rax, [rsp + 0x70]
mov rcx, qword [rsp + 0x98]
cmp rcx, rax
je 0x63fd86
test rcx, rcx
je 0x63fd86
mov rdx, qword [rsp + 0x70]
sub rdx, rcx
cmp rdx, rsi
jbe 0x63fd81
call fcn.006a4944
jmp 0x63fd86
call fcn.006a3610
mov r9, rdi
xor r8d, r8d
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x40]
call fcn.00420df8
nop
lea rcx, [rsp + 0x40]
cmp rax, rcx
je 0x63fdb9
mov r8, qword [rax + 0x20]
mov rdx, qword [rax + 0x28]
lea rcx, [rsp + 0x40]
call fcn.0040289c
nop
lea rax, [rsp + 0x70]
mov rcx, qword [rsp + 0x98]
cmp rcx, rax
je 0x63fde9
test rcx, rcx
je 0x63fde9
mov rdx, qword [rsp + 0x70]
sub rdx, rcx
cmp rdx, rsi
jbe 0x63fde4
call fcn.006a4944
jmp 0x63fde9
call fcn.006a3610
mov rax, qword [r12 + 0x28]
mov r8d, r13d
lea rdx, [rsp + 0x40]
lea rcx, [r12 + 0x28]
call qword [rax + reloc.WS2_32.dll_htonl]
mov rax, qword [r12 + 0x28]
mov edx, 0x2710
mov r8d, 1
lea rcx, [r12 + 0x28]
call qword [rax + 0x50]
and dword [rsp + 0x1a00], 0
lea r8, [rsp + 0x1a00]
mov edx, 0x8004667e
mov rcx, qword [r12 + 0x68]
call qword [sym.imp.WS2_32.dll_ioctlsocket]
mov rcx, r12
call fcn.0063f890
mov rcx, rax
call fcn.006a5528
call fcn.006aad48
mov edi, eax
xor ecx, ecx
mov edx, eax
shr edx, 3
test edx, edx
je 0x63fe5c
add ecx, edx
jmp 0x63fe51
neg cx
movzx eax, al
xor cx, ax
and cx, 7
xor cx, di
add cx, 2
mov word [r12 + 0x78], cx
mov ecx, 1
call qword [sym.imp.WS2_32.dll_htonl]
mov dword [rsp + 0x260], eax
mov dword [rsp + 0x1a00], 4
movzx ecx, word [r15 + 2]
call qword [sym.imp.WS2_32.dll_ntohs]
lea r9, [r15 + 4]
mov r8d, 6
mov word [rsp + 0x20], ax
lea rdx, [rsp + 0x1a00]
lea rcx, [rsp + 0x260]
call fcn.0063f9a0
movsxd rdi, dword [rsp + 0x1a00]
lea rcx, [rsp + rdi + 0x260]
mov r8d, 0x3e
lea rdx, [0x007bfb40]
call fcn.006a4bf0
mov r9b, 1
lea r8d, [rdi + 0x3e]
lea rdx, [rsp + 0x260]
mov rcx, r12
call fcn.0063f91c
mov rcx, r14
call fcn.006a5528
nop
lea rax, [rsp + 0x40]
mov rcx, qword [rsp + 0x68]
cmp rcx, rax
je 0x63ff32
test rcx, rcx
je 0x63ff32
mov rdx, qword [rsp + 0x40]
sub rdx, rcx
cmp rdx, rsi
jbe 0x63ff2c
call fcn.006a4944
jmp 0x63ff32
call fcn.006a3610
nop
jmp 0x640020
lea r8, str.Login_failed.
mov rdx, rsi
lea rcx, [rsp + 0x160]
call fcn.006a9224
movzx r8d, word [r14 + 4]
mov ecx, 8
lea rdx, [r14 + 6]
call fcn.0063f678
mov rbx, rax
test rax, rax
je 0x63ffc2
movzx ecx, word [rax + 2]
call qword [sym.imp.WS2_32.dll_ntohs]
mov ecx, 2
cmp ax, cx
jb 0x63ffc2
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0x160]
repne scasb al, byte [rdi]
not rcx
lea rax, [rsp + rcx + 0x15f]
mov qword [rsp + 0x1a00], rax
movzx ecx, word [rbx + 4]
call qword [sym.imp.WS2_32.dll_ntohs]
movzx r8d, ax
lea rdx, str._ICQ_server_error_code:__04X
lea rcx, [rsp + 0x1a00]
call fcn.00588590
lea r8, [rsp + 0x1a00]
lea rdx, [rsp + 0x160]
lea rcx, [rsp + 0x70]
call fcn.004021a8
nop
lea rcx, [rsp + 0xa8]
call fcn.006a49e8
lea rdx, [0x00798b08]
mov qword [rsp + 0xa8], rdx
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0xc0]
call fcn.004029b4
lea rdx, [0x00850c68]
lea rcx, [rsp + 0xa8]
call fcn.006ab82c
nop
lea r11, [rsp + 0x19d0]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret