Function at 0x35d9c0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov eax, 0x1a70
call fcn.002a6300
mov edi, dword [ebp + 0x10]
mov eax, dword [0x10376020]
xor eax, ebp
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x17f8]
push 0x17e8
push 0xff
push eax
call fcn.002a95c0
add esp, 0xc
mov eax, 0xcc
lea ecx, [ebp - 0x1990]
lea esi, [ecx + eax]
push eax
push 0
push ecx
call fcn.002a95c0
add esp, 0xc
mov ebx, 0x44
push ebx
push edi
push esi
call fcn.002a9040
add esp, 0xc
lea eax, [edi + ebx]
lea ecx, [ebp - 0x1880]
push ebx
push eax
push ecx
call fcn.002a9040
add esp, 0xc
add edi, 0x88
lea eax, [ebp - 0x183c]
push ebx
push edi
push eax
call fcn.002a9040
add esp, 0xc
mov ebx, 2
mov eax, esi
jmp 0x35da68
push eax
push esi
push edi
push ecx
call fcn.0035b8d0
add esp, 0x10
inc ebx
mov eax, edi
cmp ebx, 0x20
je 0x35da94
lea edi, [eax + 0xcc]
test bl, 1
mov ecx, dword [ebp + 8]
jne 0x35da54
mov eax, ebx
shr eax, 1
imul eax, eax, 0xcc
add eax, ebp
add eax, 0xffffe670
push eax
push edi
push ecx
call fcn.0035c3c0
add esp, 0xc
jmp 0x35da60
mov eax, dword [ebp + 8]
add eax, 0xe8
push eax
call fcn.00350240
add esp, 4
test eax, eax
je 0x35db1f
lea edx, [eax - 1]
mov esi, 0x88
lea ecx, [ebp - 0x1a5c]
add ecx, esi
mov dword [ebp - 0x1a78], ecx
mov dword [ebp - 0x1a6c], eax
mov ecx, dword [ebp + 0xc]
add esi, ecx
mov dword [ebp - 0x1a7c], esi
lea eax, [ecx + 0x44]
mov dword [ebp - 0x1a74], eax
mov ecx, dword [ebp - 0x1a6c]
mov dword [ebp - 0x1a68], 0
mov esi, ecx
mov edi, esi
mov esi, edx
mov eax, edx
mov edx, 0xcccccccd
mul edx
mov ebx, edx
test byte [ebp - 0x1a68], 1
jne 0x35db46
shr ebx, 2
lea eax, [ebx + ebx*4]
cmp eax, esi
je 0x35db5e
lea edx, [esi - 1]
mov edi, esi
cmp edx, ecx
jb 0x35daed
test byte [ebp - 0x1a68], 1
jne 0x35db31
push 0xcc
push 0
push dword [ebp + 0xc]
call fcn.002a95c0
add esp, 0xc
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.002a5ceb
add esp, 0x1a70
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [ebp + 0xc]
push eax
push eax
push dword [ebp + 8]
call fcn.0035c3c0
mov ecx, dword [ebp - 0x1a6c]
add esp, 0xc
jmp 0x35db03
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0xec]
lea ecx, [edi + 3]
mov ebx, ecx
shr ebx, 5
xor eax, eax
mov dword [ebp - 0x1a70], 0
mov dword [ebp - 0x1a60], edx
cmp ebx, edx
jae 0x35db99
mov edx, dword [ebp + 0x14]
mov edx, dword [edx + ebx*4]
xor ebx, ebx
bt edx, ecx
setb bl
mov dword [ebp - 0x1a70], ebx
lea ecx, [edi + 2]
mov edx, ecx
shr edx, 5
cmp edx, dword [ebp - 0x1a60]
jae 0x35dbb7
mov eax, dword [ebp + 0x14]
mov edx, dword [eax + edx*4]
xor eax, eax
bt edx, ecx
setb al
lea edx, [edi + 1]
mov ebx, edx
shr ebx, 5
mov dword [ebp - 0x1a64], 0
mov ecx, 0
cmp ebx, dword [ebp - 0x1a60]
jae 0x35dbe4
mov ecx, dword [ebp + 0x14]
mov ebx, dword [ecx + ebx*4]
xor ecx, ecx
bt ebx, edx
setb cl
mov edx, edi
shr edx, 5
cmp edx, dword [ebp - 0x1a60]
jae 0x35dc05
mov ebx, dword [ebp + 0x14]
mov edx, dword [ebx + edx*4]
xor ebx, ebx
bt edx, edi
setb bl
mov dword [ebp - 0x1a64], ebx
mov edx, esi
shr edx, 5
xor edi, edi
mov ebx, 0
cmp edx, dword [ebp - 0x1a60]
jae 0x35dc27
mov ebx, dword [ebp + 0x14]
mov edx, dword [ebx + edx*4]
xor ebx, ebx
bt edx, esi
setb bl
mov edx, dword [ebp - 0x1a70]
shl edx, 4
shl eax, 3
or eax, edx
shl ecx, 2
or ecx, eax
mov eax, dword [ebp - 0x1a64]
add eax, eax
or eax, ebx
or eax, ecx
mov dword [ebp - 0x1a64], eax
push 0xcc
push 0
lea eax, [ebp - 0x1a5c]
push eax
call fcn.002a95c0
add esp, 0xc
lea ebx, [ebp - 0x1990]
mov eax, edi
xor eax, dword [ebp - 0x1a64]
dec eax
sar eax, 0x1f
lea ecx, [ebp - 0x1a5c]
push ecx
push ebx
push eax
push ecx
push dword [ebp + 8]
call fcn.0035a980
add esp, 0x14
inc edi
add ebx, 0xcc
cmp edi, 0x20
jne 0x35dc68
test byte [ebp - 0x1a68], 1
jne 0x35dcff
mov edi, 0x44
push edi
lea eax, [ebp - 0x1a5c]
push eax
push dword [ebp + 0xc]
call fcn.002a9040
add esp, 0xc
push edi
lea eax, [ebp - 0x1a18]
push eax
push dword [ebp - 0x1a74]
call fcn.002a9040
add esp, 0xc
push edi
push dword [ebp - 0x1a78]
push dword [ebp - 0x1a7c]
call fcn.002a9040
add esp, 0xc
lea edx, [esi - 1]
mov al, 1
mov dword [ebp - 0x1a68], eax
mov ecx, dword [ebp - 0x1a6c]
cmp edx, ecx
jb 0x35daeb
jmp 0x35db31
lea eax, [ebp - 0x1a5c]
push eax
mov eax, dword [ebp + 0xc]
push eax
push eax
push dword [ebp + 8]
call fcn.0035b8d0
add esp, 0x10
jmp 0x35dce1