Function at 0x10001a70
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1002835d
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x10036008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [0x10038f58]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], 0
cmp dword [eax + 0x20], 0
je 0x10001b33
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0xffffffff
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0
call fcn.10004f30
test eax, eax
je 0x10001b1b
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
xor edi, edi
nop word [eax + eax]
movzx eax, word [edi + 0x100380e4]
xor esi, esi
mov ecx, dword [edi + 0x100380e0]
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], eax
push eax
push ecx
lea ecx, [ebp - 0x28]
call fcn.10005160
test eax, eax
jne 0x10001b48
push 0x64
call ebx
mov ecx, dword [ebp - 0x18]
inc esi
mov eax, dword [ebp - 0x1c]
cmp esi, 5
jle 0x10001af5
add edi, 8
cmp edi, 8
jb 0x10001ae0
mov esi, dword [ebp - 0x24]
cmp esi, 0xffffffff
je 0x10001b33
push 2
push esi
call dword [sym.imp.WS2_32.dll_shutdown]
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x30
call dword [0x100380e8]
mov esi, eax
add esp, 4
test esi, esi
je 0x10001b1b
push 0x30
push 0
push esi
call fcn.10010ba0
mov eax, 1
mov dword [esi + 0xc], 0x40
add esp, 0xc
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], 0x84e2
xor ecx, ecx
mov ebx, esi
lea eax, [ecx - 0x7d]
xor byte [ebp + ecx - 0x1c], al
inc ecx
mov eax, dword [ebp - 0x20]
cmp ecx, eax
jb 0x10001b80
mov byte [ebp + eax - 0x1c], 0
mov eax, dword [ebp - 0x10]
movd xmm0, dword [eax + 0x20]
cvtdq2pd xmm0, xmm0
call fcn.1000d9c0
sub esp, 8
lea edx, [ebp - 0x1c]
mov edi, eax
mov ecx, esi
push edi
call fcn.1000d920
add esp, 0xc
test eax, eax
jne 0x10001bc3
mov ecx, edi
call fcn.1000c150
mov eax, 1
mov dword [ebp - 0x1c], 0x84e1
mov dword [ebp - 0x20], eax
xor ecx, ecx
lea eax, [ecx - 0x7d]
xor byte [ebp + ecx - 0x1c], al
inc ecx
mov eax, dword [ebp - 0x20]
cmp ecx, eax
jb 0x10001bd4
mov byte [ebp + eax - 0x1c], 0
mov eax, dword [ebp - 0x10]
movd xmm0, dword [eax + 0x24]
cvtdq2pd xmm0, xmm0
call fcn.1000d9c0
sub esp, 8
lea edx, [ebp - 0x1c]
mov edi, eax
mov ecx, esi
push edi
call fcn.1000d920
add esp, 0xc
test eax, eax
jne 0x10001c17
mov ecx, edi
call fcn.1000c150
push ecx
mov ecx, esi
call fcn.1000cc20
mov edi, eax
add esp, 4
test edi, edi
je 0x10001db4
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10001c31
sub ecx, edx
push ecx
push edi
push 0xc8
lea ecx, [ebp - 0x28]
call fcn.100057d0
push edi
mov esi, eax
call dword [0x100380ec]
add esp, 4
test esi, esi
je 0x10001db4
push 0
push 0
push 0x3e8
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x18]
push eax
push 0xc8
lea ecx, [ebp - 0x28]
call fcn.10005670
test eax, eax
je 0x10001db4
mov esi, dword [ebp - 0x18]
sub esp, 8
mov edx, dword [ebp - 0x1c]
mov ecx, esi
call fcn.1000cb10
push esi
mov ebx, eax
call fcn.10016113
add esp, 4
test ebx, ebx
je 0x10001b1b
mov eax, 1
mov dword [ebp - 0x1c], 0x84e1
mov dword [ebp - 0x20], eax
xor ecx, ecx
lea eax, [ecx - 0x7d]
xor byte [ebp + ecx - 0x1c], al
inc ecx
mov eax, dword [ebp - 0x20]
cmp ecx, eax
jb 0x10001cb7
push ecx
lea edx, [ebp - 0x1c]
mov byte [ebp + eax - 0x1c], 0
mov ecx, ebx
call fcn.1000d7f0
add esp, 4
test eax, eax
je 0x10001db4
cmp byte [eax + 0xc], 8
jne 0x10001db4
mov edi, dword [ebp - 0x10]
xor ecx, ecx
mov eax, dword [eax + 0x14]
mov dword [ebp - 0x1c], 0x84e2
mov dword [edi + 0xe8], eax
mov eax, 1
mov dword [ebp - 0x20], eax
lea eax, [ecx - 0x7d]
xor byte [ebp + ecx - 0x1c], al
inc ecx
mov eax, dword [ebp - 0x20]
cmp ecx, eax
jb 0x10001d08
push ecx
lea edx, [ebp - 0x1c]
mov byte [ebp + eax - 0x1c], 0
mov ecx, ebx
call fcn.1000d7f0
add esp, 4
cmp dword [edi + 0xe8], 3
jne 0x10001d72
cmp dword [edi + 0x24], 1
jne 0x10001d72
mov eax, 1
mov dword [ebp - 0x1c], 0x84e0
mov dword [ebp - 0x20], eax
xor ecx, ecx
nop word [eax + eax]
lea eax, [ecx - 0x7d]
xor byte [ebp + ecx - 0x1c], al
inc ecx
mov eax, dword [ebp - 0x20]
cmp ecx, eax
jb 0x10001d50
push ecx
lea edx, [ebp - 0x1c]
mov byte [ebp + eax - 0x1c], 0
mov ecx, ebx
call fcn.1000d7f0
add esp, 4
test eax, eax
je 0x10001db4
cmp byte [eax + 0xc], 0x10
jne 0x10001db4
mov edx, dword [eax + 0x10]
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10001d84
sub ecx, esi
cmp ecx, 0x20
jne 0x10001db4
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10001d97
sub ecx, esi
push ecx
push edx
lea ecx, [edi + 0xb8]
call fcn.100046f0
mov dword [ebp - 0x14], 1
mov dword [ebp - 4], 0xffffffff
mov esi, dword [ebp - 0x24]
cmp esi, 0xffffffff
je 0x10001dd3
push 2
push esi
call dword [sym.imp.WS2_32.dll_shutdown]
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
mov ecx, ebx
call fcn.1000c150
jmp 0x10001b33