Function at 0x10028940
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100cd07f
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x130
mov eax, dword [0x10100230]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0xfc], esi
mov eax, dword fs:[0x2c]
mov ecx, dword [0x101075c4]
mov edi, dword [esi + 8]
mov dword [ebp - 0x124], edi
mov edi, dword [esi + 0xc]
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x101085e4]
mov dword [ebp - 0x120], edi
mov edi, dword [esi + 0x10]
mov dword [ebp - 0x11c], edi
mov edi, dword [esi + 0x14]
mov dword [ebp - 0x118], edi
mov dword [ebp - 0x114], ecx
cmp eax, dword [ecx + 4]
jle 0x10028a1e
push 0x101085e4
call fcn.100920b6
mov eax, dword [0x101085e4]
add esp, 4
cmp eax, 0xffffffff
jne 0x10028a18
mov dword [ebp - 4], 0
call fcn.1002e240
push 0x100d6550
call fcn.10091f17
add esp, 4
mov dword [ebp - 4], 0xffffffff
push 0x101085e4
call fcn.1009206c
mov eax, dword [0x101085e4]
add esp, 4
mov ecx, dword [ebp - 0x114]
cmp dword [0x10108938], 1
jne 0x10028a58
mov eax, dword [esi + 0x70]
test eax, eax
je 0x10028ad7
mov ecx, dword [eax + 0x28]
mov dword [ebp - 0x124], ecx
mov ecx, dword [eax + 0x2c]
mov dword [ebp - 0x120], ecx
mov ecx, dword [eax + 0x20]
mov dword [ebp - 0x11c], ecx
mov ecx, dword [eax + 0x24]
mov dword [ebp - 0x118], ecx
jmp 0x10028ad7
cmp eax, dword [ecx + 4]
jle 0x10028aa3
push 0x101085e4
call fcn.100920b6
add esp, 4
cmp dword [0x101085e4], 0xffffffff
jne 0x10028aa3
mov dword [ebp - 4], 1
call fcn.1002e240
push 0x100d6550
call fcn.10091f17
add esp, 4
mov dword [ebp - 4], 0xffffffff
push 0x101085e4
call fcn.1009206c
add esp, 4
cmp dword [0x10108938], 3
jne 0x10028ad7
mov eax, dword [esi + 0x68]
test eax, eax
je 0x10028ad7
mov ecx, dword [eax + 0x28]
mov dword [ebp - 0x124], ecx
mov ecx, dword [eax + 0x2c]
mov dword [ebp - 0x120], ecx
mov ecx, dword [eax + 0x20]
mov eax, dword [eax + 0x24]
mov dword [ebp - 0x11c], ecx
mov dword [ebp - 0x118], eax
mov eax, dword [esi + 0x9c]
mov dword [ebp - 0x108], eax
mov dword [ebp - 0x104], eax
movzx eax, word [esi + 0x9a]
mov dword [ebp - 0x12c], eax
test ax, ax
je 0x1002914b
push eax
call dword [sym.imp.WS2_32.dll_ntohs]
cmp ax, 0x35
je 0x1002914b
xorps xmm0, xmm0
mov dword [ebp - 0x1c], 0
movups xmmword [ebp - 0x2c], xmm0
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], 0
mov dword [ebp - 4], 2
push 0x28
mov dword [ebp - 0x110], 0
mov dword [ebp - 0x10c], 0
call fcn.10091be2
add esp, 4
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [ebp - 0x110], eax
mov byte [ebp - 4], 3
call fcn.10024e40
lea ecx, [ebp - 0x110]
push ecx
push dword [ebp - 0x108]
mov ecx, eax
call fcn.100254d0
mov esi, dword [ebp - 0x110]
mov esi, dword [esi]
cmp byte [esi + 0xd], 0
jne 0x10028c74
lea eax, [esi + 0x10]
push eax
lea ecx, [ebp - 0x48]
call fcn.10003430
lea eax, [ebp - 0x48]
mov byte [ebp - 4], 4
push eax
lea ecx, [ebp - 0x2c]
call fcn.10007d80
mov edi, dword [ebp - 0x18]
lea ecx, [ebp - 0x2c]
mov edx, dword [ebp - 0x1c]
mov eax, edi
sub eax, edx
cmp eax, 1
jb 0x10028bdb
cmp edi, 0x10
lea eax, [edx + 1]
mov dword [ebp - 0x1c], eax
cmovae ecx, dword [ebp - 0x2c]
mov al, byte [0x100e96d0]
mov byte [ecx + edx], al
mov byte [ecx + edx + 1], 0
jmp 0x10028bef
push 1
push 0x100e96d0
push dword [ebp - 0x130]
push 1
call fcn.10008d20
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x34]
cmp ecx, 0x10
jb 0x10028c27
mov edx, dword [ebp - 0x48]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10028c1d
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10029173
push ecx
push edx
call fcn.10091f2c
add esp, 8
mov eax, dword [esi + 8]
cmp byte [eax + 0xd], 0
je 0x10028c54
mov eax, dword [esi + 4]
cmp byte [eax + 0xd], 0
jne 0x10028c50
nop dword [eax]
cmp esi, dword [eax + 8]
jne 0x10028c50
mov esi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0xd], 0
je 0x10028c40
mov esi, eax
jmp 0x10028c6a
mov esi, eax
mov eax, dword [esi]
cmp byte [eax + 0xd], 0
jne 0x10028c6a
nop
mov esi, eax
mov eax, dword [esi]
cmp byte [eax + 0xd], 0
je 0x10028c60
cmp byte [esi + 0xd], 0
je 0x10028b91
mov esi, dword [ebp - 0x1c]
test esi, esi
je 0x10028d47
cmp dword [ebp - 0x18], 0x10
lea edx, [ebp - 0x2c]
mov edi, dword [ebp - 0x2c]
setae byte [ebp - 0xf1]
cmovae edx, edi
test esi, esi
je 0x10028cf5
or ecx, 0xffffffff
lea eax, [esi - 1]
cmp eax, ecx
cmovb ecx, eax
add ecx, edx
cmp byte [ecx], 0x2c
jne 0x10028cba
nop dword [eax]
cmp ecx, edx
je 0x10028cf5
dec ecx
cmp byte [ecx], 0x2c
je 0x10028cb0
sub ecx, edx
cmp ecx, 0xffffffff
je 0x10028cf5
inc ecx
mov dword [ebp - 0x38], 0
cmp esi, ecx
mov dword [ebp - 0x34], 0
lea eax, [ebp - 0x2c]
xorps xmm0, xmm0
cmovb ecx, esi
cmp byte [ebp - 0xf1], 0
push ecx
cmovne eax, edi
lea ecx, [ebp - 0x48]
push eax
movups xmmword [ebp - 0x48], xmm0
call fcn.1000ad50
jmp 0x10028d01
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x48]
call fcn.10003430
mov ecx, dword [ebp - 0x18]
cmp ecx, 0x10
jb 0x10028d35
mov edx, dword [ebp - 0x2c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10028d2b
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10029173
push ecx
push edx
call fcn.10091f2c
add esp, 8
movups xmm0, xmmword [ebp - 0x48]
movups xmmword [ebp - 0x2c], xmm0
movq xmm0, qword [ebp - 0x38]
movq qword [ebp - 0x1c], xmm0
push 0x800
call fcn.1009218c
add esp, 4
mov edi, eax
mov dword [ebp - 0xf8], edi
push 0x800
push 0
push edi
call fcn.100942c0
add esp, 0xc
mov dword [ebp - 0x140], edi
mov byte [ebp - 4], 5
call fcn.1009020e
push 0
push 0x2710
push edx
push eax
call fcn.100c11e0
mov esi, dword [ebp - 0xfc]
lea ecx, [ebp - 0x60]
add esi, 0x20
mov dword [ebp - 0x130], eax
push esi
mov dword [ebp - 0x13c], edx
call fcn.10003430
mov eax, dword [ebp - 0xfc]
mov byte [ebp - 4], 6
cmp dword [eax + 0x48], 0
je 0x10028ef0
cmp dword [eax + 0x4c], 0x10
lea edi, [eax + 0x38]
mov ecx, edi
jb 0x10028dc8
mov ecx, dword [edi]
cmp dword [esi + 0x14], 0x10
mov eax, dword [esi + 0x10]
mov dword [ebp - 0x128], eax
mov dword [ebp - 0x100], esi
jb 0x10028de5
mov edx, dword [esi]
mov dword [ebp - 0x100], edx
push dword [edi + 0x10]
mov edx, eax
push ecx
mov ecx, dword [ebp - 0x100]
call fcn.10017040
add esp, 8
test al, al
jne 0x10028eea
mov ecx, dword [ebp - 0x128]
mov eax, bind
sub eax, ecx
cmp eax, 1
jb 0x10029169
cmp dword [esi + 0x14], 0x10
jb 0x10028e1f
mov esi, dword [esi]
push 1
push 0x100e9724
push ecx
push esi
push ecx
push dword [ebp - 0x140]
lea ecx, [ebp - 0x78]
call fcn.10007390
push edi
lea ecx, [ebp - 0x78]
mov byte [ebp - 4], 7
call fcn.10007d80
movups xmm0, xmmword [eax]
movq xmm1, qword [eax + 0x10]
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
mov ecx, dword [ebp - 0x4c]
movq qword [ebp - 0x138], xmm1
movups xmmword [ebp - 0x40], xmm0
cmp ecx, 0x10
jb 0x10028ea9
mov edx, dword [ebp - 0x60]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10028e93
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1002916e
push ecx
push edx
call fcn.10091f2c
movups xmm0, xmmword [ebp - 0x40]
add esp, 8
movq xmm1, qword [ebp - 0x138]
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x64]
movq qword [ebp - 0x50], xmm1
movups xmmword [ebp - 0x60], xmm0
cmp ecx, 0x10
jb 0x10028eea
mov edx, dword [ebp - 0x78]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10028ee0
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1002916e
push ecx
push edx
call fcn.10091f2c
add esp, 8
mov edi, dword [ebp - 0xf8]
mov esi, dword [ebp - 0xfc]
push dword [ebp - 0x12c]
mov eax, dword [esi + 0x18]
mov dword [ebp - 0xfc], eax
mov eax, dword [esi + 0x1c]
mov dword [ebp - 0x128], eax
call dword [sym.imp.WS2_32.dll_ntohs]
mov ecx, dword [ebp - 0x108]
lea esi, [ebp - 0x60]
cmp dword [ebp - 0x4c], 0x10
lea edx, [ebp - 0x2c]
movzx eax, ax
cmovae esi, dword [ebp - 0x60]
cmp dword [ebp - 0x18], 0x10
mov dword [ebp - 0x12c], eax
movzx eax, byte [ebp - 0x101]
cmovae edx, dword [ebp - 0x2c]
mov dword [ebp - 0xf8], eax
movzx eax, byte [ebp - 0x102]
mov dword [ebp - 0x104], eax
movzx eax, ch
mov dword [ebp - 0x108], eax
movzx eax, cl
mov ecx, dword [ebp - 0x114]
mov dword [ebp - 0x134], eax
mov eax, dword [0x101085e4]
mov dword [ebp - 0x100], edx
cmp eax, dword [ecx + 4]
jle 0x10028fc1
push 0x101085e4
call fcn.100920b6
add esp, 4
cmp dword [0x101085e4], 0xffffffff
jne 0x10028fbb
mov byte [ebp - 4], 8
call fcn.1002e240
push 0x100d6550
call fcn.10091f17
add esp, 4
mov byte [ebp - 4], 6
push 0x101085e4
call fcn.1009206c
add esp, 4
mov edx, dword [ebp - 0x100]
movaps xmm0, xmmword [0x100ec040]
xor ecx, ecx
movups xmmword [ebp - 0xf0], xmm0
mov dword [ebp - 0xc0], 0x75e4607
movaps xmm0, xmmword [0x100ebb70]
movups xmmword [ebp - 0xe0], xmm0
mov dword [ebp - 0xbc], 0x1574e4e
movaps xmm0, xmmword [0x100ec020]
movups xmmword [ebp - 0xd0], xmm0
mov byte [ebp - 0xb8], 0
nop dword [eax + eax]
mov al, byte [ebp + ecx - 0xef]
xor al, byte [ebp - 0xf0]
mov byte [ebp + ecx - 0xb7], al
inc ecx
cmp ecx, 0x37
jb 0x10029010
push dword [ebp - 0x128]
lea eax, [ebp - 0xb7]
mov byte [ebp - 0x80], 0
push dword [ebp - 0xfc]
push dword [ebp - 0x12c]
push esi
push edx
push dword [ebp - 0xf8]
push dword [ebp - 0x104]
push dword [ebp - 0x108]
push dword [ebp - 0x134]
push dword [ebp - 0x118]
push dword [ebp - 0x11c]
push dword [ebp - 0x120]
push dword [ebp - 0x124]
push dword [ebp - 0x13c]
push dword [ebp - 0x130]
push 0x10108664
push eax
push 0x800
push edi
call fcn.100245d0
add esp, 0x4c
call fcn.1005c3a0
push edi
mov ecx, eax
call fcn.1005c520
mov ecx, dword [ebp - 0x4c]
cmp ecx, 0x10
jb 0x100290d9
mov edx, dword [ebp - 0x60]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x100290cf
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10029173
push ecx
push edx
call fcn.10091f2c
add esp, 8
push edi
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0xf
mov byte [ebp - 0x60], 0
call fcn.10091f5d
mov eax, dword [ebp - 0x110]
add esp, 4
push dword [eax + 4]
lea eax, [ebp - 0x110]
push eax
mov ecx, eax
call fcn.100242b0
push 0x28
push dword [ebp - 0x110]
call fcn.10091f2c
mov ecx, dword [ebp - 0x18]
add esp, 8
cmp ecx, 0x10
jb 0x1002914b
mov edx, dword [ebp - 0x2c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10029141
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10029173
push ecx
push edx
call fcn.10091f2c
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.10091bd4
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.100030c0
call fcn.1009dddf
call fcn.1009dddf
int3