Function at 0x1015cb20
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x174
mov eax, dword [0x102230c0]
xor eax, esp
mov dword [esp + 0x170], eax
mov eax, dword [0x10240c80]
push ebx
push esi
push edi
cmp byte [eax + 0x35db], 0
mov edi, ecx
je 0x1015cf36
mov eax, dword [0x10240c88]
xor ebx, ebx
movq xmm0, qword [str.W__BNQ_:]
mov esi, dword [eax + 0x18]
mov al, byte [0x1020d630]
movq qword [esp + 0x30], xmm0
mov byte [esp + 0x38], al
mov eax, 0x1f7047dd
mov cl, bl
mul ebx
mov eax, ebx
sub eax, edx
shr eax, 1
add eax, edx
shr eax, 5
movsx eax, al
imul eax, eax, 0x39
sub cl, al
add cl, 0x32
xor byte [esp + ebx + 0x30], cl
inc ebx
cmp ebx, 9
jl 0x1015cb72
mov eax, dword [edi]
lea ecx, [esp + 0x30]
push 0
push ecx
mov ecx, edi
mov eax, dword [eax + 0x18]
call eax
mov ecx, dword [esi]
push eax
mov edx, dword [ecx + 0xc]
mov ecx, esi
call edx
mov esi, eax
test esi, esi
je 0x1015cf36
mov ecx, dword [esi]
mov edx, dword [ecx + 0x278]
mov ecx, esi
call edx
test al, al
je 0x1015cf36
mov eax, dword [edi]
mov ecx, edi
push 0
push str.vote_option
mov eax, dword [eax + 0x18]
call eax
mov ecx, dword [0x10242574]
mov dword [esp + 0x10], eax
mov ecx, dword [ecx]
test ecx, ecx
je 0x1015cbfb
cmp esi, ecx
jne 0x1015cbfb
mov dl, 1
jmp 0x1015cbfd
xor dl, dl
mov eax, dword [0x10240c7c]
mov eax, dword [eax + 4]
mov edi, dword [eax + 0x1c]
test edi, edi
je 0x1015cf36
cmp dword [esp + 0x10], 0
mov ebx, 0x1020c1ac
mov eax, 0x1020c1b0
cmovne ebx, eax
test dl, dl
je 0x1015cc88
lea eax, [esp + 0x78]
push eax
call fcn.101aa4f0
xorps xmm0, xmm0
mov dword [esp + 0x54], 0
lea ecx, [esp + 0x78]
mov dword [esp + 0x58], 0
movups xmmword [esp + 0x44], xmm0
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1015cc50
sub ecx, edx
lea eax, [esp + 0x78]
push ecx
push eax
lea ecx, [esp + 0x4c]
call fcn.10027a90
cmp dword [esp + 0x58], 0xf
lea esi, [esp + 0x44]
mov dword [esp + 0xc], 1
cmova esi, dword [esp + 0x44]
mov dword [esp + 0x14], 0
jmp 0x1015ccf9
lea eax, [esp + 0xf8]
mov ecx, esi
push eax
call fcn.101aa4f0
xorps xmm0, xmm0
mov dword [esp + 0x28], 0
lea ecx, [esp + 0xf8]
mov dword [esp + 0x2c], 0
movups xmmword [esp + 0x18], xmm0
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1015ccc0
sub ecx, edx
lea eax, [esp + 0xf8]
push ecx
push eax
lea ecx, [esp + 0x20]
call fcn.10027a90
cmp dword [esp + 0x2c], 0xf
lea esi, [esp + 0x18]
mov dword [esp + 0xc], 0
cmova esi, dword [esp + 0x18]
mov dword [esp + 0x14], 2
cmp byte [0x1020d453], 0
movups xmm0, xmmword [0x1020d438]
mov eax, dword [0x1020d450]
mov dword [esp + 0x74], eax
movups xmmword [esp + 0x5c], xmm0
movq xmm0, qword [0x1020d448]
movq qword [esp + 0x6c], xmm0
je 0x1015ce8e
xor ecx, ecx
cmp dword [0x10241d90], 2
jl 0x1015ce64
movaps xmm0, xmmword [str.2222222222222222]
movaps xmm4, xmmword [0x102157f0]
movaps xmm3, xmmword [0x10215c30]
movaps xmm5, xmmword [0x10215890]
movaps xmmword [esp + 0x30], xmm0
mov edx, dword [esp + 0x30]
nop dword [eax]
movd xmm0, ecx
lea eax, [ecx + 4]
pshufd xmm2, xmm0, 0
paddd xmm2, xmm4
movaps xmm1, xmm2
movaps xmm0, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm3
pmuldq xmm1, xmm3
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
psrad xmm1, 5
movaps xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm5
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm0, xmm0, 0xd8
pshufd xmm1, xmm0, 0xd8
andps xmm1, xmmword [0x10215920]
packuswb xmm1, xmm1
movd xmm0, edx
paddb xmm1, xmm0
movd xmm0, dword [esp + ecx + 0x5c]
xorps xmm1, xmm0
movd xmm0, eax
pshufd xmm2, xmm0, 0
movd dword [esp + ecx + 0x5c], xmm1
paddd xmm2, xmm4
movaps xmm1, xmm2
movaps xmm0, xmm2
punpckldq xmm1, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm3
pmuldq xmm1, xmm3
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
psrad xmm1, 5
movaps xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm5
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm0, xmm0, 0xd8
pshufd xmm1, xmm0, 0xd8
andps xmm1, xmmword [0x10215920]
packuswb xmm1, xmm1
movd xmm0, edx
paddb xmm1, xmm0
movd xmm0, dword [esp + ecx + 0x60]
xorps xmm1, xmm0
movd dword [esp + ecx + 0x60], xmm1
add ecx, 8
cmp ecx, 0x18
jl 0x1015cd60
cmp ecx, 0x1c
jge 0x1015ce8e
mov eax, 0x8fb823ef
imul ecx
add edx, ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dl, cl
movsx eax, al
imul eax, eax, 0x39
sub dl, al
add dl, 0x32
xor byte [esp + ecx + 0x5c], dl
inc ecx
cmp ecx, 0x1c
jl 0x1015ce64
mov ecx, dword [edi]
xor eax, eax
cmp dword [esp + 0x10], eax
push ebx
setne al
add eax, 6
push eax
push esi
lea eax, [esp + 0x68]
push eax
mov eax, dword [ecx + 0x68]
push 0
push edi
call eax
add esp, 0x18
cmp dword [esp + 0x14], 0
je 0x1015cefd
mov ecx, dword [esp + 0x2c]
cmp ecx, 0xf
jbe 0x1015cee8
mov edx, dword [esp + 0x18]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1015cede
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1015cf4b
push ecx
push edx
call fcn.101b6ad2
add esp, 8
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], 0xf
mov byte [esp + 0x18], 0
cmp dword [esp + 0xc], 0
je 0x1015cf36
mov ecx, dword [esp + 0x58]
cmp ecx, 0xf
jbe 0x1015cf36
mov edx, dword [esp + 0x44]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1015cf2c
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1015cf4b
push ecx
push edx
call fcn.101b6ad2
add esp, 8
mov ecx, dword [esp + 0x17c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.101b67d9
mov esp, ebp
pop ebp
ret
call fcn.101bbc06
int3